Compare commits

..

558 Commits

Author SHA1 Message Date
tix 96cf0ccbe3 * update tianditu API 2019-01-25 01:04:43 +08:00
cuixin 1edcad768a 首页 热门数据 修改为 最新数据集 2017-04-24 11:14:17 +08:00
cuixin 79afbe5284 修改平台介绍 2017-03-29 09:57:39 +08:00
cuixin 200826c2f4 修改单位地址、站点介绍 2017-03-28 21:22:01 +08:00
wlx a1bd57d1ae 修复重复的导航条问题 2016-01-22 09:08:54 +08:00
wlx 36d97225c0 替换三江源的图标与小照片 2015-12-14 08:12:17 +08:00
wlx 4d46ed2b6c fix westdc/westdc-zf1#26 issue: 更新离线申请协议模板 2015-12-10 14:28:05 +08:00
wlx fe43e2fddd merge sanjiangyuan-sub r5224 - r5246 into sjy-emc 2015-02-02 01:24:27 +00:00
wlx 947342139c merge sanjiangyuan-sub r5216, r5217 into sjy-emc 2015-01-31 08:34:03 +00:00
wlx 6625591866 merge sanjiangyuan-sub r5210 into sjy-emc 2015-01-31 07:27:25 +00:00
wlx e8b8e1fdb4 merge sanjiangyuan-sub r5137 - r5191 into sjy-emc 2015-01-30 15:16:20 +00:00
wlx 836caaf556 fix parameter error 2015-01-28 09:20:24 +00:00
wlx 7a262c4972 merge sanjiangyuan-sub r5063 - r5130 into sjy-emc 2015-01-22 04:07:31 +00:00
wlx fdec34d71c merge sanjiangyuan-sub r5057 2014-12-22 06:35:15 +00:00
Li Heng f5f610e649 2014-07-23 03:35:04 +00:00
Li Heng 2fd408d420 环境监测分平台 2014-07-23 03:34:46 +00:00
wlx 0723520d72 merge sanjiangyuan-sub branch r4872 - r4922 into sjy-emc 2014-07-18 03:02:19 +00:00
wlx b355511a2e fix missed function 2014-07-16 08:33:15 +00:00
wlx e809f9e27f fix error 2014-07-16 08:28:37 +00:00
wlx 8342437350 更新安全认证 2014-07-16 08:24:16 +00:00
Li Jianxuan bcc7146f81 添加后台ftp上传数据的操作按钮 2014-07-16 02:28:38 +00:00
Li Heng 04064a2030 新闻详细页面样式 2014-07-15 23:39:31 +00:00
wlx 576b389bfa 移除支持项目管理功能 2014-07-15 06:45:23 +00:00
wlx 2d46a2be15 #624, remove the newdata link 2014-07-15 06:11:27 +00:00
wlx fc16907197 fix #621 2014-06-24 09:03:03 +00:00
wlx 61c4ead29c merge sanjiangyuan-sub branch r4855 - r4867 into sjy-emc 2014-06-23 05:06:05 +00:00
Li Jianxuan 0526231290 修改数据可视化登录跳转页面 2014-06-23 04:08:50 +00:00
Li Heng e8df736d40 数据首页 数据最新更新 时间样式取消左对齐。 2014-06-23 03:51:31 +00:00
wlx 23dcdc035b remove unused file 2014-06-23 03:43:30 +00:00
wlx b23ed6614d 更新离线申请pdf功能 2014-06-23 03:42:57 +00:00
wlx 53c01a9568 merge sanjiangyuan-sub branch r4821 - r4849 into sjy-emc 2014-06-20 13:32:18 +00:00
wlx 02e25a420b #615, 修正关键词浏览方式 2014-06-20 13:24:12 +00:00
wlx 2e4cb25293 #618, 用天地图实现空间浏览 2014-06-20 11:35:13 +00:00
wlx e8bdd36d0c 修正默认中心和缩放级别 2014-06-20 09:37:04 +00:00
wlx fc2cb61d8e 用天地图实现高级搜索功能 2014-06-20 06:41:44 +00:00
Li Heng c49cc92175 数据首页 最近更新数据,最多浏览数据 小图标与文字调整。 2014-06-20 02:39:44 +00:00
wlx 838c4c295d fix errors 2014-06-20 01:28:59 +00:00
wlx 64257824fa 增加特色浏览方式 2014-06-20 01:27:49 +00:00
wlx 12cfacdb9f 添加数据导航方式 2014-06-20 00:32:19 +00:00
wlx 482f3896df 增加验证码判断 2014-06-18 14:52:54 +00:00
wlx 8facb0cc68 fix rss feed problem 2014-06-18 14:44:16 +00:00
wlx 4e389f5c77 fix pdf metadata problem 2014-06-18 14:38:43 +00:00
wlx 471066a15a fix doc md problem 2014-06-18 14:23:20 +00:00
wlx cea0a78962 修复doc格式元数据问题 2014-06-18 14:20:45 +00:00
wlx 433c44e40d 修复qrcode的url问题,修复odt模板 2014-06-18 14:13:49 +00:00
wlx 91e1c0e007 remove unused var 2014-06-18 14:08:41 +00:00
wlx 471e0627f0 remove unused var 2014-06-18 14:07:58 +00:00
wlx c9fac5f258 修复odt格式元数据问题 2014-06-18 14:04:50 +00:00
wlx f231426111 修改新闻首页的布局 2014-06-18 13:46:43 +00:00
wlx 5421a8ff06 修复首页新闻的时间问题 2014-06-18 13:46:25 +00:00
wlx 0823cf40ed merge sanjiangyuan-sub branch r4809 - r4816 into sjy-emc 2014-06-18 06:54:33 +00:00
wlx 3b2258357f remove text 2014-06-18 06:27:21 +00:00
wlx 6e9b2c81cc 修复缩略图浏览问题 2014-06-18 06:24:53 +00:00
wlx efc508c58c 增加可视化数据的排序方式 2014-06-18 06:19:54 +00:00
wlx 295728d7ff remove more link 2014-06-18 05:51:06 +00:00
wlx 265f09bb4d fix code error 2014-06-18 05:49:30 +00:00
wlx facbc0d5c4 更新数据首页布局 2014-06-18 05:48:26 +00:00
wlx 9d5c2d0c07 添加数据更新以及修复数据链接 2014-06-18 05:32:36 +00:00
wlx 8271f7c4cb merge sanjiangyuan-sub branch r4788 - r4802 into sjy-emc 2014-06-17 09:07:18 +00:00
wlx 3e9b768363 fix errors 2014-06-17 08:49:10 +00:00
Li Heng 4e59336d25 调整新闻列表页新闻标题与时间标记距离。 2014-06-17 00:07:35 +00:00
Li Heng 29e28b0be7 添加LOGO超连接。 2014-06-16 11:55:36 +00:00
wlx 94b5d380c1 change style 2014-06-16 03:49:19 +00:00
wlx b99163381f merge sanjiangyuan-sub r4767 - r4777 into sjy-emc 2014-06-16 03:22:35 +00:00
wlx 42a580e0c3 恢复正确信息 2014-06-16 03:22:04 +00:00
wlx 288e64e0fc 添加日期显示 2014-06-16 02:30:53 +00:00
wlx e85fd5bf7d 移除不用的js内容 2014-06-16 02:25:51 +00:00
wlx 83c650c537 设定首页新闻条数为5条 2014-06-16 02:15:32 +00:00
wlx 60688ab09b 移除数据引用帮助 2014-06-16 02:12:32 +00:00
wlx 62a1eba0e6 更新联系信息 2014-06-15 08:44:37 +00:00
wlx 0bbdb6aa52 update config 2014-06-15 08:43:53 +00:00
wlx 7f413f89eb merge sanjiangyuan-sub branch from r4734 - rr4762 into sjy-emc 2014-06-15 07:27:54 +00:00
wlx a43b45863d use tianditu 2014-06-15 07:22:56 +00:00
wlx 83a42c50b8 remove unused layout 2014-06-14 04:19:22 +00:00
wlx 707f2a85e3 fix error 2014-06-14 04:18:16 +00:00
Li Heng 5fa96f8825 1.LOGO更新;
2.header样式;
2014-06-14 03:59:37 +00:00
Li Heng 0d945c622a 头部导航位置调整。 2014-06-14 03:25:49 +00:00
Li Heng 1f3ae1b0c9 导航样式修改。 2014-06-14 03:23:38 +00:00
wlx b7b93a5781 add tianditu support 2014-06-14 01:44:23 +00:00
wlx 95f552bd3b change google maps to tianditu 2014-06-14 01:32:03 +00:00
wlx 901aeb4b5b update header.phtml 2014-06-13 14:44:47 +00:00
Li Heng 4f0e4d3bdd li 列表行高调整 2014-06-13 13:37:38 +00:00
Li Heng ac8d372f4d 1.页面头部留空
2.统一头部文件
2014-06-13 10:13:29 +00:00
Li Heng 28832cdf99 1.更新banner高度;
2.修改li行高;
3.banner图片新增
2014-06-13 08:46:59 +00:00
Li Heng a2673e8c03 更新引入CSS样式顺序 2014-06-13 08:45:06 +00:00
wlx c3130aa71d change thumb to bigthumb 2014-06-13 08:40:14 +00:00
wlx 1a1e4bbfaf merge sanjiangyuan-sub r4693 to r4733 into sjy-emc 2014-06-13 08:25:21 +00:00
Li Jianxuan 70778573d2 修改数据可视化页面js效果 2014-06-13 08:13:45 +00:00
Li Jianxuan 13e5e6be9b 修改AclManager,添加其它平台角色 2014-06-13 08:05:39 +00:00
Li Heng 47f3b3d828 联系我们页面调整 2014-06-13 07:37:28 +00:00
wlx bfe1464b19 change phone 2014-06-13 06:56:10 +00:00
wlx abbb3aa75a 更新联系电话 2014-06-13 06:25:19 +00:00
wlx 4e0b1e7286 更新联系信息 2014-06-13 04:55:43 +00:00
wlx c76f5eb05e 更新配置 2014-06-13 04:50:02 +00:00
Li Heng 1d054a4f1f 青海省环境监测中心站 LOGO 2014-06-13 04:47:52 +00:00
wlx 9dbdafb208 更新设置 2014-06-13 03:48:01 +00:00
wlx 8ec8044501 create sjy emc branches 2014-06-13 03:26:12 +00:00
Li Jianxuan 775b0ee360 修改数据可视化中得bug,修改后台管理员数量统计功能 2014-06-13 03:21:57 +00:00
wlx 29604ab761 minor fix 2014-06-12 09:49:31 +00:00
wlx 557e119806 minor fix 2014-06-12 09:48:52 +00:00
wlx aea1b81207 更新展示 2014-06-12 09:47:38 +00:00
wlx ad966c6851 更新页面展示 2014-06-12 09:45:22 +00:00
wlx 5259a56a9f add js to active 2014-06-12 09:35:06 +00:00
Li Jianxuan 40f2fc8d04 修改三江源子平台后台UI 2014-06-12 09:16:30 +00:00
Li Heng d928c3f573 列表页样式及logo 2014-06-12 09:00:01 +00:00
Li Heng 51cbbdd51b 新闻列表页面样式 2014-06-12 08:59:00 +00:00
wlx e0fbdda367 change layout 2014-06-12 08:47:27 +00:00
wlx 12d40fc049 add url link 2014-06-12 08:45:50 +00:00
Li Jianxuan 5e61c301b7 添加了元数据概况页面 2014-06-12 08:39:57 +00:00
Li Heng 044acaf849 logo样式2 2014-06-12 07:55:56 +00:00
wlx a3d2103fdc 添加分平台介绍页面 2014-06-12 07:16:17 +00:00
wlx 0fe53a674b 更新前台关于部分的分平台控制 2014-06-12 07:07:47 +00:00
wlx 47f6483e69 更新分类新闻列表的分平台控制 2014-06-12 06:55:00 +00:00
wlx fb0bfea245 更新新闻首页的分平台限制 2014-06-12 06:53:09 +00:00
wlx 75ae4ff252 revert index.phtml 2014-06-12 06:46:42 +00:00
wlx 66032ef2f5 首页内容更改 2014-06-12 06:23:58 +00:00
wlx 8cd438a3f2 change index page 2014-06-12 06:20:01 +00:00
wlx 50d118b386 fix sql error 2014-06-12 03:43:20 +00:00
wlx f3bee97f82 update index page content 2014-06-12 03:41:38 +00:00
wlx 9bb1bc9ad8 fix config error 2014-06-12 03:28:48 +00:00
wlx 0dee17f92b change index page 2014-06-12 03:25:06 +00:00
wlx b6d34f1b43 change news config 2014-06-12 03:16:05 +00:00
wlx 4bf466aa58 change news url 2014-06-12 01:58:26 +00:00
Li Jianxuan f86001f75d 修改数据可视化时元数据读取来源 2014-06-12 01:51:59 +00:00
wlx 5791184f19 fix error 2014-06-11 14:17:11 +00:00
wlx 417e587dbc 修改前台数据页面的分平台控制 2014-06-11 14:14:14 +00:00
wlx 153a43956e add viewed field 2014-06-11 13:13:58 +00:00
wlx a6035e7f60 fix active problem 2014-06-11 13:01:51 +00:00
wlx b7f440a98f fix path error 2014-06-11 12:48:27 +00:00
Li Jianxuan dac5f6c791 添加了可视化数据列表 2014-06-11 12:06:09 +00:00
wlx 7c9568a01c change jquery to local 2014-06-11 10:12:09 +00:00
Li Jianxuan 85fd4c182c 修改头部用户操作按钮 2014-06-11 09:36:14 +00:00
Li Jianxuan 3af42da773 修改头部用户操作按钮 2014-06-11 09:34:30 +00:00
wlx dd8e2cf9f3 fix sql error 2014-06-11 09:12:21 +00:00
wlx 239554b3ac 更新后台统计功能 2014-06-11 09:08:11 +00:00
Li Heng 4a492a9589 logo调整 2014-06-11 08:51:01 +00:00
wlx 4d3bfa4444 更新后台评审的分平台功能 2014-06-11 08:50:10 +00:00
wlx 6b4682325f 修改后台待审的分平台功能 2014-06-11 08:43:01 +00:00
wlx 76c6725159 更新后台评审首页的分平台实现 2014-06-11 08:38:46 +00:00
Li Jianxuan 97402e262d 增加了三江源自平台的数据可是化管理功能和展示功能 2014-06-11 08:38:38 +00:00
wlx 0eeba0747c fix spell error 2014-06-11 08:35:37 +00:00
wlx c06a5d8508 移除后台用户编辑权限功能 2014-06-11 08:31:00 +00:00
wlx 5474d5e018 更新用户管理功能 2014-06-11 08:29:18 +00:00
Li Jianxuan 4b7e774867 修改页面头部用户操作按钮 2014-06-11 08:27:03 +00:00
wlx 47880eab18 修改分平台的管理员列表功能 2014-06-11 08:14:58 +00:00
Li Jianxuan f0f0e639b5 更新三江源子平台可视化模块文件 2014-06-11 08:12:05 +00:00
wlx a7b9e63e70 实现离线数据服务记录的分平台处理 2014-06-11 08:04:43 +00:00
Li Heng 3231524aa1 LOGO调整 2014-06-11 07:45:49 +00:00
wlx 04ebe29d8d 实现在线数据下载记录的分平台控制 2014-06-11 07:45:06 +00:00
wlx 90b75f1495 fix error 2014-06-11 07:43:18 +00:00
wlx 6665c20700 实现用户下载记录的分平台控制 2014-06-11 07:42:44 +00:00
wlx 0b9de786bb fix error 2014-06-11 07:36:20 +00:00
wlx e24d2472b6 后台数据下载记录的分平台限制 2014-06-11 07:35:28 +00:00
Li Heng bb5a48cd6d 三江源LOGO 2014-06-11 07:30:23 +00:00
Li Heng f634a217a5 LOGO及头部样式更改 2014-06-11 07:26:59 +00:00
wlx 18e4f5ab5a 实现离线申请待处理的分平台控制 2014-06-11 07:06:54 +00:00
wlx 9a2b70f1a9 remove unused link 2014-06-11 06:43:51 +00:00
wlx f7d88d414b 移除专题管理功能 2014-06-11 06:42:36 +00:00
wlx f8105975b1 更新附件管理功能 2014-06-11 06:36:03 +00:00
wlx 1a23c89ec2 更新数据评论管理的分平台限制 2014-06-11 06:21:53 +00:00
wlx 69e31efafc 更新后台数据版本管理限制 2014-06-11 06:07:28 +00:00
wlx ec3c7068c8 更新后台数据作者的分平台限制 2014-06-11 06:02:36 +00:00
wlx 610ebbe454 fix error 2014-06-11 05:33:04 +00:00
wlx e5a58d91bb 增加分平台数据限制 2014-06-11 05:17:28 +00:00
wlx 929ea3b114 remove unused function 2014-06-11 03:54:55 +00:00
wlx 6571f575c4 分平台移除栏目管理功能 2014-06-11 03:27:55 +00:00
wlx a254e495ca 增加删除新闻的限制 2014-06-11 03:25:53 +00:00
wlx 44119d6412 fix error 2014-06-11 03:18:18 +00:00
wlx a119f356b9 添加更新新闻的分站限制 2014-06-11 03:13:45 +00:00
wlx ab25f11718 remove unused link 2014-06-11 03:04:51 +00:00
wlx fc2a1ac56e fix error 2014-06-11 03:02:19 +00:00
wlx 0848fcb69b change for debug 2014-06-11 02:59:59 +00:00
wlx d75be5b0c8 后台新闻管理仅列出本站新闻 2014-06-11 02:56:12 +00:00
wlx 2a73b322c6 add sub news in config 2014-06-11 02:47:56 +00:00
wlx 24cddfc4e8 minor fix 2014-06-11 02:30:39 +00:00
wlx bab967037d remove br 2014-06-11 02:25:52 +00:00
wlx b438c42213 更新默认来源名称以及定时发布问题 2014-06-11 02:23:50 +00:00
wlx 84e4ba6bb4 add auth parameter 2014-06-11 01:42:02 +00:00
Li Jianxuan 1a6b0375a9 修改跨域登录功能 2014-06-11 01:39:18 +00:00
wlx f7fbbf4e64 remove duplicated nav bar 2014-06-11 01:32:50 +00:00
wlx dd95c140b1 增加分平台的搜索功能 2014-06-11 01:27:50 +00:00
Li Jianxuan f82733a57b 添加异步跨域登录代码 2014-06-10 02:16:50 +00:00
wlx 133566d9c2 revert zf1 path 2014-06-05 09:58:39 +00:00
Li Jianxuan 71fac4e412 修改子平台用户登录及管理的相关功能 2014-06-05 09:53:18 +00:00
wlx 4d8c3abbce 添加分平台用户组设置 2014-06-05 09:31:10 +00:00
Li Heng 5c945ea49d 数据页面搜索栏目 2014-05-29 03:56:05 +00:00
Li Jianxuan 308c247d0f #588 增加了新闻添加时分平台信息自动添加的功能 2014-05-29 02:06:42 +00:00
wlx 660c208abc 导航条完善 2014-05-28 23:56:42 +00:00
wlx af7cf44634 增加导航条 2014-05-28 14:56:21 +00:00
wlx 52983d4d4b 删除无用代码,添加分平台视图名称,增加index首页模板 2014-05-28 09:44:03 +00:00
Li Heng 0576ec8b2a banner样式 2014-05-28 09:40:39 +00:00
Li Heng cdde57dfb5 头部banner尺寸调整 2014-05-28 09:25:45 +00:00
Li Heng b5e8cf471c bootstrap响应式布局。 2014-05-28 08:54:12 +00:00
Li Heng 4e9dd4355e li{line-height:24px} 2014-05-28 08:52:21 +00:00
Li Heng e90c3d77ed 引入样式修改 2014-05-28 08:51:28 +00:00
Li Heng 85f9f5e45a 首页样式修改。 2014-05-28 08:50:35 +00:00
Li Heng 44879890c8 首部导航样式 2014-05-28 04:05:04 +00:00
wlx 00ba57a340 remove unused code 2014-05-28 03:29:19 +00:00
Li Heng 59a257112d 头部样式调整 2014-05-28 03:17:10 +00:00
Li Heng 61e5fa558c 更新样式文件 2014-05-27 09:59:42 +00:00
Li Heng ef5828b6d0 样式 2014-05-27 09:57:11 +00:00
Li Heng 82f111497c 草原总站 2014-05-27 09:56:38 +00:00
wlx 62e03d6044 remove unused file 2014-05-27 07:15:48 +00:00
wlx ef303cd08a remove unused file 2014-05-27 07:14:05 +00:00
wlx 736cc6e3b7 resolve conflicts by rm and copy 2014-05-27 07:04:25 +00:00
wlx b55e23cf2e merge sanjiangyuan branch r4109 - r4535 to sanjiangyuan-sub 2014-05-27 07:01:51 +00:00
wlx b953c286fe revert sanjiangyuan-sub to r4408 2014-05-27 06:26:20 +00:00
wlx 1d71ee178c merge sanjiangyuan branch r4410 - r4534 to sanjiangyuan-sub 2014-05-27 05:42:02 +00:00
Li Jianxuan be99136c68 change visual-add.phtml 2014-05-27 02:51:38 +00:00
Li Jianxuan 4120cda7aa 添加可视化要素后台管理功能 2014-05-26 03:38:36 +00:00
Li Jianxuan b9a9e44746 修改注释错误 2014-05-25 02:18:41 +00:00
Li Jianxuan 12b8b26338 增加09年含沙量数据可视化 2014-05-23 07:41:52 +00:00
Li Jianxuan a8df49bff7 加入可视化的链接地址,修改了数据集的展示名称 2014-05-22 08:59:35 +00:00
Li Jianxuan c986d6c535 调整数据可视化命名空间内部结构 2014-05-22 02:44:18 +00:00
Li Jianxuan 483da847cd 修改bug 2014-05-21 09:57:28 +00:00
Li Jianxuan c0703ccfa3 添加数据可视化相关模块 2014-05-21 09:26:15 +00:00
Li Jianxuan ae7ef85ae7 添加在线数据可视化框架 2014-05-12 06:53:21 +00:00
Li Jianxuan 8eda0c4498 添加可视化相关js和命名空间目录 2014-05-12 02:56:55 +00:00
wlx ef9948332e 取消默认的时间限制 2014-03-26 02:20:49 +00:00
wlx f74c9bde98 确保管理员的完整同步 2014-03-25 13:58:59 +00:00
Li Jianxuan 4381b008ae 添加同步管理员到geonetwork的功能 2014-03-25 09:21:28 +00:00
wlx 72c353f435 set debug off 2014-03-21 15:37:14 +00:00
wlx 609e5713c4 change email to gmail 2014-03-21 10:19:04 +00:00
Li Jianxuan 4678531450 开启debug 2014-03-21 08:23:36 +00:00
Li Heng fa9e604755 添加后台邮件模板删除功能。 2014-03-21 06:24:33 +00:00
wlx a14d2319d9 set debug off 2014-03-21 04:43:15 +00:00
Li Heng 2b01533e75 分平台链接地址更改。 2014-03-21 02:43:15 +00:00
wlx 45ed720fe3 add new class 2014-03-21 02:16:27 +00:00
wlx 54d6aa8f28 change config 2014-03-21 02:14:20 +00:00
wlx 68e445d4ff change config 2014-03-21 02:12:03 +00:00
Li Jianxuan 8d23d7c0c0 修改邮箱配置 2014-03-21 02:10:03 +00:00
wlx d35547febf set debug on 2014-03-21 02:03:58 +00:00
wlx 6618361e63 comment error 2014-03-21 01:58:57 +00:00
wlx 3f2aa11842 fix var error 2014-03-21 01:46:29 +00:00
wlx 3ca3469e40 fix var name 2014-03-21 01:45:19 +00:00
wlx 4a0307c1dd 处理在线资源的名称为空的错误 2014-03-21 01:43:25 +00:00
wlx 2225a3e7f6 change piwik code 2014-03-20 19:16:21 +00:00
wlx 4d99a64adf 不显示三江源相关链接 2014-03-20 19:08:50 +00:00
wlx c917703669 remove warn info 2014-03-20 19:05:31 +00:00
wlx 16a9e8aecd fix search problem 2014-03-20 18:42:56 +00:00
wlx ef5cab577b comment warn info 2014-03-20 10:24:29 +00:00
Li Heng aac03e6ea4 banner修改。 2014-03-20 09:22:32 +00:00
Li Heng 46e82a7b2d 2014-03-20 08:07:36 +00:00
wlx d4a54cf5bb change config 2014-03-07 03:29:33 +00:00
wlx 9a67a94fe1 change service email and header text 2014-03-07 03:07:35 +00:00
wlx 3d12553c6d fix logic error 2014-03-06 07:48:24 +00:00
wlx fbcdd9b9cb remove heihemetadata, fix index page error 2014-03-06 07:38:06 +00:00
wlx 325fa858e5 remove oauth 2014-03-06 07:32:41 +00:00
wlx 4100514816 remove unused statstics 2014-03-06 07:32:27 +00:00
wlx 06439a4300 调整后台功能 2014-03-06 07:02:32 +00:00
wlx 7a44e38903 merge heihedata updates: from r3970 to r4321. 2014-03-06 06:32:10 +00:00
wlx 3db63caac9 change var name 2014-03-04 16:00:08 +00:00
wlx 6ffe628c27 提升稳定性和效率 2014-03-03 13:37:10 +00:00
wlx 7a9d11a977 add elements to dci 2014-03-03 13:34:19 +00:00
wlx 8a4a5c4386 add DCI action 2014-02-27 14:11:54 +00:00
wlx a8f0424aa6 修改数据委员会地址 2014-02-27 07:46:10 +00:00
wlx 70eb46f541 修正docAction和odtAction中数据引用方式的逻辑错误 2014-02-25 04:12:57 +00:00
wlx f99e98f2c7 增加时间点的判断 2014-02-25 04:11:54 +00:00
wlx 334403081a 在元数据浏览中增加资助项目链接 2014-02-21 08:48:35 +00:00
wlx d57090d5bc 修改底部文字 2014-02-21 08:48:03 +00:00
wlx 6c3f3bf0c3 资助项目以编号进行排序 2014-02-21 08:47:39 +00:00
wlx 5f2f07207a change url 2014-02-17 03:24:32 +00:00
wlx fbd1876e15 修复邮件通知的问题,更精准提取 2014-01-29 04:39:36 +00:00
Li Jianxuan 622a0331a5 fixed a bug about upload folder path 2014-01-27 08:29:18 +00:00
wlx 9818347102 update glacier theme 2014-01-22 02:55:07 +00:00
wlx 8f8ffeee43 update glacier theme 2014-01-22 01:45:38 +00:00
Li Heng b3b09c1839 新注册用户按月统计 2014-01-16 03:15:24 +00:00
wlx 9954be07f9 add more link 2014-01-16 02:42:20 +00:00
wlx 4f7a2765b3 fix link problem 2014-01-14 02:22:56 +00:00
wlx ed6d450d4a 设置为分栏目显示 2014-01-14 02:16:49 +00:00
Li Jianxuan 3967c23ecb #569将标题设为默认不能修改 2014-01-13 07:28:36 +00:00
Li Jianxuan 7ccd999fd5 #569 添加了是否发布的情况区分,未发布时doi标题可修改,并且读取元数据的标题作为默认内容 2014-01-13 07:16:22 +00:00
Li Jianxuan fd1a7260af 统计数据中的按用户统计添加了新用户统计功能 2014-01-10 09:21:13 +00:00
wlx 8f8631ee2f fix logic error 2014-01-10 05:25:21 +00:00
wlx 2425f6304c fix link error 2014-01-10 05:06:02 +00:00
wlx c9cead9996 minor fix 2014-01-10 05:05:04 +00:00
wlx fffe4448c9 layout change 2014-01-10 05:04:03 +00:00
wlx 7871ebfb6a add breadcrump and reference link 2014-01-10 05:01:42 +00:00
wlx 51f3adfa79 更新海河标题 2014-01-10 04:09:50 +00:00
wlx 2c9632d841 add haihe theme 2014-01-09 14:25:27 +00:00
wlx a4530e6e02 merge trunk r4172 - r4175 to heihedata branch 2014-01-09 13:44:26 +00:00
wlx fc2ffc188b 增加排序 2014-01-09 02:47:14 +00:00
wlx dd9a48ddd3 更新后台评审的投稿操作 2014-01-09 02:34:33 +00:00
wlx 55df6a1352 add single quote 2014-01-07 12:37:27 +00:00
wlx e553375dce fix monthreport error 2014-01-07 12:36:19 +00:00
wlx 4408b36c34 修复离线上报跨年生成错误的问题 2014-01-07 12:33:15 +00:00
Li Jianxuan 124ad5263a 修改了离线数据申请页面的模板,删除了导航中新离线申请管理的链接 2014-01-07 07:43:07 +00:00
Li Jianxuan 024cfaef59 更新页面模板 2014-01-07 07:28:45 +00:00
Li Jianxuan 329a25b59e 添加了离线下载记录中更新PDF的功能 2014-01-07 07:01:25 +00:00
Li Jianxuan a6efab68c9 为wsn数据选择时间范围的添加了如果是多个点的话可以设置所有变量的时间 2014-01-03 06:19:04 +00:00
Li Jianxuan e2f2b2ae71 增加了裁图工具 2014-01-03 02:22:45 +00:00
Li Jianxuan f6b1acc273 修改用户名长度和规则判断的正则表达式 2013-12-27 06:21:12 +00:00
Li Jianxuan dd22a0fe70 修改错误提示方式 2013-12-27 05:54:27 +00:00
Li Jianxuan 1822a361cf 修改用户注册界面 2013-12-27 04:14:03 +00:00
Li Jianxuan 0288b30ab6 修改AccountController中返回消息的bug,提交AclManager中有关自动登录的代码,修改member类中关键字支持php5.5+ 2013-12-27 02:39:18 +00:00
Li Jianxuan a1f43ad574 修改了用户名判断的条件 2013-12-27 02:06:40 +00:00
Li Heng c6c7585269 验证码功能封装修改。 2013-12-26 09:10:00 +00:00
Li Heng 985272db6a 验证码功能封装! 2013-12-26 09:08:35 +00:00
Li Heng ba94ea7b7f 更新分站注册时跳转总站功能。
需要总站增加按登录跳转时的分站URL注册成功后转回分站登录的功能。
2013-12-26 09:07:29 +00:00
Li Heng 5529995c9c 新增分站登陆时的验证码功能。 2013-12-26 09:04:34 +00:00
Li Jianxuan 1c6a36d638 取消黑河专题jiathis的注释,解决重复访问登录页面时的死循环问题,修改验证码图片存放路径 2013-12-26 07:59:00 +00:00
Li Jianxuan 9a78f04113 修改函数写法兼容php5.3 2013-12-26 07:28:27 +00:00
Li Jianxuan b54c72b565 修改函数写法 2013-12-26 07:27:27 +00:00
Li Jianxuan e8aba81d7d 为邮件模板功能添加冗错判断,使用模块化封装的找回密码功能 2013-12-26 07:12:59 +00:00
Li Jianxuan 9779a0bebe 在三江源子站中添加验证码助手helpers\Captcha 2013-12-26 02:54:05 +00:00
Li Jianxuan 920b71add7 使用事件驱动的登录模块,修复cookie无法保存的bug,添加了验证码助手Helpers\Captcha 2013-12-26 02:50:10 +00:00
Li Jianxuan c2225d4e21 调整后台菜单的统一样式 2013-12-26 02:15:41 +00:00
Li Jianxuan 5483690395 修改form宽度超出页面的bug 2013-12-24 09:39:34 +00:00
Li Heng 543c8fcd2f 添加本地账户功能模块及表单 2013-12-19 07:47:57 +00:00
Li Jianxuan 88e29d711e 在hiwater中的多篇文献引用列表中加入了查看和下载功能 2013-12-18 02:43:10 +00:00
Li Jianxuan c0020d2aa1 添加本地用户列表 2013-12-16 08:45:15 +00:00
Li Jianxuan d8b42ac090 分离本地用户和所有用户的查看,增加本地用户添加窗口 2013-12-16 08:29:55 +00:00
wlx ac7245e603 change ftp url 2013-12-16 06:12:38 +00:00
Li Jianxuan 8d01826db3 修改了验证的用户名长度 2013-12-16 02:28:33 +00:00
wlx 72f4a0e09f change ftp url 2013-12-14 12:00:44 +00:00
wlx 7a6f34efcf switch ftp url to ftp.sanjiangyuan.org.cn 2013-12-14 04:19:58 +00:00
wlx 02ae9b9d85 change geonetwork url 2013-12-13 09:58:54 +00:00
Li Jianxuan 7e6ad54e7f submit user account register issue 2013-12-13 08:42:34 +00:00
Li Heng 65fc779e54 用户登录及分站重写cookie 2013-12-04 07:49:14 +00:00
Li Heng 1563870c5e 用户跨站登录及分站重写cookie. 2013-12-04 07:46:58 +00:00
Li Heng 2c50c49baf 重构管理员列表页adminlist.phtml,普通用户列表页list.phtml 2013-12-04 02:22:16 +00:00
Li Heng 48d2740a4b 账号、密码的检查 2013-12-02 03:39:02 +00:00
Li Jianxuan 311d67e493 三江源子平台系统增加了Users控制类 2013-11-29 03:07:54 +00:00
Li Jianxuan 8f208ef7c5 修改curl中不能初始化配置的bug 2013-11-29 02:26:06 +00:00
wlx 5ae05fb85d 修复成果展示中的错误 2013-11-29 01:47:32 +00:00
Li Jianxuan e6ed812e8d 添加了MCrypt加密助手 2013-11-28 09:01:11 +00:00
Li Jianxuan 2a37cec905 更新三江源子平台中的curl和accountcontroller中的功能 2013-11-28 02:30:13 +00:00
Li Jianxuan 35c0883355 添加了card.westgis.ac.cn的科技网通行证Appkey和Appsecret 2013-11-26 10:04:02 +00:00
Li Jianxuan eb98d79dfc 修改了重置申请表的功能,添加了修改状态代码的部分 2013-11-26 09:40:33 +00:00
Li Jianxuan 603dfd8781 创建三江源子平台的主分支 2013-11-26 02:23:58 +00:00
Li Jianxuan 74a5e3f5fc 修改了Oauth登录时密码重复md5的bug 2013-11-22 03:29:30 +00:00
wlx 580e97cc9d change acl 2013-11-22 03:16:53 +00:00
Li Jianxuan c0642c240a oauth登录部分删除测试用的代码 2013-11-22 02:31:25 +00:00
Li Jianxuan 6ab8c24f94 增加了OpenController,增加了accountController中关于Oauth交互登录的功能 2013-11-21 06:21:22 +00:00
Li Jianxuan 0e11fd37d7 修改 \Open\server 为 \Open\Server 2013-11-21 03:56:00 +00:00
Li Jianxuan 580cc39411 增加了开放平台中Oauth客户端和服务器端部分 2013-11-21 03:54:26 +00:00
Li Jianxuan dbe4d9d728 更新Helper\Curl和Helper\Table类 2013-11-21 02:14:36 +00:00
Li Jianxuan 608b8f29f4 更新Users操作类 2013-11-21 02:09:45 +00:00
wlx 1c3075584e change link css 2013-11-20 10:10:18 +00:00
wlx 6d5397273e 不限制heihe上的order项 2013-11-20 09:53:33 +00:00
wlx 1edecd120a fix #567, 限定施引文献的显示数量 2013-11-20 09:50:41 +00:00
Li Jianxuan 69d3a94ef8 #566 修改查重时的单引号bug,修改Ris导入时作者为字符串时发生错误的bug 2013-11-19 01:56:39 +00:00
wlx afd7f13418 fix problem when generate the reference 2013-11-17 12:07:15 +00:00
wlx ff2c52cfeb fix spell error 2013-11-16 11:28:50 +00:00
wlx 5de71572bb 有数据作者才发信 2013-11-16 11:14:45 +00:00
wlx cd8fe1ca87 fix single author could generate reference problem. 2013-11-16 07:43:30 +00:00
wlx 9512051737 add css 2013-11-15 14:47:36 +00:00
wlx 2bc695660b fix var error 2013-11-15 14:46:28 +00:00
wlx 1ccb1300b0 add ris download function for literatures 2013-11-15 14:41:56 +00:00
Li Jianxuan beb002b648 为Curl类添加自定义头信息功能 2013-11-15 03:44:52 +00:00
wlx 2ca99a2de3 fix spell error 2013-11-15 02:31:03 +00:00
wlx 1c147a88c2 实现后台编辑离线记录功能(补充项目信息) 2013-11-14 06:45:21 +00:00
Li Jianxuan 2eda702362 #563 修改了导入时单个author的bug 2013-11-14 02:49:15 +00:00
wlx 24f253c027 fix single author problem 2013-11-13 18:24:53 +00:00
wlx 7a36469b62 区分数据中心的施引文献展示方式 2013-11-13 18:16:31 +00:00
wlx 7acc24754d change literature view 2013-11-12 13:09:02 +00:00
wlx 98985efc84 修复同作者文章的问题 2013-11-12 12:35:12 +00:00
wlx d7eec24005 重新整理知识积累平台 2013-11-12 07:02:40 +00:00
wlx 9260c03a60 change template name 2013-11-11 10:06:03 +00:00
wlx 747b356901 change template name 2013-11-11 10:02:29 +00:00
Li Jianxuan 6cd975a861 修改了用户注册的邮件模板功能,增加了用户操作的类文件 2013-11-11 08:39:55 +00:00
Li Jianxuan 3ef2748dd1 Account controller修复验证码无法生成的bug 2013-11-11 02:53:34 +00:00
Li Jianxuan 5d80b35553 增加了已通过的服务记录的搜索,增加了操作时的确认按钮 2013-11-05 07:57:17 +00:00
wlx ed711d9a3b change mount to Mount 2013-11-05 04:09:26 +00:00
Li Jianxuan d007786fb1 将Order/mount改为Order/Mount 2013-11-05 04:01:05 +00:00
Li Jianxuan cd2be09bf7 将Order/listener改为Order/Listener 2013-11-05 03:59:35 +00:00
Li Jianxuan ff2f657cb6 规范文件名和namespace命名,修改小心为大些,增加Application类用来处理申请相关事务 2013-11-05 03:57:01 +00:00
Li Jianxuan 8c3d9cf760 添加了数据中心文献的功能 2013-11-05 02:23:49 +00:00
wlx 3cd2e16766 优化RIS输出 2013-11-04 13:27:32 +00:00
wlx 3325569970 不输出已经有RIS内容的文献 2013-11-04 13:26:00 +00:00
wlx 838afc1d5d 优化文献输出方式 2013-11-04 12:09:57 +00:00
Li Jianxuan 8d89e9f435 添加了ris导出功能 2013-11-04 09:04:07 +00:00
Li Jianxuan 6ae3223a84 修改文献列表显示方式,添加按年显示的功能 2013-11-04 07:08:58 +00:00
wlx 075ff2b2c0 放宽批量导入的限制 2013-11-01 09:14:13 +00:00
wlx fff01b40ce 修改参考文献格式生成代码;修改批量导入 2013-11-01 09:13:35 +00:00
wlx e3a6acc635 fix logic error 2013-10-31 05:17:00 +00:00
Li Jianxuan 8e1db6cd3d 删除没用的代码 2013-10-30 06:51:28 +00:00
Li Jianxuan c1f5c7de56 #558 增加了从表中读取信息的功能 2013-10-28 09:45:48 +00:00
wlx 475f67534a add water theme literatures; add paper detail view; 2013-10-28 07:59:40 +00:00
Li Jianxuan 0e87bf7d35 文件类中添加reference类型 2013-10-28 07:32:19 +00:00
Li Jianxuan 40547de3c7 添加头部引用 2013-10-28 06:55:31 +00:00
Li Jianxuan 36a363c354 添加了ris修改单篇文献的功能 2013-10-28 03:26:44 +00:00
Li Jianxuan 2239dfc991 增加了/Helper/View::setUserStorage()方法 2013-10-28 02:15:52 +00:00
wlx f2836ea683 change the reference type 2013-10-27 15:33:14 +00:00
wlx 9a1a5d8f82 #556, add westdc literatures show function 2013-10-27 06:04:30 +00:00
wlx 0a412c9aa4 #555, 移除姓名中的分号 2013-10-27 05:38:13 +00:00
wlx fcf96d5973 #554, 实现挂载目录的定时移除,每月运行一次,清除之前4个月到3个月之间的目录挂载 2013-10-27 05:29:22 +00:00
Li Jianxuan f31402c7be model/Review中添加注释 2013-10-26 09:24:03 +00:00
Li Jianxuan a83c3ee18f 修改RIS中导入处格式处理的bug 2013-10-24 09:54:24 +00:00
Li Jianxuan dacbff71c5 重命名Open/open.php 为 Open/Open.php 2013-10-24 09:23:31 +00:00
Li Jianxuan dc8074c1ac 修改Open/app.php 为 Open/App.php 2013-10-24 09:22:51 +00:00
wlx a4f5c42739 fix sql error 2013-10-22 14:42:10 +00:00
wlx 3628ece4c1 添加待处理文献功能 2013-10-22 13:40:41 +00:00
wlx 4c95532808 add LibRIS code 2013-10-22 12:12:24 +00:00
Li Jianxuan 768eb4d5fc 添加气科所网站链接 2013-10-18 09:40:33 +00:00
Li Jianxuan 9dbf7c54a2 添加了单位的链接 2013-10-18 09:35:01 +00:00
Li Jianxuan 9f749c11f9 修改首页数据的链接 2013-10-18 03:21:17 +00:00
Li Jianxuan a3551b20e8 添加了文献附件的下载功能 2013-10-18 02:33:40 +00:00
wlx 6330596132 fix error 2013-10-17 13:10:31 +00:00
wlx 31b5d91a3c 移除专题数据 2013-10-17 13:09:49 +00:00
wlx b3cb533382 change heihemetadata to normalmetadata 2013-10-17 13:08:23 +00:00
Li Jianxuan dda5be5a23 修改了导航内容 2013-10-17 08:23:39 +00:00
Li Jianxuan 1f5cf9aca8 修改首页排版 2013-10-17 03:15:08 +00:00
wlx 7be9301869 change config 2013-10-16 13:07:14 +00:00
wlx b85c97ae82 change include path 2013-10-16 13:01:00 +00:00
Li Jianxuan 3acef46848 更新了附件上传中的方法 2013-10-16 08:07:54 +00:00
Li Jianxuan 4f6750c7d2 修改关于我们等页面的文字 2013-10-16 06:24:39 +00:00
wlx 29557c14c1 fix condition judgement 2013-10-15 10:06:42 +00:00
Li Jianxuan f615c51fd0 修改search form位置,修改页脚 2013-10-15 10:06:42 +00:00
wlx c30f1c6826 修改文献类型的限制 2013-10-15 10:04:41 +00:00
Li Jianxuan cacf667bb5 更改三江源项目首页的布局和内容 2013-10-15 09:38:52 +00:00
Li Jianxuan 4d259cd05b 创建三江源项目代码分支 2013-10-15 06:42:22 +00:00
Li Jianxuan db7faba594 添加了单篇编辑的相关字段的添加和编辑 2013-10-15 06:30:51 +00:00
Li Jianxuan 3269c2fd8c 完善ris导入文献时的update功能 2013-10-15 01:36:49 +00:00
wlx d5034346f3 文献参数修改,调整入库策略 2013-10-13 14:41:35 +00:00
Li Jianxuan f06a9ef590 文献管理中添加了按记录时间排序的功能 2013-10-12 09:36:13 +00:00
Li Jianxuan c0a3ee9e35 文献管理中添加了ris格式导入功能 2013-10-12 09:26:10 +00:00
wlx 3d90704b51 修正文献类型编码 2013-10-12 04:10:22 +00:00
Li Jianxuan 4b98d2787f 修改参数bug 2013-10-12 03:59:53 +00:00
wlx 88c058854c 修复生成脚本中的路径错误 2013-10-11 01:34:00 +00:00
Li Jianxuan e5172936f0 添加了序号显示 2013-10-10 02:32:43 +00:00
Li Jianxuan d978e0e8c7 添加了数据文献的编辑功能,在文献列表页面添加了快速添加数据文献的按钮 2013-10-10 02:19:46 +00:00
Li Jianxuan e1f1a30f98 增加了数据文献的添加和移除功能 2013-10-09 10:02:11 +00:00
wlx e322e0cbe2 修改文字说明 2013-10-09 07:58:46 +00:00
Li Jianxuan 8caeae6913 修改了生成pdf时限制数量的判断规则 2013-10-09 03:46:33 +00:00
Li Jianxuan 7760e3fea6 view类中增加新功能,在生成pdf的时候添加数量控制 2013-10-09 03:22:27 +00:00
wlx ef18c978fe fix sql error 2013-10-08 10:34:14 +00:00
Li Jianxuan 99088092ac #552 修改状态读取字段 2013-10-08 08:45:58 +00:00
Li Jianxuan 5d2010ba1d #552 添加待处理列表功能 2013-10-08 03:35:49 +00:00
wlx 01f2117dbd 取消已发布数据的版本发布邮件通知 2013-10-01 06:26:03 +00:00
wlx 2b8c958bfa 修复数据文献管理错误 2013-09-30 04:21:11 +00:00
Li Jianxuan b6bf8b1d40 完善后台文献管理的相关代码 2013-09-30 03:20:50 +00:00
wlx d5e1dbcbee 修改离线服务记录的限定条件 2013-09-30 03:18:06 +00:00
Li Jianxuan 6a9bdd0109 添加了搜索和排序功能 2013-09-30 03:09:21 +00:00
Li Jianxuan 3f216e98bc 添加了文献管理中的备注字段,修改bibtex为ris 2013-09-30 02:16:30 +00:00
Li Jianxuan 2c5a014a47 修改申请查看的后台页面地址 2013-09-30 02:10:57 +00:00
Li Jianxuan 60da9b5ea6 修改了登录后自动跳转的链接. 2013-09-30 02:00:43 +00:00
Li Jianxuan 737a967a51 优化post页面的功能 2013-09-29 10:18:25 +00:00
Li Jianxuan 8ab7186eab 添加了多个上传自动提取文件名作为文献名称的功能,添加了文献删除的功能,优化页面跳转 2013-09-29 10:06:49 +00:00
Li Jianxuan 579a204c0f 更改view::addPaginator的调用参数 2013-09-29 07:02:23 +00:00
wlx 3f303c9b10 修改分类为literature 2013-09-28 06:16:55 +00:00
wlx 7aafcc16d1 change water sql 2013-09-28 03:24:44 +00:00
wlx b918763486 fix spell error 2013-09-28 03:23:34 +00:00
wlx 9a72b44369 fix error 2013-09-28 03:22:48 +00:00
wlx 10937d4d0d 添加WATER文献查看功能 2013-09-28 03:21:40 +00:00
wlx 512ec4b98c 修复无文献的编辑错误 2013-09-28 02:17:33 +00:00
wlx 0fc75d13f5 set no time limit 2013-09-27 08:10:03 +00:00
Li Jianxuan 3edc580c14 文献管理中添加了批量上传功能和文件管理功能 2013-09-27 07:21:14 +00:00
wlx f78bc77e7f comment the unused 2013-09-26 10:38:59 +00:00
Li Jianxuan 1118dca7ce 在数据管理导航中添加了文献管理 2013-09-26 08:33:52 +00:00
Li Jianxuan 31cd51a825 更新文件操作类,添加数据表对象 2013-09-26 08:29:28 +00:00
Li Jianxuan d7d7037a24 后台添加文献管理界面,添加了单篇文献添加和编辑功能 2013-09-26 08:26:29 +00:00
Li Jianxuan cd2c1c831e 修改重置申请表后用户点击的链接地址 2013-09-26 07:16:43 +00:00
wlx 7010683a9d 处理wsn数据生成 2013-09-26 05:11:12 +00:00
wlx 39720be5ad 添加判断是否存在wsn数据的函数 2013-09-26 05:10:30 +00:00
wlx 74ed000c6c 说明文字修改 2013-09-26 05:09:53 +00:00
wlx 7a3dcab48c 修改wsn数据处理地址 2013-09-26 04:11:27 +00:00
wlx f89fd45706 修改文字说明 2013-09-26 04:08:08 +00:00
wlx d5312fe506 修复后台显示多个相同申请表的错误 2013-09-26 03:42:05 +00:00
wlx 19ac21f7c2 修复订单处理中的逻辑错误,修改数据蓝中的相关文字说明 2013-09-26 03:28:43 +00:00
wlx 77efed4024 change search to heihe 2013-09-26 03:27:01 +00:00
wlx 32b2d59015 web执行与cli二合一 2013-09-25 15:19:16 +00:00
wlx c653459536 添加wsndata数据处理支持 2013-09-25 14:07:28 +00:00
Li Jianxuan 013b2cdb32 修改签字版pdf文件读取路径 2013-09-25 09:48:22 +00:00
Li Jianxuan 68004bd83e 增加提取UUID的流程 2013-09-25 09:44:21 +00:00
Li Jianxuan 1cbbb12f8f 修改生成数据的操作进行的流程,修改传递的参数 2013-09-25 09:30:39 +00:00
wlx 1fbbafd719 add use 2013-09-25 09:26:41 +00:00
Li Jianxuan a47bdff70b 删除错误的代码 2013-09-23 02:14:00 +00:00
Li Jianxuan ac3a194a34 修改了pdf生成页面的提示文字 2013-09-17 06:49:01 +00:00
wlx 35ede84804 修复后台错误 2013-09-16 04:13:53 +00:00
Li Jianxuan 9ed360237c 将数据生成接口移动到后台。 2013-09-12 08:06:05 +00:00
Li Jianxuan 256c4a3bc9 修改了导航内容 2013-09-11 08:12:29 +00:00
Li Jianxuan 03ca27e589 注释了数据收藏功能,修复待处理申请中的逻辑错误 2013-09-11 03:56:13 +00:00
wlx b63ab17ab3 change order to Order 2013-09-11 03:33:28 +00:00
wlx a1d032b371 add module path 2013-09-11 03:25:06 +00:00
Li Jianxuan e5cde968b7 已上传pdf后也添加了生成pdf的按钮 2013-09-11 01:42:47 +00:00
Li Jianxuan 0e4e1111f5 修改离线申请的pdf上传流程 2013-09-09 08:46:54 +00:00
Li Jianxuan 3ae66dd5fb 后台添加了申请表的查看和下载功能 2013-09-09 03:11:29 +00:00
wlx 9f7b4ff0f9 更新保密协议抬头 2013-09-09 03:04:24 +00:00
Li Jianxuan 232a08eeb2 修改了列表中applicationform字段的调用位置 2013-09-06 09:20:51 +00:00
Li Jianxuan b2b627c8db 修改了后台操作中相关申请表字段的读取 2013-09-06 08:15:16 +00:00
Li Jianxuan e93fe95ed6 将申请表上传的文件路径保存位置移动到offlineapp表 2013-09-06 07:56:41 +00:00
Li Jianxuan b0cb441d47 修改了project_leader在pdf中读取的bug,添加了提交离线申请后更新信息到用户表的功能 2013-09-06 07:05:33 +00:00
wlx e73480fb38 add smtp.name 2013-09-06 06:18:39 +00:00
Li Jianxuan b2a756cd87 修改了项目负责人字段的名称,在线申请表中也添加了项目负责人字段 2013-09-06 03:41:46 +00:00
Li Jianxuan c5503be20a 视图中删除了项目负责人信息的填写框 2013-09-05 09:14:26 +00:00
Li Jianxuan 3e881ec267 删除了项目负责人职称的填写 2013-09-05 09:14:00 +00:00
Li Jianxuan 7b150ee8ac 添加了作者同意用户申请时的wsn数据生成功能 2013-09-05 04:00:07 +00:00
Li Jianxuan 14c012c78f 添加了重置申请表的确认按钮 2013-09-05 01:57:37 +00:00
Li Jianxuan 04dbd9eeb9 后台离线申请管理中添加了上传申请表、重置申请表,查看申请表的功能 2013-09-05 01:56:30 +00:00
Li Jianxuan 3f4c945dbf 添加了用户上传申请表的功能 2013-09-05 01:54:50 +00:00
Li Jianxuan b062e86e04 文件类中添加了申请表上传的操作,完善Mail、View、dbh助手,完善Order中相关功能,添加Open模块 2013-09-05 01:52:27 +00:00
Li Jianxuan 48ea533412 在PDF类中添加了dataservice相关数据的页面操作,dataservice中添加了wsn数据读取时登录的判断 2013-09-05 01:50:29 +00:00
Li Jianxuan dc7be636fa 添加了后台的申请表上传和前台申请表上传控件的通用操作JS 2013-09-05 01:46:26 +00:00
Li Jianxuan 7c131daf89 完善了dataservice与wsn的对接,在pdf生成中,如果有子集选择数据,则添加到附件中 2013-08-29 07:53:31 +00:00
Li Jianxuan 6152c36246 对数据篮的数据提交过程进行了模块化改造 2013-08-28 09:50:08 +00:00
Li Jianxuan f66616d0dc hiwater\view中添加了dataservice判定 2013-08-28 02:50:40 +00:00
Li Jianxuan 643ccaad7a 在data/view页面中添加了dataservice 2013-08-28 02:49:07 +00:00
Li Jianxuan 849918408b 修改namespace 小写为大写,添加了历史offlineapp信息记录的调用 2013-08-28 01:49:27 +00:00
wlx 8329e665a8 move order directory to module 2013-08-28 01:45:09 +00:00
Li Jianxuan 9552d51276 修改了 namespace order中的若干操作,增加了pdf里的项目负责人和项目负责人职称字段 2013-08-28 01:41:49 +00:00
Li Jianxuan 7c6f3e3f0c 完成了dataservice中wsn接口的开发和调用。在heihe\view中添加了wsn数据选择子集的功能 2013-08-26 02:39:22 +00:00
Li Jianxuan a9a92ffacb 添加了时间选择插件 2013-08-26 02:35:28 +00:00
Li Jianxuan c4effc6c45 修改模块的命名空间,全面采用新模块名称 2013-08-26 02:33:44 +00:00
Li Jianxuan 644baf0a20 创建了新的邮件类,方便操作,并且添加了事件功能 2013-08-22 08:08:45 +00:00
Li Jianxuan 87f2aaa67d 更新助手类 2013-08-22 07:59:09 +00:00
Li Jianxuan e4ef7119fb 完善了文件输出类,修改了csv格式和乱码的问题 2013-08-19 08:17:50 +00:00
Li Jianxuan 5848e2206d 添加了Theme中的uploadify对象 2013-08-16 10:04:18 +00:00
Li Jianxuan 6c21107cc7 增加了后台上传申请表的功能 2013-08-16 09:59:59 +00:00
Li Jianxuan f217f41059 增加了有命名空间和事件驱动模式的新文件模块 2013-08-16 09:59:11 +00:00
Li Jianxuan 1353d1753c 增加了新版本uploadify,由于api与旧版不同,不能直接覆盖旧版,修改了dataservice获取时ajax状态的判断 2013-08-16 09:57:39 +00:00
Li Jianxuan 3f896af13f 增加Dataservice中关于WSN数据的操作,增加CURL类 2013-07-26 10:44:59 +00:00
Li Jianxuan b1abdbf7e9 更新了view页面JS,修改wsn数据交换方式为后台CURL方式 2013-07-26 10:43:30 +00:00
Li Jianxuan 53c820faa0 添加wsn数据选择弹窗控件和数据服务选择功能 2013-07-25 09:13:57 +00:00
Li Jianxuan eac0d60036 更新数据的PDF生成功能,更改添加到数据篮的后台处理 2013-07-24 10:11:14 +00:00
Li Jianxuan 7fe66c8b4b 更新助手类,添加新功能 getHostLink() 2013-07-24 10:09:19 +00:00
Li Jianxuan d33d9934be 修改表单验证流程 2013-07-22 09:16:18 +00:00
wlx 5bf297cb14 添加支持项目的排序功能 2013-07-22 05:23:41 +00:00
wlx 7df336092d 更新黑河协议 2013-07-22 04:12:11 +00:00
Li Jianxuan 77c95fde76 修改离线申请表,增加wsn数据来源判定 2013-07-19 10:19:59 +00:00
Li Jianxuan a0c8be3a73 初步完成数据收藏功能 2013-07-19 10:18:07 +00:00
wlx 57990bcd4a 修正doi操作逻辑 2013-07-19 09:06:37 +00:00
Li Jianxuan a7462e4921 #546 添加数据篮操作的相关类,初步模块化数据篮功能,修改视图中链接bug 2013-07-17 09:53:44 +00:00
wlx 8eee6b352a fix gn url error 2013-07-17 08:21:01 +00:00
wlx 985120fe69 #545, 初步实现黑河数据的协议分离 2013-07-17 08:04:33 +00:00
wlx 0cfab6f6aa fix url link error 2013-07-15 15:51:28 +00:00
Li Jianxuan 4d78dbd2ff 更新邮件模板类,将set簇方法和send() 进行了整合 2013-07-15 08:39:31 +00:00
Li Jianxuan 0a2f5cc4d1 修改后台元数据评审功能 2013-07-15 03:44:50 +00:00
wlx b7b62a9960 更新在线、离线视图 2013-07-14 10:04:11 +00:00
wlx b71f0c79e9 #539, 实现heihe专题的在线、离线列表查看 2013-07-14 09:58:14 +00:00
wlx 7f529491da #537,修复首页统计不准确的问题 2013-07-12 07:00:39 +00:00
Li Jianxuan 27082e4a26 #536 修改一处逻辑错误 2013-07-11 06:59:16 +00:00
Li Jianxuan 3f3198b355 #536 修改元数据默认的doi显示 2013-07-11 06:57:17 +00:00
Li Jianxuan e393f8085a 修改后台我负责的元数据管理功能,增加了分字段排序功能 2013-07-10 09:04:43 +00:00
Li Jianxuan c94f452eb6 删除了等待评审和我评审过的中的测试代码,增加登录跳转 2013-07-09 01:35:21 +00:00
Li Jianxuan 68d6f6a0bd 数据评审中增加了等待我评审的和我评审过的元数据查看功能 2013-07-08 10:15:39 +00:00
wlx ff27b69a51 修改默认使用声明中的数据中心名称 2013-07-08 01:40:46 +00:00
wlx 92971d651f 更新数据引用信息以及项目信息的支持 2013-07-02 06:44:01 +00:00
wlx 36ab07c9ea 更新数据保密协议以及使用协议 2013-07-02 03:32:51 +00:00
wlx d9d6177a91 增加doi的搜索功能 2013-06-29 16:15:23 +00:00
wlx 734327fa82 修改数据排序方式 2013-06-29 14:49:03 +00:00
wlx d8d1eb9135 更新专题数据展示 2013-06-29 14:37:27 +00:00
Li Jianxuan 790922246b 添加文献编辑中修改链接和类型的功能 2013-06-27 06:27:59 +00:00
wlx bf2e91f2c7 修改文字说明 2013-06-26 14:04:19 +00:00
wlx 196db663b2 次序调整 2013-06-26 02:35:00 +00:00
wlx 56fc5d0b13 修改数据协议模板,添加黑河计划数据管理中心 2013-06-26 02:32:52 +00:00
wlx 2d4c668c88 修改hiwater页面 2013-06-25 00:49:31 +00:00
Li Jianxuan 4e1b6e8241 修改了文献添加部分的操作 2013-06-24 08:58:21 +00:00
wlx 065d5988cf 列出所有待审数据 2013-06-21 09:27:55 +00:00
wlx 2c474145f5 修复不能发邮件的错误 2013-06-21 09:05:21 +00:00
wlx 2b369ef8c2 fix type error 2013-06-21 08:49:38 +00:00
wlx 2034f79a65 fix url error 2013-06-21 08:48:51 +00:00
wlx 0281f7f1b1 实现 #511, #514, #516. 问题数据检查 2013-06-20 15:20:29 +00:00
Li Jianxuan 97b8d9292f 修改登录页面表单,增加鼠标单击切换验证码的功能 2013-06-20 08:59:32 +00:00
wlx 7ec4679db8 切换normalmetadata为heihemetadata,并做页面的修改 2013-06-20 07:34:53 +00:00
wlx 7e77feb16d 添加了空白数据的处理 2013-06-20 06:52:40 +00:00
wlx bec46a5b16 修复右箭头乱跑的问题 2013-06-19 13:58:18 +00:00
wlx bbbe84061c #513, 修改站点名及logo 2013-06-19 13:40:46 +00:00
975 changed files with 44577 additions and 67351 deletions

File diff suppressed because it is too large Load Diff

View File

@ -27,156 +27,7 @@ class Admin_DownController extends Zend_Controller_Action
{ {
//其他连接 //其他连接
} }
//新离线数据申请管理
function offlineappsAction()
{
$this->view->navIn = $ac = $this->_getParam('ac');
$this->view->offlineAppId = $offlineappid = $this->_getParam('offlineappid');
$submit = $this->_getParam('submit');
$search = $this->_getParam('search');
if(empty($ac))
{
$this->view->navIn = $ac = "notreceived";
}
if($ac == "view")
{
if(empty($offlineappid))
{
view::Post($this,"参数错误",-1);
return true;
}
$offlineapp = new Offlineapp();
if(view::isXmlHttpRequest() !== true)
{
$this->_helper->viewRenderer('offlineapps-view');
$this->view->data = $offlineapp->getOneAppInfo($offlineappid);
}else{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
$this->jsonexit($offlineapp->getOneAppInfo($offlineappid));
}
return true;
}
if($ac == "notreceived")
{
$this->_helper->viewRenderer('offlineapps-notreceived');
$offlineapp = new Offlineapp();
$data = $offlineapp->fetchNotReceived();
view::addPaginator($data,$this,20);
return true;
}//未接收的
if($ac == "notsubmitted")
{
$this->_helper->viewRenderer('offlineapps-notreceived');
$offlineapp = new Offlineapp();
$data = $offlineapp->fetchNotSubmitted();
view::addPaginator($data,$this,20);
return true;
}//未接收的
if($ac == "nopdf")
{
$this->_helper->viewRenderer('offlineapps-nopdf');
$offlineapp = new Offlineapp();
$data = $offlineapp->fetchNoPdf();
view::addPaginator($data,$this,20);
return true;
}//没有上传申请表的
if($ac == "notpassed")
{
$this->_helper->viewRenderer('offlineapps-notpassed');
$offlineapp = new Offlineapp();
$data = $offlineapp->fetchNotApprove();
view::addPaginator($data,$this,20);
return true;
}
//接收
if($ac == "receive")
{
$offlineapp = new Offlineapp();
$statue = $offlineapp->receive($offlineappid);
if($statue !== true)
{
view::Post($this,$statue);
}else{
view::Post($this,"接收成功",-1);
}
return true;
}
//发送给作者
if($ac == "toauthor")
{
$this->_helper->viewRenderer('offlineapps-toauthor');
if(empty($submit))
{
}else{
$offlineapp = new Offlineapp();
}
return true;
}
//拒绝
if($ac == "deny")
{
$this->_helper->viewRenderer('offlineapps-deny');
if(empty($offlineappid))
{
view::Post($this,"参数错误",-1);
return true;
}
if(empty($submit))
{
$offlineapp = new Offlineapp();
$this->view->data = $offlineapp->getOneAppInfo($offlineappid);
$mail = new Mail();
$data = array(
'user' => $this->view->data[0]['username'],
'datalist' => $this->view->data[0]['datalist'],
);
$mail->loadTemplate("offline-deny",$data);
$this->view->mail_body = $mail->body;
$this->view->mail_subject = $mail->subject;
}
return;
}
//重置申请表
if($ac == "resetappform")
{
if(empty($offlineappid))
{
view::Post($this,"参数错误",-1);
return true;
}
$offlineapp = new Offlineapp();
$statue = $offlineapp->resetAppForm($offlineappid);
if($statue !== true)
{
view::Post($this,$statue);
}else{
view::Post($this,"重置成功",-1);
}
return true;
}
}
//离线数据申请管理 //离线数据申请管理
function offlineappAction() function offlineappAction()
{ {
@ -194,6 +45,7 @@ class Admin_DownController extends Zend_Controller_Action
$status =(int)$this->_getParam('status'); $status =(int)$this->_getParam('status');
$ac = $this->_getParam('ac'); $ac = $this->_getParam('ac');
$q = $this->_getParam('q'); $q = $this->_getParam('q');
$submd=$this->view->config->sub->metadata;
if($ac == "pending") if($ac == "pending")
{ {
@ -207,8 +59,8 @@ class Admin_DownController extends Zend_Controller_Action
view::addPaginator($rows,$this,10); view::addPaginator($rows,$this,10);
return true; return true;
} }
if (!$page) $page=1; if (!$page) $page=1;
if ($view) { if ($view) {
//查看此次申请的pdf //查看此次申请的pdf
@ -236,7 +88,7 @@ class Admin_DownController extends Zend_Controller_Action
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail->addTo($row['email']); $mail->addTo($row['email']);
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->send(); $mail->send();
//如果是wsn数据则生成数据 //如果是wsn数据则生成数据
@ -274,12 +126,12 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-subject',array('user'=>$username,'datalist'=>$data,'source'=>$source)); $mailtp=new EmailText($this->db,'offline-start-subject',array('user'=>$username,'datalist'=>$data,'source'=>$source));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail_addrs=explode(",",substr($tmp_email,1,-1)); $mail_addrs=explode(",",substr($tmp_email,1,-1));
$mail->addTo($mail_addrs); $mail->addTo($mail_addrs);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
$data=""; $data="";
@ -298,12 +150,12 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-author',array('user'=>$username,'datalist'=>$data,'source'=>$source)); $mailtp=new EmailText($this->db,'offline-start-author',array('user'=>$username,'datalist'=>$data,'source'=>$source));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail_addrs=explode(",",substr($tmp_email,1,-1)); $mail_addrs=explode(",",substr($tmp_email,1,-1));
$mail->addTo($mail_addrs); $mail->addTo($mail_addrs);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
} }
@ -327,11 +179,11 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-author',array('user'=>$username,'datalist'=>$data)); $mailtp=new EmailText($this->db,'offline-start-author',array('user'=>$username,'datalist'=>$data));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail->addTo($tmp_email); $mail->addTo($tmp_email);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
$data=""; $data="";
@ -351,11 +203,11 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-author',array('user'=>$username,'datalist'=>$data)); $mailtp=new EmailText($this->db,'offline-start-author',array('user'=>$username,'datalist'=>$data));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail->addTo($tmp_email); $mail->addTo($tmp_email);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
} }
@ -379,7 +231,7 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-dcadmin',array('user'=>$username,'datalist'=>$data)); $mailtp=new EmailText($this->db,'offline-start-dcadmin',array('user'=>$username,'datalist'=>$data));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$addrs=array(); $addrs=array();
@ -387,7 +239,7 @@ class Admin_DownController extends Zend_Controller_Action
$addrs[] = 'wangliangxu@lzb.ac.cn'; $addrs[] = 'wangliangxu@lzb.ac.cn';
$addrs[] = 'wulizong@lzb.ac.cn'; $addrs[] = 'wulizong@lzb.ac.cn';
$mail->addTo($addrs); $mail->addTo($addrs);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
} }
@ -509,11 +361,11 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-mdadmin',array('user'=>$username,'datalist'=>$data)); $mailtp=new EmailText($this->db,'offline-start-mdadmin',array('user'=>$username,'datalist'=>$data));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail->addTo($tmp_email); $mail->addTo($tmp_email);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
$data=''; $data='';
@ -530,11 +382,11 @@ class Admin_DownController extends Zend_Controller_Action
unset($mail); unset($mail);
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
$mailtp=new EmailText($this->db,'offline-start-mdadmin',array('user'=>$username,'datalist'=>$data)); $mailtp=new EmailText($this->db,'offline-start-mdadmin',array('user'=>$username,'datalist'=>$data));
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail->addTo($tmp_email); $mail->addTo($tmp_email);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
$mail->send(); $mail->send();
} }
@ -591,7 +443,7 @@ class Admin_DownController extends Zend_Controller_Action
foreach($rs as $data) { foreach($rs as $data) {
if ($data['host']=='ftp1.westgis.ac.cn') if ($data['host']=='ftp1.westgis.ac.cn')
$has_ftp1=true; $has_ftp1=true;
if ($data['host']=='ftp2.westgis.ac.cn') if ($data['host']=='ftp.sanjiangyuan.org.cn')
$has_ftp2=true; $has_ftp2=true;
// deal with ftp.westgis.ac.cn, use g6 to add path // deal with ftp.westgis.ac.cn, use g6 to add path
@ -604,7 +456,7 @@ class Admin_DownController extends Zend_Controller_Action
if ($has_ftp1) if ($has_ftp1)
{ {
$user=(object)array("id"=>$row['userid'], $user=(object)array("id"=>$row['userid'],
"username"=>"westdc_".$row['userid'], "username"=>"sjy_".$row['userid'],
"password"=>$password, "password"=>$password,
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')), "time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
//"path"=>$path, //"path"=>$path,
@ -631,12 +483,12 @@ class Admin_DownController extends Zend_Controller_Action
if ($has_ftp2) if ($has_ftp2)
{ {
$user=(object)array("id"=>$row['userid'], $user=(object)array("id"=>$row['userid'],
"username"=>"westdc_".$row['userid'], "username"=>"sjy_".$row['userid'],
"password"=>$password, "password"=>$password,
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')), "time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
//"path"=>$path, //"path"=>$path,
"param"=>"offlineappid=".$finish, "param"=>"offlineappid=".$finish,
"host"=>'ftp2.westgis.ac.cn', "host"=>'ftp.sanjiangyuan.org.cn',
"maxdata"=>$this->view->config->download->max, "maxdata"=>$this->view->config->download->max,
"datacount"=>1 //represent one offline application "datacount"=>1 //represent one offline application
); );
@ -659,10 +511,10 @@ class Admin_DownController extends Zend_Controller_Action
$ftphost='ftp://ftp1.westgis.ac.cn'; $ftphost='ftp://ftp1.westgis.ac.cn';
} else if (!$has_ftp1 && $has_ftp2) } else if (!$has_ftp1 && $has_ftp2)
{ {
$ftphost='ftp://ftp2.westgis.ac.cn'; $ftphost='ftp://ftp.sanjiangyuan.org.cn';
} else if ($has_ftp1 && $has_ftp2) } else if ($has_ftp1 && $has_ftp2)
{ {
$ftphost='ftp://ftp1.westgis.ac.cn 以及 ftp://ftp2.westgis.ac.cn'; $ftphost='ftp://ftp1.westgis.ac.cn 以及 ftp://ftp.sanjiangyuan.org.cn';
} }
//发送用户邮件进行信息提示和说明 //发送用户邮件进行信息提示和说明
$mail = new WestdcMailer($this->view->config->smtp); $mail = new WestdcMailer($this->view->config->smtp);
@ -671,9 +523,9 @@ class Admin_DownController extends Zend_Controller_Action
array('user'=>$row['username'],'datalist'=>str_replace(";","\n",$row['datalist']), array('user'=>$row['username'],'datalist'=>str_replace(";","\n",$row['datalist']),
'ftpuser'=>$user->username,'ftppwd'=>$proftp->pwd,'ftptime'=>$proftp->time,'ftphost'=>$ftphost)); 'ftpuser'=>$user->username,'ftppwd'=>$proftp->pwd,'ftptime'=>$proftp->time,'ftphost'=>$ftphost));
$mail->setBodyText($mailtp->getBody()); $mail->setBodyText($mailtp->getBody());
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->addTo($row['email']); $mail->addTo($row['email']);
$mail->addCc($this->view->config->service->email,'西部数据中心服务组'); $mail->addCc($this->view->config->service->email,'数据服务组');
$mail->setSubject($mailtp->getSubject()); $mail->setSubject($mailtp->getSubject());
$mail->send(); $mail->send();
} //offline deal } //offline deal
@ -875,6 +727,7 @@ class Admin_DownController extends Zend_Controller_Action
$undelete=$this->_getParam('undelete'); $undelete=$this->_getParam('undelete');
$emaillist=$this->_getParam('emaillist'); $emaillist=$this->_getParam('emaillist');
$monthreport=$this->_getParam('monthreport'); $monthreport=$this->_getParam('monthreport');
$submd=$this->view->config->sub->metadata;
if ($add) { if ($add) {
$form=new OfflinelogForm(); $form=new OfflinelogForm();
@ -1015,9 +868,9 @@ class Admin_DownController extends Zend_Controller_Action
{ {
$sql = "select distinct(t.*) from $sql = "select distinct(t.*) from
( (
select u.email from dataorder d left join users u on d.userid=u.id where (d.status=0 or d.status=5) select u.email from dataorder d left join users u on d.userid=u.id where (d.status=0 or d.status=5) and d.uuid in (select uuid from $submd)
union union
select o.email from offlineapp o where o.userid is null and o.email is not null select o.email from offlineapp o where o.userid is null and o.email is not null and o.id in (select offlineappid from dataorder where uuid in (select uuid from $submd))
) as t"; ) as t";
$re = $this->db->query($sql); $re = $this->db->query($sql);
$rows = $re->fetchAll(); $rows = $re->fetchAll();
@ -1173,12 +1026,13 @@ class Admin_DownController extends Zend_Controller_Action
{ {
$show=(int)$this->_getParam('show'); $show=(int)$this->_getParam('show');
$delete=(int)$this->_getParam('delete'); $delete=(int)$this->_getParam('delete');
$submd=$this->view->config->sub->metadata;
if(empty($show) && empty($delete)) if(empty($show) && empty($delete))
{ {
$select=$this->db->select(); $select=$this->db->select();
$select->from('onlineapp as o',array('id','userid','unit','username','ts_created','project','project_id','project_type','project_title')) $select->from('onlineapp as o',array('id','userid','unit','username','ts_created','project','project_id','project_type','project_title'))
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid')) ->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid'))
->where('o.id in (select distinct(onlineappid) from dataorder)') ->where('o.id in (select distinct(onlineappid) from dataorder)')
->order('o.id desc'); ->order('o.id desc');
$paginator = Zend_Paginator::factory($select); $paginator = Zend_Paginator::factory($select);
@ -1211,7 +1065,7 @@ class Admin_DownController extends Zend_Controller_Action
$sql ="select o.*,u.username as uname,u.id as uid,m.title,m.uuid $sql ="select o.*,u.username as uname,u.id as uid,m.title,m.uuid
from onlineapp as o from onlineapp as o
left join users as u on u.id = o.userid left join users as u on u.id = o.userid
left join metadata as m on o.uuid = m.uuid left join $submd as m on o.uuid = m.uuid
where o.id=?"; where o.id=?";
$result =$this->db->query($sql,$show); $result =$this->db->query($sql,$show);
$rows = $result->fetch(); $rows = $result->fetch();
@ -1226,6 +1080,7 @@ class Admin_DownController extends Zend_Controller_Action
$show =(int)$this->_getParam('show'); $show =(int)$this->_getParam('show');
$search = $this->_getParam('search'); $search = $this->_getParam('search');
$keyword = $this->view->keyword = $this->_getParam('keyword'); $keyword = $this->view->keyword = $this->_getParam('keyword');
$submd=$this->view->config->sub->metadata;
if(empty($show)) if(empty($show))
{ {
@ -1233,6 +1088,7 @@ class Admin_DownController extends Zend_Controller_Action
$select->from('dataorder as o','count(o.id) as num') $select->from('dataorder as o','count(o.id) as num')
->join('users as u', 'u.id = o.userid', array('realname','id as uid','unit')) ->join('users as u', 'u.id = o.userid', array('realname','id as uid','unit'))
->where('o.status=0 or o.status=5') ->where('o.status=0 or o.status=5')
->where("o.uuid in (select uuid from $submd)")
->where('o.userid = u.id'); ->where('o.userid = u.id');
if(!empty($search) && !empty($keyword)) if(!empty($search) && !empty($keyword))
{ {
@ -1258,7 +1114,7 @@ class Admin_DownController extends Zend_Controller_Action
{ {
$select=$this->db->select(); $select=$this->db->select();
$select->from('dataorder as o',array('id','ts_created','userid','offlineappid','onlineappid')) $select->from('dataorder as o',array('id','ts_created','userid','offlineappid','onlineappid'))
->joinLeft('metadata as m', 'o.uuid = m.uuid', array('title','uuid','filesize')) ->joinLeft($submd.' as m', 'o.uuid = m.uuid', array('title','uuid','filesize'))
->joinLeft('users as u','u.id=o.userid',array('realname as username')) ->joinLeft('users as u','u.id=o.userid',array('realname as username'))
->where('o.userid = ?', $show) ->where('o.userid = ?', $show)
->where('o.status=0 or o.status=5') ->where('o.status=0 or o.status=5')
@ -1285,12 +1141,13 @@ class Admin_DownController extends Zend_Controller_Action
$show = $this->_getParam('show'); $show = $this->_getParam('show');
$search = $this->_getParam('search'); $search = $this->_getParam('search');
$keyword = $this->view->keyword = $this->_getParam('keyword'); $keyword = $this->view->keyword = $this->_getParam('keyword');
$submd=$this->view->config->sub->metadata;
if(empty($show)) if(empty($show))
{ {
$select=$this->db->select(); $select=$this->db->select();
$select->from('dataorder as o','count(o.id) as num') $select->from('dataorder as o','count(o.id) as num')
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid')) ->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid'))
->where('o.uuid = m.uuid and (o.status=0 or o.status=5)'); ->where('o.uuid = m.uuid and (o.status=0 or o.status=5)');
if(!empty($search) && !empty($keyword)) if(!empty($search) && !empty($keyword))
{ {
@ -1316,7 +1173,7 @@ class Admin_DownController extends Zend_Controller_Action
{ {
$select=$this->db->select(); $select=$this->db->select();
$select->from('dataorder as o',array('ts_created','ts_created','offlineappid','onlineappid')) $select->from('dataorder as o',array('ts_created','ts_created','offlineappid','onlineappid'))
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid')) ->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid'))
->join('users as u', 'o.userid=u.id',array('id as userid','username','realname')) ->join('users as u', 'o.userid=u.id',array('id as userid','username','realname'))
->where('m.uuid = ? and (o.status=0 or o.status=5)', $show) ->where('m.uuid = ? and (o.status=0 or o.status=5)', $show)
->order('o.id desc'); ->order('o.id desc');
@ -1327,7 +1184,7 @@ class Admin_DownController extends Zend_Controller_Action
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
$sql="select title,uuid from metadata where uuid='$show'"; $sql="select title,uuid from $submd where uuid='$show'";
$re=$this->db->query($sql); $re=$this->db->query($sql);
$t=$re->fetch(); $t=$re->fetch();
$this->view->infos=$t; $this->view->infos=$t;
@ -1405,7 +1262,7 @@ class Admin_DownController extends Zend_Controller_Action
foreach($mails as $k=>$v) foreach($mails as $k=>$v)
{ {
$mail=new WestdcMailer($this->view->config->smtp); $mail=new WestdcMailer($this->view->config->smtp);
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组'); $mail->setFrom($this->view->config->service->email,'数据服务组');
$mail->setBodyText($body); $mail->setBodyText($body);
$mail->setSubject($title); $mail->setSubject($title);
$mail->addTo($v['email']); $mail->addTo($v['email']);

View File

@ -42,7 +42,7 @@ class Admin_NewsController extends Zend_Controller_Action
left join ".$News->tbl_catalog." ct on ct.aid=n.id left join ".$News->tbl_catalog." ct on ct.aid=n.id
left join ".$News->tbl_categorys." c on c.id = ct.cid left join ".$News->tbl_categorys." c on c.id = ct.cid
LEFT JOIN users u ON n.userid=u.id LEFT JOIN users u ON n.userid=u.id
WHERE c.id='$type' AND n.title IS NOT NULL order by n.ts_created desc"; WHERE c.id='$type' AND n.title IS NOT NULL and n.sub='".$this->view->config->sub->news."' order by n.ts_created desc";
}else }else
{ {
$sql = "select $sql = "select
@ -51,7 +51,7 @@ class Admin_NewsController extends Zend_Controller_Action
left join ".$News->tbl_catalog." ct on ct.aid=n.id left join ".$News->tbl_catalog." ct on ct.aid=n.id
left join ".$News->tbl_categorys." c on c.id = ct.cid left join ".$News->tbl_categorys." c on c.id = ct.cid
LEFT JOIN users u ON n.userid=u.id LEFT JOIN users u ON n.userid=u.id
WHERE n.title IS NOT NULL WHERE n.title IS NOT NULL and n.sub='".$this->view->config->sub->news."'
GROUP BY n.id GROUP BY n.id
ORDER BY n.ts_created desc ORDER BY n.ts_created desc
"; ";
@ -85,189 +85,7 @@ class Admin_NewsController extends Zend_Controller_Action
$this->view->deepField = $category->DeepTitle; $this->view->deepField = $category->DeepTitle;
}//newslistAction 新闻列表 }//newslistAction 新闻列表
function catlogAction()
{
$add = $this->_request->getParam('add');
$submit = $this->_request->getParam('submit');
$delete = $this->_request->getParam('delete');
$edit = $this->_request->getParam('edit');
$News = new Archive($this->db);
if($add)
{
$this->view->ptype = $News->ptype;
$this->_helper->viewRenderer('category-add');
$category = new ArchiveCategory($this->db);
$catlogs = $category->GetFullCategory();
$this->view->categories=$catlogs;
$this->view->deepField = $category->DeepTitle;
if(empty($submit)){
//$this->_helper->viewRenderer('category-add');
}else{
$data = array();
$data['title'] = $this->_request->getParam('ctitle');
$data['code'] = $this->_request->getParam('code');
$data['fid'] = $this->_request->getParam('fid');
$data['ptype'] = $this->_request->getParam('ptype');
$data['title_en'] = $this->_request->getParam('title_en');
$data['is_pub'] = 1;
$this->view->info = $data;
if(empty($data['title']))
{
$this->view->error = "请输入标题";
return true;
}
if(empty($data['code']))
{
$this->view->error = "请输入栏目连接如http://westdc.westgis.ac.cn/news/notice则只需要输入notice";
return true;
}
if(!preg_match("/^[a-z]+$/",$data['code']))
{
$this->view->error = "url格式不正确仅允许26个小写字母";
return true;
}
$LftRgt = $category->Insert($data['fid']);
$data['tid'] = $data['fid'];
$data['lft'] = $LftRgt['left'];
$data['rgt'] = $LftRgt['right'];
unset($data['fid']);
if($this->db->insert($category->CategoryTable,$data))
{
$this->view->msg = '提示信息:栏目添加成功!';
$this->view->jump_url = '/admin/news/catlog';
return true;
}else{
$this->view->error = "添加失败,请重试";
return true;
}
}
}//栏目添加
if($delete>0)
{
$sql = "delete from ".$News->tbl_categorys." where id='$delete'";
if($this->db->exec($sql)>0)
{
$this->messenger->addMessage('提示信息:栏目删除成功!');
$this->_redirect('/admin/news/catlog');
}
}//栏目删除
if($edit>0)
{
$submit = $this->_getParam('submit');
$this->_helper->viewRenderer('category-edit');
$this->view->ptype = $News->ptype;
$category = new ArchiveCategory($this->db);
$this->view->info = $category->GetOne($edit);
$this->view->categories = $category->GetFullCategory();
$this->view->deepField = $category->DeepTitle;
if(!empty($submit))
{
$data = array();
$data['title'] = $this->_request->getParam('ctitle');
$data['code'] = $this->_request->getParam('code');
$data['fid'] = $this->_request->getParam('fid');
$data['ptype'] = $this->_request->getParam('ptype');
$data['is_pub'] = $this->_request->getParam('is_pub');
$data['title_en'] = $this->_request->getParam('title_en');
$this->view->info = $data;
if(empty($data['title']))
{
$this->view->error = "请输入标题";
return true;
}
if(empty($data['code']))
{
$this->view->error = "请输入栏目连接如http://westdc.westgis.ac.cn/news/notice则只需要输入notice";
return true;
}
if(!preg_match("/^[a-z]+$/",$data['code']))
{
$this->view->error = "url格式不正确仅允许26个小写字母";
return true;
}
$LftRgt = $category->Insert($data['fid']);
$data['tid'] = $data['fid'];
$data['lft'] = $LftRgt['left'];
$data['rgt'] = $LftRgt['right'];
unset($data['fid']);
if($this->db->update($News->tbl_categorys,$data,"id=$edit"))
{
$this->view->msg = '提示信息:栏目添加成功!';
$this->view->jump_url = '/admin/news/catlog';
return true;
}else{
$this->view->error = "添加失败,请重试";
return true;
}
}
}//栏目编辑
else
{
$category = new ArchiveCategory($this->db);
$News = new Archive($this->db);
$catlogs = $category->GetFullCategory();
$ptype = $News->ptype;
foreach($catlogs as $k=>$v)
{
$url_parts = array(
"ptype"=>$v['ptype'],
"type_code"=>$v['code']
);
$catlogs[$k]['url'] = $News->makeCategoryUrl($url_parts);
foreach($ptype as $kk=>$vv)
{
if($catlogs[$k]['ptype'] == $vv)
{
$catlogs[$k]['ptype'] = $kk;
}
}
}
$this->view->catlogs=$catlogs;
$this->view->deepField = $category->DeepTitle;
}//栏目列表
}//栏目管理
function getSubCategory($fid) function getSubCategory($fid)
{ {
$sql = "SELECT * FROM news_category WHERE fid=?"; $sql = "SELECT * FROM news_category WHERE fid=?";
@ -382,8 +200,7 @@ class Admin_NewsController extends Zend_Controller_Action
'pubtimer', 'pubtimer',
'pubtime', 'pubtime',
'description', 'description',
'keyword', 'keyword'
'language'
); );
foreach($_POST as $k=>$v) foreach($_POST as $k=>$v)
{ {
@ -438,8 +255,7 @@ class Admin_NewsController extends Zend_Controller_Action
'source' => $source, 'source' => $source,
'ts_published' => $pubtime, 'ts_published' => $pubtime,
'is_pub' => $pub, 'is_pub' => $pub,
'body' => $body, 'body' => $body
'language' => $language
); );
$update = $this->_getParam('update'); $update = $this->_getParam('update');

View File

@ -8,6 +8,8 @@ class Admin_ReviewController extends Zend_Controller_Action
$this->view->theme = new Theme(); $this->view->theme = new Theme();
$this->_helper->layout->setLayout('administry'); $this->_helper->layout->setLayout('administry');
$this->view->pageID = "review-".$this->_request->getActionName(); $this->view->pageID = "review-".$this->_request->getActionName();
$this->submd=$this->view->config->sub->metadata;
$this->subsearch=$this->view->config->sub->search;
} }
/* /*
@ -17,7 +19,7 @@ class Admin_ReviewController extends Zend_Controller_Action
function indexAction() function indexAction()
{ {
$sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m $sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
order by m.id desc limit 10 "; order by m.id desc limit 10 ";
$re = $this->db->query($sql); $re = $this->db->query($sql);
@ -39,7 +41,7 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m $sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where u.id='$userid'"; where u.id='$userid'";
@ -188,7 +190,7 @@ class Admin_ReviewController extends Zend_Controller_Action
if(!empty($keyword)) if(!empty($keyword))
{ {
$sql = "select m.*,md.title,u.username,u.realname from mdstatus m $sql = "select m.*,md.title,u.username,u.realname from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.status in (1,2,3,4) where m.status in (1,2,3,4)
and md.title like '%$keyword%' and md.title like '%$keyword%'
@ -207,7 +209,7 @@ class Admin_ReviewController extends Zend_Controller_Action
else else
{ {
$sql = "select m.*,md.title,u.username,u.realname from mdstatus m $sql = "select m.*,md.title,u.username,u.realname from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.status in (1,2,3,4) where m.status in (1,2,3,4)
order by m.ts_created desc"; order by m.ts_created desc";
@ -240,7 +242,7 @@ class Admin_ReviewController extends Zend_Controller_Action
{ {
$sql = "select m.*,md.*,u.realname from mdstatus m $sql = "select m.*,md.*,u.realname from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.id=$show where m.id=$show
"; ";
@ -296,7 +298,7 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select m.id,md.title,m.status,m.uuid,u.username,u.realname from mdstatus m $sql = "select m.id,md.title,m.status,m.uuid,u.username,u.realname from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.status in (2,3,4) $searchjoin order by m.ts_accepted desc"; where m.status in (2,3,4) $searchjoin order by m.ts_accepted desc";
$rs = $this->db->query($sql); $rs = $this->db->query($sql);
@ -504,14 +506,13 @@ class Admin_ReviewController extends Zend_Controller_Action
$id = $this->_request->getParam('id'); $id = $this->_request->getParam('id');
$uid = $this->_request->getParam('uid'); $uid = $this->_request->getParam('uid');
$i = $this->_request->getParam('i');
if(empty($id)) if(empty($id))
{ {
$this->_redirect("/admin/review"); $this->_redirect("/admin/review");
} }
$this->view->id = $id; $this->view->id = $id;
if(!empty($uid)) if(!empty($uid))
{ {
$sql = "update mdstatus set userid='$uid' where id='$id'"; $sql = "update mdstatus set userid='$uid' where id='$id'";
@ -522,13 +523,7 @@ class Admin_ReviewController extends Zend_Controller_Action
return true; return true;
} }
} }
else if($i == "1") {
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer('changeadmin-iframe');
}else{
$this->_helper->viewRenderer('changeadmin');
}
$sql = "select u.* from users u $sql = "select u.* from users u
where usertype='administrator'"; where usertype='administrator'";
$re = $this->db->query($sql); $re = $this->db->query($sql);
@ -756,7 +751,7 @@ class Admin_ReviewController extends Zend_Controller_Action
//update search document //update search document
$search=new Search(); $search=new Search();
//create search view in xunsearch //create search view in xunsearch
$sql="select * from xunsearch where uuid in (select uuid from mdstatus where id in (".$ids."))"; $sql="select * from $this->subsearch where uuid in (select uuid from mdstatus where id in (".$ids."))";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
while ($data = $sth->fetch()) while ($data = $sth->fetch())
@ -767,7 +762,7 @@ class Admin_ReviewController extends Zend_Controller_Action
//仅对单条数据发送email信息 //仅对单条数据发送email信息
if (is_numeric($ids)) if (is_numeric($ids))
{ {
$sql="select distinct u.email,m.title,m.uuid from mdstatus s left join metadata m on s.uuid=m.uuid $sql="select distinct u.email,m.title,m.uuid from mdstatus s left join $this->submd m on s.uuid=m.uuid
right join mdauthor a on s.uuid=a.uuid left join users u on a.userid=u.id where s.id=? order by u.email"; right join mdauthor a on s.uuid=a.uuid left join users u on a.userid=u.id where s.id=? order by u.email";
$rs=$this->db->query($sql,array($ids)); $rs=$this->db->query($sql,array($ids));
$rows=$rs->fetchAll(); $rows=$rs->fetchAll();
@ -813,10 +808,10 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created,gn.id as gnid from mdstatus m $sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created,gn.id as gnid from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
left join geonetworkmetadata gn on m.uuid=gn.uuid left join geonetworkmetadata gn on m.uuid=gn.uuid
where m.status=0 $searchjoin order by m.ts_created desc"; where status=0 $searchjoin order by m.ts_created desc";
$re = $this->db->query($sql); $re = $this->db->query($sql);
$rows = $re->fetchAll(); $rows = $re->fetchAll();
@ -875,9 +870,9 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status from mdstatus m $sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.status=-1 $searchjoin"; where status=-1 $searchjoin";
$re = $this->db->query($sql); $re = $this->db->query($sql);
$rows = $re->fetchAll(); $rows = $re->fetchAll();
@ -915,9 +910,9 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_finished from mdstatus m $sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_finished from mdstatus m
right join metadata md on md.uuid=m.uuid right join $this->submd md on md.uuid=m.uuid
left join users u on u.id=m.userid left join users u on u.id=m.userid
where m.status=5 $searchjoin order by m.ts_finished desc"; where status=5 $searchjoin order by m.ts_finished desc";
$re = $this->db->query($sql); $re = $this->db->query($sql);
$rows = $re->fetchAll(); $rows = $re->fetchAll();
@ -1204,7 +1199,7 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select r.*,md.title,u.realname,u.id as uid from mdreview r $sql = "select r.*,md.title,u.realname,u.id as uid from mdreview r
left join metadata md on md.uuid=r.uuid left join $this->submd md on md.uuid=r.uuid
left join users u on u.id=r.userid left join users u on u.id=r.userid
where r.id='$id' where r.id='$id'
"; ";
@ -1289,7 +1284,7 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select md.title,md.uuid,u.realname,r.id,r.ts_created,r.is_expert from mdreview r $sql = "select md.title,md.uuid,u.realname,r.id,r.ts_created,r.is_expert from mdreview r
left join metadata md on md.uuid=r.uuid left join $this->submd md on md.uuid=r.uuid
left join users u on u.id=r.userid left join users u on u.id=r.userid
$wheresql $wheresql
order by r.ts_created desc order by r.ts_created desc
@ -1340,7 +1335,7 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select u.id,u.realname as title,count(r.id) as c from mdreview r $sql = "select u.id,u.realname as title,count(r.id) as c from mdreview r
left join metadata md on md.uuid=r.uuid left join $this->submd md on md.uuid=r.uuid
left join users u on u.id=r.userid left join users u on u.id=r.userid
$wheresql $wheresql
GROUP BY u.id,u.realname GROUP BY u.id,u.realname
@ -1470,7 +1465,7 @@ class Admin_ReviewController extends Zend_Controller_Action
} }
$sql = "select md.title,md.uuid,count(r.id) as c from mdreview r $sql = "select md.title,md.uuid,count(r.id) as c from mdreview r
left join metadata md on md.uuid=r.uuid left join $this->submd md on md.uuid=r.uuid
$wheresql $wheresql
GROUP BY md.title,md.uuid GROUP BY md.title,md.uuid
"; ";

View File

@ -9,6 +9,7 @@ class Admin_StatController extends Zend_Controller_Action
$this->view->messages = $this->messenger->getMessages(); $this->view->messages = $this->messenger->getMessages();
$this->view->theme = new Theme(); $this->view->theme = new Theme();
$this->_helper->layout->setLayout('administry'); $this->_helper->layout->setLayout('administry');
$this->submd=$this->view->config->sub->metadata;
} }
function postDispatch() function postDispatch()
{ {
@ -17,36 +18,30 @@ class Admin_StatController extends Zend_Controller_Action
function indexAction() function indexAction()
{ {
$sql="select (select count(id) from users) as alluser, $sql="select (select count(id) from users) as alluser,
(select count(id) from normalmetadata) as alldata, (select count(id) from $this->submd) as alldata,
(select count(id) as num from dataorder where status=0) as onlinedown, (select count(id) as num from dataorder where status=0 and uuid in (select uuid from $this->submd)) as onlinedown,
(select count(id) as num from dataorder where status=5) as offlinedown, (select count(id) as num from dataorder where status=5 and uuid in (select uuid from $this->submd)) as offlinedown,
(select count(id) as num from offlineapp where ts_approved is not null) as offlinepass, (select count(id) as num from offlineapp where ts_approved is not null and id in (select offlineappid from dataorder where uuid in (select uuid from $this->submd))) as offlinepass,
(select count(id) as num from offlineapp where ts_approved is null) as offlineunfinished, (select count(id) as num from offlineapp where ts_approved is null and id in (select offlineappid from dataorder where uuid in (select uuid from $this->submd))) as offlineunfinished,
(select count(id) as num from dataorder where offlineappid>0 and status=-1) as offlinedenied, (select count(id) as num from dataorder where offlineappid>0 and status=-1 and uuid in (select uuid from $this->submd)) as offlinedenied,
(select count(id) as num from onlineapp) as onlineapp"; (select count(id) as num from onlineapp where id in (select onlineappid from dataorder where uuid in (select uuid from $this->submd))) as onlineapp";
$this->view->stat=$this->db->fetchRow($sql); $this->view->stat=$this->db->fetchRow($sql);
//下载量统计 //下载量统计
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where (d.status=0 or d.status=5) and m.filesize>0 group by m.title,d.userid,m.filesize) as t"; $sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join $this->submd m on d.uuid=m.uuid where (d.status=0 or d.status=5) and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
$res = $this->db->query($sql); $res = $this->db->query($sql);
$allsize = $res->fetch(); $allsize = $res->fetch();
$this->view->allsize = $allsize; $this->view->allsize = $allsize;
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=5 and m.filesize>0 group by m.title,d.userid,m.filesize) as t"; $sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join $this->submd m on d.uuid=m.uuid where d.status=5 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
$res = $this->db->query($sql); $res = $this->db->query($sql);
$offlinesize = $res->fetch(); $offlinesize = $res->fetch();
$this->view->offlinesize = $offlinesize; $this->view->offlinesize = $offlinesize;
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=0 and m.filesize>0 group by m.title,d.userid,m.filesize) as t"; $sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join $this->submd m on d.uuid=m.uuid where d.status=0 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
$res = $this->db->query($sql); $res = $this->db->query($sql);
$onlinesize = $res->fetch(); $onlinesize = $res->fetch();
$this->view->onlinesize = $onlinesize; $this->view->onlinesize = $onlinesize;
$sql="select sum(configvalue::real)/1024/1024/1024 as num from g6ftpusersettings where userid in (select id from g6ftpusers where name like 'westdc%' or name='newwestdc') and configname='StatsDownloaded'";
$res = $this->db->query($sql);
$onlinesize = $res->fetch();
$this->view->onlineg6size = $onlinesize;
}//indexAction 首页 }//indexAction 首页
@ -71,7 +66,7 @@ class Admin_StatController extends Zend_Controller_Action
where d.offlineappid>0 and o.unit is not null and d.status>4";*/ where d.offlineappid>0 and o.unit is not null and d.status>4";*/
//各单位下载情况,统计的离线申请数据次数 //各单位下载情况,统计的离线申请数据次数
$sql = "select count(o.id) as num,o.unit from offlineapp o $sql = "select count(o.id) as num,o.unit from offlineapp o
where o.unit is not null "; where o.unit is not null and o.id in (select offlineappid from dataorder where uuid in (select uuid from $this->submd))";
if ($y) if ($y)
$sql.=" and extract(year from o.ts_created)='$y'"; $sql.=" and extract(year from o.ts_created)='$y'";
$sql.=" group by o.unit"; $sql.=" group by o.unit";
@ -81,7 +76,8 @@ class Admin_StatController extends Zend_Controller_Action
//各单位在线下载情况 //各单位在线下载情况
$sql = "select count(d.id) as num,o.unit from dataorder d $sql = "select count(d.id) as num,o.unit from dataorder d
left join onlineapp o on o.id=d.onlineappid left join onlineapp o on o.id=d.onlineappid
where d.onlineappid>0 and o.unit is not null"; where d.onlineappid>0 and o.unit is not null
and d.uuid in (select uuid from $this->submd)";
if ($y) if ($y)
$sql.=" and extract(year from o.ts_created)='$y'"; $sql.=" and extract(year from o.ts_created)='$y'";
$sql.=" group by o.unit"; $sql.=" group by o.unit";

View File

@ -1,4 +1,6 @@
<?php <?php
use Helpers\View as view;
class Admin_SysController extends Zend_Controller_Action class Admin_SysController extends Zend_Controller_Action
{ {
function preDispatch() function preDispatch()
@ -8,7 +10,7 @@ class Admin_SysController extends Zend_Controller_Action
$this->messenger=$this->_helper->getHelper('FlashMessenger'); $this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages(); $this->view->messages = $this->messenger->getMessages();
$this->_helper->layout->setLayout('administry');//新UI $this->_helper->layout->setLayout('administry');//新UI
$this->view->theme = new Theme(); $this->view->theme = new Theme();
} }
function postDispatch() function postDispatch()
@ -86,6 +88,15 @@ class Admin_SysController extends Zend_Controller_Action
}//模板编辑 }//模板编辑
else if($ac=='del'&& !empty($id))
{
$sql="delete from emailtext where id='$id' ";
$rs = $this->db->query($sql);
view::Post($this,'模板已删除',-1);
return;
}
else if($ac=='test'&& !empty($id)) else if($ac=='test'&& !empty($id))
{ {
if(!empty($submit)) if(!empty($submit))
@ -424,10 +435,10 @@ class Admin_SysController extends Zend_Controller_Action
if ($ac=='' || $ac=='online') if ($ac=='' || $ac=='online')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
where s.status>4 and m.datatype=0 and ds.host='ftp1.westgis.ac.cn' where s.status>4 and m.datatype=0 and ds.host='ftp1.westgis.ac.cn'
ORDER BY m.id DESC"; ORDER BY m.id DESC";
@ -440,15 +451,15 @@ class Admin_SysController extends Zend_Controller_Action
$paginator->setItemCountPerPage($pages); $paginator->setItemCountPerPage($pages);
$paginator->setView($this->view); $paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
$ac='online'; $ac='online';
} else if ($ac=='heihe') } else if ($ac=='heihe')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
left join datasource on datasource.uuid=m.uuid left join datasource on datasource.uuid=m.uuid
left join source on datasource.sourceid=source.id left join source on datasource.sourceid=source.id
@ -466,15 +477,15 @@ class Admin_SysController extends Zend_Controller_Action
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
} else if ($ac=='water') } else if ($ac=='water')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
left join datasource on datasource.uuid=m.uuid left join datasource on datasource.uuid=m.uuid
left join source on datasource.sourceid=source.id left join source on datasource.sourceid=source.id
where s.status>4 and m.datatype=1 and ds.host='ftp1.westgis.ac.cn' and source.code='water' where s.status>4 and m.datatype=1 and ds.host='ftp1.westgis.ac.cn' and source.code='water'
ORDER BY m.title DESC"; ORDER BY m.title DESC";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
@ -489,7 +500,7 @@ class Admin_SysController extends Zend_Controller_Action
} else if ($ac=='heihe1') } else if ($ac=='heihe1')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
@ -511,11 +522,11 @@ class Admin_SysController extends Zend_Controller_Action
} else if ($ac=='hiwater') } else if ($ac=='hiwater')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
left join datasource on datasource.uuid=m.uuid left join datasource on datasource.uuid=m.uuid
left join source on datasource.sourceid=source.id left join source on datasource.sourceid=source.id
where ds.host='ftp1.westgis.ac.cn' and source.code='hiwater' where ds.host='ftp1.westgis.ac.cn' and source.code='hiwater'
@ -533,10 +544,10 @@ class Admin_SysController extends Zend_Controller_Action
}else if ($ac=='westee') }else if ($ac=='westee')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
where ds.host='ftp1.westgis.ac.cn' and m.uuid in (select uuid from westeemd) where ds.host='ftp1.westgis.ac.cn' and m.uuid in (select uuid from westeemd)
ORDER BY m.title DESC"; ORDER BY m.title DESC";
@ -553,10 +564,10 @@ class Admin_SysController extends Zend_Controller_Action
}else if ($ac=='other') }else if ($ac=='other')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(t.filesize/1024/1024*100)/100 as filesize, floor(t.filesize/1024/1024*100)/100 as filesize,
t.filecount from metadata m t.filecount from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
where ds.host='ftp1.westgis.ac.cn' and m.uuid not in (select uuid from datasource) and m.uuid not in (select uuid from westeemd) where ds.host='ftp1.westgis.ac.cn' and m.uuid not in (select uuid from datasource) and m.uuid not in (select uuid from westeemd)
ORDER BY m.title DESC"; ORDER BY m.title DESC";
@ -573,7 +584,7 @@ class Admin_SysController extends Zend_Controller_Action
} }
$this->view->activeID="btn-".$ac; $this->view->activeID="btn-".$ac;
} }
function problemAction() function problemAction()
{ {
$pages=20; $pages=20;
@ -581,7 +592,7 @@ class Admin_SysController extends Zend_Controller_Action
if ($ac=='' || $ac=='ref') if ($ac=='' || $ac=='ref')
{ {
$sql = "SELECT m.title,m.uuid,m.citation,g.id as gid from metadata m $sql = "SELECT m.title,m.uuid,m.citation,g.id as gid from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
left join geonetworkmetadata g on g.uuid=m.uuid left join geonetworkmetadata g on g.uuid=m.uuid
where s.status>4 and m.citation like '%??%' where s.status>4 and m.citation like '%??%'
ORDER BY m.id DESC"; ORDER BY m.id DESC";
@ -594,16 +605,16 @@ class Admin_SysController extends Zend_Controller_Action
$paginator->setItemCountPerPage($pages); $paginator->setItemCountPerPage($pages);
$paginator->setView($this->view); $paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
$this->_helper->viewRenderer('problem-ref'); $this->_helper->viewRenderer('problem-ref');
$ac='ref'; $ac='ref';
} else if ($ac=='file') } else if ($ac=='file')
{ {
$sql = "SELECT m.title,m.uuid,m.filesize,ds.host,ds.path from metadata m $sql = "SELECT m.title,m.uuid,m.filesize,ds.host,ds.path from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
where s.status>4 and (ds.id not in (select distinct dsid from datafile) or ds.id in (select id from dataset where host='ftp2.westgis.ac.cn' and path like '/disk1/WATER%')) where s.status>4 and ds.id not in (select distinct dsid from datafile)
group by m.title,m.uuid,ds.host,ds.path,m.filesize group by m.title,m.uuid,ds.host,ds.path,m.filesize
ORDER BY m.title DESC;"; ORDER BY m.title DESC;";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
@ -617,18 +628,18 @@ class Admin_SysController extends Zend_Controller_Action
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
} else if ($ac=='tiny') } else if ($ac=='tiny')
{ {
$sql = "SELECT m.title,m.uuid,ds.host,ds.path, $sql = "SELECT m.title,m.uuid,ds.host,ds.path,
floor(sum(datafile.filesize)/1024/1024*100)/100 as filesize, floor(sum(datafile.filesize)/1024/1024*100)/100 as filesize,
count(datafile.id) as filecount count(datafile.id) as filecount
from metadata m from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
LEFT JOIN dataset ds ON m.uuid=ds.uuid LEFT JOIN dataset ds ON m.uuid=ds.uuid
left join datasource on datasource.uuid=m.uuid left join datasource on datasource.uuid=m.uuid
left join datafile on ds.id=datafile.dsid left join datafile on ds.id=datafile.dsid
left join source on datasource.sourceid=source.id left join source on datasource.sourceid=source.id
where s.status>4 and ds.id in (select t.dsid from (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t where s.status>4 and ds.id in (select t.dsid from (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t
where t.filesize<1024*5) where t.filesize<1024*5)
group by m.title,m.uuid,ds.host,ds.path group by m.title,m.uuid,ds.host,ds.path
ORDER BY m.title DESC;"; ORDER BY m.title DESC;";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
@ -642,14 +653,14 @@ where t.filesize<1024*5)
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
} else if ($ac=='heihefund') } else if ($ac=='heihefund')
{ {
$sql = "SELECT m.title,m.uuid,g.id as gid $sql = "SELECT m.title,m.uuid,g.id as gid
from metadata m from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
left join datasource on datasource.uuid=m.uuid left join datasource on datasource.uuid=m.uuid
left join source on datasource.sourceid=source.id left join source on datasource.sourceid=source.id
left join mdfund mf on mf.uuid=m.uuid left join mdfund mf on mf.uuid=m.uuid
left join geonetworkmetadata g on m.uuid=g.uuid left join geonetworkmetadata g on m.uuid=g.uuid
where s.status>4 and source.code='heihe' and mf.fid is null where s.status>4 and source.code='heihe' and mf.fid is null
ORDER BY m.title DESC;"; ORDER BY m.title DESC;";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
@ -660,19 +671,19 @@ left join geonetworkmetadata g on m.uuid=g.uuid
$paginator->setItemCountPerPage($pages); $paginator->setItemCountPerPage($pages);
$paginator->setView($this->view); $paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
$this->_helper->viewRenderer('problem-md'); $this->_helper->viewRenderer('problem-md');
} else if ($ac=='noemail') } else if ($ac=='noemail')
{ {
$sql = "SELECT distinct m.title,m.uuid,g.id as gid $sql = "SELECT distinct m.title,m.uuid,g.id as gid
from metadata m from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
left join role on role.uuid=m.uuid left join role on role.uuid=m.uuid
left join geonetworkmetadata g on m.uuid=g.uuid left join geonetworkmetadata g on m.uuid=g.uuid
where m.datatype=1 and s.status>4 and m.uuid not in ( where m.datatype=1 and s.status>4 and m.uuid not in (
select role.uuid from role left join responsible res on role.resid=res.id select role.uuid from role left join responsible res on role.resid=res.id
where res.email is not null and role.role in ('resourceProvider','owner','pointOfContact','custodian') where res.email is not null and role.role in ('resourceProvider','owner','pointOfContact','custodian')
) )
ORDER BY m.title DESC;"; ORDER BY m.title DESC;";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
@ -683,16 +694,16 @@ where res.email is not null and role.role in ('resourceProvider','owner','pointO
$paginator->setItemCountPerPage($pages); $paginator->setItemCountPerPage($pages);
$paginator->setView($this->view); $paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
$this->_helper->viewRenderer('problem-md'); $this->_helper->viewRenderer('problem-md');
} else if ($ac=='unmoved') } else if ($ac=='unmoved')
{ {
$sql = "SELECT distinct m.title,m.uuid,g.id as gid,m.filesize,ds.host,ds.path $sql = "SELECT distinct m.title,m.uuid,g.id as gid
from metadata m from metadata m
LEFT JOIN mdstatus s ON m.uuid=s.uuid LEFT JOIN mdstatus s ON m.uuid=s.uuid
left join geonetworkmetadata g on m.uuid=g.uuid left join geonetworkmetadata g on m.uuid=g.uuid
left join dataset ds on ds.uuid=m.uuid left join dataset ds on ds.uuid=m.uuid
where s.status>4 and ds.path like '%upload%' where s.status>4 and ds.path like '%upload%'
ORDER BY m.title DESC;"; ORDER BY m.title DESC;";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
$sth->execute(); $sth->execute();
@ -703,58 +714,10 @@ left join dataset ds on ds.uuid=m.uuid
$paginator->setItemCountPerPage($pages); $paginator->setItemCountPerPage($pages);
$paginator->setView($this->view); $paginator->setView($this->view);
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
$this->view->paginator=$paginator; $this->view->paginator=$paginator;
//$this->_helper->viewRenderer('problem-md'); $this->_helper->viewRenderer('problem-md');
} }
$this->view->activeID="btn-".$ac; $this->view->activeID="btn-".$ac;
}
//GeoNetwork中元数据批量替换操作
function gnmetadataAction()
{
$this->wdb=Zend_Db::factory($this->view->config->geonetwork);
set_time_limit(0);
$ac=$this->_request->getParam('ac');
//use preg_replace to replace the string
$form=new ReplaceForm();
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
$pattern=$formdata["pattern"];
$form->populate($formdata);
if (substr($pattern,0,1)!='/')
{
$pattern='/'.$pattern.'/m';
}
$replace=$formdata["replace"];
if (isset($formdata["test"]))
{
$this->view->test=preg_replace($pattern,$replace,$formdata["source"]);
} elseif (isset($formdata["submit"])) {
$sql="select uuid,data from metadata where istemplate = 'n'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
foreach($rows as $k=>$row)
{
//do the replace
$new_data=preg_replace($pattern,$replace,$row['data']);
//防止正则错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
$deal['uuid']=$row['uuid'];
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
}
$this->view->form=$form;
} }
} }

View File

@ -0,0 +1,80 @@
<?php
class Admin_TestController extends Zend_Controller_Action
{
function preDispatch()
{
$this->db=Zend_Registry::get('db');
$this->view->config = Zend_Registry::get('config');
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->_helper->layout->setLayout('administry');
$this->wdb=Zend_Db::factory('Pdo_Pgsql', array('host'=> '210.77.68.252','username' => 'wlz','password' => 'glacier','dbname'=> 'new_geonetwork'));
}
function postDispatch()
{
$this->view->messages = $this->messenger->getMessages();
}
function indexAction()
{
//其他连接
}
//测试文献的下载链接是否正确
function reftestAction()
{
$sql="select * from reference where link<>''";
$rows=$this->db->query($sql);
foreach($rows as $row)
{
if (substr($row['link'],0,1)=='/')
{
if (!file_exists("http://westdc.westgis.ac.cn".$row['link']))
{
$ref[]=$row;
}
} elseif (!file_exists($row['link'])) {
$ref[]=$row;
}
}
$this->view->ref=$ref;
}
//检查DOI是否有重复
function doiAction()
{
$sql="select doi,uuid,title from metadata where doi<>'' order by doi";
$rows=$this->db->fetchAll($sql);
$sql="select distinct(doi) from metadata where doi<>'' order by doi";
$drows=$this->db->fetchAll($sql);
$c=0;
if (count($rows)!=count($drows))
{
foreach($rows as $k=>$row)
{
if ($row['doi']!=$drows[$k-$c]['doi'])
{
$c++;
$doi[]=$rows[$k-1];
$doi[]=$row;
}
}
$this->view->doi=$doi;
}
}
//检查DOI是否有重复
function nodoiwaterAction()
{
$sql="select uuid,title from metadata where source='0595169a-279e-4b95-819f-129d0ba4280d' and doi='' order by title";
$this->view->rows=$this->db->fetchAll($sql);
}
//检查source不符合要求
function sourceAction()
{
$sql="select uuid,title,source from metadata where title ilike '黑河综合遥感联合试验%' and source=''";
$this->view->rows=$this->db->fetchAll($sql);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,441 @@
<?php
class Admin_WatermdController extends Zend_Controller_Action
{
function preDispatch()
{
$this->db=Zend_Registry::get('db');
$this->view->config = Zend_Registry::get('config');
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->_helper->layout->setLayout('administry');
$this->wdb=Zend_Db::factory($this->view->config->geonetwork);
set_time_limit(0);
}
function postDispatch()
{
$this->view->messages = $this->messenger->getMessages();
}
function indexAction()
{
//其他连接
}
function replaceAction()
{
//use preg_replace to replace the string
$form=new ReplaceForm();
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
$pattern=$formdata["pattern"];
$form->populate($formdata);
if (substr($pattern,0,1)!='/')
{
$pattern='/'.$pattern.'/m';
}
$replace=$formdata["replace"];
if (isset($formdata["test"]))
{
$this->view->test=preg_replace($pattern,$replace,$formdata["source"]);
} elseif (isset($formdata["submit"]))
{
$sql="select uuid,data from metadata where istemplate = 'n'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
foreach($rows as $k=>$row)
{
//do the replace
$new_data=preg_replace($pattern,$replace,$row['data']);
//防止正则错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
$deal['uuid']=$row['uuid'];
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
}
$this->view->form=$form;
}
//替换关键词
function keywordAction()
{
//use preg_replace to replace the string
$form=new ReplaceForm();
$form->pattern->setLabel('原关键词');
$form->replace->setLabel('替换关键词');
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
$pattern=$formdata["pattern"];
$form->populate($formdata);
//if (substr($pattern,0,1)!='/')
{
$pattern='/\<keyword\>'.$pattern.'\<\/keyword\>/m';
}
$replace='<keyword>'.$formdata["replace"].'</keyword>';
if (isset($formdata["test"]))
{
$this->view->test=preg_replace($pattern,$replace,$formdata["source"]);
} elseif (isset($formdata["submit"]))
{
$sql="select uuid,data from metadata where istemplate = 'n'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
foreach($rows as $k=>$row)
{
//do the replace
$new_data=preg_replace($pattern,$replace,$row['data']);
//防止正则错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
$deal['uuid']=$uuid;
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
}
$this->view->form=$form;
}
//替换标题和英文标题到数据引用中,以标题为准
function citetitleAction()
{
$form=new ReplaceForm();
$form->setElements(array($form->source,$form->test,$form->submit));
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
$form->populate($formdata);
if (isset($formdata["test"]))
{
$dom = new DOMDocument();
$dom->loadXML($formdata['source']);
$root = $dom->getElementsByTagName('Metadata');
$xpath = new DOMXpath($dom);
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
$title=$title_key->item(0)->nodeValue;
$title_en_path=$xpath->query("//Metadata/dataIdInfo/idCitation/resAltTitle");
$title_en=$title_en_path->item(0)->nodeValue;
$otherCitDet=$xpath->query("//Metadata/dataIdInfo/idCitation/otherCitDet");
$other=$otherCitDet->item(0)->nodeValue;
$other_cn=mb_strstr($other,'[',true);
$title_o=mb_strstr($other_cn,'.',false);
$title_ol=substr($title_o,1,-4);
$title_old=mb_strstr($title_ol,'.',true);
$other_eng=mb_strstr($other,'[',false);
$titlen_o=mb_strstr($other_eng,'.',false);
$titlen_ol=substr($titlen_o,1,-4);
$titlen_old=mb_strstr($titlen_ol,',',true);
$new_other=str_replace(array($title_old,$titlen_old),array($title,$title_en),$other);
$otherCitDet->item(0)->nodeValue=$new_other;
$this->view->test= $dom->saveXML($root->item(0));
} elseif (isset($formdata["submit"]))
{
$sql="select uuid,data from metadata where istemplate = 'n'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
foreach($rows as $k=>$row)
{
//do the replace
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$uuid = $row['uuid'];
$root = $dom->getElementsByTagName('Metadata');
$xpath = new DOMXpath($dom);
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
$title=$title_key->item(0)->nodeValue;
$title_en_path=$xpath->query("//Metadata/dataIdInfo/idCitation/resAltTitle");
$title_en=$title_en_path->item(0)->nodeValue;
$otherCitDet=$xpath->query("//Metadata/dataIdInfo/idCitation/otherCitDet");
$other=$otherCitDet->item(0)->nodeValue;
$other_cn=mb_strstr($other,'[',true);
$title_o=mb_strstr($other_cn,'.',false);
$title_ol=substr($title_o,1,-4);
$title_old=mb_strstr($title_ol,'.',true);
$other_eng=mb_strstr($other,'[',false);
$titlen_o=mb_strstr($other_eng,'.',false);
$titlen_ol=substr($titlen_o,1,-4);
$titlen_old=mb_strstr($titlen_ol,',',true);
$new_other=str_replace(array($title_old,$titlen_old),array($title,$title_en),$other);
$otherCitDet->item(0)->nodeValue=$new_other;
$new_data = $dom->saveXML($root->item(0));
//防止错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$deal['uuid']=$uuid;
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
}
$this->view->form=$form;
}
//文件大小处理
function filesizeAction()
{
$form=new ReplaceForm();
$form->pattern->setLabel('文件大小');
$form->setElements(array($form->pattern,$form->source,$form->test,$form->submit));
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
$form->populate($formdata);
if (isset($formdata["test"]))
{
$dom = new DOMDocument();
$dom->loadXML($formdata['source']);
$root = $dom->getElementsByTagName('Metadata');
$xpath = new DOMXpath($dom);
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
$title=$title_key->item(0)->nodeValue;
$transize_path=$xpath->query("//Metadata/distInfo/distTranOps/transSize");
$transize_path->item(0)->nodeValue=$formdata['pattern'];
$this->view->test= $dom->saveXML($root->item(0));
} elseif (isset($formdata["submit"]))
{
$sql="select uuid,data from metadata where istemplate = 'n'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
$sql="select update_filesize();";
$this->db->exec($sql);
foreach($rows as $k=>$row)
{
//do the replace
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$root = $dom->getElementsByTagName('Metadata');
$uuid = $row['uuid'];
$xpath = new DOMXpath($dom);
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
$title=$title_key->item(0)->nodeValue;
$transize_path=$xpath->query("//Metadata/distInfo/distTranOps/transSize");
$sql="select filesize from metadata where uuid = ?";
$this->db->setFetchMode(Zend_Db::FETCH_OBJ);
$row=$this->db->fetchRow($sql,array($uuid));
$transize_path->item(0)->nodeValue=$row->filesize;
$new_data = $dom->saveXML();
//防止错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='$uuid'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$deal['uuid']=$uuid;
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
}
$this->view->form=$form;
}
//修改限制使用说明
//useLimit可以是多项的
function uselimitAction()
{
$form=new ReplaceForm();
$form->pattern->setLabel('使用声明');
$form->setElements(array($form->pattern,$form->source,$form->test,$form->submit));
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
$form->populate($formdata);
$limit_text=$formdata['pattern'];
if (isset($formdata["test"]))
{
$dom = new DOMDocument();
$dom->loadXML($formdata['source']);
$root = $dom->getElementsByTagName('Metadata');
$xpath = new DOMXpath($dom);
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
$title=$title_key->item(0)->nodeValue;
$uselimits=$xpath->query("//Metadata/dataIdInfo/resConst/Consts/useLimit");
$do_uselimit=1;
foreach($uselimits as $limit)
{
//已经有声明,则不需要处理
if ($limit->nodeValue==$limit_text || (strlen($limit->nodeValue)>3))
$do_uselimit=0;
}
if ($do_uselimit==1)
{
$new_uselimit=$dom->createElement('useLimit',$limit_text);
$new_resconst=$dom->createElement('resConst');
$new_const=$dom->createElement('Consts');
$new_const->appendChild($new_uselimit);
$new_resconst->appendChild($new_const);
$desckey=$xpath->query("//Metadata/dataIdInfo/descKeys")->item(0);
$resconst=$xpath->query("//Metadata/dataIdInfo/resConst")->item(0);
if ($resconst)
$resconst->parentNode->insertBefore($new_resconst,$resconst);
else
$desckey->parentNode->insertBefore($new_resconst,$desckey);
$new_data=$dom->saveXML();
}
$this->view->test= $new_data;
} elseif (isset($formdata["submit"]))
{
$sql="select uuid,data from metadata where istemplate = 'n'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
foreach($rows as $k=>$row)
{
//do the replace
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$root = $dom->getElementsByTagName('Metadata');
$uuid = $row['uuid'];
$xpath = new DOMXpath($dom);
$title_key=$xpath->query("//Metadata/dataIdInfo/idCitation/resTitle");
$title=$title_key->item(0)->nodeValue;
$uselimits=$xpath->query("//Metadata/dataIdInfo/resConst/Consts/useLimit");
$do_uselimit=1;
foreach($uselimits as $limit)
{
//已经有声明,则不需要处理
if ($limit->nodeValue==$limit_text || (strlen($limit->nodeValue)>3))
$do_uselimit=0;
}
if ($do_uselimit==1)
{
$new_uselimit=$dom->createElement('useLimit',$limit_text);
$new_resconst=$dom->createElement('resConst');
$new_const=$dom->createElement('Consts');
$new_const->appendChild($new_uselimit);
$new_resconst->appendChild($new_const);
$desckey=$xpath->query("//Metadata/dataIdInfo/descKeys")->item(0);
$resconst=$xpath->query("//Metadata/dataIdInfo/resConst")->item(0);
if ($resconst)
$resconst->parentNode->insertBefore($new_resconst,$resconst);
else
$desckey->parentNode->insertBefore($new_resconst,$desckey);
$new_data=$dom->saveXML();
//防止错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$deal['uuid']=$uuid;
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
}
}
$this->view->form=$form;
}
//联系人信息替换
function contactAction()
{
if ($this->_request->isPost()) {
$formdata=$this->_request->getPost();
if (isset($formdata["test"]))
{
$this->view->test=$this->contactReplace($formdata["testxml"],$formdata);
} elseif (isset($formdata["submit"]))
{
$sql="select uuid,data from metadata where istemplate = 'n' and data like '%".$formdata['oldname']."%'";
$rows=$this->wdb->fetchAll($sql);
$this->view->deal=array();
foreach($rows as $row)
{
//do the replace
$new_data=$this->contactReplace($row["data"],$formdata);
//防止错误
if (!empty($new_data))
{
$sql="update metadata set data=? where uuid='".$row['uuid']."'";
if ($this->wdb->exec($this->wdb->quoteInto($sql,$new_data)))
{
$dom = new DOMDocument();
$dom->loadXML($row['data']);
$title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue;
$deal['uuid']=$row['uuid'];
$deal['title']=$title;
$this->view->deal[]=$deal;
}
}
}
}
$this->view->formdata=$formdata;
}
}
private function contactReplace($xml,$replace)
{
$dom = new DOMDocument();
$dom->loadXML($xml);
$xpath = new DOMXpath($dom);
$contacts=$xpath->query('//rpIndName');
foreach($contacts as $contact)
{
if ($contact->nodeValue==$replace['oldname'])
{
$newrpIndName=$dom->createElement('rpIndName',$replace['name']);
$newrpOrgName=$dom->createElement('rpOrgName',$replace['unit']);
$newrpCntInfo=$dom->createElement('rpCntInfo');
$newcntPhone=$dom->createElement('cntPhone');
$newrpCntInfo->appendChild($newcntPhone);
$newvoiceNum=$dom->createElement('voiceNum',$replace['voicenum']);
$newcntPhone->appendChild($newvoiceNum);
$newcntAddress=$dom->createElement('cntAddress');
$newrpCntInfo->appendChild($newcntAddress);
$newdelPoint=$dom->createElement('delPoint',$replace['delpoint']);
$newcntAddress->appendChild($newdelPoint);
$newcity=$dom->createElement('city',$replace['city']);
$newcntAddress->appendChild($newcity);
$newarea=$dom->createElement('adminArea',$replace['adminarea']);
$newcntAddress->appendChild($newarea);
$newpostCode=$dom->createElement('postCode',$replace['postcode']);
$newcntAddress->appendChild($newpostCode);
$newcountry=$dom->createElement('country',$replace['country']);
$newcntAddress->appendChild($newcountry);
$neweMailAdd=$dom->createElement('eMailAdd',$replace['email']);
$newcntAddress->appendChild($neweMailAdd);
$rporg=$xpath->query('rpOrgName',$contact->parentNode);
$contact->parentNode->removeChild($rporg->item(0));
$rpcnt=$xpath->query('rpCntInfo',$contact->parentNode);
$contact->parentNode->removeChild($rpcnt->item(0));
$contact->parentNode->insertBefore($newrpIndName,$contact);
$contact->parentNode->insertBefore($newrpOrgName,$contact);
$contact->parentNode->insertBefore($newrpCntInfo,$contact);
$contact->parentNode->removeChild($contact);
}
}
return $dom->saveXML();
}
}

View File

@ -11,91 +11,88 @@
$this->headLink()->appendStylesheet('/css/colorbox.css'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="form-group"> <div><a href="/admin/data/attachments/add/1">上传新附件</a> | <a href="attachments/search/my">查看我的附件</a></div>
<a class="btn btn-primary btn-sm" href="/admin/data/attachments/add/1">上传新附件</a>
<a class="btn btn-primary btn-sm" href="attachments/search/my">查看我的附件</a>
</div>
<div class="input-group form-group" id="datalist">
<form action="" method="get" class="search_form input-group">
<input class="form-control" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字" />
<input type="hidden" name="search" value='1' />
<span class="input-group-btn"><button class="btn btn-default" type="submit" class="searchbtn" >搜索</button></span>
</form>
</div>
<?php if (count($this->paginator)): ?> <div class="search">
<form method="get" action="/admin/data/md/att/1/addatts/1"> <form action="" method="get">
<table class="stylized table table-bordered table-striped table-hover"> <input type="hidden" name="search" value='1' />
<thead><tr> <ul>
<?php <li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
if(!empty($this->uuid)) <li><input type="submit" class="searchbtn" value="搜索" /></li>
echo '<th width="40">选择</th>'; </ul>
?> </form>
<th width="5%">ID</th> </div><!-- search DIV -->
<th width="45%">上传文件名</th>
<th width="5%">类型</th> <?php if (count($this->paginator)): ?>
<th width="5%">大小</th> <form method="get" action="/admin/data/md/att/1/addatts/1">
<th width="8%">下载次数</th> <table class="stylized">
<th width="16%">上传时间</th> <thead><tr>
<th width="28%">操作</th> <?php
</tr></thead> if(!empty($this->uuid))
<tbody id="list"> echo '<th width="40">选择</th>';
<?php $autoindex=0;?> ?>
<?php foreach ($this->paginator as $item): ?> <th width="50">ID</th>
<?php $autoindex++;?> <th width='100'>上传文件名</th>
<tr id="att_<?php echo $item['id'];?>"> <th width='80'>类型</th>
<?php <th width='80'>大小</th>
if(!empty($this->uuid)) <th width='80'>下载次数</th>
echo '<td><input type="checkbox" value="'.$item['id'].'" name="ids[]" /></td>'; <th width='150'>上传时间</th>
?> <th width="150">操作</th>
<td><?php echo $item['id'];?></td> </tr></thead>
<td><?php echo $item['realname'] ;?></td> <tbody id="list">
<td><?php <?php $autoindex=0;?>
if($item['filetype']=='image') echo '图片' ; <?php foreach ($this->paginator as $item): ?>
if($item['filetype']=='file') echo '文件' ; <?php $autoindex++;?>
if($item['filetype']=='media') echo '多媒体' ; <tr id="att_<?php echo $item['id'];?>">
if($item['filetype']=='reviewatt') echo '评审附件' ; <?php
if($item['filetype']=='md') echo "数据文件"; if(!empty($this->uuid))
if($item['filetype']=='literature')echo "文献"; echo '<td><input type="checkbox" value="'.$item['id'].'" name="ids[]" /></td>';
if($item['filetype']=='document') echo "文档"; ?>
?></td> <td><?php echo $item['id'];?></td>
<td><?php if($item['filesize']<1048576) echo round(($item['filesize']/1024),2).'KB'; else echo round(($item['filesize']/1024/1024),2).'MB'; ?></td> <td><?php echo $item['realname'] ;?></td>
<td><?= $item['downtimes']; ?></td> <td><?php
<td><?= date('Y-m-d H:i:s',strtotime($item['ts_created'])); ?></td> if($item['filetype']=='image') echo '图片' ;
<td> if($item['filetype']=='file') echo '文件' ;
<a href="/admin/data/attachments/edit/<?= $item['id']; ?>">编辑</a> | if($item['filetype']=='media') echo '多媒体' ;
<a href="javascript:delatt(<?= $item['id']; ?>);" onclick="return confirm('是否确定删除该附件?')">删除</a> | if($item['filetype']=='reviewatt') echo '评审附件' ;
<a href="/service/attach/id/<?= $item['id']; ?>">下载</a> if($item['filetype']=='md') echo "数据文件";
</td> if($item['filetype']=='literature')echo "文献";
</tr> if($item['filetype']=='document') echo "文档";
<?php endforeach; ?> ?></td>
</tbody> <td><?php if($item['filesize']<1048576) echo round(($item['filesize']/1024),2).'KB'; else echo round(($item['filesize']/1024/1024),2).'MB'; ?></td>
</table> <td><?= $item['downtimes']; ?></td>
<?php <td><?= date('Y-m-d H:i:s',strtotime($item['ts_created'])); ?></td>
if(!empty($this->uuid)) <td>
echo '<input type="hidden" name="uuid" value="'.$this->uuid.'" /><input type="hidden" name="submit" value="1" /><input type="submit" value="将已选择的附件添加到《'.$this->mdtitle.'》" />'; <a href="/admin/data/attachments/edit/<?= $item['id']; ?>">编辑</a> |
?> <a href="javascript:delatt(<?= $item['id']; ?>);" onclick="return confirm('是否确定删除该附件?')">删除</a> |
</form> <a href="/service/attach/id/<?= $item['id']; ?>">下载</a>
<?php endif; ?> </td>
<div class="pagenavi"><?= $this->paginator; ?></div> </tr>
</div> <?php endforeach; ?>
</tbody>
</table>
<?php
if(!empty($this->uuid))
echo '<input type="hidden" name="uuid" value="'.$this->uuid.'" /><input type="hidden" name="submit" value="1" /><input type="submit" value="将已选择的附件添加到《'.$this->mdtitle.'》" />';
?>
</form>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script> <script>
function delatt(id){ function delatt(id){

View File

@ -9,127 +9,108 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,"uploadify"); $this->theme->AppendPlus($this,"uploadify");
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<div class="form-group">
<a class="btn btn-primary btn-sm" href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>">返回元数据附件列表</a> <div class="ctrlplan">
<a class="btn btn-primary btn-sm" href="/data/<?php echo $this->uuid; ?>">查看元数据</a> <a href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>">返回元数据附件列表</a>
<a class="btn btn-primary btn-sm" href="/admin/data/attachments/">返回附件管理</a> <a href="/data/<?php echo $this->uuid; ?>">查看元数据</a>
<a href="/admin/data/attachments/">返回附件管理</a>
</div>
<form action="#" method="POST" enctype='multipart/form-data'>
<input type="hidden" name="add" value="1" />
<input type="hidden" name="submit" value="1" />
<p>注:可选择多个文件<br />
<div id="datalist">
</div> </div>
<form action="#" method="POST" enctype='multipart/form-data' class="form-horizontal"> <input id="file_upload" name="Filedata" type="file" />
<input type="hidden" name="add" value="1" /> </p>
<input type="hidden" name="submit" value="1" />
<div class="form-group">
<label for="doi" class="col-md-2 col-sm-2 control-label">请先选择附件语言:</label>
<div class="col-md-2 col-sm-2">
<select name="language" id="language" class="form-control">
<option value="zh">zh</option>
<option value="en">en</option>
</select>
</div>
</div>
<div class="form-group">
<label for="doi" class="col-md-2 col-sm-2 control-label">可选择多个文件:</label>
<div class="col-md-6 col-sm-63">
<input id="file_upload" name="Filedata" type="file" />
<div id="datalist"></div>
</div>
</div>
</form>
</div>
</div>
<style type="text/css">.uploadify{margin:0;} #file_upload-queue a:focus {outline:none;-moz-outline:none;}</style> </form>
</div>
<script> <script>
var _this = { var _this = {
SessionID: '<?php echo session_id(); ?>' SessionID : '<?php echo session_id(); ?>'
}; };
var uploader; var uploader;
var param = {}; var param;
param = { param = {
"PHPSESSID": _this.SessionID, "PHPSESSID" : _this.SessionID,
"multi": 'yes' "multi" : 'yes'
}; };
$(function() {
$("#language").click(function(){ $('#file_upload').uploadify({
param.language = $("#language").val(); 'swf' : '/js/lib/uploadify/uploadify.swf',
}); 'uploader' : '/admin/data/upload/<?php if(!empty($this->uuid)) echo "uuid/".$this->uuid; ?>',
'multi' : true,
$(function () { 'auto' : true,
$('#file_upload').uploadify({ 'fileTypeExts' : '*',
'swf': '/js/lib/uploadify/uploadify.swf', 'onUploadSuccess' : function(file, data, response) {
'uploader': '/admin/data/upload/<?php if(!empty($this->uuid)) echo "uuid/".$this->uuid; ?>', upload.onsuccess(file, data, response);
'width': 155,
'buttonText': '浏览',
'debug': false,
'preventCaching':false,
'multi': true,
'auto': true,
'fileTypeExts': '*',
'onUploadSuccess': function (file, data, response) {
upload.onsuccess(file, data, response);
},
'onUploadStart': function (file) {
$('#file_upload').uploadify('settings', 'formData', param);
}
});
});
var upload = {
onsuccess: function (file, data, response) {
_data = $.parseJSON(data);
if (!$.isEmptyObject(_data.error)) {
alert(_data.error);
} else {
$('#datalist').append(upload.makeFileHtml(_data));
// console.log($("#language").val());
//console.log(_data);
}
}, },
makeFileHtml: function (data) { 'onUploadStart' : function(file) {
return '<div class="alert alert-success">' $('#file_upload').uploadify('settings','formData',param);
+ '<button type="button" class="close" data-dismiss="alert" onclick="upload.deleteFile('+ data.id +')"><i class="glyphicon glyphicon-trash"></i></button>' }
+ '<a href="/service/attach/id/' + data.id + '">' + data.realname + '</a>'
+ '<input type="hidden" name="attid" value="' + data.id + '"></input>'
+ '</div>';
},
deleteFile: function (id) {
$.ajax({
'type': "POST",
'url': '/admin/data/attachments/',
'data': 'uuid=<?php echo $this->uuid?>&mdattdel=' + id,
'success': function (data) {
if (typeof (data) == 'undefined') {
alert("数据源错误,请联系管理员");
return false;
}
if (!$.isEmptyObject(data.error)) {
alert(data.error);
return false;
}
},
'timeout': 30000,
'error': function () {
alert('附件删除出错');
}
});
}
};
$(document).ready(function () {
$.getJSON("/admin/data/getatts/uuid/<?php echo $this->uuid;?>", function (data) {
if (data) {
$.each(data, function (key, val) {
$('#datalist').append(upload.makeFileHtml(val));
});
}
});
}); });
function Alert(html) { });
$.colorbox({ 'innerWidth': '50%', 'html': '<h4>' + html + '</h4>' }); var upload = {
} onsuccess : function(file, data, response){
_data = $.parseJSON(data);
if(!$.isEmptyObject(_data.error))
{
alert(_data.error);
}else{
$('#datalist').append(upload.makeFileHtml(_data));
}
},
makeFileHtml : function(data){
return '<div class="alert alert-success">'
+ '<button type="button" class="close" data-dismiss="alert" onclick="upload.deleteFile('+data.id+')"><i class="icon-trash icon-white"></i></button>'
+ '<a href="/service/attach/id/' + data.id + '">' +data.realname + '</a>'
+'<input type="hidden" name="attid" value="'+data.id+'"></input>'
+'</div>';
},
deleteFile : function(id){
$.ajax({
'type':"POST",
'url':'/admin/data/attachments/',
'data':'uuid=<?php echo $this->uuid?>&mdattdel='+id,
'success':function(data){
if(typeof(data) == 'undefined')
{
alert("数据源错误,请联系管理员");
return false;
}
if(!$.isEmptyObject(data.error))
{
alert(data.error);
return false;
}
},
'timeout': 30000,
'error': function(){
alert('附件删除出错');
}
});
}
};
$(document).ready(function() {
$.getJSON("/admin/data/getatts/uuid/<?php echo $this->uuid;?>", function(data) {
if(data)
{
$.each(data, function(key, val) {
$('#datalist').append(upload.makeFileHtml(val));
});
}
});
});
function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4>'+html+'</h4>'});
}
</script> </script>

View File

@ -14,67 +14,67 @@
$this->breadcrumb('数据管理'); $this->breadcrumb('数据管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="form-group">
<a class="btn btn-primary btn-sm" href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>/addatts/1/mdtitle/<?php echo $this->mdtitle ;?>">为此元数据选择附件</a> <div class="ctrlplan">
<a class="btn btn-primary btn-sm" href="/admin/data/attachments/add/1/uuid/<?php echo $this->uuid;?>">为此元数据添加附件</a> <a href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>/addatts/1/mdtitle/<?php echo $this->mdtitle ;?>">为此元数据选择附件</a>
<a class="btn btn-primary btn-sm" href="/data/<?php echo $this->uuid; ?>">查看元数据</a> <a href="/admin/data/attachments/add/1/uuid/<?php echo $this->uuid;?>">为此元数据添加附件</a>
</div> <a href="/data/<?php echo $this->uuid; ?>">查看元数据</a>
<table class="stylized table table-bordered table-striped table-hover"> </div>
<thead><tr>
<th width='250'>文件名</th> <table class="stylized">
<th width='80'>类型</th> <thead><tr>
<th width='80'>大小</th> <th width='250'>文件名</th>
<th width='80'>下载次数</th> <th width='80'>类型</th>
<th width='150'>上传时间</th> <th width='80'>大小</th>
<th width="200">操作</th> <th width='80'>下载次数</th>
</tr></thead> <th width='150'>上传时间</th>
<tbody> <th width="200">操作</th>
<?php </tr></thead>
foreach ($this->atts as $v) <tbody>
{ <?php
if($v['filesize']<1048576) $v['filesize'] = round(($v['filesize']/1024),2).'KB'; else $v['filesize'] = round(($v['filesize']/1024/1024),2).'MB'; foreach ($this->atts as $v)
echo ' {
<tr id="att_'.$v['id'].'"> if($v['filesize']<1048576) $v['filesize'] = round(($v['filesize']/1024),2).'KB'; else $v['filesize'] = round(($v['filesize']/1024/1024),2).'MB';
<td>'.$v['realname'].'</td> echo '
<td>'.$v['filetype'].'</td> <tr id="att_'.$v['id'].'">
<td>'.$v['filesize'].'</td> <td>'.$v['realname'].'</td>
<td>'.$v['downtimes'].'</td> <td>'.$v['filetype'].'</td>
<td>'.date('Y-m-d H:i:s',strtotime($v['ts_created'])).'</td> <td>'.$v['filesize'].'</td>
<td> <td>'.$v['downtimes'].'</td>
<a href="/admin/data/attachments/attupdate/'.$v['id'].'" class="iframe">更新文件</a> <td>'.date('Y-m-d H:i:s',strtotime($v['ts_created'])).'</td>
<a href="javascript:;" onclick="delmdatt('.$v['id'].')">从此元数据中移除</a> <td>
<a href="/service/attach/id/'.$v['id'].'">下载</a> <a href="/admin/data/attachments/attupdate/'.$v['id'].'" class="iframe">更新文件</a>
</td> <a href="javascript:;" onclick="delmdatt('.$v['id'].')">从此元数据中移除</a>
</tr>'; <a href="/service/attach/id/'.$v['id'].'">下载</a>
} </td>
?> </tr>';
</tbody> }
</table> ?>
</div> </tbody></table>
<div style="display:none;"> </div>
<form id="fileUpdate" method="post"> <div style="display:none;">
<input type="hidden" id="id" name="id" value="" /> <form id="fileUpdate" method="post">
<p>注:要更新的文件只能选择一个<br /> <input type="hidden" id="id" name="id" value="" />
<ul id="datalist"></ul> <p>注:要更新的文件只能选择一个<br />
<input id="file_upload" name="Filedata" type="file" /> <ul id="datalist"></ul>
<input type="button" class="btn btn-small btn-green" onclick="$('#file_upload').uploadifyUpload();" value="更改" /> <input id="file_upload" name="Filedata" type="file" />
</p> <input type="button" class="btn btn-small btn-green" onclick="$('#file_upload').uploadifyUpload();" value="更改" />
</form> </p>
</div> </form>
</div> </div>
<script> <script>
function delmdatt(id){ function delmdatt(id){

View File

@ -1,76 +1,69 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->headScript()->appendFile('/js/modal.js'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('数据作者管理');
$this->breadcrumb('数据作者管理'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <!-- 左侧导航 -->
<!-- 左侧导航 --> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <!-- //左侧导航 -->
<!-- //左侧导航 -->
<!-- 页面内容 --> <!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<div class="form-group"> <div id="tabs-controller">
<a class="btn btn-primary btn-sm" href="/admin/data/author">作者管理</a> <ul>
<a class="btn btn-primary btn-sm" href="/admin/data/author/ac/list">查看所有数据作者</a> <li class="box-shadow"><a class="text-shadow" href="/admin/data/author">作者管理</a></li>
<a class="btn btn-primary btn-sm" href="/admin/data/author/ac/datas">所有数据</a> <li class="box-shadow"><a class="text-shadow" href="/admin/data/author/ac/list">查看所有数据作者</a></li>
</div> <li class="box-shadow active"><a class="text-shadow" href="/admin/data/author/ac/datas">所有数据</a></li>
<div class="input-group form-group"> </ul>
<form id="datasearch" class="search_form input-group" action="/admin/data/author/ac/datas">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
</form>
</div>
<div id="datalistZ">
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul class=list-unstyled>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>" class="well well-sm">
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a> </h4>
<h5>
<?php if ($item['c']) : ?>
作者数量 <span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['c']; ?></span>
<a class="label label-info" data-trigger="modal" data-title="作者" href="/admin/data/author/ac/edit/uuid/<?php echo $item['uuid']; ?>/window/iframe" class="iframe">
<span class="glyphicon glyphicon-user"></span> 作者管理</a>
<?php endif; ?>
<span class="form-inline" id="addauthor_<?php echo $item['id'];?>">
<a class="label label-success" href="javascript:;" onclick="AddAuthor(<?php echo $item['id']; ?>,'<?php echo $item['uuid']; ?>')">
<span class="glyphicon glyphicon-plus"></span> 添加作者</a>
</span>
<?php if($item['c']):?>
<span id="sendmail_<?php echo $item['id'];?>">
<a class="label label-primary" href="javascript:;" onclick="SendMail('<?php echo $item['uuid']; ?>')">
<span class="glyphicon glyphicon-envelope"></span> 发邮件</a>
</span>
<?php endif;?>
</h5>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<div>
<p>请输入元数据标题关键字进行搜索</p>
<form id="datasearch" class="search_form" action="/admin/data/author/ac/datas">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div>
<div id="datalist">
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>">
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a> </p>
<p>
<?php if ($item['c']) : ?>
作者数量 <span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['c']; ?></span> | <a href="/admin/data/author/ac/edit/uuid/<?php echo $item['uuid']; ?>/window/iframe" class="iframe">作者管理</a> |
<?php endif; ?>
<span id="addauthor_<?php echo $item['id'];?>"><a href="javascript:;" onclick="AddAuthor(<?php echo $item['id']; ?>,'<?php echo $item['uuid']; ?>')">添加作者</a></span>
<?php if($item['c']):?>
| <span id="sendmail_<?php echo $item['id'];?>"><a href="javascript:;" onclick="SendMail('<?php echo $item['uuid']; ?>')">发邮件</a></span>
<?php endif;?>
</p>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>
function AddAuthor(id,uuid){ function AddAuthor(id,uuid){
$('#addauthor_'+id).html('用户名:<input class="form-control input-sm" type="text" id="authorInp_'+id+'"/> <button class="btn btn-success btn-sm" onclick="addAuthor('+id+',\''+uuid+'\')">添加</button>'); $('#addauthor_'+id).html('用户名:<input type="text" id="authorInp_'+id+'"/><button class="btn btn-green" onclick="addAuthor('+id+',\''+uuid+'\')">添加</button>');
} }
function addAuthor(id,uuid){ function addAuthor(id,uuid){
$.ajax({ $.ajax({
@ -85,7 +78,7 @@ function addAuthor(id,uuid){
if(typeof(data.msg)!='undefined') if(typeof(data.msg)!='undefined')
{Alert(data.msg);} {Alert(data.msg);}
if(typeof(data.added)!='undefined') if(typeof(data.added)!='undefined')
{$('#addauthor_'+id).html('<a class="label label-success" href="javascript:;" onclick="AddAuthor('+id+',\''+uuid+'\')"><span class="glyphicon glyphicon-plus"></span> 添加作者</a>');} {$('#addauthor_'+id).html('<a href="javascript:;" onclick="AddAuthor('+id+',\''+uuid+'\')">添加作者</a>');}
} }
else{ else{
Alert('出现错误,请稍后再试'); Alert('出现错误,请稍后再试');

View File

@ -1,4 +1,25 @@
<ul class="list-unstyled"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>作者管理</title>
<link rel="stylesheet" type="text/css" media="screen" href="/css/default.css" />
<script src='/static/js/jquery-1.7.2.min.js' type="text/javascript"></script>
<script type="text/javascript" src="/js/jquery.colorbox-min.js"></script>
<link href="/css/author.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="/static/js/uploadify/uploadify.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/css/colorbox.css" media="screen" rel="stylesheet" type="text/css" />
<style>
#loading{margin:0px;border:none;height:50px;width:98%;background:url(/static/img/colorbox-images/loading.gif) center center no-repeat;display:none;position:absolute;left:0px;top:0px;overflow:hidden;background:#ccc;}
</style>
</head>
<body>
<!-- 页面内容 -->
<div id="warpper">
<div id="loading" class="info info-box"></div>
<div id="datalist">
<ul>
<?php <?php
if(isset($this->authors)) if(isset($this->authors))
{ {
@ -13,9 +34,10 @@
</p> </p>
</li> </li>
<?php } } ?> <?php } } ?>
</ul> </ul></div>
</div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script type="text/javascript"> <script>
function update(id){ function update(id){
$.ajax({ $.ajax({
'type':"POST", 'type':"POST",
@ -25,13 +47,13 @@ function update(id){
if (data!=null) if (data!=null)
{ {
if(typeof(data.error)!='undefined') if(typeof(data.error)!='undefined')
{alert(data.error);return false;} {Alert(data.error);return false;}
if(data.msg!=null) if(data.msg!=null)
{alert(data.msg);} {Alert(data.msg);}
if(typeof(data.updated)!='undefined') if(typeof(data.updated)!='undefined')
{$('#status_'+data.updated).html('已认证');$('#statusChange_'+data.updated).html('');} {$('#status_'+data.updated).html('已认证');$('#statusChange_'+data.updated).html('');}
}else{ }else{
alert('处理中出现错误'); Alert('处理中出现错误');
} }
}, },
'timeout': 30000 'timeout': 30000
@ -48,11 +70,11 @@ function remove(id){
if (data!=null) if (data!=null)
{ {
if(typeof(data.error)!='undefined') if(typeof(data.error)!='undefined')
{alert(data.error);return false;} {Alert(data.error);return false;}
if(typeof(data.deleted)!='undefined') if(typeof(data.deleted)!='undefined')
{$('#author_'+data.deleted).fadeOut("slow",function(){$(this).remove();});} {$('#author_'+data.deleted).fadeOut("slow",function(){$(this).remove();});}
}else{ }else{
alert('处理中出现错误'); Alert('处理中出现错误');
} }
}, },
'timeout': 30000 'timeout': 30000
@ -68,8 +90,12 @@ $('#loading').ajaxSend(function() {
}); });
$("#loading").ajaxError(function() { $("#loading").ajaxError(function() {
$(this).css('display','none'); $(this).css('display','none');
alert('请求超时或服务器开小差了,请刷新页面后重试'); Alert('请求超时或服务器开小差了,请刷新页面后重试');
}); });
function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4>'+html+'</h4>'});
}
</script> </script>
</body>
</html>

View File

@ -1,18 +1,18 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据作者管理'); $this->breadcrumb('数据作者管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,"colorbox"); $this->theme->AppendPlus($this,"colorbox");
?> ?>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<div id="loading" class="info info-box"></div> <div id="loading" class="info info-box"></div>
<div id="datalist"> <div id="datalist">
<?php if(!empty($this->authors)) { ?> <?php if(!empty($this->authors)) { ?>

View File

@ -1,60 +1,60 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js'); $this->headLink()->appendStylesheet('/css/author.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('数据作者管理'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb('数据作者管理');
$this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <!-- 左侧导航 -->
<!-- 左侧导航 --> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <!-- //左侧导航 -->
<!-- //左侧导航 -->
<!-- 页面内容 --> <!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<div class="form-group"> <div id="tabs-controller">
<a class="btn btn-primary" href="/admin/data/author">作者管理</a> <ul>
<a class="btn btn-primary" href="/admin/data/author/ac/list">查看所有数据作者</a> <li class="box-shadow"><a class="text-shadow" href="/admin/data/author">作者管理</a></li>
<a class="btn btn-primary" href="/admin/data/author/ac/datas">所有数据</a> <li class="box-shadow active"><a class="text-shadow" href="/admin/data/author/ac/list">查看所有数据作者</a></li>
</div> <li class="box-shadow"><a class="text-shadow" href="/admin/data/author/ac/datas">所有数据</a></li>
<div class="input-group form-group"> </ul>
<form id="datasearch" class="search_form input-group" action="/admin/data/author/ac/list">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
</form>
</div>
<div id="datalistZ">
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul class=list-unstyled>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>" class="well well-sm">
<h4><a href="/admin/user/show/id/<?= $item['id'] ?>" target="_blank"><span class="glyphicon glyphicon-user"></span> <?php echo $item['realname'];?></a> </h4>
<h5>
<?php if ($item['d']) : ?>
数据个数 <span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['d']; ?></span>
<a href="javascript:;" onclick="view(<?= $item['id']?>)">查看数据</a>&nbsp;&nbsp;
<!-- <a data-trigger="modal" data-title="数据" href="view(<?= $item['id']?>)" onclick="view(<?= $item['id']?>)" >查看数据2</a> -->
<span><a href="mailto:<?= $item['email']; ?>"><span class="glyphicon glyphicon-envelope"></span> : <?= $item['email']; ?></a></span>
<?php endif; ?>
</h5>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<div>
<p>请输入元数据标题关键字进行搜索</p>
<form id="datasearch" class="search_form" action="/admin/data/author/ac/list">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div>
<div id="datalist">
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>">
<p><a href="/admin/user/show/id/<?= $item['id'] ?>" target="_blank"><?php echo $item['realname'];?></a> </p>
<p>
<?php if ($item['d']) : ?>
数据个数 <span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['d']; ?></span> | <a href="javascript:;" onclick="view(<?= $item['id']?>)">查看数据</a> | Email: <span><?= $item['email'];?></span>
<?php endif; ?>
</p>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>

View File

@ -1,70 +1,66 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/modal.js'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据作者管理'); $this->breadcrumb('数据作者管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <!-- 左侧导航 -->
<!-- 左侧导航 --> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?>
</div>
<!-- //左侧导航 -->
<!-- 页面内容 -->
<div class="col-md-10 col-sm-12">
<div class="form-group">
<a class="btn btn-primary btn-sm" href="/admin/data/author">作者管理</a>
<a class="btn btn-primary btn-sm" href="/admin/data/author/ac/list">查看所有数据作者</a>
<a class="btn btn-primary btn-sm" href="/admin/data/author/ac/datas">所有数据</a>
</div>
<div class="input-group form-group">
<form id="datasearch" class="search_form input-group" action="/admin/data/author">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
</form>
</div>
<div id="datalistZ" >
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul class=list-unstyled>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>" class="well well-sm">
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a> </h4>
<p></p>
<h5>
<?php if ($item['c']) : ?>
作者数量 <span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['c']; ?></span>
<a class="label label-info" data-trigger="modal" data-title="作者" href="/admin/data/author/ac/edit/uuid/<?php echo $item['uuid']; ?>/window/iframe" class="iframe">
<span class="glyphicon glyphicon-user"></span> 作者管理</a>
<?php endif; ?>
<span class="form-inline" id="addauthor_<?php echo $item['id'];?>">
<a class="label label-success" href="javascript:;" onclick="AddAuthor(<?php echo $item['id']; ?>,'<?php echo $item['uuid']; ?>')">
<span class="glyphicon glyphicon-plus"></span> 添加作者</a>
</span>
</h5>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div> </div>
<script type="text/javascript"> <!-- //左侧导航 -->
<!-- 页面内容 -->
<div id="rightPanel">
<div id="tabs-controller">
<ul>
<li class="box-shadow active"><a class="text-shadow" href="/admin/data/author">作者管理</a></li>
<li class="box-shadow"><a class="text-shadow" href="/admin/data/author/ac/list">查看所有数据作者</a></li>
<li class="box-shadow"><a class="text-shadow" href="/admin/data/author/ac/datas">所有数据</a></li>
</ul>
</div>
<div>
<p>请输入元数据标题关键字进行搜索</p>
<form id="datasearch" class="search_form" action="/admin/data/author">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div>
<div id="datalist">
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>">
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a> </p>
<p>
<?php if ($item['c']) : ?>
作者数量 <span id="sumAuthor_<?php echo $item['id'];?>"><?php echo $item['c']; ?></span> | <a href="/admin/data/author/ac/edit/uuid/<?php echo $item['uuid']; ?>/window/iframe" class="iframe">作者管理</a> |
<?php endif; ?>
<span id="addauthor_<?php echo $item['id'];?>"><a href="javascript:;" onclick="AddAuthor(<?php echo $item['id']; ?>,'<?php echo $item['uuid']; ?>')">添加作者</a></span>
</p>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
<!-- //页面内容 -->
<script>
function AddAuthor(id,uuid){ function AddAuthor(id,uuid){
$('#addauthor_'+id).html('用户名:<input class="form-control input-sm" type="text" id="authorInp_'+id+'"/> <button class="btn btn-success btn-sm" onclick="addAuthor('+id+',\''+uuid+'\')">添加</button>'); $('#addauthor_'+id).html('用户名:<input type="text" id="authorInp_'+id+'"/><button class="btn btn-green" onclick="addAuthor('+id+',\''+uuid+'\')">添加</button>');
} }
function addAuthor(id,uuid){ function addAuthor(id,uuid){
$.ajax({ $.ajax({
@ -75,9 +71,9 @@ function addAuthor(id,uuid){
if (typeof(data)=='object') if (typeof(data)=='object')
{ {
if(typeof(data.error)!='undefined') if(typeof(data.error)!='undefined')
{alert(data.error);return false;} {Alert(data.error);return false;}
if(typeof(data.msg)!='undefined') if(typeof(data.msg)!='undefined')
{alert(data.msg);} {Alert(data.msg);}
if(typeof(data.status)!='undefined') if(typeof(data.status)!='undefined')
{$('#addauthor_'+id).html('<a href="javascript:;" onclick="AddAuthor('+id+',\''+uuid+'\')">添加作者</a>');} {$('#addauthor_'+id).html('<a href="javascript:;" onclick="AddAuthor('+id+',\''+uuid+'\')">添加作者</a>');}
} }
@ -91,5 +87,9 @@ function addAuthor(id,uuid){
} }
}); });
} }
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$(".inline").colorbox({inline:true, width:"50%"});
function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
}
</script> </script>

View File

@ -9,14 +9,13 @@
$this->breadcrumb('导入服务器上元数据目录</a>'); $this->breadcrumb('导入服务器上元数据目录</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <form method="POST">
<form method="POST"> <p>服务器上元数据所在目录含所有子目录的xml文件: <input type="text" name="directory"></p>
<p>服务器上元数据所在目录含所有子目录的xml文件: <input type="text" name="directory"></p> <input type="submit" value="导入元数据" />
<input type="submit" value="导入元数据" /> </form>
</form>
</div>
</div> </div>

View File

@ -4,67 +4,58 @@
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据反馈管理</a>'); $this->breadcrumb('数据反馈管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if(isset($this->title)) {
echo "元数据《".$this->title."》的所有评论";
}?>
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div id="datalistZ">
<?php if (count($this->paginator)): ?>
<ul class=list-unstyled>
<?php foreach ($this->paginator as $item): ?>
<li class="well well-sm">
<h5 class="text-muted">
<span class="glyphicon glyphicon-user"></span>
<?php ($item['url'])?print '<a href="'.$item['url'].'">'.$item['author'].'</a>':print $item['author']; ?>
<span class="glyphicon glyphicon-envelope"></span> EMAIL<?= $item['email']; ?>
[类型:<?= $item['type']; ?>
创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>
操作: <a href="/admin/data/comment/delete/<?= $item['id']; ?>">
<span class="glyphicon glyphicon-trash"></span>
删除&nbsp;&nbsp;</a> <a href="javascript:;" onclick="showreply(<?= $item['id']; ?>)">
<span class="glyphicon glyphicon-pencil"></span>
回复 <?php if($item['reply_count']>0){echo "(".$item['reply_count'].")";}?></a>
</h5>
<div style="display:none;vertical-align:bottom" id="comment_reply_<?= $item['id']; ?>" class="form-inline h4" >
<textarea id="reply_<?= $item['id']; ?>" class="form-control" style="width: 688px; height: 100px; margin-bottom:9px;"></textarea>
<button type="button" onclick="reply(<?= $item['id']; ?>,'<?= $item['uuid']; ?>')" class="btn btn-primary" >提交</button>
<div style="h4">
<ul class="list-unstyled" id="replyList_<?= $item['id']; ?>"></ul>
</div>
</div>
<p>元数据:<a href="/data/<?= $item['uuid']; ?>"><?= $item['title']; ?></a></p>
<p><?= $item['content']; ?></p>
<p>IP:<?= $item['ip']; ?>AGENT:<?= $item['agent']; ?></p>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator;?></div>
</div>
</div> </div>
<div id="rightPanel">
<?php if(isset($this->title)) {
echo "元数据《".$this->title."》的所有评论";
}?>
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div id="datalist">
<?php if (count($this->paginator)): ?>
<ul>
<?php foreach ($this->paginator as $item): ?>
<li>
<p>用户名:<?php ($item['url'])?print '<a href="'.$item['url'].'">'.$item['author'].'</a>':print $item['author']; ?>
EMAIL<?= $item['email']; ?>
[类型:<?= $item['type']; ?>,创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>
。操作: <a href="/admin/data/comment/delete/<?= $item['id']; ?>">删除</a> <a href="javascript:;" onclick="showreply(<?= $item['id']; ?>)">回复
<?php if($item['reply_count']>0){echo "(".$item['reply_count'].")";}?></a></p>
<p style="display:none;vertical-align:bottom" id="comment_reply_<?= $item['id']; ?>"><textarea id="reply_<?= $item['id']; ?>" class="middle half"></textarea>
<button type="button" onclick="reply(<?= $item['id']; ?>,'<?= $item['uuid']; ?>')" class="btn btn-green" style="vertical-align:bottom">提交</button>
<div style="width:90%; margin:0 auto;">
<ul id="replyList_<?= $item['id']; ?>">
</ul>
</div>
</p>
<p>元数据:<a href="/data/<?= $item['uuid']; ?>"><?= $item['title']; ?></a></p>
<p><?= $item['content']; ?></p>
<p>IP:<?= $item['ip']; ?>AGENT:<?= $item['agent']; ?></p>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<?= $this->paginator; ?>
<script> <script>
function reply(id,uuid) function reply(id,uuid)
{ {
@ -106,9 +97,8 @@ function showreply(id){
var html=new Array(); var html=new Array();
for(i in data) for(i in data)
{ {
html.push('<blockquote><li class="h5" id="subReplyList_'+data[i].id+'"><span class="text-success"> '+data[i].body+ html.push('<li id="subReplyList_'+data[i].id+'">'+data[i].body+
'</span>&nbsp;&nbsp; [ <span class="glyphicon glyphicon-user text-primary"></span> <span class="text-primary">' ' ['+data[i].username+' | <a href="javascript:void(0);" onClick="delreply('+data[i].id+')">删除</a>]</li>');
+data[i].username+' </span>| <span class="glyphicon glyphicon-trash text-primary"></span> <a href="javascript:void(0);" onClick="delreply('+data[i].id+')">删除</a> ]</li></blockquote>');
} }
html = html.join(''); html = html.join('');
$('#replyList_'+id).html(html); $('#replyList_'+id).html(html);

View File

@ -9,12 +9,12 @@
$this->breadcrumb('导入数据目录文件</a>'); $this->breadcrumb('导入数据目录文件</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>

View File

@ -0,0 +1,72 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<h3>数据导入<small>文件预处理</small></h3>
<hr />
处理文件:<?= $this->file ?>...
<h5>文件信息</h5>
<ul>
<li>文件行數:<?= $this->Count ?></li>
<li>文件大小:<?= $this->Size ?></li>
<li>文件类型:<?= $this->Type ?></li>
</ul>
<hr />
<h5 class="error-alerts" style="display: none;">错误消息</h5>
<ul id="errors" class="error-alerts" style="display: none;">
</ul>
<h6 id="error-loading"></h6>
<a href="javascript:void(0);" id="clt-next" class="btn btn-success disabled">下一步</a>
</div>
</div>
<script>
$(document).ready(function(){
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/check',
'data':'file=<?= $this->file ?>',
'success':function(data){
if (data!=null)
{
if(data.status == true)
{
$('#clt-next').removeClass('disabled');
$('#clt-next').attr('href','/admin/data/dataimport/ac/target?file=<?= $this->file ?>');
alert("數據完整性檢查成功,可以進行下一步");
return true;
}
$('.error-alerts').show();
$.each(data.status,function(index,value){
$('#errors').append("<li>"+value+"</li>");
});
}else{
alert('处理中出现错误');
}
},
'timeout': 30000,
'beforeSend' : function(){
$('#error-loading').html("正在對文件進行初始化檢查......");
$('#error-loading').show();
},
'complete' : function(){
$('#error-loading').hide();
}
});
});
</script>

View File

@ -0,0 +1,238 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<h3>数据导入<small>选择导入目标</small></h3>
<hr />
导入文件:<?= $this->file ?>
<div class="row-fluid">
<div class="span3">
<h5>数据库:</h5>
<label class="radio">
<input type="radio" class="ctl-schema-btn" value="<?= $this->schema ?>" name="schema" selected readonly> <?= $this->schema ?>
</label>
</div>
<div class="span3" id="table-list">
</div>
<div class="span4" id="field-list">
</div>
</div>
<hr class="clear" />
<h5 class="error-alerts" style="display: none;">消息</h5>
<ul id="errors" class="error-alerts" style="display: none;">
</ul>
<h6 id="error-loading"></h6>
<form action="/admin/data/dataimport/ac/checktables" id="schema-form">
<input type="hidden" name="file" value="<?= $this->file ?>">
<input type="hidden" name="schema" value="">
<input type="hidden" name="table" value="" id="input-table">
<button type="button" id="ctl-next" class="btn btn-success disabled" disabled>下一步</button>
<button type="button" id="ctl-import" class="btn btn-info" disabled="disabled" style="display: none;">导入数据表</button>
</form>
</div>
</div>
<script>
$(document).ready(function(){
$('#ctl-next').click(function(){
ctl.checkTable();
});
$("#ctl-import").click(function(){
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/import',
'data':$('#schema-form').serialize(),
'success':function(data){
if (data!=true)
{
if(!$.isEmptyObject(data))
$(".error-alerts").show();
$("#errors").html(data.join("<br />"));
return true;
}else{
$('#ctl-import').remove();
$("#errors").html("数据导入成功!页面将自动跳转到数据可视化管理页面");
setTimeout("top.location = '/admin/data/visual';",3000);
}
},
'timeout': 30000,
'beforeSend' : function(){
$('#error-loading').html("正在进行数据导入......");
$('#error-loading').show();
$('#ctl-import').attr('disabled','disabled');
},
'complete' : function(){
$('#error-loading').hide();
},
'error' : function(){
$('#ctl-import').removeAttr('disabled');
}
});
});
$('.ctl-schema-btn').click(function(){
$('#schema-form input[name=schema]').val($(this).val());
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/gettables',
'data':'schema=' + $(this).val(),
'success':function(data){
if (data!=null)
{
if($.isEmptyObject(data))
{
ctl.disableNext();
alert("此数据库中尚无数据表");
return true;
}
$('#table-list').html('<h5>选择数据表</h5>');
$.each(data,function(index,value){
$('#table-list').append('<label class="radio">'
+ '<input type="radio" value="'+value.tablename+'" name="table" class="ctl-table-name">'
+ value.tablename
+"</label>"
);
});
$('.ctl-table-name').click(function(){
$('#schema-form input[name=table]').val($(this).val());
if($('#schema-form input[name=schema]').val() != '' && $('#schema-form input[name=table]').val() != '')
{
ctl.enableNext();
}
ctl.getFields();
});
$('#clt-next').removeClass('disabled');
$('#clt-next').attr('href','/admin/data/dataimport/ac/target?file=<?= $this->file ?>');
return true;
}else{
alert('处理中出现错误');
}
},
'timeout': 30000,
'beforeSend' : function(){
$('#error-loading').html("正在加载数据表......");
$('#error-loading').show();
$('#table-list').html('');
$('.ctl-table-name').unbind();
},
'complete' : function(){
$('#error-loading').hide();
}
});
});
});
var ctl = {
enableNext : function(){
$('#ctl-next').removeClass("disabled");
$('#ctl-next').removeAttr("disabled");
},
disableNext : function(){
$('#ctl-next').addClass("disabled");
$('#ctl-next').attr("disabled","disabled");
},
checkTable : function(){
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/checktables',
'data':$('#schema-form').serialize(),
'success':function(data){
if (data!=true)
{
if(!$.isEmptyObject(data))
$(".error-alerts").show();
$("#errors").html(data.join("<br />"));
return true;
}else{
$(".error-alerts").show();
$('#errors').html('数据准备完成,可以进行导入操作');
$('.ctl-schema-btn').attr("disabled","disabled");
$('.ctl-table-name').attr("disabled","disabled");
$('#ctl-next').hide();
$('#ctl-show-table').hide();
$('#ctl-import').show();
$('#ctl-import').removeAttr("disabled");
}
},
'timeout': 30000,
'beforeSend' : function(){
$('#error-loading').html("正在校验数据是否可以导入......");
$('#error-loading').show();
},
'complete' : function(){
$('#error-loading').hide();
},
'error' : function(){
$(".error-alerts").show();
$("#errors").html("数据表字段检测失败,请检查导入得文件是否于数据表中得字段对应");
}
});
},
getFields : function (){
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/getfields',
'data':$('#schema-form').serialize(),
'success':function(data){
if($.isEmptyObject(data))
{
return true;
}
$(".error-alerts").show();
var html = new Array();
html.push('<span>数据表字段信息</span>');
html.push('<table class="table table-striped table-bordered" style="width:300px;">');
html.push('<thead><th>排序</th><th>列名</th><th>数据类型</th></thead>');
$.each(data,function(index,value){
html.push("<tr><td>"+value.dtd_identifier+"</td><td>" + value.column_name + "</td><td>" + value.data_type + "</td></tr>");
});
html.push('</table>');
$('#errors').html(html.join(""));
},
'timeout': 30000,
'beforeSend' : function(){
$('#error-loading').html("正在获取数据表信息......");
$('#error-loading').show();
},
'complete' : function(){
$('#error-loading').hide();
}
});
}
}
</script>

View File

@ -0,0 +1,151 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->theme->AppendPlus($this,"jquery-fileupload");
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<h3>数据导入</h3>
<hr />
<label>上传文件,请选择CSV文件进行上传</label>
<span class="btn btn-success fileinput-button file-upload-ctls">上传文件<input id="fileupload" type="file" name="FileData"></span>
<a href="javascript:void(0);" class="btn btn-info" id="ctl-show-files">查看已上传的文件</a>
<div class="progress" id="pdf-upload-progress" style="display: none;">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
</div>
</div>
<div id="uploadedFile"></div>
</div>
</div>
<script>
$(function () {
'use strict';
var jqXHR = $('#fileupload').fileupload({
url: '/admin/data/dataimport/ac/upload',
dataType: 'json',
done: function (e, data) {
if(typeof(data.result.error) != 'undefined' && data.result.error != 0)
{
alert(data.result.error);
return false;
}
if($('#uploadedFile').html() == "")
$('#uploadedFile').html(upload.makeFileHtml(data.result));
else
$('#uploadedFile').append(upload.makeFileHtml(data.result));
return true;
},
stop : function (e) {
$('#pdf-upload-progress').hide();
$('.file-upload-ctls').show();
},//stop
start : function (e) {
$('.file-upload-ctls').hide();
$('#pdf-upload-progress .progress-bar').css('width', 0 + '%');
$('#pdf-upload-progress').show();
},//start
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#pdf-upload-progress .progress-bar').css(
'width',
progress + '%'
);
},//progressall
add: function (e, data) {
if($('input[name=attid]').length >= 1)
{
upload.deleteFile($('input[name=attid]').val());
$('file-alert').alert('close')
}
data.process().done(function () {
data.submit();
});
}//add
}).prop('disabled', !$.support.fileInput)
.parent().addClass($.support.fileInput ? undefined : 'disabled');
//file upload end
$('#ctl-show-files').click(function(){
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/files',
'data':'',
'success':function(data){
if (data!=null)
{
if($.isEmptyObject(data))
{
alert("目前沒有文件");
return;
}
if($('#uploadedFile').html() == "")
$('#uploadedFile').html(upload.makeFileList(data));
else
$('#uploadedFile').append(upload.makeFileList(data));
$('#ctl-show-files').attr('disabled','disabled');
$("#ctl-show-files").unbind( "click" );
}else{
alert('处理中出现错误');
}
},
'timeout': 30000
});
});//show files
});
var upload = {
makeFileHtml : function(data){
return '<div class="alert alert-success">'
+ '<span class="ctl-files">'+data.file+'</span>'
+ ' <a href="/admin/data/dataimport/ac/prepare/?file='+ encodeURI(data.file) +'">导入数据</a>'
+ '<a href="javascript:void(0)" onclick="upload.delete(this,\''+data.file+'\')" class="pull-right">删除</a>'
+ "</div>";
},
makeFileList : function(data){
var li = [];
$.each(data,function(k,v){
li.push('<div class="alert alert-success ctl-files">'
+ '<span class="ctl-files">'+v+'</span>'
+ ' <a href="/admin/data/dataimport/ac/prepare/?file='+ encodeURI(v) +'">导入数据</a>'
+ '<a href="javascript:void(0);" onclick="upload.delete(this,\''+v+'\')" class="pull-right">删除</a>'
+ "</div>");
});
return li.join("");
},
delete : function(dom,file){
$.ajax({
'type':"POST",
'url':'/admin/data/dataimport/ac/delete',
'data':'file='+file,
'success':function(data){
if(data.success == true)
$(dom).parent('div').remove();
else
alert("failed");
},
'timeout': 30000
});
}
};
</script>

View File

@ -9,12 +9,12 @@
$this->breadcrumb('特色数据集管理</a>'); $this->breadcrumb('特色数据集管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>

View File

@ -9,12 +9,12 @@
$this->breadcrumb('特色数据集管理</a>'); $this->breadcrumb('特色数据集管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>

View File

@ -2,18 +2,18 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); //$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('DOI'); $this->breadcrumb('DOI');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
?> ?>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="/admin/data/doi">浏览所有</a></li> <li><a href="/admin/data/doi">浏览所有</a></li>
@ -29,127 +29,102 @@ $this->theme->AppendPlus($this,'colorbox');
<?php if(!empty($this->msg)) { ?> <?php if(!empty($this->msg)) { ?>
<?= $this->msg ?> <?= $this->msg ?>
<?php } else{ ?> <?php } else{ ?>
<p></p>
<div class="alert alert-info"> <div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">&times;</button> <button type="button" class="close" data-dismiss="alert">&times;</button>
<h4>提示</h4> <h4>提示</h4>
如果元数据中标题发生了变更在DOI中也需要变更时需要在这里点击“提交”按钮才能生效 如果元数据中标题发生了变更在DOI中也需要变更时需要在这里点击“提交”按钮才能生效
</div> </div>
<form class="form-horizontal" method="post"> <form class="form-horizontal" method="post">
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="doi">doi</label> <label class="control-label" for="doi">doi</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="doi" name="doi" readonly="readonly" class="form-control" <input type="text" id="doi" name="doi" readonly="readonly" class="input-block-level"
value="<?= (isset($this->data['doi'])&&!empty($this->data['doi'])) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" /> value="<?= (isset($this->data['doi'])&&!empty($this->data['doi'])) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="uuid">uuid</label> <label class="control-label" for="uuid">uuid</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="uuid" name="uuid" readonly="readonly" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" class="form-control" /> <input type="text" id="uuid" name="uuid" readonly="readonly" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" class="input-block-level" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="publisher">发布者</label> <label class="control-label" for="publisher">发布者</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="publisher" name="publisher" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" class="form-control" /> <input type="text" id="publisher" name="publisher" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" class="input-block-level" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="url">url</label> <label class="control-label" for="url">url</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="url" name="url" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" class="form-control" /> <input type="text" id="url" name="url" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" class="input-block-level"/>
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="title">标题</label> <label class="control-label" for="title">标题</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" class="form-control"/> <input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" class="input-block-level"/>
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="title_en">英文标题</label> <label class="control-label" for="title_en">英文标题</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="title_en" name="title_en" readonly="readonly" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" class="form-control" /> <input type="text" id="title_en" name="title_en" readonly="readonly" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" class="input-block-level" />
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="publisher_en">发布者英文</label> <label class="control-label" for="publisher_en">发布者英文</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" id="publisher_en" name="publisher_en" value="<?= isset($this->data['publisher_en']) ? $this->data['publisher_en']:"" ?>" class="form-control" /> <input type="text" id="publisher_en" name="publisher_en" value="<?= isset($this->data['publisher_en']) ? $this->data['publisher_en']:"" ?>" />
</div> </div>
</div> </div>
<?php if(empty($this->data['info']) || !is_array($this->data['info'])) {?> <?php if(empty($this->data['info']) || !is_array($this->data['info'])) {?>
<div class="form-group infocontrol" id="info1"> <div class="control-group infocontrol" id="info1">
<label class="col-md-2 col-sm-2 control-label" for="title_en">info</label> <label class="control-label" for="">数据作者信息</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<div class="controls row"> <input type="text" name="info[1][author]" value="" placeholder="作者" />
<div class="col-md-2 col-sm-4"> <input type="text" name="info[1][organization]" value="" placeholder="单位" />
<input type="text" name="info[1][author]" value="" placeholder="作者" class="form-control"/> <input type="text" name="info[1][author_en]" value="" placeholder="作者英文" />
</div> <input type="text" name="info[1][organization_en]" value="" placeholder="单位英文" />
<div class="col-md-2 col-sm-3"> <input type="text" name="info[1][order]" value="" placeholder="排序" />
<input type="text" name="info[1][author_en]" value="" placeholder="作者英文" class="form-control"/>
</div>
<div class="col-md-1 col-sm-2">
<input type="text" name="info[1][order]" value="" placeholder="排序" class="form-control"/>
</div>
<div class="col-md-3 col-sm-7">
<input type="text" name="info[1][organization]" value="" placeholder="单位" class="form-control"/>
</div>
<div class="col-md-3 col-sm-6">
<input type="text" name="info[1][organization_en]" value="" placeholder="单位英文" class="form-control"/>
</div>
</div>
</div> </div>
</div> </div>
<?php }else{ ?> <?php }else{ ?>
<?php <?php
$index = 0; $index = 0;
foreach($this->data['info'] as $k=>$v){ foreach($this->data['info'] as $k=>$v){
$index ++; $index ++;
?> ?>
<div class="form-group infocontrol"> <div class="control-group infocontrol">
<label class="col-md-2 col-sm-2 control-label">info</label> <label class="control-label">info</label>
<div class="col-sm-10"> <div class="controls">
<div class="row"> <input type="text" name="info[<?= $k ?>][author]" value="<?= $v['author'] ?>" placeholder="作者" />
<div class="col-md-2 col-sm-4"><input class="form-control" type="text" name="info[<?= $k ?>][author]" value="<?= $v['author'] ?>" placeholder="作者" /></div> <input type="text" name="info[<?= $k ?>][organization]" value="<?= $v['organization'] ?>" placeholder="单位" />
<input type="text" name="info[<?= $k ?>][author_en]" value="<?= $v['author_en'] ?>" placeholder="作者英文" />
<div class="col-md-2 col-sm-3"> <input type="text" name="info[<?= $k ?>][organization_en]" value="<?= $v['organization_en'] ?>" placeholder="单位英文" />
<input class="form-control" type="text" name="info[<?= $k ?>][author_en]" value="<?= $v['author_en'] ?>" placeholder="作者英文" /> <input type="text" name="info[<?= $k ?>][order]" value="<?= $v['order'] ?>" placeholder="排序" />
</div>
<div class="col-md-1 col-sm-2"><input class="form-control" type="text" name="info[<?= $k ?>][order]" value="<?= $v['order'] ?>" placeholder="排序" /></div>
<div class="col-md-3 col-sm-7"><input class="form-control" type="text" name="info[<?= $k ?>][organization]" value="<?= $v['organization'] ?>" placeholder="单位" /></div>
<div class="col-md-3 col-sm-6">
<input class="form-control" type="text" name="info[<?= $k ?>][organization_en]" value="<?= $v['organization_en'] ?>" placeholder="单位英文" />
</div>
<div class="col-md-1">
<?php if($index>1){ ?> <?php if($index>1){ ?>
<label class="control-label"><a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a></label> <a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
<?php }?> <?php }?>
</div>
</div>
</div> </div>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
<div class="form-group"> <div class="control-group">
<div class="col-sm-12"> <div class="controls">
<a class="pull-right" href="javascript:void(0);" onclick="addinput()" >+添加一条</a> <a href="javascript:void(0);" onclick="addinput()">+添加一条</a>
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<div class="col-sm-12"> <div class="controls">
<input type="hidden" name="submit" value="1" /> <input type="hidden" name="submit" value="1" />
<?php if(!empty($this->id)) { ?> <?php if(!empty($this->id)) { ?>
<input type="hidden" name="id" value=" <?=$this->id?> " /> <input type="hidden" name="id" value=" <?=$this->id?> " />
<?php } ?> <?php } ?>
<?php if(!empty($this->uuid)) { ?> <?php if(!empty($this->uuid)) { ?>
<input type="hidden" name="uuid" value=" <?=$this->uuid?>" /> <input type="hidden" name="uuid" value=" <?=$this->uuid?>" />
<?php } ?> <?php } ?>
<button type="submit" class="btn btn-primary pull-right">提交</button> <button type="submit" class="btn btn-primary">提交</button>
</div> </div>
</div> </div>
</form> </form>
@ -161,23 +136,21 @@ $this->theme->AppendPlus($this,'colorbox');
function addinput(){ function addinput(){
var now_index = $('.infocontrol').length; var now_index = $('.infocontrol').length;
var index = now_index + 1; var index = now_index + 1;
html = '<div class="form-group infocontrol"><label class="col-md-2 col-sm-2 control-label">info</label>' html = '<div class="control-group infocontrol"><div class="controls">'
+'<div class="col-sm-10"><div class="controls row">' + '<input type="text" name="info[' + index + '][author]" placeholder="作者" /> '
+'<div class="col-md-2 col-sm-4"><input class="form-control" type="text" name="info[' + index + '][author]" placeholder="作者" /></div>' + '<input type="text" name="info[' + index + '][organization]" placeholder="单位" /> '
+'<div class="col-md-2 col-sm-3"><input class="form-control" type="text" name="info[' + index + '][author_en]" placeholder="作者英文" /></div>' + '<input type="text" name="info[' + index + '][author_en]" placeholder="作者英文" /> '
+'<div class="col-md-1 col-sm-2"><input class="form-control" type="text" name="info[' + index + '][order]" placeholder="排序" /></div>' + '<input type="text" name="info[' + index + '][organization_en]" placeholder="单位英文" /> '
+'<div class="col-md-3 col-sm-7"><input class="form-control" type="text" name="info[' + index + '][organization]" placeholder="单位" /></div>' + '<input type="text" name="info[' + index + '][order]" placeholder="排序" /> '
+'<div class="col-md-3 col-sm-6"><input class="form-control" type="text" name="info[' + index + '][organization_en]" placeholder="单位英文" /></div>' + '<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>'
+'<div class="col-md-1"><label class="control-label"><a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a></label></div>' + '</div></div>';
+'</div></div></div>';
now_index = null; now_index = null;
index = null; index = null;
$('.infocontrol').last().after(html); $('.infocontrol').last().after(html);
} }
function RmInput(e){ function RmInput(e){
$e = $(e); $e = $(e);
$e.parent().parent().parent().parent().parent('div.infocontrol').remove(); $e.parent('div').parent('div.infocontrol').remove();
} }
</script> </script>
<!-- //页面内容 --> <!-- //页面内容 -->

View File

@ -1,34 +1,35 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('DOI');
$this->breadcrumb('DOI'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
// $this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
?> ?>
<div class="row"> <style>
<div class="hidden-sm hidden-xs col-md-2"> table thead tr th {background:#EBF2F6;}
</style>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12 span10"> <div class="span10">
<div class="form-group"> <div>
<ul class="nav nav-tabs" role="tablist"> <ul class="nav nav-tabs">
<li class="active"><a href="/admin/data/doi">浏览所有</a></li> <li class="active"><a href="/admin/data/doi">浏览所有</a></li>
</ul> </ul>
</div> </div>
<div class="input-group form-group"> <div>
<form id="datasearch" class="search_form input-group" action=""> <div class="input-append">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" /> <form id="datasearch" class="search_form" action="">
<span class="input-group-btn"><button class="btn btn-default" type="submit" id="search_btn">搜索</button></span> <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form> </form>
</div>
</div> </div>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?= $this->error ?> <?= $this->error ?>
<?php } ?> <?php } ?>
@ -37,7 +38,7 @@
<?php } else{ ?> <?php } else{ ?>
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<table class="stylized table table-bordered table-striped table-hover"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>状态</th> <th>状态</th>
@ -57,10 +58,10 @@
<td> <td>
<a href="/admin/data/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a> <a href="/admin/data/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
<a href="/admin/data/doi/ac/convert/uuid/<?= $item['uuid']?>">导出</a> <a href="/admin/data/doi/ac/convert/uuid/<?= $item['uuid']?>">导出</a>
<a href="javascript:void(0);" rel="/admin/data/doi/ac/verified/uuid/<?= $item['uuid']?>" class="verified_btn">验证</a> <a href="javascript:void(0);" rel="/admin/data/doi/ac/verified/uuid/<?= $item['uuid']?>" class="verified_btn">验证</a>
<?php if(empty($item['ts_published'])) {?> <?php if(empty($item['ts_published'])) {?>
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a> <a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
<?php } ?> <?php } ?>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>

View File

@ -9,12 +9,12 @@
$this->breadcrumb('特色推荐管理</a>'); $this->breadcrumb('特色推荐管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>

View File

@ -9,12 +9,12 @@
$this->breadcrumb('特色推荐管理</a>'); $this->breadcrumb('特色推荐管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>

View File

@ -2,83 +2,90 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); //$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('支持项目'); $this->breadcrumb('支持项目');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
?> ?>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?> <div>
<?php if(!empty($this->error)) { ?> <ul class="nav nav-tabs">
<div class="alert alert-block alert-error fade in" id="Alert-error-box"> <li><a href="/admin/data/fund/ac/datalist">数据相关</a></li>
<a class="close" data-dismiss="alert" href="#">×</a> <li><a href="/admin/data/fund/">所有项目</a></li>
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?> <li class="active"><a href="/admin/data/fund/ac/add">添加新项目</a></li>
<ul>
<?php foreach($this->error as $v) { ?>
<li><?= $v ?></li>
<?php } ?>
</ul> </ul>
</div>
<div class="">
<?php if(!empty($this->error)) { ?>
<div class="alert alert-block alert-error fade in" id="Alert-error-box">
<a class="close" data-dismiss="alert" href="#">×</a>
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
<ul>
<?php foreach($this->error as $v) { ?>
<li><?= $v ?></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<div class="alert <?= $this->AlertType;?>">
<a data-dismiss="alert" class="close">×</a>
<?php echo $this->msg ?>
</div>
<?php if(!empty($this->jump_url)) { ?>
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
<?php } ?>
<?php } else{ ?>
<form class="form-horizontal" method="post">
<div class="control-group">
<label class="control-label" for="title">项目名称</label>
<div class="controls">
<input type="text" id="title" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="fund_id">编号</label>
<div class="controls">
<input type="text" id="fund_id" name="fund_id" value="<?= isset($this->data['fund_id']) ? $this->data['fund_id']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="fund_type">类型</label>
<div class="controls">
<input type="text" id="fund_type" name="fund_type" value="<?= isset($this->data['fund_type']) ? $this->data['fund_type']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="title_en">英文名称</label>
<div class="controls">
<input type="text" id="title_en" name="title_en" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="fund_type_en">英文类型</label>
<div class="controls">
<input type="text" id="fund_type_en" name="fund_type_en" value="<?= isset($this->data['fund_type_en']) ? $this->data['fund_type_en']:"" ?>" />
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="hidden" name="submit" value="1" />
<?php if(!empty($this->id)) { ?>
<input type="hidden" name="id" value=" <?=$this->id?> " />
<?php } ?>
<button type="submit" class="btn btn-primary">提交</button>
</div>
</div>
</form>
<?php } ?> <?php } ?>
</div> </div>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<div class="alert <?= $this->AlertType;?>">
<a data-dismiss="alert" class="close">×</a>
<?php echo $this->msg ?>
</div>
<?php if(!empty($this->jump_url)) { ?>
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
<?php } ?>
<?php } else{ ?>
<p></p>
<form class="form-horizontal" method="post">
<div class="form-group">
<label class="col-sm-2 control-label" for="title">项目名称</label>
<div class="col-sm-6">
<input class="form-control" placeholder="项目名称" type="text" id="title" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="fund_id">编号</label>
<div class="col-sm-6">
<input class="form-control" placeholder="编号" type="text" id="fund_id" name="fund_id" value="<?= isset($this->data['fund_id']) ? $this->data['fund_id']:"" ?>" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="fund_type">类型</label>
<div class="col-sm-6">
<input class="form-control" placeholder="类型" type="text" id="fund_type" name="fund_type" value="<?= isset($this->data['fund_type']) ? $this->data['fund_type']:"" ?>" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="title_en">英文名称</label>
<div class="col-sm-6">
<input class="form-control" placeholder="英文名称" type="text" id="title_en" name="title_en" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="fund_type_en">英文类型</label>
<div class="col-sm-6">
<input class="form-control" placeholder="英文类型" type="text" id="fund_type_en" name="fund_type_en" value="<?= isset($this->data['fund_type_en']) ? $this->data['fund_type_en']:"" ?>" />
</div>
</div>
<div class="form-group">
<div class="col-sm-8">
<input type="hidden" name="submit" value="1" />
<?php if(!empty($this->id)) { ?>
<input type="hidden" name="id" value=" <?=$this->id?> " />
<?php } ?>
<button type="submit" class="btn btn-primary pull-right">提交</button>
</div>
</div>
</form>
<?php } ?>
</div> </div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->

View File

@ -1,108 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('项目管理');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendModel($this,'admin-data-fund');
?>
<style>
table thead tr th {background:#EBF2F6;}
</style>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<div>
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
</div>
<div>
<h3><?php echo $this->md['title']; ?> <a href="/data/<?php echo $this->uuid; ?>">查看</a></h3>
<div class="input-append">
<form id="datasearch" class="search_form" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
<button type="submit" class="btn" id="search_btn">搜索项目(数据外搜索,可以添加到数据)</button>
</form>
</div>
</div>
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<div id="datalist">
<?php if (count($this->paginator)): ?>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目名称
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>编号
<a href="?order=fund_id&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_id&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>类型
<a href="?order=fund_type&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文标题
<a href="?order=title_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文类型
<a href="?order=fund_type_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th></th>
<th width="60">操作</th>
</tr>
</thead>
<tbody>
<?php
if($this->page > 1)
{
$autoindex = ($this->page - 1) * $this->pagelimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item):
$autoindex++;?>
<tr id="DataLine_<?= $item['mfid']?>">
<td>
[<?= $autoindex ?>]&nbsp;
<?= $item['title'] ?> <a href="/admin/data/fund/ac/add/id/<?= $item['id']?>">项目编辑</a>
<a href="/admin/data/fund/ac/data/id/<?= $item['id'] ?>">数据</a>
</td>
<td><?= $item['fund_id'] ?></td>
<td><?= $item['fund_type'] ?></td>
<td><?= $item['title_en'] ?></td>
<td><?= $item['fund_type_en'] ?></td>
<td><?= $item['place'] ?></td>
<td>
<a href="javascript:void(0);" onclick="$('#mdfund')[0].reset();mdfund.edit(<?= $item['mfid']?>,<?= $item['id']?>,'<?= $this->uuid ?>',<?= $item['place']?>)">编辑</a>
<a href="/admin/data/fund/ac/remove/id/<?= $item['mfid']?>">移除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<?php } ?>
</div>
</div>
<!-- //页面内容 -->
<?= $this->partial('data/fund-mdfund-form.phtml'); ?>

View File

@ -1,33 +1,48 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/author.css');
// $this->headLink()->appendStylesheet('/css/author.css'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12 span10"> <div class="span10">
<div class=" form-group"> <div>
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?> <ul class="nav nav-tabs">
<li class="active"><a href="/admin/data/fund/ac/data">数据相关</a></li>
<li><a href="/admin/data/fund/">所有项目</a></li>
<li><a href="/admin/data/fund/ac/add">添加新项目</a></li>
</ul>
</div> </div>
<?php if(!empty($this->md)) { ?>
<div class="input-group form-group"> <div>
<form id="datasearch" class="search_form input-group" action=""> <?php if(empty($this->ct)) { ?>
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" /> <a class="btn btn-primary pull-right" href="/author/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>"><i class="icon-plus"></i>为此数据添加项目</a>
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <?php }else{ ?>
<a class="pull-right btn" href="/author/fund/uuid/<?= $this->md['uuid'] ?>">返回</a>
<div class="pull-right label label-info">点击“添加此项目”即可将项目添加到元数据</div>
<?php } ?>
<h3><?= $this->md['title'] ?>》 的支持项目</h3>
<hr />
</div>
<?php } ?>
<div>
<div class="input-append">
<form id="datasearch" class="search_form" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form> </form>
</div> </div>
</div>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?php if(empty($this->AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> <?php if(empty($this->AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?>
<div class="alert alert-block fade in <?= $AlertType ?>" id="Alert-error-box"> <div class="alert alert-block fade in <?= $AlertType ?>" id="Alert-error-box">
@ -53,59 +68,33 @@ table thead tr th {background:#EBF2F6;}
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>项目名称 <th>名称</th>
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <th>项目编号</th>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a> <th>项目类型</th>
</th> <th>数据个数</th>
<th>编号 <th width="70">操作</th>
<a href="?order=fund_id&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_id&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>类型
<a href="?order=fund_type&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文标题
<a href="?order=title_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文类型
<a href="?order=fund_type_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th></th>
<th width="100">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php $autoindex=0;
if($this->page > 1)
{
$autoindex = ($this->page - 1) * $this->pagelimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item): foreach ($this->paginator as $item):
$autoindex++;?> $autoindex++;?>
<?php if(empty($this->md)) { ?>
<tr id="DataLine_<?= $item['id']?>">
<?php }else{?>
<tr id="DataLine_<?= $item['mfid']?>"> <tr id="DataLine_<?= $item['mfid']?>">
<td> <?php }?>
[<?= $autoindex ?>]&nbsp; <td><?= $item['title'] ?></td>
<?= $item['title'] ?> <td><?= $item['fund_id'] ?></td>
</td>
<td><?= $item['fund_id'] ?></td>
<td><?= $item['fund_type'] ?></td> <td><?= $item['fund_type'] ?></td>
<td><?= $item['title_en'] ?></td> <th><?= $item['mds'] ?></th>
<td><?= $item['fund_type_en'] ?></td>
<td><?= $item['mdcount'] ?></td>
<td> <td>
<a href="/admin/data/fund/ac/data/id/<?= $item['id'] ?>">数据</a> <a href="/data/fund/ac/dataview/id/<?= $item['id'] ?>">查看数据</a>
<a href="/admin/data/fund/ac/add/id/<?= $item['id']?>">编辑</a>
<a href="/admin/data/fund/ac/delete/id/<?= $item['id']?>">删除</a>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
</table> </table>
<?php endif; ?> <?php endif; ?>
@ -114,4 +103,11 @@ table thead tr th {background:#EBF2F6;}
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script>
var info = {
btn_prefix : "delbtn_",
item_prefix : "DataLine_",
url : "/author/fund/ac/mdfunddel/uuid/<?= $this->md['uuid'] ?>"
}
</script>

View File

@ -1,108 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('项目管理');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendModel($this,'admin-data-fund');
?>
<style>
table thead tr th {background:#EBF2F6;}
</style>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2 span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12 span10">
<div>
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
</div>
<div>
<h3><?php echo $this->md['title']; ?> <a href="/data/<?php echo $this->uuid; ?>">查看</a></h3>
<div class="input-append">
<form id="datasearch" class="search_form" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
<button type="submit" class="btn" id="search_btn">搜索项目(数据外搜索,可以添加到数据)</button>
</form>
</div>
</div>
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<div id="datalist">
<?php if (count($this->paginator)): ?>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>项目名称
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>编号
<a href="?order=fund_id&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_id&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>类型
<a href="?order=fund_type&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文标题
<a href="?order=title_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文类型
<a href="?order=fund_type_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th></th>
<th width="60">操作</th>
</tr>
</thead>
<tbody>
<?php
if($this->page > 1)
{
$autoindex = ($this->page - 1) * $this->pagelimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item):
$autoindex++;?>
<tr id="DataLine_<?= $item['mfid']?>">
<td>
[<?= $autoindex ?>]&nbsp;
<?= $item['title'] ?> <a href="/admin/data/fund/ac/add/id/<?= $item['id']?>">项目编辑</a>
<a href="/admin/data/fund/ac/data/id/<?= $item['id'] ?>">数据</a>
</td>
<td><?= $item['fund_id'] ?></td>
<td><?= $item['fund_type'] ?></td>
<td><?= $item['title_en'] ?></td>
<td><?= $item['fund_type_en'] ?></td>
<td><?= $item['place'] ?></td>
<td>
<a href="javascript:void(0);" onclick="$('#mdfund')[0].reset();mdfund.edit('<?= $item['mfid'] ?>',<?= $item['id']?>,'<?= $this->uuid ?>','<?= $item['place']?>')"><?= ($item['mfid'])?'编辑':'添加' ?></a>
<a href="/admin/data/fund/ac/remove/id/<?= $item['mfid']?>">移除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<?php } ?>
</div>
</div>
<!-- //页面内容 -->
<?= $this->partial('data/fund-mdfund-form.phtml'); ?>

View File

@ -4,9 +4,7 @@ $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>'); $this->breadcrumb('<a href="/author">数据作者</a>');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('申请成为元数据作者'); $this->breadcrumb('申请成为元数据作者');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
@ -15,8 +13,8 @@ $this->theme->AppendPlus($this,'admin_plugin');
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2 span2"> <div class="span3">
<?= $this->partial('author/navi.phtml'); ?> <?= $this->partial('author/navi.phtml'); ?>
</div> </div>
<div class="span9"> <div class="span9">

View File

@ -1,26 +1,28 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('项目管理'); $this->breadcrumb('支持项目');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendModel($this,'admin-data-fund');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?> <ul class="nav nav-tabs">
<li><a href="/admin/data/fund/">所有项目</a></li>
<li><a href="/admin/data/fund/ac/add">添加新项目</a></li>
<li class="active"><a href="/admin/data/fund/ac/data/id/<?= $this->id ?>">相关数据</a></li>
</ul>
</div> </div>
<div> <div>
<div class="input-append"> <div class="input-append">
@ -33,7 +35,7 @@ table thead tr th {background:#EBF2F6;}
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?= $this->error ?> <?= $this->error ?>
<?php } ?> <?php } ?>
<h3><?= $this->info['title'] ?> [<?= $this->info['fund_id'] ?>]</h3> <h3><?= $this->info['title'] ?> 的相关数据</h3>
<hr /> <hr />
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
@ -41,18 +43,21 @@ table thead tr th {background:#EBF2F6;}
<thead> <thead>
<tr> <tr>
<th>名称</th> <th>名称</th>
<th width="100">操作</th> <th width="70">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php $autoindex=0; <?php $autoindex=0;
foreach ($this->paginator as $item): foreach ($this->paginator as $item):
$autoindex++;?> $autoindex++;?>
<?php if(empty($this->md)) { ?>
<tr id="DataLine_<?= $item['id']?>"> <tr id="DataLine_<?= $item['id']?>">
<td>[<?= $autoindex ?>]&nbsp;<a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td> <?php }else{?>
<tr id="DataLine_<?= $item['mfid']?>">
<?php }?>
<td><?= $item['title'] ?></td>
<td> <td>
<a href="/admin/data/fund/uuid/<?= $item['uuid'] ?>">其他项目</a> <a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
<a href="/admin/data/fund/ac/remove/id/<?= $item['mfid']?>">移除</a>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
@ -63,4 +68,11 @@ table thead tr th {background:#EBF2F6;}
</div> </div>
</div> </div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script>
var info = {
btn_prefix : "delbtn_",
item_prefix : "DataLine_",
url : "/admin/data/fund/ac/mdfunddel/"
}
</script>

View File

@ -1,44 +0,0 @@
<!-- Modal -->
<div class="modal fade" id="mdfund-form" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">数据和项目的关联</h4>
</div>
<div class="modal-body">
<form id="mdfund" method="post" class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label" for="inputRefid">项目ID</label>
<div class="col-sm-8">
<input type="text" name="fid" id="inputfid" placeholder="项目ID" class="form-control" value="<?= empty($this->fid) ? "":$this->fid ?>" >
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="inputUuid">元数据UUID</label>
<div class="col-sm-8">
<input type="text" name="uuid" id="inputUuid" placeholder="UUID" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="inputPlace">排序数值(数字)</label>
<div class="col-sm-8">
<input type="text" name="place" id="inputPlace" placeholder="排序" class="form-control">
</div>
</div>
<input type="hidden" name="id" value="" />
</form>
</div>
<div class="modal-footer">
<div class="progress progress-striped active" id="submit-loading" style="display:none;">
<div class="bar" style="width:100%;"></div>
</div>
<button onclick="$('#mdfund')[0].reset();" class="btn">重置</button>
<button onclick="$('#mdfund-form').modal('hide');" class="btn">关闭</button>
<button onclick="mdfund.create()" class="btn btn-primary" id="submit_btn">保存</button>
</div>
</div>
</div>
</div>

View File

@ -1,12 +0,0 @@
<ul class="nav nav-tabs">
<?php if (!empty($this->uuid)) : ?>
<li class="active"><a href="/admin/data/fund/uuid/<?= $this->uuid ?>">数据的项目</a></li>
<?php endif; ?>
<li <?= empty($this->ac) && empty($this->uuid) ? 'class="active"':"" ?>><a href="/admin/data/fund">所有项目</a></li>
<li <?= $this->ac=="datalist" ? 'class="active"':"" ?>><a href="/admin/data/fund/ac/datalist">数据相关的项目</a></li>
<li <?= $this->ac=="nodata" ? 'class="active"':"" ?>><a href="/admin/data/fund/ac/nodata">数据不相关的项目</a></li>
<li <?= $this->ac=="add" ? 'class="active"':"" ?>><a href="/admin/data/fund/ac/add">添加新项目</a></li>
<?php if ($this->ac=='data') : ?>
<li class="active"><a href="#">项目相关的数据</a></li>
<?php endif; ?>
</ul>

View File

@ -1,100 +1,139 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('支持项目');
$this->breadcrumb('项目管理'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendModel($this,'admin-data-fund');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12 span10"> <div class="span10">
<div class="form-group">
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
</div>
<div> <div>
<div class="input-group form-group"> <ul class="nav nav-tabs">
<form id="datasearch" class="search_form input-group" action=""> <li><a href="/admin/data/fund/ac/datalist">数据相关</a></li>
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字" /> <li <?php if(empty($this->md)) { ?>class="active"<?php } ?>><a href="/admin/data/fund/">所有项目</a></li>
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" /> <li><a href="/admin/data/fund/ac/add">添加新项目</a></li>
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" /> <?php if(!empty($this->md)) { ?>
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <li class="active"><a href="/admin/data/fund/">按数据查看</a></li>
<?php } ?>
</ul>
</div>
<?php if(!empty($this->md)) { ?>
<div>
<?php if(empty($this->ct)) { ?>
<a class="btn btn-primary pull-right" href="/admin/data/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>"><i class="icon-plus"></i>为此数据添加项目</a>
<?php }else{ ?>
<a class="pull-right btn" href="/admin/data/fund/uuid/<?= $this->md['uuid'] ?>">返回</a>
<div class="pull-right label label-info">点击“添加此项目”即可将项目添加到元数据</div>
<?php } ?>
<h3><?= $this->md['title'] ?>》 的支持项目</h3>
<hr />
</div>
<?php } ?>
<div>
<div class="input-append">
<form id="datasearch" class="search_form" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form> </form>
</div> </div>
</div> </div>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?= $this->error ?> <?php if(empty($this->AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?>
<div class="alert alert-block fade in <?= $AlertType ?>" id="Alert-error-box">
<a class="close" data-dismiss="alert" href="#">×</a>
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
<ul>
<?php foreach($this->error as $v) { ?>
<li><?= $v ?></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?> <?php } ?>
<?php if(!empty($this->msg)) { ?> <?php if(!empty($this->msg)) { ?>
<?= $this->msg ?> <div class="alert <?= $this->AlertType;?>">
<a data-dismiss="alert" class="close">×</a>
<?php echo $this->msg ?>
</div>
<?php if(!empty($this->jump_url)) { ?>
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
<?php } ?>
<?php } else{ ?> <?php } else{ ?>
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<table class="stylized table table-bordered table-striped table-hover"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>项目名称 <th>名称</th>
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <th>编号</th>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a> <th>类型</th>
</th> <?php if($this->md) { ?>
<th>编号 <th width="80">排序</th>
<a href="?order=fund_id&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <?php }else{ ?>
<a href="?order=fund_id&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a> <th>英文标题</th>
</th> <th>英文类型</th>
<th>类型 <?php } ?>
<a href="?order=fund_type&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <?php if($this->ct) { ?>
<a href="?order=fund_type&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a> <th>添加</th>
</th> <?php } ?>
<th>英文标题 <th width="100">操作</th>
<a href="?order=title_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>英文类型
<a href="?order=fund_type_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=fund_type_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th width="110">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php $autoindex=0;
if($this->page > 1)
{
$autoindex = ($this->page - 1) * $this->pagelimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item): foreach ($this->paginator as $item):
$autoindex++;?> $autoindex++;?>
<?php if(empty($this->md)) { ?>
<tr id="DataLine_<?= $item['id']?>">
<?php }else{?>
<tr id="DataLine_<?= $item['mfid']?>"> <tr id="DataLine_<?= $item['mfid']?>">
<td> <?php }?>
[<?= $autoindex ?>]&nbsp; <td><?= $item['title'] ?></td>
<?= $item['title'] ?> <td><?= $item['fund_id'] ?></td>
</td>
<td><?= $item['fund_id'] ?></td>
<td><?= $item['fund_type'] ?></td> <td><?= $item['fund_type'] ?></td>
<td><?= $item['title_en'] ?></td> <?php if($this->md) { ?>
<td><?= $item['fund_type_en'] ?></td> <?php if($this->ct) { ?>
<td><input type="text" name="order" id="order_<?= $item['id']?>" class="span12" /></td>
<?php }else{ ?>
<td><input type="text" name="order" id="order_<?= $item['mfid']?>" class="span12" value="<?= $item['place'] ?>" /></td>
<?php }?>
<?php }else{ ?>
<td><?= $item['title_en'] ?></td>
<td><?= $item['fund_type_en'] ?></td>
<?php } ?>
<?php if($this->ct) { ?>
<td><a href="javascript:void(0);" class="addtomd" rel="<?= $item['id']?>">添加此项目</a></td>
<?php } ?>
<td> <td>
<a href="/admin/data/fund/ac/add/id/<?= $item['id']?>">编辑</a> <?php if(empty($this->md)) { ?>
<a href="/admin/data/fund/ac/data/id/<?= $item['id'] ?>">数据</a>(<a href="javascript:void(0);" onclick="$('#mdfund')[0].reset();mdfund.edit('',<?= $item['id']?>,'',0,0)">+</a>) <a href="/admin/data/fund/ac/data/id/<?= $item['id']?>">数据</a>
<a href="/admin/data/fund/ac/delete/id/<?= $item['id']?>">删除</a> <a href="/admin/data/fund/ac/edit/id/<?= $item['id']?>">编辑</a>
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
<?php }else{ ?>
<?php if(empty($this->ct)) { ?><a href="javascript:void(0);" class="changeorder" rel="<?= $item['mfid']?>">排序</a> <?php } ?>
<a href="javascript:void(0);" onclick="onedel(<?= $item['mfid']?>)" id="delbtn_<?= $item['mfid']?>">移除</a>
<?php } ?>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
</table> </table>
<?php else: ?>
<?php if(!empty($this->md)) { ?>
暂无数据,点击标题右侧添加按钮为此数据添加项目
<?php }else{ ?>
暂无数据
<?php } ?>
<?php endif; ?> <?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
@ -102,4 +141,35 @@ table thead tr th {background:#EBF2F6;}
</div> </div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<?= $this->partial('data/fund-mdfund-form.phtml'); ?> <script>
<?php if(!empty($this->ct)) { ?>
$('.addtomd').each(function(index, element) {
$(this).click(function(){
id = $(this).attr('rel');
order = $('#order_'+id).val();
self.location='/admin/data/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>/id/'+id+'/order/'+ order
});
});
<?php }else{ ?>
$('.changeorder').each(function(index, element) {
$(this).click(function(){
id = $(this).attr('rel');
order = $('#order_'+id).val();
self.location='/admin/data/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>/mfid/'+id+'/order/'+ order
});
});
<?php } ?>
<?php if(empty($this->md)) { ?>
var info = {
btn_prefix : "delbtn_",
item_prefix : "DataLine_",
url : "/admin/data/fund/ac/del"
}
<?php }else{ ?>
var info = {
btn_prefix : "delbtn_",
item_prefix : "DataLine_",
url : "/admin/data/fund/ac/mdfunddel/uuid/<?= $this->md['uuid'] ?>"
}
<?php } ?>
</script>

View File

@ -9,10 +9,10 @@
$this->breadcrumb('上传元数据</a>'); $this->breadcrumb('上传元数据</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<form enctype="multipart/form-data" method="POST"> <form enctype="multipart/form-data" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field --> <!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" /> <input type="hidden" name="MAX_FILE_SIZE" value="3000000" />

View File

@ -2,18 +2,87 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('数据管理'); $this->breadcrumb('数据管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$Theme = new Theme;
$Theme->AppendPlus($this,'highstock');
?> ?>
<div class="row" > <div class="row-fluid">
<div class="hidden-sm col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<h3>数据管理</h3> <h2>元数据管理 <small>概况</small></h2>
<hr /> <hr />
</div>
</div> <ul class="unstyled">
<li>元数据总条数:<?= $this->total ?></li>
<li>待评审的元数据:<a href="/admin/review/accept"><?= $this->review_accept ?></a></li>
<li>已评审的元数据:<a href="/admin/review/reviewed"><?= $this->review_finish ?></a></li>
<li>可视化数据:<a href="/admin/data/visual"><?= $this->visual ?></a></li>
</ul>
<div id="container">
</div>
</div>
</div>
<script>
$(function () {
Highcharts.setOptions({
lang: {
months : [ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
//months : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
weekdays: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']
}
});
$('#container').highcharts('StockChart', {
title : {
text : '元数据数量增加情况'
},
rangeSelector : {
selected : 1,
inputEnabled: $('#container').width() > 480
},
credits : {
enabled : false
},
tooltip : {
dateTimeLabelFormats :{
day:"%A, %b %e, %Y-%m-%d",
}
},
xAxis : {
dateTimeLabelFormats : {
day:"%Y/%m/%d",
}
}
});
var chart = $('#container').highcharts();
$.ajax({
'url': '?time=<?= time() ?>',
'data': '',
'method': 'GET',
'dataType': 'json',
'success': function(data){
chart.addSeries({
name: "元数据个数",
data: data,
type : 'line'
});
},
'timeout': 30000,
'global' : true
});
});
</script>

View File

@ -1,30 +1,13 @@
<div class="well"> <div class="well" style="padding:8px 0">
<ul class="nav nav-stacked"> <ul class="nav nav-list">
<li class="nav-header text-muted"><h4>数据管理</h4></li> <li class="nav-header"><h4>数据管理</h4></li>
<li class="nav-divider"></li> <li class="divider"></li>
<li id="Nav-data-md"><a href="/admin/data/md">元数据管理</a></li> <li><a href="/admin/data/md">元数据管理</a></li>
<li id="Nav-data-newdata"><a href="/admin/data/newdata">新建元数据</a></li> <li><a href="/admin/data/author">数据作者管理</a></li>
<li id="Nav-data-author"><a href="/admin/data/author">数据作者管理</a></li> <li><a href="/admin/data/version">数据版本管理</a></li>
<li id="Nav-data-version"><a href="/admin/data/version">数据版本管理</a></li> <li><a href="/admin/data/comment">数据反馈管理</a></li>
<li id="Nav-data-comment"><a href="/admin/data/comment">数据反馈管理</a></li> <li><a href="/admin/data/attachments">数据附件管理</a></li>
<!-- <li><a href="/admin/data/visual">数据可视化管理</a></li>
<li><a href="/admin/data/reference">数据文献管理</a></li> <li><a href="/admin/data/dataimport">数据入库处理</a></li>
--> </ul>
<li id="Nav-data-ref"><a href="/admin/data/ref">文献管理</a></li>
<li id="Nav-data-attachments"><a href="/admin/data/attachments">数据附件管理</a></li>
<!--
<li><a href="/admin/data/import">上传元数据文件</a></li>
<li><a href="/admin/data/batchimport">导入服务器元数据目录</a></li>
<li><a href="/admin/data/datafileimport">导入数据目录</a></li>
<li><a href="/admin/data/sync">同步GeoNetwork元数据</a></li>
<li><a href="/admin/data/datasetcd">特色数据集管理</a></li>
<li><a href="/admin/data/newsletter">数据中心通讯管理</a></li>
<li><a href="/admin/data/feature">特色推荐</a></li>
-->
<li id="Nav-data-source"><a href="/admin/data/source">专题管理</a></li>
<li id="Nav-data-project"><a href="/admin/data/project">汇交计划</a></li>
<li id="Nav-data-fund"><a href="/admin/data/fund">支持项目</a></li>
<li id="Nav-data-doi"><a href="/admin/data/doi">DOI</a></li>
<li id="Nav-data-spatial"><a href="/admin/data/spatial">数据时空范围</a></li>
</ul>
</div> </div>

View File

@ -24,16 +24,10 @@
{?> {?>
<p>主机:<br /><input type="text" id="host" name="host" value="<?= $this->dataset['host']?>" class="full" /></p> <p>主机:<br /><input type="text" id="host" name="host" value="<?= $this->dataset['host']?>" class="full" /></p>
<p>路径:<br /><input type="text" id="path" name="path" value="<?= $this->dataset['path']?>" class="full" /></p> <p>路径:<br /><input type="text" id="path" name="path" value="<?= $this->dataset['path']?>" class="full" /></p>
<p>语言:<br /><input type="radio" name="lang" value="" <?php if ($this->dataset['lang']=='') echo 'checked="checked"'; ?> /> 不限制语言
<input type="radio" name="lang" value="cn" <?php if ($this->dataset['lang']=='cn') echo 'checked="checked"'; ?> /> 中文
<input type="radio" name="lang" value="en" <?php if ($this->dataset['lang']=='en') echo 'checked="checked"'; ?> /> 英文 </p>
<p><button type="button" class="btn btn-green" onclick="updateDataSet()">修改</button></p> <p><button type="button" class="btn btn-green" onclick="updateDataSet()">修改</button></p>
<?php }else{ ?> <?php }else{ ?>
<p>主机:<br /><input type="text" id="host" name="host" value="" class="full" /></p> <p>主机:<br /><input type="text" id="host" name="host" value="" class="full" /></p>
<p>路径:<br /><input type="text" id="path" name="path" value="" class="full" /></p> <p>路径:<br /><input type="text" id="path" name="path" value="" class="full" /></p>
<p>语言:<br /><input type="radio" name="lang" value="" /> 不限制语言
<input type="radio" name="lang" value="cn" /> 中文
<input type="radio" name="lang" value="en" /> 英文 </p>
<p><button type="button" class="btn btn-green" onclick="addDataSet()">添加</button></p> <p><button type="button" class="btn btn-green" onclick="addDataSet()">添加</button></p>
<?php } ?> <?php } ?>
</div> </div>
@ -46,7 +40,7 @@ function updateDataSet(){
$.ajax({ $.ajax({
'type':"POST", 'type':"POST",
'url':'/admin/data/dataset', 'url':'/admin/data/dataset',
'data':'ac=update&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val()+'&lang='+$("input[type='radio'][name='lang']:checked").val(), 'data':'ac=update&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val(),
'success':function(data){ 'success':function(data){
if (typeof(data)=='object') if (typeof(data)=='object')
{ {
@ -72,7 +66,7 @@ function addDataSet(){
$.ajax({ $.ajax({
'type':"POST", 'type':"POST",
'url':'/admin/data/dataset', 'url':'/admin/data/dataset',
'data':'ac=add&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val()+'&lang='+$("input[type='radio'][name='lang']:checked").val(), 'data':'ac=add&uuid=<?= $this->uuid ?>&host='+$('#host').val()+'&path='+$('#path').val(),
'success':function(data){ 'success':function(data){
if (typeof(data)=='object') if (typeof(data)=='object')
{ {

View File

@ -1,101 +1,125 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('元数据管理</a>');
$this->breadcrumb('元数据管理</a>'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
//$this->theme->AppendPlus($this,'colorbox'); ?>
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js'); <div class="row-fluid">
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css'); <div class="span2">
?> <?= $this->partial('data/left.phtml'); ?>
<div class="row"> </div>
<div class="hidden-sm hidden-xs col-md-2"> <div class="span10">
<?= $this->partial('data/left.phtml'); ?>
</div> <h3>元数据管理</h3>
<div class="col-md-10 col-sm-12"> <hr />
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg) : ?> <div id="message">
<p><?php echo $this->msg; ?></p> <?php if ($this->msg) : ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endforeach;endif; ?> <p><?php echo $msg; ?></p>
</div> <?php endforeach;endif; ?>
<?php endif; ?> </div>
<?php endif; ?>
<!-- <div class="right_title">元数据管理</div> -->
<div class="search" style="overflow:hidden;">
<div class="input-group form-group"> <div class="span6">
<form action="" method="get" class="search_form input-group"> <form action="" method="get" class="form-search">
<input class="form-control" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字" /> <div class="input-append">
<input type="hidden" name="search" value="1"/> <input type="hidden" name="search" value='1' />
<span class="input-group-btn"><button class="btn btn-default" value="搜索">搜索</button></span> <input class="span12" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
</form> <button type="submit" class="btn">搜索</button>
</div><!-- search DIV --> </div>
<p><a href="/admin/data/md/down/1">下载全部xml元数据</a></p> </form>
<?php if (count($this->paginator)): ?> </div>
<div class="datalist"> <div class="span6 text-right">
<ul class="list-unstyled"> <a href="/admin/data/md/down/1">下载全部xml元数据</a>
<?php foreach ($this->paginator as $item): ?> </div>
<li class="well well-sm"> </div><!-- search DIV -->
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p> <?php if (count($this->paginator)): ?>
<?php if(isset($item['heihe_fund_title']) && !empty($item['heihe_fund_title'])) { ?><p>计划内项目: <?= $item['heihe_fund_title'] ?></p><?php } ?> <div class="datalist">
<p> <ul class="unstyled">
操作: <?php foreach ($this->paginator as $item): ?>
<?php if ($item['gid']>0) : ?> <li class="well well-small">
<a class="label label-primary" href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> <h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<?php endif; ?> <p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p>
<a class="label label-danger" href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> <?php if($item['author']) :?>
<!-- <a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> --> <p>数据贡献者:<?= $item['author']; ?></p>
<a class="label label-primary" href="/admin/data/ref/uuid/<?php echo $item['uuid'];?>">文献管理</a> <?php endif;?>
<a class="label label-primary" href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> <p class="content"><?= $item['description']; ?></p>
<a class="label label-primary" href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> <p>
<a class="label label-primary" href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> 操作:
<a class="label label-primary" href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> <a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
<?php if (@!is_numeric($item['mdstatus'])) : ?> <a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
<a class="label label-primary" href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> <a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
<?php endif; ?> <a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
<a class="label label-primary" href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">数据来源</a> <a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
<?php if(!empty($item['datasetid'])):?> <a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> |
<a class="label label-primary iframe" href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>">数据路径</a> <?php if (@!is_numeric($item['mdstatus'])) : ?>
<a class="label label-primary iframe" href="/admin/data/dataset/ac/import/uuid/<?php echo $item['uuid'];?>" class="iframe">重新导入数据目录</a> <a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> |
<?php else: ?> <?php endif; ?>
<a class="label label-primary iframe" href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>">设置数据路径</a> <?php if(!empty($item['datasetid'])):?>
<?php endif;?> <a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">数据路径</a> |
<a class="label label-primary" href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> <a href="/admin/data/dataset/ac/import/uuid/<?php echo $item['uuid'];?>" class="iframe">重新导入数据目录</a> |
<a class="label label-primary" href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> <?php else: ?>
<a class="label label-primary" href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a> <a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">设置数据路径</a> |
<?php if ($item['datatype']==1 && ($item['mdstatus']==5 || $item['mdstatus']==6)) :?> <?php endif;?>
<a class="label label-primary iframe" href="/admin/data/author/ac/delegate/uuid/<?php echo $item['uuid'];?>">委托数据中心管理</a> <a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
<?php endif; ?> <a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
<?php if (!isset($item['genid']) || !$item['genid']>0) : ?> <a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a> |
<a class="label label-primary iframe" href="/admin/data/gnenexport/uuid/<?php echo $item['uuid'];?>">导入英文版</a> <a href="javascript:void(0);" onclick="getFtp('<?= $item['uuid'] ?>')">FTP数据管理</a>
<?php endif; ?> </p>
<?php if (!isset($item['stid']) || !$item['stid']>0) : ?> </li>
<a class="label label-primary" href="/admin/data/spatial/ac/edit/uuid/<?php echo $item['uuid']; ?>">数据时空范围采集</a> <?php endforeach; ?>
<?php endif; ?> </ul>
</p> </div>
<?php if($item['author']) :?> <?php endif; ?>
<p>数据贡献者:<?= $item['author']; ?></p> <?php echo $this->paginator; ?>
<?php endif;?> </div>
<p class="content"><?= $item['description']; ?></p> </div>
</li> <script>
<?php endforeach; ?> $(".iframe").colorbox({iframe:true, width:"50%", height:"50%"});
</ul> $(".inline").colorbox({inline:true, width:"50%"});
</div> function Alert(html){
<?php endif; ?> $.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
<?php echo $this->paginator; ?> }
</div> function getFtp(uuid){
</div> $.ajax({
<script> 'type':"POST",
$(".iframe").colorbox({ iframe: true, width: "50%", height: "50%" }); 'url':'/admin/data/ftp/uuid/'+uuid,
$(".inline").colorbox({ inline: true, width: "50%" }); 'data':'',
function Alert(html) { 'success':function(data){
$.colorbox({ 'innerWidth': '50%', 'html': '<h4 style="font-size:16px;font-weight:bold;">' + html + '</h4>' }); if (typeof(data)=='object')
} {
if(typeof(data.error)!='undefined')
{Alert(data.error);return false;}
if(typeof(data.statu)!='undefined')
{
if(data.statu > 0)
{
var html = '<p>临时FTP帐号信息<b>(此帐号仅对应当前数据集!)</b></p><p>ftp://ftp.sanjiangyuan.org.cn/</p>'+
'<p>用户名:'+data.user+
'</p><p>密码:'+data.passwd+'</p>'
+'<p><a href="ftp://'+data.user+':'+data.passwd+'@ftp.sanjiangyuan.org.cn/">或直接点击此链接</a></p>';
Alert(html);
}
}
}
else{
Alert('出现错误,请稍候再试</h4>');
}
},
'timeout': 30000,
'error': function(){
Alert('处理中出现错误,请刷新页面后重试</h4>');
}
});
}
</script> </script>

View File

@ -1,61 +1,63 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('新建元数据'); $this->breadcrumb('新建元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row">
<!-- 左侧导航 --> <!-- 左侧导航 -->
<div class="hidden-sm hidden-xs col-md-2"> <div id='leftPanel'>
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<!-- //左侧导航 --> <!-- //左侧导航 -->
<!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <!-- 页面内容 -->
<div class="form-group"> <div id="rightPanel">
<a class="btn btn-primary btn-sm" href="/admin/data/newdata">未提交数据列表</a> <div id="tabs-controller">
<a class="btn btn-primary btn-sm" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a> <ul>
<a class="btn btn-primary btn-sm" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a> <li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata">未提交数据列表</a></li>
<a class="btn btn-primary btn-sm" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a> <li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
</div> <li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a></li>
<div id="datalist" class="input-group form-group"> <li class="box-shadow active"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
<h2>根据已有数据创建元数据</h2> </ul>
<form id="datasearch" class="search_form input-group" action="/admin/data/newdata/ac/add-by-data"> </div>
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字"/>
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <div id="datalist">
</form> <h2>根据已有数据创建元数据</h2>
<?php <form id="datasearch" class="search_form" action="/admin/data/newdata/ac/add-by-data">
if (count($this->paginator)): <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
echo "<ul class=list-unstyled>"; <button type="submit" class="btn" id="search_btn">搜索</button>
$autoindex=0; </form>
foreach ($this->paginator as $item): <?php
$autoindex++; if (count($this->paginator)):
?> echo "<ul>";
<li> $autoindex=0;
<p><span class="title"><?php echo $item['title'];?></span> foreach ($this->paginator as $item):
<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>">以此为模板新建</a> $autoindex++;
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a></p> ?>
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p> <li>
</li> <p><span class="title"><?php echo $item['title'];?></span>
<?php <a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>">以此为模板新建</a>
endforeach; | <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a></p>
echo "</ul>"; <p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
endif; ?> </li>
</div> <?php
<div class="pagenavi"><?= $this->paginator; ?></div> endforeach;
</div> echo "</ul>";
endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$('#wapper').width($('body').width()-300); $('#wapper').width($('body').width()-300);
</script> </script>

View File

@ -1,62 +1,64 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('新建元数据'); $this->breadcrumb('新建元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<!-- 左侧导航 --> <!-- 左侧导航 -->
<div class="row"> <div id='leftPanel'>
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <!-- //左侧导航 -->
<!-- //左侧导航 -->
<!-- 页面内容 --> <!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<div class="form-group"> <div id="tabs-controller">
<a class="btn btn-primary btn-sm" href="/admin/data/newdata">未提交数据列表</a> <ul>
<a class="btn btn-primary btn-sm" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a> <li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata">未提交数据列表</a></li>
<a class="btn btn-primary btn-sm" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a> <li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
<a class="btn btn-primary btn-sm" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a> <li class="box-shadow active"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a></li>
</div> <li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
<div id="datalist" class="input-group form-group"> </ul>
<h2>根据预制元数据模板创建数据</h2> </div>
<form id="datasearch" class="search_form input-group" action="/admin/data/newdata/ac/add-by-template">
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字"/> <div id="datalist">
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <h2>根据预制元数据模板创建数据</h2>
</form> <form id="datasearch" class="search_form" action="/admin/data/newdata/ac/add-by-template">
<?php <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
if (count($this->paginator)): <button type="submit" class="btn" id="search_btn">搜索</button>
echo "<ul class=list-unstyled>"; </form>
$autoindex=0; <?php
foreach ($this->paginator as $item): if (count($this->paginator)):
$autoindex++; echo "<ul>";
?> $autoindex=0;
<li> foreach ($this->paginator as $item):
<p><span class="title"><?php echo $item['title'];?></span> $autoindex++;
<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank">以此为模板新建</a> ?>
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id'];?>" target="_blank">修改此模板</a> <li>
| <a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id'];?>" target="_blank">查看此模板</a> <p><span class="title"><?php echo $item['title'];?></span>
</p> <a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank">以此为模板新建</a>
</li> | <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id'];?>" target="_blank">修改此模板</a>
<?php | <a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id'];?>" target="_blank">查看此模板</a>
endforeach; </p>
echo "</ul>"; </li>
endif; ?> <?php
</div> endforeach;
<div class="pagenavi"><?= $this->paginator; ?></div> echo "</ul>";
</div> endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$('#wapper').width($('body').width()-300); $('#wapper').width($('body').width()-300);
</script> </script>

View File

@ -1,64 +1,65 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('新建元数据'); $this->breadcrumb('新建元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <!-- 左侧导航 -->
<!-- 左侧导航 --> <div id='leftPanel'>
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <!-- //左侧导航 -->
<!-- //左侧导航 -->
<!-- 页面内容 --> <!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<div class="form-group"> <div id="tabs-controller">
<a class="btn btn-primary btn-sm" href="/admin/data/newdata">未提交数据列表</a> <ul>
<a class="btn btn-primary btn-sm" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a> <li class="box-shadow active"><a class="text-shadow" href="/admin/data/newdata">未提交数据列表</a></li>
<a class="btn btn-primary btn-sm" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a> <li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
<a class="btn btn-primary btn-sm" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a> <li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a></li>
</div> <li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
<div id="datalistZ"> </ul>
<?php </div>
if (count($this->paginator)):
echo "<ul class=list-unstyled>"; <div id="datalist">
$autoindex=0; <?php
foreach ($this->paginator as $item): if (count($this->paginator)):
$autoindex++; echo "<ul>";
?> $autoindex=0;
<li class="well well-sm"> foreach ($this->paginator as $item):
<h4><?php echo $item['title'];?><small>&nbsp;<?php echo $item['username'];?>( <?php echo $item['realname'];?> ) </small></h4> $autoindex++;
<a class="label label-info" href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>" target="_blank"><span class="glyphicon glyphicon-zoom-in"></span>&nbsp;在geonetwork里查看</a> ?>
<a class="label label-primary" href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>" target="_blank"><span class="glyphicon glyphicon-pencil"></span>&nbsp;在geonetwork里修改</a> <li>
<a class="label label-danger" href="/service/geonetwork?url=metadata.delete?id=<?php echo $item['id']; ?>" target="_blank"><span class="glyphicon glyphicon-remove"></span>&nbsp;删除此条数据</a> <p><?php echo $item['username'];?>(<?php echo $item['realname'];?>) <span class="title"><?php echo $item['title'];?></span>
<a class="label label-primary" onclick="validate(<?php echo $item['id'];?>);" class="more inline"><span class="glyphicon glyphicon-search"></span>&nbsp;检查元数据错误</a> <a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里查看</a>
<a class="label label-success more inline" onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" ><span class="glyphicon glyphicon-ok"></span>&nbsp;提交评审发布</a> | <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里修改</a>
<span class="text-primary"> &nbsp;版本数:<?= $item['version_count'] ?></span> | <a href="/service/geonetwork?url=metadata.delete?id=<?php echo $item['id']; ?>" target="_blank">删除此条数据</a>
| <a onclick="validate(<?php echo $item['id'];?>);" class="more inline">检查元数据错误</a>
</li> | <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
<?php </p>
endforeach; </li>
echo "</ul>"; <?php
else : endforeach;
echo "<p>您当前没有未提交的数据。</p>"; echo "</ul>";
endif; ?> else :
</div> echo "<p>您当前没有未提交的数据。</p>";
<div class="pagenavi"><?= $this->paginator; ?></div> endif; ?>
</div> </div>
</div> <div class="pagenavi"><?= $this->paginator; ?></div>
<!-- //页面内容 --> </div>
<script> <!-- //页面内容 -->
$('#wapper').width($('body').width()-300); <script>
$('#wapper').width($('body').width()-300);
function action(ac,id){ function action(ac,id){
$.ajax({ $.ajax({
'type':"POST", 'type':"POST",
@ -84,7 +85,7 @@ function action(ac,id){
} }
}); });
} }
$(".inline").colorbox({inline:true, width:"50%", height:"50%"}); $(".inline").colorbox({inline:true, width:"50%"});
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
function commit(id){ function commit(id){
action('commit&changelog='+$('#changelog').val(),id); action('commit&changelog='+$('#changelog').val(),id);
@ -98,10 +99,10 @@ function validate(id){
<form> <form>
<p> <p>
<label>简要功能:</label><br /> <label>简要功能:</label><br />
<textarea rows="12" class="full" style="width:100%;" id="changelog"></textarea> <textarea class="full" style="resize:none;height:200px;" id="changelog"></textarea>
<br /><small>请输入此数据的简要功能和特色</small> <br /><small>请输入此数据的简要功能和特色</small>
</p> </p>
<input type="button" onclick="" id="commit_submit" class="btn btn-success pull-right" value="提交"/> <input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
</form> </form>
</div> </div>
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div> <div class="error"><img src="/images/alert_big_error.png" /><span></span></div>

View File

@ -9,32 +9,32 @@
$this->breadcrumb('数据通讯管理</a>'); $this->breadcrumb('数据通讯管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?> 数据通讯上传格式要求PDF文件名称为newsletter_N.pdf格式其中N为数字代表第几期。
数据通讯上传格式要求PDF文件名称为newsletter_N.pdf格式其中N为数字代表第几期。 <?= $this->form; ?>
<?= $this->form; ?> <?php
<?php foreach ($this->newsletters as $nl){
foreach ($this->newsletters as $nl){ $name=basename($nl,'.pdf');
$name=basename($nl,'.pdf'); list(,$num)=explode("_",$name);
list(,$num)=explode("_",$name); ?>
?> <div class="newsletter">
<div class="newsletter">
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank"> <a href="/images/newsletter/<?php echo $nl; ?>" target="_blank">
<img src="/images/newsletter/<?php echo $name; ?>.jpg" /></a><br /> <img src="/images/newsletter/<?php echo $name; ?>.jpg" /></a><br />
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank"><?php echo $num;?>期数据通讯</a> <a href="/images/newsletter/<?php echo $nl; ?>" target="_blank"><?php echo $num;?>期数据通讯</a>
</div> </div>
<?php } ?> <?php } ?>
</div>
</div> </div>

View File

@ -1,77 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/heihe">黑河数据集</a>');
$this->breadcrumb('黑河数据集');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->headLink()->appendStylesheet('/css/author.css');
?>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<h2>统计信息</h2>
<hr />
<h4>数据:</h4>
<p>项目个数:<?= $this->projectsCount ?></p>
<p>数据条数:<?= $this->dataCount ?></p>
<p>总数据量:<?= round($this->dataFileSize / 1024 , 2) . 'GB' ?></p>
<p>文件个数:<a href="javascript:void(0);" id="fileCount">点击查看</a></p>
<p>服务次数(人/次)<a href="/admin/data/project/ac/userdown"><?= $this->applyTimes ?></a></p>
<p>服务次数(人/合并次,单个用户多次申请算作一次服务) <?= $this->applyTimesDistanct ?></p>
<p>服务次数(数据条/次)<?= $this->dataApplyTimes ?></p>
<h4>项目服务情况<small>(数据中心所有数据向计划内项目提供的服务)</small></h4>
<p>为黑河计划项目服务的次数-离线:<?= $this->offlineServiceTimes ?></p>
<p>为黑河计划项目服务的数据量-离线:<?= round($this->offlineServiceSize,2) ?>GB</p>
<p>为黑河计划项目服务的次数-在线:<?= $this->onlineServiceTimes ?></p>
<p>为黑河计划项目服务的数据量-在线:<?= round($this->onlineServiceSize ,2) ?>GB</p>
<p>为黑河计划项目服务的次数-总数:<?= $this->onlineServiceTimes + $this->offlineServiceTimes ?></p>
<p>为黑河计划项目服务的数据量-总数:<?= round($this->onlineServiceSize + $this->offlineServiceSize ,2)?>GB</p>
<p>服务计划内项目个数-离线:<?= $this->offlineServiceProjects ?></p>
<p>服务计划内项目个数-在线:<?= $this->onlineServiceProjects ?></p>
<p>服务计划内项目个数-综合(在线离线合并)<?= $this->allServiceProjects ?></p>
<h3>选择项目进行统计</h3>
<form method="get">
<div class="form-group">
<?php foreach($this->projects as $v) { ?>
<label class="checkbox-inline" title="<?= $v['title'] ?>">
<input type="checkbox" name="fund_id[]" value="<?= $v['code'] ?>" <?= (is_array($this->funds) && in_array($v['code'],$this->funds)) ? "checked":'' ?> title="<?= $v['title'] ?>" /><?= $v['code'] ?>
</label>
<?php }?>
</div>
<button type="submit" name="submit" value="1" class="btn btn-success">重新统计</button>
</form>
</div>
</div>
<?php $query = isset($_GET) && count($_GET) ? "?".http_build_query($_GET) :"" ; ?>
<script>
$('#fileCount').click(function(){
$.ajax({
'type': "POST",
'url': "<?= $query ?>",
'data': '',
'success': function(data){
$('#fileCount').after(data);
$('#fileCount').remove();
},
'beforeSend':function(){
$('#fileCount').html('正在加载...');
}
})
});
</script>

View File

@ -1,89 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('黑河数据集');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'jquery');
// $this->theme->AppendPlus($this,'colorbox');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
?>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if(!empty($this->searchLink)){ ?>
<div class="input-group form-group">
<form id="datasearch" class="search_form input-group" action="<?= $this->searchLink ?>">
<input class="form-control" type="text" id="keyword" name="q" value="<?= $this->searchKeyword; ?>" placeholder="搜索关键字" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
</form>
</div>
<?php }?>
<div class="">
<a href="/admin/data/project/ac/status" class="btn btn-info">统计</a>
<a href="/admin/data/project/ac/datas" class="btn btn-info">计划内的数据</a>
<a href="/admin/data/project/ac/download" class="btn btn-info">计划内的下载纪录</a>
</div>
<h5>
<?= $this->Count; ?> 条记录
</h5>
<div id="datalistZ">
<?php if (count($this->paginator)): ?>
<table class="table">
<thead>
<th>用户ID</th>
<th>用户名</th>
<th>姓名</th>
<th>下载次数</th>
</thead>
<tbody>
<?php
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;
?>
<tr>
<td><?= $item['id'] ?></td>
<td><?= $item['username'] ?></td>
<td><?= $item['realname'] ?></td>
<td><?= $item['c'] ?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<div style="display:none;">
<div id="confirm_dialog" class="cbox_content">
<div class="sepH_c tac"><strong>状态修改</strong></div>
<div id="cbox_dialog_content" class="sepH_c ">
<select id="status_selector" style="width:300px;" name="" class="form-control">
<?php
foreach($this->project_status as $k=>$v)
{
echo '<option value="'.$k.'">'.$v.'</option>';
}
?>
</select>
</div>
<div class="tac pull-right" id="cbox_ctl_btns">
<a href="javascript:void(0);" class="btn btn-success btn-sm" id="confirm_yes"
onclick="changeStatusAction($('#status_selector').attr('name'),$('#status_selector').val());">确定</a>
<a href="javascript:void(0);" class="btn btn-danger btn-sm" id="confirm_no" onclick="$.colorbox.close();">取消</a>
</div>
</div>
</div>
</div>

View File

@ -2,102 +2,86 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('黑河数据集'); $this->breadcrumb('黑河数据集');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'jquery'); $this->theme->AppendPlus($this,'jquery');
// $this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
<div id="rightPanel">
<?php if(!empty($this->searchLink)){ ?>
<div>
<form id="datasearch" class="search_form" action="<?= $this->searchLink ?>">
<input type="text" id="keyword" name="q" value="<?= $this->searchKeyword; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div> </div>
<div class="col-md-10 col-sm-12"> <?php }?>
<?php if(!empty($this->searchLink)){ ?> <div>
<div class="input-group form-group"> <?= $this->Count; ?> 条记录
<form id="datasearch" class="search_form input-group" action="<?= $this->searchLink ?>"> </div>
<input class="form-control" type="text" id="keyword" name="q" value="<?= $this->searchKeyword; ?>" placeholder="搜索关键字" /> <div id="datalist">
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <?php
</form> if (count($this->paginator)):
</div> echo "<ul>";
<?php }?> $autoindex=0;
<div class=""> foreach ($this->paginator as $item):
<a href="/admin/data/project/ac/status" class="btn btn-info">统计</a> $autoindex++;
<a href="/admin/data/project/ac/datas" class="btn btn-info">计划内的数据</a> ?>
<a href="/admin/data/project/ac/userdown" class="btn btn-info">计划内的下载纪录</a> <li>
<p><span class="title"><?php echo $item['title'];?></span></p>
<p>编号:<?= $item['code'];?> | 负责人:<?= $item['name'];?> | 开始时间:<?= $item['pstart'];?> |
 状态:<span id="status_alias_<?= $item['id']?>"><?= $item['status_alias'];?></span></p>
<p>
<a href="javascript:void(0);" onclick="$('#inviteFrom_<?= $item['id'];?>').toggle();">邀请跟踪专家</a> | 
<a class="iframe" href="/admin/data/project/ac/showexpert/id/<?= $item['id'];?>">查看跟踪专家</a> | 
<a href="/admin/data/project/ac/upload/pid/<?= $item['id']?>" class="iframe">上传计划</a> | 
<a href="javascript:void(0);" onclick="changeStatus(<?= $item['id'];?>,<?= $item['status']?>)">状态修改</a>
<?php if(!empty($item['attachid'])) { ?>
 | <a href="/service/attach/id/<?= $item['attachid'];?>">下载</a>
<?php } ?>
</p>
<p id="inviteFrom_<?= $item['id'];?>" style="display:none;">
<input type="text" id="expert_name_<?= $item['id'];?>" value="<?= $this->input_NameDefaultVal ?>"
onfocus="if(this.value=='<?= $this->input_NameDefaultVal ?>'){this.value=''}" onblur="if(this.value==''){this.value='<?= $this->input_NameDefaultVal ?>'}" />
<input type="text" id="expert_email_<?= $item['id'];?>" value="<?= $this->input_EmailDefaultVal ?>"
onfocus="if(this.value=='<?= $this->input_EmailDefaultVal ?>'){this.value=''}" onblur="if(this.value==''){this.value='<?= $this->input_EmailDefaultVal ?>'}" />
<button type="button" class="btn btn-green" onclick="invite(<?= $item['id'];?>)" id="inviteBtn_<?= $item['id'];?>">邀请</button>
</p>
</li>
<?php
endforeach;
echo "</ul>";
endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<div style="display:none;">
<div id="confirm_dialog" class="cbox_content">
<div class="sepH_c tac"><strong>状态修改</strong></div>
<div id="cbox_dialog_content" class="sepH_c">
<select id="status_selector" style="width:300px;" name="">
<?php
foreach($this->project_status as $k=>$v)
{
echo '<option value="'.$k.'">'.$v.'</option>';
}
?>
</select>
</div> </div>
<h5> <div class="tac" id="cbox_ctl_btns">
<?= $this->Count; ?> 条记录 <a href="javascript:void(0);" class="btn btn-green" id="confirm_yes"
</h5> onclick="changeStatusAction($('#status_selector').attr('name'),$('#status_selector').val());">OK</a>
<div id="datalistZ"> <a href="javascript:void(0);" class="btn" id="confirm_no" onclick="$.colorbox.close();">Cancel</a>
<?php </div>
if (count($this->paginator)): </div>
echo "<ul class=list-unstyled>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;
?>
<li class="well well-sm">
<h3><span class="title"><?php echo $item['title'];?></span></h3>
<p class="text-muted">
编号:<?= $item['code'];?>&nbsp;&nbsp;|&nbsp;&nbsp;
负责人:<?= $item['name'];?>&nbsp;&nbsp;|&nbsp;&nbsp;
开始时间:<?= $item['pstart'];?>&nbsp;&nbsp;|&nbsp;&nbsp;
<span id="status_alias_<?= $item['id']?>" <?php if ($item['status'] == 3) echo 'class="glyphicon glyphicon-ok text-success"'; else echo 'class="glyphicon glyphicon-pencil text-warning"'; ?> >状态:<?= $item['status_alias'];?></span>
</p>
<p>
<a href="javascript:void(0);" onclick="$('#inviteFrom_<?= $item['id'];?>').toggle();">邀请跟踪专家</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a class="iframe" href="/admin/data/project/ac/showexpert/id/<?= $item['id'];?>">查看跟踪专家</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="/admin/data/project/ac/upload/pid/<?= $item['id']?>" class="iframe">上传计划</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="javascript:void(0);" onclick="changeStatus(<?= $item['id'];?>,<?= $item['status']?>)">状态修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<?php if(!empty($item['attachid'])) { ?>
<a href="/service/attach/id/<?= $item['attachid'];?>">下载</a>
<?php } ?>
</p>
<div id="inviteFrom_<?= $item['id'];?>" style="display:none;" class="form-inline">
<input class="form-control" type="text" id="expert_name_<?= $item['id'];?>" value="<?= $this->input_NameDefaultVal ?>"
onfocus="if(this.value=='<?= $this->input_NameDefaultVal ?>'){this.value=''}" onblur="if(this.value==''){this.value='<?= $this->input_NameDefaultVal ?>'}" />
<input class="form-control" type="text" id="expert_email_<?= $item['id'];?>" value="<?= $this->input_EmailDefaultVal ?>"
onfocus="if(this.value=='<?= $this->input_EmailDefaultVal ?>'){this.value=''}" onblur="if(this.value==''){this.value='<?= $this->input_EmailDefaultVal ?>'}" />
<button type="button " class="btn btn-primary" onclick="invite(<?= $item['id'];?>)" id="inviteBtn_<?= $item['id'];?>">邀请</button>
</div>
</li>
<?php
endforeach;
echo "</ul>";
endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<div style="display:none;">
<div id="confirm_dialog" class="cbox_content">
<div class="sepH_c tac"><strong>状态修改</strong></div>
<div id="cbox_dialog_content" class="sepH_c ">
<select id="status_selector" style="width:300px;" name="" class="form-control">
<?php
foreach($this->project_status as $k=>$v)
{
echo '<option value="'.$k.'">'.$v.'</option>';
}
?>
</select>
</div>
<div class="tac pull-right" id="cbox_ctl_btns">
<a href="javascript:void(0);" class="btn btn-success btn-sm" id="confirm_yes"
onclick="changeStatusAction($('#status_selector').attr('name'),$('#status_selector').val());">确定</a>
<a href="javascript:void(0);" class="btn btn-danger btn-sm" id="confirm_no" onclick="$.colorbox.close();">取消</a>
</div>
</div>
</div>
</div> </div>
<script> <script>
function changeStatus(project,status) function changeStatus(project,status)
@ -167,5 +151,5 @@ function invite(id){
function Alert(html){ function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'}); $.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
} }
$(".iframe").colorbox({iframe:true, width:"50%", height:"50%"}); $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
</script> </script>

View File

@ -1,203 +1,198 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('文献管理');
$this->breadcrumb('文献管理'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,"uploadify");
$this->theme->AppendPlus($this,"uploadify"); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th { background: #EBF2F6; } table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?= $this->error ?> <?= $this->error ?>
<?php } ?> <?php } ?>
<?php if(!empty($this->msg)) { ?> <?php if(!empty($this->msg)) { ?>
<?= $this->msg ?> <?= $this->msg ?>
<?php } else{ ?> <?php } else{ ?>
<form class="form-horizontal" method="post" class="form-horizontal"> <form class="form-horizontal" method="post">
<div class="col-md-8"> <div class="control-group">
<p></p> <label class="control-label" for="inputTitle">文章标题</label>
<div class="form-group"> <div class="controls">
<label class="col-md-2 col-sm-2 control-label" for="inputTitle">文章标题</label> <input type="text" name="title" id="inputTitle" class="input-block-level" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>">
<div class="col-md-10 col-sm-10">
<input type="text" name="title" id="inputTitle" class="form-control" value="<?= isset($this->data['title']) ? $this->data['title']:" " ?>">
</div>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputYear">出版年份</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputYear">出版年份</label>
<input class="form-control" type="text" name="year" id="inputYear" value="<?= isset($this->data['year']) ? $this->data['year']:" " ?>"> <div class="controls">
<select class="span2"> <input type="text" name="year" id="inputYear" value="<?= isset($this->data['year']) ? $this->data['year']:"" ?>">
<?php for($i=2000;$i<=(int)date("Y");$i++) {?> <select class="span2">
<option value="<?= $i ?>" onclick="$('#inputYear').val(this.value)"><?= $i ?></option> <?php for($i=2000;$i<=(int)date("Y");$i++) {?>
<?php } ?> <option value="<?= $i ?>" onclick="$('#inputYear').val(this.value)"><?= $i ?></option>
</select> <?php } ?>
</div> </select>
</div> </div>
</div>
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="inputYear">出版社/期刊</label> <label class="control-label" for="inputYear">出版社/期刊</label>
<div class="col-md-10 col-sm-10"> <div class="controls">
<input type="text" name="publisher" id="inputYear" class="form-control" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:" " ?>"> <input type="text" name="publisher" id="inputYear" class="input-block-level" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>">
</div>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputReference">引用方式(前台显示)</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputReference">引用方式(前台显示)</label>
<textarea name="reference" id="inputReference" class="form-control"><?= isset($this->data['reference']) ? $this->data['reference']:"" ?></textarea> <div class="controls">
</div> <textarea name="reference" id="inputReference" class="input-block-level"><?= isset($this->data['reference']) ? $this->data['reference']:"" ?></textarea>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputLink">链接(自动填写请留空)</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputLink">链接(自动填写请留空)</label>
<input type="text" name="link" id="inputLink" class="form-control" value="<?= isset($this->data['link']) ? $this->data['link']:" " ?>" /> <div class="controls">
</div> <input type="text" name="link" id="inputLink" class="input-block-level" value="<?= isset($this->data['link']) ? $this->data['link']:"" ?>"/>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputType">类型</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputType">类型</label>
<input type="text" name="type" id="inputType" class="form-control" value="<?= isset($this->data['type']) ? $this->data['type']:" " ?>"> <div class="controls">
</div> <input type="text" name="type" id="inputType" class="input-block-level" value="<?= isset($this->data['type']) ? $this->data['type']:"" ?>">
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputLanguage">语言</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputLanguage">语言</label>
<input type="text" name="language" id="inputLanguage" class="form-control" value="<?= isset($this->data['language']) ? $this->data['language']:" " ?>"> <div class="controls">
</div> <input type="text" name="language" id="inputLanguage" class="input-block-level" value="<?= isset($this->data['language']) ? $this->data['language']:"" ?>">
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputDoi">DOI</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputDoi">DOI</label>
<input type="text" name="doi" id="inputDoi" class="form-control" value="<?= isset($this->data['doi']) ? $this->data['doi']:" " ?>"> <div class="controls">
</div> <input type="text" name="doi" id="inputDoi" class="input-block-level" value="<?= isset($this->data['doi']) ? $this->data['doi']:"" ?>">
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputBibtex">ris</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputBibtex">ris</label>
<textarea name="ris" id="inputBibtex" class="form-control"><?= isset($this->data['ris']) ? $this->data['ris']:"" ?></textarea> <div class="controls">
</div> <textarea name="ris" id="inputBibtex" class="input-block-level"><?= isset($this->data['ris']) ? $this->data['ris']:"" ?></textarea>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputAbstract">摘要</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputAbstract">摘要</label>
<textarea name="abstract" id="inputAbstract" class="form-control"><?= isset($this->data['abstract']) ? $this->data['abstract']:"" ?></textarea> <div class="controls">
</div> <textarea name="abstract" id="inputAbstract" class="input-block-level"><?= isset($this->data['abstract']) ? $this->data['abstract']:"" ?></textarea>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputNote">备注</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputNote">备注</label>
<textarea name="note" id="inputNote" class="form-control"><?= isset($this->data['note']) ? $this->data['note']:"" ?></textarea> <div class="controls">
</div> <textarea name="note" id="inputNote" class="input-block-level"><?= isset($this->data['note']) ? $this->data['note']:"" ?></textarea>
</div> </div>
<div class="form-group"> </div>
<label class="col-md-2 col-sm-2 control-label" for="inputPDF">PDF</label> <div class="control-group">
<div class="col-md-10 col-sm-10"> <label class="control-label" for="inputPDF">PDF</label>
<input type="file" name="Filedata" id="file_upload" /> <div class="controls">
<div id="uploadedFile"></div> <input type="file" name="Filedata" id="file_upload" />
</div> <div id="uploadedFile"></div>
</div> </div>
<div class="form-group"> </div>
<div class="col-md-2 col-sm-2"></div> <div class="form-actions">
<div class="col-md-5 col-sm-5"> <input type="hidden" name="submit" value="1" />
<input type="hidden" name="submit" value="1" /> <button type="submit" class="btn btn-primary">Save changes</button>
<button type="submit" class="btn btn-primary">保存</button> <button type="reset" class="btn">Cancel</button>
<button type="reset" class="btn btn-default">取消</button> </div>
</div> </form>
</div>
</div>
</form>
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>
$(document).ready(function (e) { $(document).ready(function(e) {
$('#btn-add-author').click(function (e) { $('#btn-add-author').click(function(e) {
html = ''; html = '';
$('#author_inputs').append(''); $('#author_inputs').append('');
});
}); });
var _this = { });
SessionID: '<?php echo session_id(); ?>' var _this = {
}; SessionID : '<?php echo session_id(); ?>'
var uploader; };
var param; var uploader;
param = { var param;
"PHPSESSID": _this.SessionID, param = {
}; "PHPSESSID" : _this.SessionID,
$(function () { };
$('#file_upload').uploadify({ $(function() {
'swf': '/js/lib/uploadify/uploadify.swf', $('#file_upload').uploadify({
'uploader': '/admin/data/ref/ac/pdfupload', 'swf' : '/js/lib/uploadify/uploadify.swf',
'multi': false, 'uploader' : '/admin/data/ref/ac/pdfupload',
'auto': true, 'multi' : false,
'fileTypeExts': '*.pdf;*.caj', 'auto' : true,
'onUploadSuccess': function (file, data, response) { 'fileTypeExts' : '*.pdf',
upload.onsuccess(file, data, response); 'onUploadSuccess' : function(file, data, response) {
}, upload.onsuccess(file, data, response);
'onUploadStart': function (file) { },
$('#file_upload').uploadify('settings', 'formData', param); 'onUploadStart' : function(file) {
} $('#file_upload').uploadify('settings','formData',param);
}); }
}); });
});
var upload = { var upload = {
onsuccess: function (file, data, response) { onsuccess : function(file, data, response){
_data = $.parseJSON(data); _data = $.parseJSON(data);
if (!$.isEmptyObject(_data.error)) { if(!$.isEmptyObject(_data.error))
alert(_data.error); {
} else { alert(_data.error);
$('#uploadedFile').html(upload.makeFileHtml(_data)); }else{
} $('#uploadedFile').html(upload.makeFileHtml(_data));
}, }
makeFileHtml: function (data) { },
return '<div class="alert alert-success">' makeFileHtml : function(data){
+ '<button type="button" class="close" data-dismiss="alert" onclick="upload.deleteFile(' + data.id + ')"><i class="icon-trash icon-white"></i></button>' return '<div class="alert alert-success">'
+ data.realname +'<button type="button" class="close" data-dismiss="alert" onclick="upload.deleteFile('+data.id+')"><i class="icon-trash icon-white"></i></button>'
+ '<input type="hidden" name="attid" value="' + data.id + '"></input>' + data.realname
+ '</div>'; +'<input type="hidden" name="attid" value="'+data.id+'"></input>'
}, +'</div>';
deleteFile: function (id) { },
$.ajax({ deleteFile : function(id){
'type': "POST", $.ajax({
'url': '/admin/data/ref/ac/delete', 'type':"POST",
'data': 'attid=' + id, 'url':'/admin/data/ref/ac/delete',
'success': function (data) { 'data':'attid=' + id,
if (typeof (data) == 'undefined') { 'success':function(data){
alert("数据源错误,请联系管理员"); if(typeof(data) == 'undefined')
return false; {
} alert("数据源错误,请联系管理员");
return false;
if (!$.isEmptyObject(data.error)) { }
alert(data.error);
return false; if(!$.isEmptyObject(data.error))
} {
}, alert(data.error);
'timeout': 30000, return false;
'error': function () { }
alert('附件删除出错'); },
} 'timeout': 30000,
}); 'error': function(){
} alert('附件删除出错');
}; }
});
}
};
</script> </script>
<?php if(isset($this->data['attid']) && !empty($this->data['attid'])){ ?> <?php if(isset($this->data['attid']) && !empty($this->data['attid'])){ ?>
<input type="hidden" id="reference_file_content" value='<?= json_encode($this->data['file']) ?>' /> <input type="hidden" id="reference_file_content" value='<?= json_encode($this->data['file']) ?>' />
<script> <script>
upload.onsuccess('', $('#reference_file_content').val(), ""); upload.onsuccess('',$('#reference_file_content').val(),"");
</script> </script>
<?php } ?> <?php } ?>

View File

@ -1,119 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendModel($this,'admin-data-ref');
?>
<style>
table thead tr th { background: #EBF2F6; }
</style>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
</div>
<div>
<h3><?php echo $this->md['title']; ?> <a href="/data/<?php echo $this->uuid; ?>">查看</a></h3>
<div class="input-append row">
<form id="datasearch" class="navbar-form" action="">
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
<button type="submit" class="btn btn-default" id="search_btn">搜索文献(数据外搜索,可以添加到数据)</button>
</form>
</div>
</div>
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<?php if($this->ac == 'westdc'){ ?>
<button type="button" class="btn btn-primary" onclick="$('#mdref')[0].reset();mdref.edit('','','e31f5ea7-a4af-4ae3-9ac1-1a84132c4338',0,0)">添加数据中心文献</button>
<?php } ?>
<?php if(!empty($this->years)) { ?>
<?php foreach($this->years as $k=>$v){ ?>
<a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
<?php } ?>
<?php } ?>
<div id="datalist">
<?php if (count($this->paginator)): ?>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>
标题
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
年份
<a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>
创建
<a href="?order=ts_created&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=ts_created&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th>类型</th>
<th></th>
<th width="40">操作</th>
</tr>
</thead>
<tbody>
<?php
if($this->page > 1)
{
$autoindex = ($this->page - 1) * $this->pagelimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item):
$autoindex++;?>
<tr id="DataLine_<?= $item['id']?>">
<td>
[<?= $autoindex ?>]&nbsp;
<?php if ($item['ris']) :
echo $item['reference'];
else :
?>
{<?php $authors = $this->reference->getAuthorByReference($item['id'],true); echo count($authors) ? join(",",$authors):'<font color="#CC0000">未知作者</font>'; ?>}&nbsp;
{<?= empty($item['title']) ? '<font color="#CC0000">未知标题</font>':$item['title'] ?>}&nbsp;
{<?= empty($item['publisher']) ? '<font color="#CC0000">未知期刊</font>':$item['publisher'] ?>}&nbsp;
{<?= empty($item['year']) ? '<font color="#CC0000">未知年份</font>':$item['year'] ?>}&nbsp;
<?php endif; ?>
<a href="/admin/data/ref/ac/singleris/id/<?= $item['id'] ?>">RIS编辑</a>
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>
</td>
<td><?= date("Y-m-d",strtotime($item['ts_created'])) ?></td>
<td><?= $this->referenceType[$item['reftype']] ?></td>
<td><?= $item['place'] ?></td>
<td>
<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit(<?= $item['mrid']?>,<?= $item['id']?>,'<?= $this->uuid; ?>',<?= $item['reftype']?>,<?= $item['place']?>)">编辑</a>
<a href="/admin/data/ref/ac/deletemdref/mrid/<?= $item['mrid']?>">移除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<?php } ?>
</div>
</div>
<!-- //页面内容 -->
<?= $this->partial('data/ref-mdref-form.phtml',array('referenceType'=>$this->referenceType)); ?>

View File

@ -1,124 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendModel($this,'admin-data-ref');
?>
<style>
table thead tr th { background: #EBF2F6; }
</style>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
</div>
<div>
<h3><?php echo $this->md['title']; ?> <a href="/data/<?php echo $this->uuid; ?>">查看</a></h3>
<div class="input-append row">
<form id="datasearch" class="navbar-form" action="">
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
<button type="submit" class="btn btn-default" id="search_btn">搜索文献(数据外搜索,可以添加到数据)</button>
</form>
</div>
</div>
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<?php if($this->ac == 'westdc'){ ?>
<button type="button" class="btn btn-success" onclick="$('#mdref')[0].reset();mdref.edit('','','e31f5ea7-a4af-4ae3-9ac1-1a84132c4338',0,0)">添加数据中心文献</button>
<?php } ?>
<?php if(!empty($this->years)) { ?>
<?php foreach($this->years as $k=>$v){ ?>
<a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
<?php } ?>
<?php } ?>
<div id="datalist">
<?php if (count($this->paginator)): ?>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>
标题
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>">
<i class="icon-arrow-up"></i></a>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>">
<i class="icon-arrow-down"></i></a>
年份
<a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>">
<i class="icon-arrow-up"></i></a>
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>">
<i class="icon-arrow-down"></i></a>
记录创建
<a href="?order=ts_created&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>">
<i class="icon-arrow-up"></i></a>
<a href="?order=ts_created&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>">
<i class="icon-arrow-down"></i></a>
</th>
<th>类型</th>
<th></th>
<th width="70">操作</th>
</tr>
</thead>
<tbody>
<?php
if($this->page > 1)
{
$autoindex = ($this->page - 1) * $this->pagelimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item):
$autoindex++;?>
<tr id="DataLine_<?= $item['id']?>">
<td>
[<?= $autoindex ?>]&nbsp;
<?php if ($item['ris']) :
echo $item['reference'];
else :
?>
{<?php $authors = $this->reference->getAuthorByReference($item['id'],true); echo count($authors) ? join(",",$authors):'<font color="#CC0000">未知作者</font>'; ?>}&nbsp;
{<?= empty($item['title']) ? '<font color="#CC0000">未知标题</font>':$item['title'] ?>}&nbsp;
{<?= empty($item['publisher']) ? '<font color="#CC0000">未知期刊</font>':$item['publisher'] ?>}&nbsp;
{<?= empty($item['year']) ? '<font color="#CC0000">未知年份</font>':$item['year'] ?>}&nbsp;
<?php endif; ?>
<a href="/admin/data/ref/ac/singleris/id/<?= $item['id'] ?>">RIS编辑</a>
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>
</td>
<td><?= ($item['reftype']>-1)?$this->referenceType[$item['reftype']]:'' ?></td>
<td><?= $item['place'] ?></td>
<td>
<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit('<?= $item['mrid'] ?>',<?= $item['id']?>,'<?= $this->uuid ?>','<?= $item['reftype'] ?>','<?= $item['place'] ?>')">
<?= ($item['mrid'])?'编辑':'添加' ?>
</a>
<a href="/admin/data/ref/ac/deletemdref/mrid/<?= $item['mrid']?>">移除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<?php } ?>
</div>
</div>
<!-- //页面内容 -->
<?= $this->partial('data/ref-mdref-form.phtml',array('referenceType'=>$this->referenceType)); ?>

View File

@ -1,31 +1,30 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理'); $this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
<div> <div>
<p></p> <div class="input-append">
<div class="input-group form-group"> <form id="datasearch" class="search_form" action="">
<form id="datasearch" class="search_form input-group" action=""> <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字" /> <button type="submit" class="btn" id="search_btn">搜索</button>
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
</form> </form>
</div> </div>
</div> </div>
@ -37,7 +36,6 @@ table thead tr th {background:#EBF2F6;}
<?php } else{ ?> <?php } else{ ?>
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<p></p>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>

View File

@ -1,53 +1,49 @@
<!-- Modal --> <div class="modal hide fade" id="mdref-form">
<div class="modal fade" id="mdref-form" > <div class="modal-header">
<div class="modal-dialog"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<div class="modal-content"> <h3>添加数据文献</h3>
<div class="modal-header"> </div>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <div class="modal-body">
<h4 class="modal-title" id="myModalLabel">添加数据文献</h4> <form id="mdref" method="post" class="form-horizontal">
</div> <div class="control-group">
<div class="modal-body"> <label class="control-label" for="inputRefid">文献ID</label>
<form id="mdref" method="post" class="form-horizontal"> <div class="controls">
<div class="form-group"> <input type="text" name="refid" id="inputRefid" placeholder="文献ID" value="<?= empty($this->refid) ? "":$this->refid ?>">
<label class="col-sm-3 control-label" for="inputRefid">文献ID</label>
<div class="col-sm-8">
<input type="text" name="refid" id="inputfid" placeholder="文献ID" class="form-control" value="<?= empty($this->refid) ? "":$this->refid ?>" >
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-sm-3 control-label" for="inputUuid">元数据UUID</label> <label class="control-label" for="inputUuid">元数据UUID</label>
<div class="col-sm-8"> <div class="controls">
<input type="text" name="uuid" id="inputUuid" placeholder="UUID" class="form-control"> <input type="text" name="uuid" id="inputUuid" placeholder="UUID">
<span class="help-block"><a href="javascript:void(0);" onclick="$(this).parent('span').prev('input').val('e31f5ea7-a4af-4ae3-9ac1-1a84132c4338')">设为数据中心文献</a></span> <span class="help-block"><a href="javascript:void(0);" onclick="$(this).parent('span').prev('input').val('e31f5ea7-a4af-4ae3-9ac1-1a84132c4338')">设为数据中心文献</a></span>
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-sm-3 control-label" for="inputPlace">排序数值(数字)</label> <label class="control-label" for="inputPlace">排序数值(数字)</label>
<div class="col-sm-8"> <div class="controls">
<input type="text" name="place" id="inputPlace" placeholder="排序" class="form-control"> <input type="text" name="place" id="inputPlace" placeholder="排序">
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-sm-3 control-label">文献类型</label> <label class="control-label">文献类型</label>
<div class="col-sm-8"> <div class="controls">
<?php foreach($this->referenceType as $k=>$v) { ?> <?php foreach($this->referenceType as $k=>$v) { ?>
<label class="radio"> <label class="radio">
<input type="radio" name="reftype" value="<?= $k ?>" /> <?= $v ?> <input type="radio" name="reftype" value="<?= $k ?>" /> <?= $v ?>
</label> </label>
<?php } ?> <?php } ?>
</div> </div>
</div> </div>
<input type="hidden" name="id" value="" /> <input type="hidden" name="id" value="" />
</form> </form>
</div> </div>
<div class="modal-footer"> <div id="alert-info"></div>
<div class="progress progress-striped active" id="submit-loading" style="display:none;"> <div class="modal-footer">
<div class="bar" style="width:100%;"></div> <div class="progress progress-striped active" id="submit-loading" style="display:none;">
</div> <div class="bar" style="width:100%;"></div>
<button onclick="$('#mdref')[0].reset();" class="btn">重置</button>
<button onclick="$('#mdref-form').modal('hide');" class="btn">关闭</button>
<button onclick="mdref.create()" class="btn btn-primary" id="submit_btn">保存</button>
</div>
</div> </div>
<button onclick="$('#mdref')[0].reset();" class="btn">Reset</button>
<button onclick="$('#mdref-form').modal('hide');" class="btn">Close</button>
<button onclick="mdref.create()" class="btn btn-primary" id="submit_btn">Save changes</button>
</div> </div>
</div> </div>

View File

@ -1,25 +1,24 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('文献管理');
$this->breadcrumb('文献管理'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendModel($this,'admin-data-ref');
$this->theme->AppendModel($this,'admin-data-ref');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div class="form-group"> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
@ -28,7 +27,7 @@ table thead tr th {background:#EBF2F6;}
<?php if(!empty($this->msg)) { ?> <?php if(!empty($this->msg)) { ?>
<?= $this->msg ?> <?= $this->msg ?>
<?php } else{ ?> <?php } else{ ?>
<div class="form-group"><button type="button" class="btn btn-primary" onclick="$('#mdref')[0].reset();$('#mdref-form').modal('show');">添加一条</button></div> <button type="button" class="btn btn-primary" onclick="$('#mdref')[0].reset();$('#mdref-form').modal('show');">添加一条</button>
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
@ -45,7 +44,7 @@ table thead tr th {background:#EBF2F6;}
foreach ($this->paginator as $item): foreach ($this->paginator as $item):
$autoindex++;?> $autoindex++;?>
<tr id="DataLine_<?= $item['id']?>"> <tr id="DataLine_<?= $item['id']?>">
<td><?= $item['title'] ?> <a href="/data/<?= $item['uuid'] ?>" target="_blank">查看</a></td> <td><?= $item['title'] ?></td>
<td><?= isset($this->referenceType[$item['reftype']]) ? $this->referenceType[$item['reftype']]:"" ?></td> <td><?= isset($this->referenceType[$item['reftype']]) ? $this->referenceType[$item['reftype']]:"" ?></td>
<td><?= $item['place'] ?></td> <td><?= $item['place'] ?></td>
<td> <td>

View File

@ -1,23 +1,23 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理'); $this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,"uploadify"); $this->theme->AppendPlus($this,"uploadify");
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
@ -59,7 +59,7 @@ $(function() {
'uploader' : '/admin/data/ref/ac/pdfupload', 'uploader' : '/admin/data/ref/ac/pdfupload',
'multi' : true, 'multi' : true,
'auto' : true, 'auto' : true,
'fileTypeExts' : '*.pdf;*.caj', 'fileTypeExts' : '*.pdf',
'onUploadSuccess' : function(file, data, response) { 'onUploadSuccess' : function(file, data, response) {
upload.onsuccess(file, data, response); upload.onsuccess(file, data, response);
}, },

View File

@ -1,12 +1,8 @@
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<?php if (!empty($this->uuid)) : ?> <li <?= empty($this->ac) ? 'class="active"':"" ?>><a href="/admin/data/ref">浏览所有</a></li>
<li class="active"><a href="/admin/data/ref/uuid/<?= $this->uuid ?>">数据文献</a></li>
<?php endif; ?>
<li <?= empty($this->ac) && empty($this->uuid) ? 'class="active"':"" ?>><a href="/admin/data/ref">浏览所有</a></li>
<li <?= $this->ac=="water" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/water">WATER文献</a></li> <li <?= $this->ac=="water" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/water">WATER文献</a></li>
<li <?= $this->ac=="westdc" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/westdc">数据中心文献</a></li> <li <?= $this->ac=="westdc" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/westdc">数据中心文献</a></li>
<li <?= $this->ac=="todo" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/todo">无数据文献</a></li> <li <?= $this->ac=="todo" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/todo">待处理文献</a></li>
<li <?= $this->ac=="author" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/author">数据作者文献</a></li>
<li <?= $this->ac=="add" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/add">单篇添加</a></li> <li <?= $this->ac=="add" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/add">单篇添加</a></li>
<li <?= $this->ac=="multiupload" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/multiupload">批量上传</a></li> <li <?= $this->ac=="multiupload" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/multiupload">批量上传</a></li>
<li <?= $this->ac=="files" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/files">文件管理</a></li> <li <?= $this->ac=="files" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/files">文件管理</a></li>

View File

@ -1,27 +1,26 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理'); $this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,"uploadify"); $this->theme->AppendPlus($this,"uploadify");
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
<p></p>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?= $this->error ?> <?= $this->error ?>
<?php } ?> <?php } ?>
@ -29,25 +28,23 @@ table thead tr th {background:#EBF2F6;}
<?= $this->msg ?> <?= $this->msg ?>
<?php } else{ ?> <?php } else{ ?>
<?php if(empty($this->data)) { ?> <?php if(empty($this->data)) { ?>
<form class="form-horizontal " method="post" enctype="multipart/form-data"> <form class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group"> <div class="control-group">
<label class="col-md-1 col-sm-1 control-label" for="inputPassword">RIS文件</label> <label class="control-label" for="inputPassword">RIS文件</label>
<div class="controls col-md-3 col-sm-3"> <div class="controls">
<input type="file" name="Filedata" id="file_upload" /> <input type="file" name="Filedata" id="file_upload" />
<div id="uploadedFile"></div> <div id="uploadedFile"></div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="control-group">
<label class="col-md-1 col-sm-1 control-label" for="inputPassword">RIS文本</label> <label class="control-label" for="inputPassword">RIS文本</label>
<div class="controls col-md-3 col-sm-3"> <div class="controls">
<textarea class="input-block-level form-control" name="ristext" rows="5"></textarea> <textarea class="input-block-level" name="ristext" rows="5"></textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-actions">
<div class="col-md-4 col-sm-4">
<input type="hidden" name="submit" value="1" /> <input type="hidden" name="submit" value="1" />
<button type="submit" class="btn btn-primary pull-right">导入</button> <button type="submit" class="btn btn-primary">导入</button>
</div>
</div> </div>
</form> </form>
<?php }else{ ?> <?php }else{ ?>

View File

@ -1,24 +1,23 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('文献管理');
$this->breadcrumb('文献管理'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,"uploadify");
$this->theme->AppendPlus($this,"uploadify"); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
@ -30,18 +29,21 @@ table thead tr th {background:#EBF2F6;}
<?php } else{ ?> <?php } else{ ?>
<h3>RIS导出</h3> <h3>RIS导出</h3>
<hr /> <hr />
<div> <div>
<?php if(!empty($this->years)) { ?> <?php if(!empty($this->years)) { ?>
按年份 : 按年份 :
<?php foreach($this->years as $k=>$v){ ?> <?php foreach($this->years as $k=>$v){ ?>
<a class="btn btn-info btn-double btn-sm" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a> <a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
<?php } ?> <?php } ?>
<hr /> <hr />
<?php } ?> <?php } ?>
</div> </div>
<div> <div>
其它方式:<a class="btn btn-info" href="?submit=1&mode=all">全部</a> 其它方式:<a class="btn btn-info" href="?submit=1&mode=all">全部</a>
</div> </div>
<?php } ?> <?php } ?>
</div> </div>
</div> </div>

View File

@ -1,23 +1,23 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理'); $this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,"uploadify"); $this->theme->AppendPlus($this,"uploadify");
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendPlus($this,'admin_plugin');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;} table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
@ -31,16 +31,17 @@ table thead tr th {background:#EBF2F6;}
<hr /> <hr />
<?php if(empty($this->data)) { ?> <?php if(empty($this->data)) { ?>
<form class="form-horizontal" method="post" enctype="multipart/form-data"> <form class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group"> <div class="control-group">
<label class="col-md-2 col-sm-2 control-label" for="inputPassword">RIS文本</label> <label class="control-label" for="inputPassword">RIS文本</label>
<div class="col-md-5 col-sm-5"> <div class="controls">
<textarea class="form-control" name="ristext" rows="5"><?= $this->ristext ?></textarea> <textarea class="input-block-level" name="ristext" rows="5"><?= $this->ristext ?></textarea>
<p class="clearfix"></p> <span class="help-block">* 此功能是使用单个文献的 RIS 文本导入并覆盖以前填写过的信息</span>
<div class="alert alert-info"> <strong> * </strong>此功能是使用单个文献的 RIS 文本导入并覆盖以前填写过的信息</div>
<input type="hidden" name="submit" value="1" />
<button type="submit" class="btn btn-primary pull-right">导入</button>
</div> </div>
</div> </div>
<div class="form-actions">
<input type="hidden" name="submit" value="1" />
<button type="submit" class="btn btn-primary">导入</button>
</div>
</form> </form>
<?php }else{ ?> <?php }else{ ?>
<?php <?php

View File

@ -1,108 +1,106 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('文献管理'); $this->breadcrumb('文献管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'admin_plugin');
$this->theme->AppendPlus($this,'admin_plugin'); $this->theme->AppendModel($this,'admin-data-ref');
$this->theme->AppendModel($this,'admin-data-ref');
?> ?>
<style> <style>
table thead tr th { background: #EBF2F6; } table thead tr th {background:#EBF2F6;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<div class="form-group"> <div>
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?> <?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
</div> </div>
<div class="input-group form-group"> <div>
<form id="datasearch" class="search_form input-group" action=""> <div class="input-append">
<input type="text" class="form-control" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字" /> <form id="datasearch" class="search_form" action="">
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" /> <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" /> <input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
</form> <button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div> </div>
</div>
<?php if(!empty($this->error)) { ?> <?php if(!empty($this->error)) { ?>
<?= $this->error ?> <?= $this->error ?>
<?php } ?> <?php } ?>
<?php if(!empty($this->msg)) { ?> <?php if(!empty($this->msg)) { ?>
<?= $this->msg ?> <?= $this->msg ?>
<?php } else{ ?> <?php } else{ ?>
<?php if($this->ac == 'westdc'){ ?> <?php if($this->ac == 'westdc'){ ?>
<button type="button" class="btn btn-primary" onclick="$('#mdref')[0].reset();mdref.edit('','','e31f5ea7-a4af-4ae3-9ac1-1a84132c4338',0,0)">添加数据中心文献</button> <button type="button" class="btn btn-success" onclick="$('#mdref')[0].reset();mdref.edit('','','e31f5ea7-a4af-4ae3-9ac1-1a84132c4338',0,0)">添加数据中心文献</button>
<?php } ?> <?php } ?>
<div class="form-group">
<?php if(!empty($this->years)) { ?> <?php if(!empty($this->years)) { ?>
<?php foreach($this->years as $k=>$v){ ?> <?php foreach($this->years as $k=>$v){ ?>
<a class="btn btn-info btn-double btn-sm" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a> <a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
</div>
<div id="datalist"> <div id="datalist">
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<table class="stylized table table-bordered table-striped table-hover"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th> <th>标题
标题 <a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a> 年份
年份 <a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th> </th>
<th width="170"> <th>记录创建
记录创建 <a href="?order=ts_created&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=ts_created&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <a href="?order=ts_created&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
<a href="?order=ts_created&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th> </th>
<th width="200">操作</th> <th width="140">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
if($this->page > 1) if($this->page > 1)
{ {
$autoindex = ($this->page - 1) * $this->pagelimit; $autoindex = ($this->page - 1) * $this->pagelimit;
}else{ }else{
$autoindex=0; $autoindex=0;
} }
foreach ($this->paginator as $item): foreach ($this->paginator as $item):
$autoindex++;?> $autoindex++;?>
<tr id="DataLine_<?= $item['id']?>"> <tr id="DataLine_<?= $item['id']?>">
<td> <td>
[<?= $autoindex ?>]&nbsp; [<?= $autoindex ?>]&nbsp;
<?php if ($item['ris']) : <?php if ($item['ris']) :
echo $item['reference']; echo $item['reference'];
else : else :
?> ?>
{<?php $authors = $this->reference->getAuthorByReference($item['id'],true); echo count($authors) ? join(",",$authors):'<font color="#CC0000">未知作者</font>'; ?>}&nbsp; {<?php $authors = $this->reference->getAuthorByReference($item['id'],true); echo count($authors) ? join(",",$authors):'<font color="#CC0000">未知作者</font>'; ?>}&nbsp;
{<?= empty($item['title']) ? '<font color="#CC0000">未知标题</font>':$item['title'] ?>}&nbsp; {<?= empty($item['title']) ? '<font color="#CC0000">未知标题</font>':$item['title'] ?>}&nbsp;
{<?= empty($item['publisher']) ? '<font color="#CC0000">未知期刊</font>':$item['publisher'] ?>}&nbsp; {<?= empty($item['publisher']) ? '<font color="#CC0000">未知期刊</font>':$item['publisher'] ?>}&nbsp;
{<?= empty($item['year']) ? '<font color="#CC0000">未知年份</font>':$item['year'] ?>}&nbsp; {<?= empty($item['year']) ? '<font color="#CC0000">未知年份</font>':$item['year'] ?>}&nbsp;
<?php endif; ?> <?php endif; ?>
</td> </td>
<td><?= date("Y-m-d H:i",strtotime($item['ts_created'])) ?></td> <td><?= date("Y-m-d H:i",strtotime($item['ts_created'])) ?></td>
<td> <td>
<a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a> <a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a>
<a href="/admin/data/ref/ac/singleris/id/<?= $item['id'] ?>">RIS编辑</a> <a href="/admin/data/ref/ac/singleris/id/<?= $item['id'] ?>">RIS编辑</a>
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>(<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit('',<?= $item['id']?>,'',0,0)">+</a>) <a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>(<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit('',<?= $item['id']?>,'',0,0)">+</a>)
<a href="/admin/data/ref/ac/deleteref/id/<?= $item['id']?>">删除</a> <a href="/admin/data/ref/ac/deleteref/id/<?= $item['id']?>">删除</a>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody> </tbody>
</table> </table>
<?php endif; ?> <?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>

View File

@ -11,58 +11,56 @@
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendModel($this,"author-literature"); $this->theme->AppendModel($this,"author-literature");
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?>
<div class="right_title">数据文献关联管理</div> <div class="right_title">数据文献关联管理</div>
<div class="search"> <div class="search">
<form action="" method="get"> <form action="" method="get">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<ul> <ul>
<li><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li> <li><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
<li><input type="submit" class="btn" value="搜索" /></li> <li><input type="submit" class="btn" value="搜索" /></li>
</ul> </ul>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<div class="controlplan"> <div class="controlplan">
<a href="/admin/data/reference/add/1">添加新的数据文献</a> <a href="/admin/data/reference/add/1">添加新的数据文献</a>
| <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a> | <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a>
| <a href="/admin/data/reference/import/1">导入数据文献文件</a> | <a href="/admin/data/reference/import/1">导入数据文献文件</a>
| <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a> | <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a>
</div> </div>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php <?php
$u=''; $u='';
$i=0;
foreach ($this->paginator as $item):
if ($u==$item['uuid']) :
$i+=1;
else :
if (!empty($u)) echo '</ol></div>';
$i=0; $i=0;
foreach ($this->paginator as $item): $u=$item['uuid'];
if ($u==$item['uuid']) : endif;
$i+=1; if ($i==0) echo '<div class="well"><h4>元数据:<a href="/data/'.$item['uuid'].'">'.$item['mdtitle'].'</a><a href="/admin/data/reference/add/1/uuid/'.$item['uuid'].'">添加</a></h4><ol>';
else : echo '<li>文献(<a href="/admin/data/reference/edit/'.$item['mdid'].'">编辑</a> <a href="/admin/data/reference/delete/'.$item['mdid'].'">删除</a> <a href="javascript:void(0);" class="order" rel="'.$item['mdid'].'" rev="'.$item['place'].'">排序</a>'.$item['place'].'. '.$item['reference'].'</li>';
if (!empty($u)) echo '</ol></div>'; endforeach;
$i=0; echo '</ul>';
$u=$item['uuid']; ?>
endif; <?php endif; ?>
if ($i==0) echo '<div class="well"><h4>元数据:<a href="/data/'.$item['uuid'].'">'.$item['mdtitle'].'</a><a href="/admin/data/reference/add/1/uuid/'.$item['uuid'].'">添加</a></h4><ol>'; <?= $this->paginator; ?>
echo '<li>文献(<a href="/admin/data/reference/edit/'.$item['mdid'].'">编辑</a> <a href="/admin/data/reference/delete/'.$item['mdid'].'">删除</a> <a href="javascript:void(0);" class="order" rel="'.$item['mdid'].'" rev="'.$item['place'].'">排序</a>'.$item['place'].'. '.$item['reference'].'</li>';
endforeach;
echo '</ul>';
?>
<?php endif; ?>
<?= $this->paginator; ?>
</div>
</div> </div>

View File

@ -9,45 +9,43 @@
$this->breadcrumb('数据文献管理</a>'); $this->breadcrumb('数据文献管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?> <a href="/admin/data/reference/add/1">添加新的数据文献</a>
<a href="/admin/data/reference/add/1">添加新的数据文献</a> | <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a>
| <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a> | <a href="/admin/data/reference/import/1">导入数据文献文件</a>
| <a href="/admin/data/reference/import/1">导入数据文献文件</a> | <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a>
| <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a> <?php
<?php if($this->type == 'dc')
if($this->type == 'dc') {?>
{?> <form id="Reference" enctype="application/x-www-form-urlencoded" action="/admin/data/reference/add/1/" method="post"><dl class="zend_form">
<form id="Reference" enctype="application/x-www-form-urlencoded" action="/admin/data/reference/add/1/" method="post"><dl class="zend_form"> <input type="hidden" name="uuid" id="uuid" value="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338" readonly="readonly">
<input type="hidden" name="uuid" id="uuid" value="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338" readonly="readonly"> <dt id="reference-label"><label for="reference" class="required">文献</label></dt>
<dt id="reference-label"><label for="reference" class="required">文献</label></dt> <dd id="reference-element">
<dd id="reference-element"> <input type="text" name="reference" id="reference" value=""></dd>
<input type="text" name="reference" id="reference" value=""></dd> <dt id="link-label"><label for="link" class="optional">URL(optional)</label></dt>
<dt id="link-label"><label for="link" class="optional">URL(optional)</label></dt> <dd id="link-element">
<dd id="link-element"> <input type="text" name="link" id="link" value=""></dd>
<input type="text" name="link" id="link" value=""></dd> <dt id="reftype-label"><label class="required">文献类型</label></dt>
<dt id="reftype-label"><label class="required">文献类型</label></dt> <dd id="reftype-element">
<dd id="reftype-element"> <label for="reftype-0"><input type="radio" name="reftype" id="reftype-0" value="0" checked="checked">作者文献</label>
<label for="reftype-0"><input type="radio" name="reftype" id="reftype-0" value="0" checked="checked">作者文献</label> <label for="reftype-1"><input type="radio" name="reftype" id="reftype-1" value="1">用户文献</label>
<label for="reftype-1"><input type="radio" name="reftype" id="reftype-1" value="1">用户文献</label> <label for="reftype-2"><input type="radio" name="reftype" id="reftype-2" value="2">数据的参考文献</label>
<label for="reftype-2"><input type="radio" name="reftype" id="reftype-2" value="2">数据的参考文献</label> <label for="reftype-3"><input type="radio" name="reftype" id="reftype-3" value="3">作者要求的文献引用方式(多篇)</label>
<label for="reftype-3"><input type="radio" name="reftype" id="reftype-3" value="3">作者要求的文献引用方式(多篇)</label> </dd>
</dd> <dt id="submit-label">&#160;</dt><dd id="submit-element">
<dt id="submit-label">&#160;</dt><dd id="submit-element"> <input type="submit" name="submit" id="submitbutton" value="发送"></dd></dl></form>
<input type="submit" name="submit" id="submitbutton" value="发送"></dd></dl></form> <?php }
<?php } else ?><?= $this->form; ?>
else ?><?= $this->form; ?>
</div>
</div> </div>

View File

@ -9,28 +9,26 @@
$this->breadcrumb('数据文献管理</a>'); $this->breadcrumb('数据文献管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<a href="/admin/data/reference/add/1">添加新的数据文献</a> | <a href="/admin/data/reference/import/1">导入数据文献文件</a>
<form enctype="multipart/form-data" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
<!-- Name of input element determines name in $_FILES array -->
上传数据文献文件: <br />
<input name="ref" type="file" /><br />
<input type="submit" value="导入" />
</form>
</div>
</div> </div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<a href="/admin/data/reference/add/1">添加新的数据文献</a> | <a href="/admin/data/reference/import/1">导入数据文献文件</a>
<form enctype="multipart/form-data" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" />
<!-- Name of input element determines name in $_FILES array -->
上传数据文献文件: <br />
<input name="ref" type="file" /><br />
<input type="submit" value="导入" />
</form>
</div>

View File

@ -10,66 +10,58 @@
$this->breadcrumb('项目来源管理'); $this->breadcrumb('项目来源管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div class="form-group">
<a class="btn btn-primary btn-sm" href="/admin/data/source">项目来源管理</a>
<a class="btn btn-primary btn-sm" href="/admin/data/source/do/add">添加项目来源</a>
<a class="btn btn-primary btn-sm" href="/admin/data/source/do/sync">同步项目来源(以此处为准)</a>
</div>
<div class="input-group form-group">
<form action="" method="get" class="search_form input-group">
<input type="text" class="q form-control" name="q" value="<?php echo $this->q; ?>" placeholder="搜索关键字" class="form-control" />
<input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
<span class="input-group-btn"><button type="submit" class="btn btn-default">搜索</button></span>
</form>
</div><!-- search DIV -->
<div class="">
<table class="stylized table table-bordered table-striped table-hover">
<thead>
<tr>
<td width='40%'>标题</td>
<td width='15%'>Code字符</td>
<td width='15%'>项目管理机构</td>
<td width='30%'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<?php
$admin_status=array(0=>"暂无管理机构",1=>"由专家委员会进行管理",2=>"委托数据中心进行管理");
?>
<tr>
<td><a href="/admin/data/source/do/fetch/id/<?php echo $item['id']?>"><?php echo $item['title']; ?></a></td>
<td><span><?php echo $item['code'];?></span></td>
<td><span><?php echo $admin_status[$item['admin_status']];?></span></td>
<td>
<a href="/admin/data/source/do/edit/id/<?php echo $item['id']?>">查看编辑</a>|
<a href="/admin/data/source/do/fetch/id/<?php echo $item['id']?>">查看元数据</a>|
<a href="/admin/data/source/do/del/id/<?php echo $item['id']?>" onclick="return confirm('是否确定删除该来源')">删除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<script type="text/javascript" >$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div class="ctrlplan">
<a href="/admin/data/source">项目来源管理</a>
<a href="/admin/data/source/do/add">添加项目来源</a>
</div>
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
<label>搜索关键字</label><input type="text" class="q" name="q" value="<?php echo $this->q; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<table class="stylized" width="700">
<thead>
<tr>
<td width='40%'>标题</td>
<td width='30%'>Code字符</td>
<td width='30%'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><a href="/admin/data/source/do/fetch/id/<?php echo $item['id']?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['code'];?></td>
<td>
<a href="/admin/data/source/do/edit/id/<?php echo $item['id']?>">查看编辑</a>|
<a href="/admin/data/source/do/fetch/id/<?php echo $item['id']?>">查看元数据</a>|
<a href="/admin/data/source/do/del/id/<?php echo $item['id']?>" onclick="return confirm('是否确定删除该来源')">删除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -10,184 +10,55 @@
$this->breadcrumb('项目来源管理'); $this->breadcrumb('项目来源管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="leftPanel">
<div class="row"> <?= $this->partial('data/left.phtml'); ?>
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-success">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div class="form-group">
<ul class="nav nav-tabs">
<li><a href="/admin/data/source">项目来源管理</a></li>
<li class="active"><a href="/admin/data/source/do/add">添加项目来源</a></li>
</ul>
</div>
<form method="post" action="/admin/data/source" class="form-horizontal">
<div class="form-group">
<label for="title" class="col-md-2 col-sm-2 control-label">标题</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="title" value="<?php echo $this->info['title'];?>" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 control-label">uuid:</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="uuid" value="<?php echo $this->info['uuid'];?>" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 control-label">Code:</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="code" value="<?php echo $this->info['code'];?>" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 control-label">项目管理机构</label>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="admin_status" value="0" <?php if(empty($this->info['admin_status']) | $this->info['admin_status'] =='0') echo 'checked="checked"';?> />
暂无管理机构 </label>
</div>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="admin_status" value="1" <?php if($this->info['admin_status']=='1') echo 'checked="checked"';?> />
由专家委员会管理 </label>
</div>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="admin_status" value="2" <?php if($this->info['admin_status']=='2') echo 'checked="checked"';?> />
委托数据中心管理 </label>
</div>
</div>
<?php if(!empty($this->info['admin_email'])) {
# 去除数组数据中的{}
$emailarry = explode(',',substr($this->info['admin_email'],1,-1));
$uuidarry = explode(',',substr($this->info['exclude_data'],1,-1));
?>
<div id="emails">
<?php foreach($emailarry as $email):?>
<div class="form-group subemail">
<label class="col-md-2 col-sm-2 control-label">管理邮箱</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="admin_email[]" value="<?php echo $email;?>" />
</div>
<div class="col-md-1 col-sm-1"><a href="javascript:void(0);" onclick="addemail()" class="glyphicon glyphicon-plus "></a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="rminput(this)" class="glyphicon glyphicon-minus "></a></div>
</div>
<?php endforeach;?>
</div>
<div id="plusuuid">
<?php foreach($uuidarry as $uuid):?>
<div class="form-group subuuid">
<label class="col-md-2 col-sm-2 control-label">不管理数据UUID:</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="exclude_data[]" value="<?php echo $uuid;?>" />
</div>
<div class="col-md-1 col-sm-1"><a href="javascript:void(0);" onclick="adduuid()" class="glyphicon glyphicon-plus "></a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="rminput(this)" class="glyphicon glyphicon-minus "></a></div>
</div>
<?php endforeach;?>
</div>
<?php }else{ ?>
<div id="emails">
<div class="form-group subemail">
<label class="col-md-2 col-sm-2 control-label">管理邮箱</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="admin_email[]" />
</div>
<div class="col-md-1 col-sm-1"><a href="javascript:void(0);" onclick="addemail()" class="glyphicon glyphicon-plus "></a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="rminput(this)" class="glyphicon glyphicon-minus "></a></div>
</div>
</div>
<div id="plusuuid">
<div class="form-group subuuid">
<label class="col-md-2 col-sm-2 control-label">不管理数据UUID:</label>
<div class="col-md-4 col-sm-4">
<input class="form-control" type="text" name="exclude_data[]" />
</div>
<div class="col-md-1 col-sm-1"><a href="javascript:void(0);" onclick="adduuid()" class="glyphicon glyphicon-plus "></a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="rminput(this)" class="glyphicon glyphicon-minus "></a></div>
</div>
</div>
<?php }?>
<div class="form-group">
<label class="col-md-2 col-sm-2 control-label">描述</label>
<div class="col-md-4 col-sm-4">
<textarea id="form-control" class="samll half form-control" name="description">
<?php echo $this->info['description'];?>
</textarea>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 control-label">has_pages</label>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="has_pages" value="true" <?php if($this->info['has_pages']) echo 'checked="checked"';?> />
True </label>
</div>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="has_pages" value="false" <?php if(!$this->info['has_pages']) echo 'checked="checked"';?> />
False </label>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 control-label">has_agreement</label>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="has_agreement" value="true" <?php if($this->info['has_agreement']) echo 'checked="checked"';?> />
True </label>
</div>
<div class="col-md-2 col-sm-2">
<label class="radio-inline">
<input type="radio" name="has_agreement" value="false" <?php if(!$this->info['has_agreement']) echo 'checked="checked"';?> />
False </label>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-sm-6">
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
<input type="hidden" name="do" value="<?php if($this->info['uuid']!='') echo 'edit';else echo 'add';?>" />
<input type="hidden" name="submit" value="1" />
<input type="submit" value="提交" class="btn btn-primary pull-right" />
</div>
</div>
</form>
</div>
</div> </div>
<div id="rightPanel">
<script> <?php if ($this->msg or $this->messages) :?>
function addemail(){ <div id="message">
$("#emails").append('<div class="form-group subemail">' <?php if ($this->msg) : ?>
+'<label class="col-md-2 col-sm-2 control-label">管理邮箱</label>' <p><?php echo $this->msg; ?></p>
+'<div class="col-md-4 col-sm-4">' <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
+'<input class="form-control" type="text" name="admin_email[]" value="" />' <p><?php echo $msg; ?></p>
+'</div>' <?php endforeach;endif; ?>
+'<div class="col-md-1 col-sm-1"><a href="javascript:void(0);" onclick="addemail()" class="glyphicon glyphicon-plus "></a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="rminput(this)" class="glyphicon glyphicon-minus "></a></div>' </div>
+'</div>'); <?php endif; ?>
}
function adduuid(){ <div class="ctrlplan">
$("#plusuuid").append('<div class="form-group subuuid">' <a href="/admin/data/source/">项目来源管理</a>
+'<label class="col-md-2 col-sm-2 control-label">不管理数据UUID:</label>' <a href="/admin/data/source/do/add">添加项目来源</a>
+'<div class="col-md-4 col-sm-4">' </div>
+'<input class="form-control" type="text" name="exclude_data[]" value="" />' <form method="post" action="/admin/data/source">
+'</div>' <p>
+'<div class="col-md-1 col-sm-1"><a href="javascript:void(0);" onclick="adduuid()" class="glyphicon glyphicon-plus "></a>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="rminput(this)" class="glyphicon glyphicon-minus "></a></div>' <label>标题:</label><br />
+'</div>'); <input type="text" name="title" value="<?php echo $this->info['title'];?>" />
} </p>
<p>
function rminput(e){ <label class="required">uuid:</label><br />
$e = $(e); <input type="text" name="uuid" value="<?php echo $this->info['uuid'];?>" />
$e.parent().parent().remove(); </p>
}; <p>
<label class="required">Code:</label><br />
</script> <input type="text" name="code" value="<?php echo $this->info['code'];?>" />
</p>
<p>
<label>描述</label><br />
<textarea id="description" class="samll half" name="description"><?php echo $this->info['description'];?></textarea>
</p>
<p>
<label>has_pages</label><br />
<input type="radio" name="has_pages" value="true" <?php if($this->info['has_pages']) echo 'checked="checked"';?> />True <input type="radio" name="has_pages" value="false" <?php if(!$this->info['has_pages']) echo 'checked="checked"';?> />False
</p>
<p>
<label>has_agreement</label><br />
<input type="radio" name="has_agreement" value="true" <?php if($this->info['has_agreement']) echo 'checked="checked"';?> />True <input type="radio" name="has_agreement" value="false" <?php if(!$this->info['has_agreement']) echo 'checked="checked"';?> />False
</p>
<p>
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
<input type="hidden" name="do" value="<?php if($this->info['uuid']!='') echo 'edit';else echo 'add';?>" />
<input type="hidden" name="submit" value="1" />
<input type="submit" value="提交" />
</p>
</form>
</div>

View File

@ -10,55 +10,55 @@
$this->breadcrumb('项目来源管理'); $this->breadcrumb('项目来源管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?>
<div class="ctrlplan">
<a href="/admin/data/source">项目来源管理</a>
<a href="/admin/data/source/do/add">添加项目来源</a>
</div>
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' placeholder="搜索关键字"/>
<label>搜索关键字</label><input type="text" class="q" name="q" value="<?php echo $this->q; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<table class="stylized" width="700"> <div class="ctrlplan">
<thead> <a href="/admin/data/source">项目来源管理</a>
<tr> <a href="/admin/data/source/do/add">添加项目来源</a>
<td width='85%'>标题</td> </div>
<td width='15%'>操作</td>
</tr> <div class="search">
</thead> <form action="" method="get">
<?php if (count($this->paginator)): ?> <input type="hidden" name="search" value='1' />
<tbody id="list"> <input type="hidden" name="id" value='<?php echo $this->id;?>' />
<?php foreach ($this->paginator as $item): ?> <label>搜索关键字</label><input type="text" class="q" name="q" value="<?php echo $this->q; ?>" />
<tr> <input type="submit" class="btn" value="搜索" />
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td> </form>
<td> </div><!-- search DIV -->
<a href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">编辑数据来源</a><br />
<a href="/admin/data/source/do/delsource/id/<?php echo $item['id']?>/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定删除该来源')">清除数据来源</a> <table class="stylized" width="700">
</td> <thead>
</tr> <tr>
<?php endforeach; ?> <td width='85%'>标题</td>
</tbody> <td width='15%'>操作</td>
<?php endif; ?> </tr>
</table> </thead>
<div class="pagenavi"><?= $this->paginator; ?></div> <?php if (count($this->paginator)): ?>
</div> <tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td>
<a href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">编辑数据来源</a><br />
<a href="/admin/data/source/do/delsource/id/<?php echo $item['id']?>/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定删除该来源')">清除数据来源</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script> <script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -1,82 +1,91 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js'); $this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('项目来源管理'); $this->breadcrumb('项目来源管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<p>为元数据《<?php echo $this->info['title'];?>》选择项目来源</p>
<div class="input-group">
<form method="get" action="" class="input-group">
<input type="text" value="" placeholder="搜索关键字" name="q" class="form-control q">
<span class="input-group-btn"><input type="submit" value="搜索" class="btn btn-default"></span>
</form>
</div>
<!-- search DIV -->
<form method="post">
<table class="stylized" width="700">
<thead>
<tr>
<td width='10%'>选择</td>
<td width='30%'>标题</td>
<td width='30%'>Code字符</td>
<td width='30%'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><input type="radio" name="sourceid" value="<?php echo $item['id'];?>" <?php if($item['id']==$this->info['sourceid']) echo 'checked="checked"'; ?> /></td>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['code'];?></td>
<td><a href="/admin/data/source/do/edit/id/<?php echo $item['id']?>">查看编辑</a></td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<input type="hidden" name="uuid" value="<?php echo $this->uuid;?>" />
<input type="hidden" name="do" value="datasource" />
<input type="hidden" name="submit" value="1" />
<?php
if(!empty($this->info['id']))
{
echo "此元数据已经选择了项目来源:".$this->info['stitle']."[".$this->info['code']."],操作将更改此元数据现有的项目来源<br />";
}
?>
<input type="submit" value="提交" />
</form>
<?php if(!empty($this->info['id'])) { ?>
<form method="post" action="/admin/data/source/">
<input type="hidden" name="uuid" value="<?php echo $this->uuid;?>" />
<input type="hidden" name="do" value="delsource" />
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
<input type="hidden" name="submit" value="1" />
<br /><button type="submit" class="btn btn-red" onclick="return confirm('是否确定删除该来源')">清除数据来源</button>
</form>
<?php
} ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<script>$("#list tr").mouseover(function () { $(this).addClass("high") }).mouseout(function () { $(this).removeClass("high") })</script> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
为元数据《<?php echo $this->info['title'];?>》选择项目来源
<div class="search">
<form action="" method="get">
<input type="hidden" name="search" value='1' />
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
<label>搜索关键字</label><input type="text" class="q" name="q" value="<?php echo $this->q; ?>" />
<input type="submit" class="btn" value="搜索" />
</form>
</div><!-- search DIV -->
<form method="post">
<table class="stylized" width="700">
<thead>
<tr>
<td width='10%'>选择</td>
<td width='30%'>标题</td>
<td width='30%'>Code字符</td>
<td width='30%'>操作</td>
</tr>
</thead>
<?php if (count($this->paginator)): ?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><input type="radio" name="sourceid" value="<?php echo $item['id'];?>" <?php if($item['id']==$this->info['sourceid']) echo 'checked="checked"'; ?> /></td>
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
<td><?php echo $item['code'];?></td>
<td><a href="/admin/data/source/do/edit/id/<?php echo $item['id']?>">查看编辑</a></td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<input type="hidden" name="uuid" value="<?php echo $this->uuid;?>" />
<input type="hidden" name="do" value="datasource" />
<input type="hidden" name="submit" value="1" />
<?php
if(!empty($this->info['id']))
{
echo "此元数据已经选择了项目来源:".$this->info['stitle']."[".$this->info['code']."],操作将更改此元数据现有的项目来源<br />";
}
?>
<input type="submit" value="提交" />
</form>
<?php
if(!empty($this->info['id']))
{
?>
<form method="post" action="/admin/data/source/">
<input type="hidden" name="uuid" value="<?php echo $this->uuid;?>" />
<input type="hidden" name="do" value="delsource" />
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
<input type="hidden" name="submit" value="1" />
<br /><button type="submit" class="btn btn-red" onclick="return confirm('是否确定删除该来源')">清除数据来源</button>
</form>
<?php
}
?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>

View File

@ -1,121 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据时空范围');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
?>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<div>
<ul class="nav nav-tabs">
<li><a href="/admin/data/spatial">浏览所有</a></li>
<?php if(!empty($this->uuid)) {?>
<li class="active"><a href="javascript:void(0);">编辑</a></li>
<?php }?>
</ul>
</div>
<div class="">
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<p></p>
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<h4>提示</h4>
1. 空间范围请使用经纬度dd格式进行添加。<br/>
2. 日期精确到天。中括号代表包含,小括号代表不包含。
</div>
<h2><?php echo $this->data[0]['title']; ?></h2>
<form class="form-horizontal" method="post">
<div id="datalist">
<?php if (count($this->data)): ?>
<table class="stylized table table-bordered table-striped table-hover">
<thead>
<tr>
<th width="60%">空间范围</th>
<th>时间范围</th>
<th width="100">操作</th>
</tr>
</thead>
<tbody>
<?php $autoindex=0;
foreach ($this->data as $item):
if (isset($item['id']) && $item['id']>0) :
$autoindex++; ?>
<tr class="infocontrol">
<td><textarea class="col-md-12" rows="3" name="info[<?= $autoindex ?>][spatial]" ><?= $item['spatial'] ?></textarea></td>
<td><input type="text" name="info[<?= $autoindex ?>][temporal]" class="form-control" value="<?= $item['temporal'] ?>" /></td>
<td>
编辑:点 线 矩形 多边形
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
</td>
<input type="hidden" name="info[<?= $autoindex ?>][id]" value=" <?=$item->id?> " />
</tr>
<?php endif; endforeach; if ((count($this->data)==1) && !isset($this->data[0]['id'])) :
$item=$this->data[0]; ?>
<tr class="infocontrol">
<td><textarea class="col-md-12" rows="3" name="info[1][spatial]" ><?= $item['spatial'] ?></textarea></td>
<td><input type="text" name="info[1][temporal]" class="form-control"
value="<?= $item['temporal'] ?>" /></td>
<td>
点 线 矩形 多边形
<a href="/admin/data/spatial/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
</td>
<input type="hidden" name="info[1][id]" value="0" />
</tr>
<?php endif; endif;?>
</tbody>
</table>
</div>
<div class="form-group">
<div class="col-sm-12">
<a class="pull-right" href="javascript:void(0);" onclick="addinput()" >+为该数据添加一行新时空范围</a>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<input type="hidden" name="submit" value="1" />
<?php if(!empty($this->uuid)) { ?>
<input type="hidden" name="uuid" value=" <?=$this->uuid?>" />
<?php } ?>
<button type="submit" class="btn btn-primary pull-right">提交</button>
</div>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
<script>
function addinput(){
var now_index = $('.infocontrol').length;
var index = now_index + 1;
html = '<tr class="infocontrol">'
+'<td><textarea class="col-md-12" rows="3" name="info['+index+'][spatial]" placeholder="WKT Geometry"></textarea></td>'
+'<td><input type="text" name="info['+index+'][temporal]" class="form-control" value="" placeholder="Date range"/></td>'
+'<td><a href="">点 线 矩形 多边形</a>'
+' <label class="control-label"><a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a></label>'
+'</td><input type="hidden" name="info['+index+'][id]" value="0" />'
+'</tr>';
now_index = null;
index = null;
$('.infocontrol').last().after(html);
}
function RmInput(e){
$e = $(e);
$e.parent().parent().parent('tr.infocontrol').remove();
}
</script>
<!-- //页面内容 -->

View File

@ -1,167 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据时空范围');
$this->breadcrumb()->setSeparator(' > ');
// $this->theme->AppendPlus($this,'colorbox');
$this->theme->AppendPlus($this,'admin_plugin');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
?>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12 span10">
<div class="form-group">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="/admin/data/spatial">浏览所有</a></li>
</ul>
</div>
<div class="input-group form-group">
<form id="datasearch" class="search_form input-group" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" />
<span class="input-group-btn"><button class="btn btn-default" type="submit" id="search_btn">搜索</button></span>
</form>
</div>
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<div id="datalist">
<?php if (count($this->paginator)): ?>
<table class="stylized table table-bordered table-striped table-hover">
<thead>
<tr>
<th>元数据</th>
<th>空间范围</th>
<th>时间范围</th>
<th>修改时间</th>
<th width="100">操作</th>
</tr>
</thead>
<tbody>
<?php $autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<tr id="DataLine_<?= $item['id']?>">
<td><a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td>
<td><?= $item['spatial'] ?></td>
<td><?= $item['temporal'] ?></td>
<td><?= date("Y-m-d H:i",strtotime($item['ts_changed'])) ?></td>
<td>
<a href="/admin/data/spatial/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<?php } ?>
</div>
</div>
<!-- //页面内容 -->
<script>
var info = {
btn_prefix : "delbtn_",
item_prefix : "DataLine_",
url : "/admin/data/spatial/ac/del"
}
$(document).ready(function(e) {
$('.verified_btn').click(function(e) {
$(this).ajaxmsg({
callback:function(){window.location.reload();}
});
});
});
(function( $ ){
$.fn.ajaxmsg = function( options ) {
var settings = $.extend( {
url:'',
callback : '',
}, options);
var methods = {
msg : function(id)
{
methods.submited();
},
creatWindow : function(content){
$.colorbox({
initialHeight: '0',
initialWidth: '0',
html: methods.dialog(content),
opacity: '0.3',
onComplete: function(){
$('.confirm_yes').click(function(e){
e.preventDefault();
if(typeof(settings.callback)=='function')
{
settings.callback();
}
$.colorbox.close();
});
$('.confirm_no').click(function(e){
e.preventDefault();
$.colorbox.close();
});
}
});
},
submited : function(){
$.ajax({
'type':"POST",
'url':settings.url,
'data':'',
'success':function(data){
if (typeof(data)=='object')
{
if(typeof(data.error)!='undefined')
{alert(data.error);}
if(typeof(data.success)!='undefined')
{
methods.creatWindow(data.success);
}
}
else{
alert('出现错误,请稍候再试');
}
},
'timeout': 30000,
'error': function(){
alert('出现错误,请刷新后重试');
}
});
},
dialog : function(content){
HTML = '<div class=""><div class="modal-header"><h3>提示信息</h3></div>'
+ '<div class="modal-body"><div class=" span5">'+content+'</div></div>'
+ '<div class="modal-footer"><a href="javascript:void(0);" class="btn btn-primary confirm_yes">确定</a></div></div>';
return HTML;
}
}
this.each(function() {
settings.url = $(this).attr('rel');
if(settings.url == '')
{
alert('参数错误');
}
methods.msg();
});
};
})( jQuery );
</script>

View File

@ -9,43 +9,42 @@
$this->breadcrumb('同步GEONETWORK元数据</a>'); $this->breadcrumb('同步GEONETWORK元数据</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('data/left.phtml'); ?>
<?= $this->partial('data/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?>
<p>WESTDC有元数据<?php echo $this->mdcount->westdccount; ?>GEONETWORK有元数据<?php echo $this->mdcount->gncount; ?>条。</p> <p>WESTDC有元数据<?php echo $this->mdcount->westdccount; ?>GEONETWORK有元数据<?php echo $this->mdcount->gncount; ?>条。</p>
<p><a href="/admin/data/sync/source/geonetwork">开始同步从GEONETWORK同步到WESTDC若有冲突以GEONETWORK为准</a> </p> <p><a href="/admin/data/sync/source/geonetwork">开始同步从GEONETWORK同步到WESTDC若有冲突以GEONETWORK为准</a> </p>
<p><a href="/admin/data/sync/source/westdc">开始同步从WESTDC同步到GEONETWORK</a> </p> <p><a href="/admin/data/sync/source/westdc">开始同步从WESTDC同步到GEONETWORK</a> </p>
<p><a href="/admin/data/sync/list/westdc">列出WESTDC中多出的数据</a></p> <p><a href="/admin/data/sync/list/westdc">列出WESTDC中多出的数据</a></p>
<p><a href="/admin/data/sync/list/geonetwork">列出GeoNetwork中多出的元数据</a></p> <p><a href="/admin/data/sync/list/geonetwork">列出GeoNetwork中多出的元数据</a></p>
<p><a href="/admin/data/sync/delete/westdc">删除WESTDC中多出的元数据</a></p> <p><a href="/admin/data/sync/delete/westdc">删除WESTDC中多出的元数据</a></p>
<p><a href="/admin/data/sync/delete/geonetwork">删除GEONETWORK中多出的元数据</a></p> <p><a href="/admin/data/sync/delete/geonetwork">删除GEONETWORK中多出的元数据</a></p>
<p><a href="/admin/data/sync/thumb/geonetwork">同步GEONETWORK中的缩略图</a></p> <p><a href="/admin/data/sync/thumb/geonetwork">同步GEONETWORK中的缩略图</a></p>
<form method="POST"> <form method="POST">
<p>指定元数据UUID: <input type="text" name="uuid"></p> <p>指定元数据UUID: <input type="text" name="uuid"></p>
<button type="submit" name="submit">同步此元数据</button> <button type="submit" name="submit">同步此元数据</button>
<button type="submit" name="gnsubmit">同步数据到GeoNetwork</button> <button type="submit" name="gnsubmit">同步数据到GeoNetwork</button>
</form> </form>
<?php if ($this->metadata) : ?> <?php if ($this->metadata) : ?>
<ul> <ul>
<?php foreach ($this->metadata as $md) : <?php foreach ($this->metadata as $md) :
if (empty($md->id)) : if (empty($md->id)) :
?> ?>
<li><a href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title;?></a></li> <li><a href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title;?></a></li>
<?php else : ?> <?php else : ?>
<li><a href="/service/geonetwork?url=metadata.show?id=<?php echo $md->id; ?>"><?php echo $md->title;?></a></li> <li><a href="/service/geonetwork?url=metadata.show?id=<?php echo $md->id; ?>"><?php echo $md->title;?></a></li>
<?php endif;endforeach; ?> <?php endif;endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</div>
</div> </div>

View File

@ -1,53 +1,50 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据版本管理'); $this->breadcrumb('数据版本管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row">
<!-- 左侧导航 --> <!-- 左侧导航 -->
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<!-- //左侧导航 --> <!-- //左侧导航 -->
<!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <!-- 页面内容 -->
<div class="form-group"> <div id="rightPanel">
<ul class="nav nav-tabs" role="tablist"> <div id="tabs-controller">
<li class=""><a href="/admin/data/version">所有版本概况</a></li> <ul>
<li class=""><a href="/admin/data/version/ac/unpublish">已发布数据的未发布版本</a></li> <li class="box-shadow"><a class="text-shadow" href="/admin/data/version/">所有版本概况</a></li>
<li class="active"><a href="/admin/data/version/ac/bydata">逐数据浏览</a></li> <li class="box-shadow active"><a class="text-shadow" href="/admin/data/version/ac/bydata">逐数据浏览</a></li>
</ul> </ul>
</div> </div>
<div class="input-group form-group"> <p>请输入元数据标题关键字进行搜索</p>
<form id="datasearch" class="search_form input-group" action="/admin/data/version/ac/bydata"> <form id="datasearch" class="search_form" action="/admin/data/version/ac/bydata">
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字" /> <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <button type="submit" class="btn" id="search_btn">搜索</button>
</form> </form>
</div> <div id="datalist">
<div id="datalistZ"> <?php
<?php if (count($this->paginator)):
if (count($this->paginator)): echo "<ul>";
echo "<ul class=list-unstyled>"; $autoindex=0;
$autoindex=0; foreach ($this->paginator as $item):
foreach ($this->paginator as $item): $autoindex++;?>
$autoindex++;?> <li>
<li class="well well-sm"> <p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p> <p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
<p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p> </li>
</li> <?php endforeach;
<?php endforeach; echo "</ul>";
echo "</ul>"; endif; ?>
endif; ?> <div class="pagenavi"><?= $this->paginator; ?></div>
<div class="pagenavi"><?= $this->paginator; ?></div> </div>
</div>
</div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>

View File

@ -1,49 +1,47 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
//$this->headScript()->appendFile('/js/jquery-1.7.min.js'); //$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/js/diffview.js'); $this->headScript()->appendFile('/js/diffview.js');
$this->headScript()->appendFile('/js/difflib.js'); $this->headScript()->appendFile('/js/difflib.js');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/css/diffview.css'); $this->headLink()->appendStylesheet('/css/diffview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('查看数据作者'); $this->breadcrumb('查看数据作者');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row">
<!-- 左侧导航 --> <!-- 左侧导航 -->
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<!-- //左侧导航 --> <!-- //左侧导航 -->
<!-- 页面内容 --> <!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<div class="form-group"> <div id="tabs-controller">
<ul class="nav nav-tabs" role="tablist"> <ul>
<li class=""><a href="/admin/data/version">所有版本概况</a></li> <li class="box-shadow"><a class="text-shadow" href="/admin/data/version">所有版本概况</a></li>
<li class=""><a href="/admin/data/version/ac/bydata">逐数据浏览</a></li> <li class="box-shadow"><a class="text-shadow" href="/admin/data/version/ac/bydata">逐数据浏览</a></li>
</ul> </ul>
</div> </div>
<?php <?php
if(!empty($this->error)) if(!empty($this->error))
{ {
echo $this->error; echo $this->error;
} }
else else
{?> {?>
<h2><?php echo $this->info['title'];?></h2> <h2><?php echo $this->info['title'];?></h2>
<div id="diffoutput" style="width:100%"> </div> <div id="diffoutput" style="width:100%"> </div>
<textarea id="basetext" style="display:none;"><?php echo $this->data[1]['xml'];?></textarea> <textarea id="basetext" style="display:none;"><?php echo $this->data[1]['xml'];?></textarea>
<textarea id="newtext" style="display:none;"><?php echo $this->data[0]['xml'];?></textarea> <textarea id="newtext" style="display:none;"><?php echo $this->data[0]['xml'];?></textarea>
<?php <?php
} }
?> ?>
</div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->

View File

@ -1,115 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据版本管理');
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row">
<!-- 左侧导航 -->
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<!-- //左侧导航 -->
<!-- 页面内容 -->
<div class="col-md-10 col-sm-12">
<div class="form-group">
<ul class="nav nav-tabs" role="tablist">
<li class=""><a href="/admin/data/version">所有版本概况</a></li>
<li class="active"><a href="/admin/data/version/ac/unpublish">已发布数据的未发布版本</a></li>
<li class=""><a href="/admin/data/version/ac/bydata">逐数据浏览</a></li>
</ul>
</div>
<?php
if (count($this->paginator)):
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
echo "<ul class=list-unstyled>";
$autoindex=0;
$edited=false;
foreach ($this->paginator as $item):
$autoindex++;?>
<li id="list_<?php echo $item['id'];?>" class="well well-sm">
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
<small><a class="" href="/admin/data/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a>
<?php if (!$edited && @$item['gid'])
{ $edited=true; echo '<a href="/service/geonetwork?url=metadata.edit?id='.$item['gid'].'" target="_blank">编辑最新版本</a> ';} ?>
</small></h4>
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
<?php if ($item['owner']) :
echo "修改者: ".(empty($item['realname'])?$item['username']:$item['realname'])." ";
endif;
?>
</p>
<h5>
<a class="label label-danger" onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more">
<span class="glyphicon glyphicon-trash"> 删除</a></span>
<a class="label label-primary" class="label label-danger" onclick="return confirm('是否确定将这个版本恢复到geonetwork');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a>
<a class="label label-primary" href="/admin/data/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a>
<a class="label label-primary" href="/admin/data/version/ac/diff1/id/<?php echo $item['id'];?>" class="more">与前一发布或提交版对比</a>
<a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline label label-primary">提交评审发布</a>
</h5>
<?php if ($item['changelog']) : ?>
<p><?php echo $item['changelog']; ?></p>
<?php endif; ?>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
function action(ac,id){
$.ajax({
'type':"POST",
'url':'/admin/data/version/',
'data':'ac='+ ac +'&id='+id,
'success':function(data){
if (typeof(data)=='object')
{
if(typeof(data.error)!='undefined')
{$.colorbox({'innerWidth':'50%','html':data.error});}
if(typeof(data.deleted)!='undefined')
{$('#list_'+data.deleted).fadeOut("slow",function(){$(this).remove();});}
if(typeof(data.commited)!='undefined')
{$('#changelog').val('');$('#commit_submit').attr('onclick','');}
}
else{
$.colorbox({'innerWidth':'50%','html':'<h4>出现错误,请稍候再试</h4>'});
}
},
'timeout': 30000,
'error': function(){
$.colorbox({'innerWidth':'50%','html':'<h4>处理中出现错误,请刷新页面后重试</h4>'});
}
});
}
$(".inline").colorbox({inline:true, width:"50%", height:"50%"});
function commit(id){
action('commit&changelog='+$('#changelog').val(),id);
}
</script>
<div class="colorbox" style="display:none;">
<div id="commitform">
<form>
<p>
<label>版本改动:</label><br />
<textarea rows="12" class="full" style="width:100%;" id="changelog"></textarea>
<br /><small>请输入此版本与之前版本的差别</small>
</p>
<input type="button" onclick="" id="commit_submit" class="btn btn-success pull-right" value="提交"/>
</form>
</div>
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div>
<div class="ok"><img src="/images/alert_big_ok.png" /><span></span></div>
<div class="warning"><img src="/images/alert_big_warning.png" /><span></span></div>
</div>

View File

@ -1,69 +1,71 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author); $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->headLink()->appendStylesheet('/css/admin.css');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author.css');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css'); $this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据版本管理'); $this->breadcrumb('数据版本管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row">
<!-- 左侧导航 --> <!-- 左侧导航 -->
<div class="hidden-sm hidden-xs col-md-2"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<!-- //左侧导航 --> <!-- //左侧导航 -->
<!-- 页面内容 -->
<div class="col-md-10 col-sm-12"> <!-- 页面内容 -->
<div class="form-group"> <div id="rightPanel">
<ul class="nav nav-tabs" role="tablist"> <div id="tabs-controller">
<li class="<?php if(!$this->mdtitle) echo "active";?>"><a href="/admin/data/version">所有版本概况</a></li> <ul>
<li class=""><a href="/admin/data/version/ac/unpublish">已发布数据的未发布版本</a></li> <li class="box-shadow <?php if(!$this->mdtitle) echo "active";?>"><a class="text-shadow" href="/admin/data/version">所有版本概况</a></li>
<li class=""><a href="/admin/data/version/ac/bydata">逐数据浏览</a></li> <li class="box-shadow"><a class="text-shadow" href="/admin/data/version/ac/bydata">逐数据浏览</a></li>
</ul> </ul>
</div> </div>
<?php <div id="datalist">
if (count($this->paginator)): <?php
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>"; if (count($this->paginator)):
echo "<ul class=list-unstyled>"; if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
$autoindex=0; echo "<ul>";
$edited=false; $autoindex=0;
foreach ($this->paginator as $item): $edited=false;
$autoindex++;?> foreach ($this->paginator as $item):
<li id="list_<?php echo $item['id'];?>" class="well well-sm"> $autoindex++;?>
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a> <li id="list_<?php echo $item['id'];?>">
<small><a class="" href="/admin/data/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a> <p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
<?php if (!$edited && @$item['gid']) <a href="/admin/data/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a>
{ $edited=true; echo '<a href="/service/geonetwork?url=metadata.edit?id='.$item['gid'].'" target="_blank">编辑最新版本</a> ';} ?> <?php
</small></h4> if (!$edited && @$item['gid'])
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?> {
<?php if ($item['userid']) : $edited=true;
echo "发布人: ".(empty($item['realname'])?$item['username']:$item['realname'])." "; echo '<a href="/service/geonetwork?url=metadata.edit?id='.$item['gid'].'" target="_blank">编辑最新版本</a> ';
endif; }
?> ?>
</p> </p>
<h5> <p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
<a class="label label-danger" onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more"> <?php if ($item['userid']) :
<span class="glyphicon glyphicon-trash"> 删除</a></span> echo "发布人: ".(empty($item['realname'])?$item['username']:$item['realname'])." ";
<a class="label label-primary" class="label label-danger" onclick="return confirm('是否确定将这个版本恢复到geonetwork');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a> endif;
<a class="label label-primary" href="/admin/data/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a> ?>
<a class="label label-primary" href="/admin/data/version/ac/diff1/id/<?php echo $item['id'];?>" class="more">与前一发布或提交版对比</a> <a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more">删除</a>
<a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline label label-primary">提交评审发布</a> <a onclick="return confirm('是否确定将这个版本恢复到geonetwork');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a>
</h5> <a href="/admin/data/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a>
<?php if ($item['changelog']) : ?> <a href="/admin/data/version/ac/diff1/id/<?php echo $item['id'];?>" class="more">与前一发布或提交版对比</a>
<p><?php echo $item['changelog']; ?></p> <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
<?php endif; ?> </p>
</li> <?php if ($item['changelog']) : ?>
<?php endforeach; <p><?php echo $item['changelog']; ?></p>
echo "</ul>"; <?php endif; ?>
endif; ?> </li>
<div class="pagenavi"><?= $this->paginator; ?></div> <?php endforeach;
</div> echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>
<!-- //页面内容 --> <!-- //页面内容 -->
<script> <script>
@ -93,7 +95,7 @@ function action(ac,id){
} }
}); });
} }
$(".inline").colorbox({inline:true, width:"50%", height:"50%"}); $(".inline").colorbox({inline:true, width:"50%"});
function commit(id){ function commit(id){
action('commit&changelog='+$('#changelog').val(),id); action('commit&changelog='+$('#changelog').val(),id);
} }
@ -103,10 +105,10 @@ function commit(id){
<form> <form>
<p> <p>
<label>版本改动:</label><br /> <label>版本改动:</label><br />
<textarea rows="12" class="full" style="width:100%;" id="changelog"></textarea> <textarea class="full" style="resize:none;height:200px;" id="changelog"></textarea>
<br /><small>请输入此版本与之前版本的差别</small> <br /><small>请输入此版本与之前版本的差别</small>
</p> </p>
<input type="button" onclick="" id="commit_submit" class="btn btn-success pull-right" value="提交"/> <input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
</form> </form>
</div> </div>
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div> <div class="error"><img src="/images/alert_big_error.png" /><span></span></div>

View File

@ -0,0 +1,275 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<h3>添加可视化要素</h3>
<hr />
<?php if(!empty($this->error)) {?>
<div class="alert alert-error">
<?= $this->error ?>
</div>
<?php }?>
<form class="form-horizontal" method="post" action="">
<div class="control-group">
<label class="control-label" for="inputUUID">UUID</label>
<div class="controls">
<input type="text" id="inputUUID" placeholder="UUID" value="<?= $this->data['uuid'] ?>" class="input-block-level" name="uuid">
</div>
</div>
<div class="control-group">
<label class="control-label">状态</label>
<div class="controls">
<label class="radio inline">
<?php $checked = function(){
if(isset($this->info['status']))
{
if($this->info['status'] == 1)
{
return 'checked="checked"';
}
}else{
return 'checked="checked"';
}
}; ?>
<input type="radio" name="status" id="optionsRadios1" value="1" <?= $checked() ?>>
启用
</label>
<label class="radio inline">
<input type="radio" name="status" id="optionsRadios2" value="0"
<?= isset($this->info['status']) && $this->info['status'] == 0 ? 'checked="checked"':"" ?>>
禁用
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">绘图插件</label>
<div class="controls">
<label class="radio inline">
<input type="radio" name="chartjs" id="optionsRadios1" value="highcharts" <?= (isset($this->info['chartjs']) && $this->info['chartjs']=='highcharts') ? "checked":"" ?>>
Highcharts适合分类数据展示和三维展示
</label>
<label class="radio inline">
<input type="radio" name="chartjs" id="optionsRadios2" value="highstock"
<?= (isset($this->info['chartjs']) && $this->info['chartjs'] == 'highstock') || empty($this->info['chartjs']) ? 'checked="checked"':"" ?>>
Highstock适合时间序列数据可视化
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">默认绘制类型</label>
<div class="controls">
<label class="radio inline">
<input type="radio" name="charttype" id="optionsRadios1" value="line" <?= (isset($this->info['charttype']) && $this->info['charttype']=='line') || empty($this->info['charttype']) ? "checked":"" ?>>
折线图
</label>
<label class="radio inline">
<input type="radio" name="charttype" id="optionsRadios2" value="column"
<?= isset($this->info['charttype']) && $this->info['charttype'] == 'column' ? 'checked="checked"':"" ?>>
柱状图
</label>
<label class="radio inline">
<input type="radio" name="charttype" id="optionsRadios3" value="spline"
<?= isset($this->info['charttype']) && $this->info['charttype'] == 'spline' ? 'checked="checked"':"" ?>>
样条线图
</label>
<label class="radio inline">
<input type="radio" name="charttype" id="optionsRadios4" value="area"
<?= isset($this->info['charttype']) && $this->info['charttype'] == 'area' ? 'checked="checked"':"" ?>>
面积图
</label>
</div>
</div>
<div class="control-group" style="display: none;">
<label class="control-label">数据表</label>
<div class="controls">
<select name="visual_datatable" id="data-table">
<option value="0">请选择</option>
<?php foreach($this->visualTable as $k=>$v){ ?>
<?php if(isset($this->info['visual_datatable']) && $this->info['visual_datatable']==$v){ ?>
<option value="<?= $v ?>" selected="selected"><?= $v ?></option>
<?php }else{ ?>
<option value="<?= $v ?>"><?= $v ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputData">数据读取SQL或表名</label>
<div class="controls">
<textarea name="data" rows="4" class="input-block-level" id="inputData"><?= !isset($this->info['data']) ? "":$this->info['data']?></textarea>
<p class="help-block">如果设置了某个字段的读取sql会自动忽略此项设置</p>
</div>
</div>
<div class="control-group time-field-select">
<label class="control-label">X轴取值</label>
<div class="controls">
<input type="text" name="xaxis" placeholder="时间字段读取SQL" class="input-block-level" value="<?= isset($this->info['xaxis']) ? $this->info['xaxis']:'' ?>" />
<p class="help-block">例如: utctime, times , (year||'-'||month||'-1')::timestamp without time zone ,不需要在最外层加括号或者双引号。如果是制作分类图则X轴必须是category请在数据读取SQL中用将所需字段命名为category。</p>
</div>
</div>
<?php if(!empty($this->info['variable'])) { ?>
<?php $vars = array() ?>
<?php $encoder = new \Westdc\Visual\VariableEncoder; ?>
<?php $vars = $encoder->decode($this->info['variable']);?>
<?php foreach($vars as $index=>$value) { ?>
<div class="control-group var-group">
<label class="control-label" for="inputVariable">可视化要素 <small><a href="javascript:void(0);" onclick="delVar(this)">删除</a></small></label>
<div class="controls">
<input type="text" placeholder="字段名" class="" name="var[<?= $index ?>][name]" value="<?= $value['name'] ?>">
<input type="text" placeholder="显示名" class="" name="var[<?= $index ?>][title]" value="<?= $value['title'] ?>">
<input type="text" placeholder="字段sql" class="" name="var[<?= $index ?>][sql]" value="<?= (isset($value['sql']))?$value['sql']:'' ?>">
<input type="text" placeholder="查询条件" name="var[<?= $index ?>][condition]" value="<?= isset($value['condition']) && is_string($value['condition']) ? $value['condition']:"" ?><?= isset($value['condition']) && is_array($value['condition']) ? join(";",$value['condition']):"" ?>">
</div>
</div>
<?php } ?>
<?php } ?>
<div class="control-group" id="last-control-group">
<div class="controls">
<button type="button" class="btn btn-defualt" id="addVariable">添加要素</button>
</div>
</div>
<div class="control-group" id="last-control-group">
<div class="controls">
<input type="hidden" name="submit" value="1" />
<button type="submit" class="btn btn-primary">提交</button>
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
var fieldData,fieldHtml,varHtml,current_count;
function makeVarSelectHtml(field_data){
current_count = $('.var-group').length;
fieldHtml = []
varHtml = '<input type="text" placeholder="字段名" class="" name="var['+current_count+'][name]">'
+ '<input type="text" placeholder="显示名" class="" name="var['+current_count+'][title]">'
+ '<input type="text" placeholder="字段sql" class="" name="var['+current_count+'][sql]">'
+ '<input type="text" placeholder="查询条件" class="" name="var['+current_count+'][condition]">';
html = '<div class="control-group var-group">'
+ '<label class="control-label" for="inputVariable">可视化要素 <small><a href="javascript:void(0);" onclick="delVar(this)">删除</a></small></label>'
+ '<div class="controls">'
+ varHtml
+ '</div>'
+'</div>';
return html;
}
function delVar(dom){
$(dom).parent().parent().parent('.control-group').remove();
};
$(document).ready(function(){
$('#data-table').change(function(){
$('.var-group').remove();
$.ajax({
type:"POST",
url:'',
data:'tablename='+ $(this).val(),
success:function(data){
fieldData = data;
html = [];
for(i in data)
{
html.push('<option value="' + data[i] + '">' + data[i] + '</option>');
}
html = '<select name="visual_timefield">' + html.join('')+'</select>';
$('#field-time').html(html);
},
beforeSend:function(){
$('#field-time').html('加载中');
}
});
});
<?php if(!empty($this->info['ts_created']) && !empty($this->info['visual_datatable'])) { ?>
$.ajax({
type:"POST",
url:'',
data:'tablename=<?= $this->info['visual_datatable'] ?>',
success:function(data){
fieldData = data;
html = [];
for(i in data)
{
if('<?= $this->info['visual_timefield'] ?>' == data[i])
html.push('<option value="' + data[i] + '" selected="selected">' + data[i] + '</option>');
else
html.push('<option value="' + data[i] + '">' + data[i] + '</option>');
}
html = '<select name="visual_timefield">' + html.join('')+'</select>';
$('#field-time').html(html);
},
beforeSend:function(){
$('#field-time').html('加载中');
}
});
<?php } ?>
$('#addVariable').click(function(e) {
if($('#var-group').length > 0)
$('#var-group').append(makeVarSelectHtml(fieldData));
else
$('#last-control-group').prepend(makeVarSelectHtml(fieldData));
});
$('#open-field-helper').click(function(){
if(null == fieldData || $('#data-table').val() == '0')
{
alert('请先选择数据表和时间字段');
return false;
}
$('.modal-body p').html(fieldData.join(','));
$('#modal-show-field').modal('show');
});
});
</script>
<div id="modal-show-field" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">字段列表</h3>
</div>
<div class="modal-body">
<p></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
</div>
</div>

View File

@ -0,0 +1,40 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('同步GEONETWORK元数据</a>');
$this->breadcrumb()->setSeparator(' > ');
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<?php if (count($this->paginator)): ?>
<div class="datalist">
<ul class="unstyled">
<?php foreach ($this->paginator as $item): ?>
<li class="well well-small">
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?></p>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
<p>
操作:
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">编辑可视化要素</a> |
<a href="/visual/view/uuid/<?= $item['uuid'] ?>">前台预览</a>
</p>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
</div>
</div>

View File

@ -1,58 +1,68 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin">后台管理首页</a>');
$this->breadcrumb('<a href="/admin">后台管理首页</a>'); $this->breadcrumb('<a href="/admin/down">申请管理</a>');
$this->breadcrumb('<a href="/admin/down">申请管理</a>'); $this->breadcrumb('在线下载记录');
$this->breadcrumb('在线下载记录'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <h3><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</h3>
<?php if ($this->msg) : ?> <hr />
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php if ($this->msg or $this->messages) :?>
<p><?php echo $msg; ?></p> <div class="alert">
<?php endforeach;endif; ?> <?php if ($this->msg) : ?>
</div> <p><?php echo $this->msg; ?></p>
<?php endif; ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<h4 class="right_title"><?php if(!empty($this->title)) echo $this->title;?><?php echo $this->count;?> 数据下载记录</h4> <p><?php echo $msg; ?></p>
<hr /> <?php endforeach;endif; ?>
<div class="input-group form-group"> </div>
<form action="/admin/down/data/" method="get" class="input-group"> <?php endif; ?>
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" class="form-control" placeholder="搜索关键字"/>
<input type="hidden" name="search" value='1' /> <div class="row-fluid">
<span class="input-group-btn"><input type="submit" class="btn btn-default" value="搜索" /></span> <div class="span12">
</form> <form action="/admin/down/data/" method="get" class="form-search">
</div><!-- search DIV --> <div class="input-append">
<table class="stylized table table-bordered table-striped table-hover"> <input type="hidden" name="search" value='1' />
<thead><tr> <input type="text" name="keyword" value="<?php echo $this->keyword; ?>" class="span8 search-query"/>
<td width='350'>数据</td> <button type="submit" class="btn">搜索</button>
<td width='150'>下载次数</td> </div>
<td width='150'>操作</td> </form>
</tr></thead> </div>
<?php if (count($this->paginator)): ?> </div><!-- search DIV -->
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <table class="table table-hover">
<?php $autoindex++;?> <thead>
<tr> <tr>
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><span class="glyphicon glyphicon-hdd"></span></a> <a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td> <td width='350'>数据</td>
<td><?php echo $item['num']; ?></td> <td width='150'>下载次数</td>
<td> <td width='150'>操作</td>
<a href='/admin/down/data/show/<?php echo $item['uuid'];?>'>详细</a> </tr>
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> </thead>
</td> <?php if (count($this->paginator)): ?>
</tr> <?php $autoindex=0;?>
<?php endforeach; ?> <?php foreach ($this->paginator as $item): ?>
<?php endif; ?> <?php $autoindex++;?>
</table> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<div class="pagenavi"><?= $this->paginator; ?></div> <td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
</div> <td><?php echo $item['num']; ?></td>
<td>
<a href='/admin/down/data/show/<?php echo $item['uuid'];?>'>详细</a>
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>

View File

@ -7,54 +7,52 @@
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?> <div class="right_title">离线申请中可能与网站会员关联的账户列表 (<?php echo $this->count;?> 条)</div>
<h4 class="right_title">离线申请中可能与网站会员关联的账户列表 (<?php echo $this->count;?> 条)</h4><hr /> <div><a href="/admin/down/fixoffline/nouserid/1">查看所有无用户ID的申请记录</a></div>
<p><a class="btn btn-primary" href="/admin/down/fixoffline/nouserid/1">查看所有无用户ID的申请记录</a></p> <form action="" method="get">
<form action="" method="get"> <table><thead>
<table class="stylized table table-bordered table-striped table-hover"> <tr>
<thead><tr> <td width='30'>选择</td>
<td width='40'>选择</td> <td width='80'>离线申请ID</td>
<td width='80'>离线申请ID</td> <td width='100'>离线申请姓名</td>
<td width='100'>离线申请姓名</td> <td width='250'>离线申请单位</td>
<td width='250'>离线申请单位</td> <td width='100'>用户名</td>
<td width='100'>用户名</td> <td width='100'>用户姓名</td>
<td width='100'>用户姓名</td> <td width='250'>用户单位</td>
<td width='220'>用户单位</td> </tr></thead>
</tr></thead> <?php if (count($this->paginator)): ?>
<?php if (count($this->paginator)): ?> <?php $autoindex=0;?>
<?php $autoindex=0;?> <?php foreach ($this->paginator as $item): ?>
<?php foreach ($this->paginator as $item): ?> <?php $autoindex++;?>
<?php $autoindex++;?> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>"> <td><input type="checkbox" name="orders[]" value="<?php echo $item['uid']?>,<?php echo $item['oid']?>" /></td>
<td><input type="checkbox" name="orders[]" value="<?php echo $item['uid']?>,<?php echo $item['oid']?>" /></td> <td><?php echo $item['oid']?></td>
<td><?php echo $item['oid']?></td> <td><a href="/admin/down/offline/show/<?php echo $item['oid']; ?>"><?php echo $item['un'];?></a></td>
<td><a href="/admin/down/offline/show/<?php echo $item['oid']; ?>"><?php echo $item['un'];?></a></td> <td><?php echo $item['uu']; ?></td>
<td><?php echo $item['uu']; ?></td> <td><a href="/admin/user/show/id/<?php echo $item['uid']; ?>"><?php echo $item['username'];?></a></td>
<td><a href="/admin/user/show/id/<?php echo $item['uid']; ?>"><?php echo $item['username'];?></a></td> <td><?php echo $item['rn']; ?></td>
<td><?php echo $item['rn']; ?></td> <td><?php echo $item['unit'];?></td>
<td><?php echo $item['unit'];?></td> </tr>
</tr> <?php endforeach; ?>
<?php endforeach; ?> <?php endif; ?>
<?php endif; ?> </table>
</table> <div style="width:100%;text-align:left;">
<div style="width:100%;text-align:left;"> <input type="hidden" name="fix" value='1' />
<input type="hidden" name="fix" value='1' /> <input type="submit" value="匹配已选择的记录" onclick="return confirm('是否确定匹配这些用户')" />
<input class="btn btn-primary" type="submit" value="匹配已选择的记录" onclick="return confirm('是否确定匹配这些用户')" /> </div>
</div> </form>
</form> <div class="pagenavi"><?= $this->paginator; ?></div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>

View File

@ -2,18 +2,16 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('申请管理'); $this->breadcrumb('申请管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm col-md-2"> <div class="span2">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span10">
<h3>申请管理</h3>
<hr />
</div> </div>
</div> </div>

View File

@ -1,12 +1,11 @@
<div class="well"> <div class="well" style="padding:8px 0">
<ul class="nav nav-stacked"> <ul class="nav nav-list">
<li class="nav-header text-muted"><h4>申请管理与在线下载记录</h4></li> <li class="nav-header"><h4>申请管理与记录</h4></li>
<li class="nav-divider"></li> <li class="divider"></li>
<li id="Nav-down-offlineapp"><a href="/admin/down/offlineapp">离线数据申请管理</a></li> <li><a href="/admin/down/offlineapp">离线数据申请管理</a></li>
<li id="Nav-down-offline"><a href="/admin/down/offline">离线数据服务记录</a></li> <li><a href="/admin/down/offline">离线数据服务记录</a></li>
<li id="Nav-down-fixoffline"><a href="/admin/down/fixoffline">手动同步离线申请用户与网站帐号</a></li> <li><a href="/admin/down/online">在线数据下载记录</a></li>
<li id="Nav-down-online"><a href="/admin/down/online">在线数据下载记录从20110908开始</a></li> <li><a href="/admin/down/user">用户下载记录</a></li>
<li id="Nav-down-user"><a href="/admin/down/user">用户下载记录</a></li> <li><a href="/admin/down/data">数据下载记录</a></li>
<li id="Nav-down-data"><a href="/admin/down/data">数据下载记录</a></li> </ul>
</ul>
</div> </div>

View File

@ -9,59 +9,53 @@
$this->breadcrumb('离线数据申请管理</a>'); $this->breadcrumb('离线数据申请管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?> <div class="right_title">所有无网站用户信息的离线数据服务记录 <?php echo $this->count;?></div>
<div class="right_title">所有无网站用户信息的离线数据服务记录 <?php echo $this->count;?></div><hr /> <?php if (count($this->paginator)): ?>
<?php if (count($this->paginator)): ?> <table>
<table class="stylized table table-bordered table-striped table-hover"> <thead><tr>
<thead><tr> <th width='70'>姓名</th>
<th width='70'>姓名</th> <th width='150'>单位</th>
<th width='150'>单位</th> <th width='150'>地址</th>
<th width='150'>地址</th> <th width='50'>邮编</th>
<th width='50'>邮编</th> <th width='300'>用途</th>
<th width='300'>用途</th> <th width='300'>数据清单</th>
<th width='300'>数据清单</th> <th width='120'>申请时间</th>
<th width='120'>申请时间</th> <th width='100'>操作</th>
<th width='100'>操作</th> </tr></thead>
</tr></thead> <tbody>
<tbody> <?php $autoindex=0;?>
<?php $autoindex=0;?> <?php foreach ($this->paginator as $item): ?>
<?php foreach ($this->paginator as $item): ?> <?php $autoindex++;?>
<?php $autoindex++;?> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<tr> <td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
<td> <td><?= $item['unit']; ?></td>
<a href="/admin/user/show/id/<?php echo $item['userid'];?>"><span class="glyphicon glyphicon-user"></span></a> <td><?= $item['address']; ?></td>
<a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> <td><?= $item['postcode']; ?></td>
</td> <td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?= $item['project']; ?></textarea></td>
<td><?= $item['unit']; ?></td> <td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?= $item['datalist']; ?></textarea></td>
<td><?= $item['address']; ?></td> <td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
<td><?= $item['postcode']; ?></td> <td>
<td><textarea readonly="readonly" style="width:98%;height:100px;border:none;font-size:12px;"><?= $item['project']; ?></textarea></td> <a href="/admin/down/offline/edit/<?= $item['id']; ?>">编辑</a> |
<td><textarea readonly="readonly" style="width:98%;height:100px;border:none;font-size:12px;"><?= $item['datalist']; ?></textarea></td> <a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td> <a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
<td> <a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a>
<a href="/admin/down/offline/edit/<?= $item['id']; ?>">编辑</a> | </td>
<a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> | </tr>
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> | <?php endforeach; ?>
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> </tbody></table>
</td> <?php endif; ?>
</tr> <div class="pagenavi"><?= $this->paginator; ?></div>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>

View File

@ -1,196 +1,194 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin/down">申请管理</a>');
$this->breadcrumb('<a href="/admin/down">申请管理</a>'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'uploadify');
$this->Theme->AppendPlus($this,'uploadify'); $this->breadcrumb('离线数据申请管理</a>');
$this->breadcrumb('离线数据申请管理</a>'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); ?>
?> <style>
table thead tr th {background:#EBF2F6;color:#444;}
<div class="row"> .high{background:#444;color:#FFF;}
<div class="hidden-sm hidden-xs col-md-2"> </style>
<?= $this->partial('down/left.phtml'); ?> <div class="row-fluid">
</div> <div class="span2">
<div class="col-md-10 col-sm-12"> <?= $this->partial('down/left.phtml'); ?>
<?php if ($this->msg or $this->messages) :?> </div>
<div id="message" class="alert alert-info"> <div class="span10">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <h3>离线数据服务记录</h3>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <hr />
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php if ($this->msg or $this->messages) :?>
</div> <div id="message">
<?php endif; ?> <?php if ($this->msg) : ?>
<!-- <h4>离线数据服务记录</h4> --> <p><?php echo $this->msg; ?></p>
<div class="form-group"> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<a href="/admin/down/offline/add/1" class="btn btn-primary btn-sm">添加新的离线服务记录</a> <p><?php echo $msg; ?></p>
<a href="/admin/down/offline/down/1" class="btn btn-primary btn-sm">下载所有离线服务记录</a> <?php endforeach;endif; ?>
<a href="/admin/down/offline/update/1" class="btn btn-primary btn-sm" onclick="return confirm('该操作需要较长时间,请不要中途刷新页面,是否确定继续?')">自动匹配离线下载用户与网站用户</a> </div>
<a href="/admin/down/offline/emaillist/1" class="btn btn-primary btn-sm">下载服务用户邮箱列表</a> <?php endif; ?>
<a href="/admin/down/offline/monthreport/1" class="btn btn-primary btn-sm">下载上月服务记录(科技部上报)</a> <div class="pull-left">
</div> <a href="/admin/down/offline/add/1" class="btn btn-info">添加新的离线服务记录</a>
<div class="input-group form-group"> <a href="/admin/down/offline/down/1" class="btn btn-info">下载所有离线服务记录</a>
<form id="datasearch" class="search_form input-group" action=""> <a href="/admin/down/offline/emaillist/1" class="btn btn-info">下载服务用户邮箱列表</a>
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字" /> </div>
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" /> <div class="input-append pull-right">
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" /> <form id="datasearch" class="search_form" action="">
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
</form> <input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
</div> <input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
<?php if (count($this->paginator)): ?> <button type="submit" class="btn" id="search_btn">搜索</button>
<table class="stylized table table-bordered table-striped table-hover"> </form>
<thead> </div>
<tr> <?php if (count($this->paginator)): ?>
<th width="52">姓名</th> <table class="table table-bordered table-hover">
<th>单位</th> <thead>
<th>地址</th> <tr>
<th>邮编</th> <th width="52">姓名</th>
<th>用途</th> <th>单位</th>
<th>数据清单</th> <th>地址</th>
<th>申请时间</th> <th>邮编</th>
<th>操作</th> <th>用途</th>
</tr></thead> <th>数据清单</th>
<tbody> <th>申请时间</th>
<?php $autoindex=0;?> <th>操作</th>
<?php foreach ($this->paginator as $item): ?> </tr></thead>
<?php $autoindex++;?> <tbody>
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>"> <?php $autoindex=0;?>
<td><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a></td> <?php foreach ($this->paginator as $item): ?>
<td><?= $item['unit']; ?></td> <?php $autoindex++;?>
<td><?= $item['address']; ?></td> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><?= $item['postcode']; ?></td> <td><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a></td>
<td><textarea readonly="readonly" style="width:280px;height:100px;border:none;font-size:12px;"><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></textarea></td> <td><?= $item['unit']; ?></td>
<td><textarea readonly="readonly" style="width:280px;height:100px;border:none;font-size:12px;"><?= $item['datalist']; ?></textarea></td> <td><?= $item['address']; ?></td>
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td> <td><?= $item['postcode']; ?></td>
<td> <td><textarea readonly="readonly" style="width:280px;height:100px;border:none;font-size:12px;"><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></textarea></td>
<a href="/admin/down/offline/edit/<?= $item['id']; ?><?php if(empty($this->page)) "" ; else echo "/page/".$this->page; ?>">编辑</a> | <td><textarea readonly="readonly" style="width:280px;height:100px;border:none;font-size:12px;"><?= $item['datalist']; ?></textarea></td>
<a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> | <td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> | <td>
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> | <a href="/admin/down/offline/edit/<?= $item['id']; ?><?php if(empty($this->page)) "" ; else echo "/page/".$this->page; ?>">编辑</a> |
<a href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定重新通过该申请?')">重新通过</a> | <a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
<a href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传签字申请表</a> <a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
<?php if(!empty($item['applicationform'])) { ?> <a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> |
| <a href="/admin/down/applicationform/ac/view/?link=<?= urlencode($item['applicationform'])?>">查看签字申请表</a> <a href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定重新通过该申请?')">重新通过</a> |
<?php }?> <a href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传签字申请表</a>
</td> <?php if(!empty($item['applicationform'])) { ?>
</tr> | <a href="/admin/down/applicationform/ac/view/?link=<?= urlencode($item['applicationform'])?>">查看签字申请表</a>
<?php endforeach; ?> <?php }?>
</tbody></table> </td>
<?php endif; ?> </tr>
<div class="pagenavi"><?= $this->paginator; ?></div> <?php endforeach; ?>
</div> </tbody></table>
</div><!-- row --> <?php endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
<div class="modal fade" id="upload-form" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> </div>
<div class="modal-dialog"> </div><!-- row -->
<div class="modal-content"> <div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">申请表上传</h4> <h3 id="myModalLabel">申请表上传</h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form id="application-form"> <form id="application-form">
<div id="fsUploadProgress">允许上传30M以内的 PDF 文件</div> <div id="fsUploadProgress">允许上传30M以内的 PDF 文件</div>
<input type="file" name="Filedata" id="file_upload" /> <input type="file" name="Filedata" id="file_upload" />
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button> <button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button>
<button class="btn btn-primary">上传完成</button> <button class="btn btn-primary">上传完成</button>
</div> </div>
</div> </div>
</div> <script>
</div> //var param = {};
<script> //var upload_count = 0;
//var param = {}; var uploader;
//var upload_count = 0; var param;
var uploader; $(function() {
var param; $('#file_upload').uploadify({
$(function() { 'swf' : '/js/lib/uploadify/uploadify.swf',
$('#file_upload').uploadify({ 'uploader' : '/admin/down/uploadapplicationform',
'swf' : '/js/lib/uploadify/uploadify.swf', 'multi' : false,
'uploader' : '/admin/down/uploadapplicationform', 'auto' : true,
'multi' : false, 'fileTypeExts' : '*.pdf; *.jpg',
'auto' : true, 'onUploadSuccess' : function(file, data, response) {
'fileTypeExts' : '*.pdf; *.jpg', upload.onsuccess(file, data, response);
'onUploadSuccess' : function(file, data, response) { },
upload.onsuccess(file, data, response); 'onUploadStart' : function(file) {
}, $('#file_upload').uploadify('settings','formData',param);
'onUploadStart' : function(file) { }
$('#file_upload').uploadify('settings','formData',param); });
} });
});
}); var upload = {
onsuccess : function(file, data, response){
var upload = { _data = $.parseJSON(data);
onsuccess : function(file, data, response){ if(!$.isEmptyObject(_data.error))
_data = $.parseJSON(data); {
if(!$.isEmptyObject(_data.error)) alert(_data.error);
{ }else{
alert(_data.error); $('#upload-form').modal('hide');
}else{ window.location = window.location;
$('#upload-form').modal('hide'); }
window.location = window.location; },
} showUploadForm : function(id){
}, $('#upload-form').modal('show');
showUploadForm : function(id){ param = {
$('#upload-form').modal('show'); "PHPSESSID" : "<?php echo session_id(); ?>",
param = { 'orderid' : id
"PHPSESSID" : "<?php echo session_id(); ?>", };
'orderid' : id }
}; };
} </script>
}; <script>
</script> function action(name,id){
<script> var url;
function action(name,id){ if(name == "start")
var url; {url = '/admin/down/offlineapp/start/'+id;}
if(name == "start") if(name == "finish")
{url = '/admin/down/offlineapp/start/'+id;} {url = '/admin/down/offlineapp/finish/'+id;}
if(name == "finish") if(name == "deleted")
{url = '/admin/down/offlineapp/finish/'+id;} {url = '/admin/down/offlineapp/cancel/'+id;}
if(name == "deleted") if(name == "deny")
{url = '/admin/down/offlineapp/cancel/'+id;} {url = '/admin/down/offlineapp/deny/'+id;}
if(name == "deny") if(name == "reset")
{url = '/admin/down/offlineapp/deny/'+id;} {url = '/admin/down/offlineapp/reset/'+id;}
if(name == "reset") $.ajax({
{url = '/admin/down/offlineapp/reset/'+id;} 'type':"POST",
$.ajax({ 'url':url,
'type':"POST", 'data':'',
'url':url, 'success':OnDataLoad,
'data':'', 'timeout': 30000,
'success':OnDataLoad, 'error': AjaxError
'timeout': 30000, });
'error': AjaxError }
}); function OnDataLoad(data){
} if (typeof(data)=='object')
function OnDataLoad(data){ {
if (typeof(data)=='object') if(typeof(data.error)!='undefined')
{ {Alert(data.error);return false;}
if(typeof(data.error)!='undefined') if(typeof(data.msg)!='undefined')
{Alert(data.error);return false;} {Alert(data.msg);}
if(typeof(data.msg)!='undefined') if(typeof(data.started)!='undefined')
{Alert(data.msg);} {$('#start_'+data.started).remove();}
if(typeof(data.started)!='undefined') if(typeof(data.finish) != 'undefined')
{$('#start_'+data.started).remove();} {$('#list_'+data.finish).fadeOut();}
if(typeof(data.finish) != 'undefined') }
{$('#list_'+data.finish).fadeOut();} else{
} Alert('出现错误,请稍后再试');
else{ }
Alert('出现错误,请稍后再试'); }
} function AjaxError(){
} $.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
function AjaxError(){ }
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'}); $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
} $(".inline").colorbox({inline:true, width:"50%"});
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); function Alert(html){
$(".inline").colorbox({inline:true, width:"50%"}); $.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
function Alert(html){ }
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'}); </script>
}
</script>

View File

@ -9,23 +9,19 @@
$this->breadcrumb('离线数据服务记录管理</a>'); $this->breadcrumb('离线数据服务记录管理</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div> <div id="rightPanel">
<div class="col-md-10 col-sm-12"> <?php if ($this->msg or $this->messages) :?>
<?php if ($this->msg or $this->messages) :?> <div id="message">
<div id="message" class="alert alert-info"> <?php if ($this->msg) : ?>
<?php if ($this->msg) : ?> <p><?php echo $this->msg; ?></p>
<p><?php echo $this->msg; ?></p> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <p><?php echo $msg; ?></p>
<p><?php echo $msg; ?></p> <?php endforeach;endif; ?>
<?php endforeach;endif; ?> </div>
</div> <?php endif; ?>
<?php endif; ?> <a href="/admin/down/offline/add/1">添加新的离线服务记录</a>
<a class="btn btn-primary bt-sm" href="/admin/down/offline/add/1">添加新的离线服务记录</a><p></p> <?= $this->form; ?>
<?= $this->form; ?>
</div>
</div> </div>

View File

@ -1,205 +1,200 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin/down">申请管理</a>');
$this->breadcrumb('<a href="/admin/down">申请管理</a>'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'uploadify');
$this->Theme->AppendPlus($this,'uploadify'); $this->breadcrumb('离线数据申请管理</a>');
$this->breadcrumb('离线数据申请管理</a>'); $this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > '); ?>
?> <div class="row-fluid">
<div class="row"> <div class="span2">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div> <div class="span10">
<div class="col-md-10 col-sm-12"> <h3>离线数据申请管理</h3>
<?php if ($this->msg or $this->messages) :?> <hr />
<div id="message" class="alert alert-info">
<?php if ($this->msg) : ?> <?php if ($this->msg or $this->messages) :?>
<p><?php echo $this->msg; ?></p> <div id="message">
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php if ($this->msg) : ?>
<p><?php echo $msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endforeach;endif; ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
</div> <p><?php echo $msg; ?></p>
<?php endif; ?> <?php endforeach;endif; ?>
<!-- <h4>离线数据申请管理</h4> --> </div>
<div class="form-group"> <?php endif; ?>
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')" class="btn btn-danger">重置1年前的所有未收到申请表的记录</a>
<a href="/admin/down/offlineapp/status/4" class="btn btn-info">已收到的申请</a> <div style="overflow:hidden">
<a href="/admin/down/offlineapp/status/-1" class="btn btn-warning">已拒绝的申请</a> <div class="pull-left">
<a href="/admin/down/offlineapp/ac/pending" class="btn btn-primary">待处理的申请</a> <a href="/admin/down/offlineapp/status/4" class="btn btn-info">已收到的申请</a>
<a href="/admin/down/offline" class="btn btn-success">已通过的申请(离线服务记录)</a> <a href="/admin/down/offlineapp/status/-1" class="btn btn-info">已拒绝的申请</a>
</div> <a href="/admin/down/offlineapp/ac/pending" class="btn btn-info">待处理的申请</a>
<a href="/admin/down/offline" class="btn btn-info">已通过的申请(离线服务记录)</a>
<div class="input-group form-group"> </div>
<form id="datasearch" class="search_form input-group" action="">
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" class="form-control" placeholder="搜索关键字"/> <div class="input-append pull-right">
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" /> <form id="datasearch" class="search_form" action="">
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" /> <input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span> <input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
</form> <input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
</div> <button type="submit" class="btn" id="search_btn">搜索</button>
</form>
<div id=""> </div>
<?php </div>
if (count($this->paginator)):
echo '<ul class="list-unstyled">'; <div id="datalist" style="overflow:hidden">
$autoindex=0; <?php
foreach ($this->paginator as $item): if (count($this->paginator)):
$autoindex++;?> echo '<ul class="unstyled">';
<li id="list_<?php echo $item['id'];?>" class="well well-sm"> $autoindex=0;
<h4> foreach ($this->paginator as $item):
<?= $autoindex ?>. $autoindex++;?>
<a href="mailto:<?= $item['email']; ?>?subject=答复数据申请问题"><span class="glyphicon glyphicon-user"></span> <?= $item['username']; ?></a> | <li id="list_<?php echo $item['id'];?>" class="well well-small">
申请时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?> <p>
<?php if(!empty($item['ts_received'])) echo " | 收到时间:".date('Y-m-d',strtotime($item['ts_received']));?> <?= $autoindex ?>.
</h4> <a href="mailto:<?= $item['email']; ?>?subject=答复数据申请问题"><?= $item['username']; ?></a> |
<p class="text-muted"> 申请时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>
单位:<?= $item['unit']; ?> | <?php if(!empty($item['ts_received'])) echo " | 收到时间:".date('Y-m-d',strtotime($item['ts_received']));?>
地址:<?= $item['address']; ?> | </p>
邮编:<?= $item['postcode']; ?> <p>
</p> 单位:<?= $item['unit']; ?> |
<blockquote> 地址:<?= $item['address']; ?> |
用途: 邮编:<?= $item['postcode']; ?>
<p style="width:95%;margin:0px auto;"><q><cite><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></cite></q></p> </p>
</blockquote> <p>
<p>数据清单:<?= $item['datalist']; ?></p> 用途:
<p> <p style="width:95%;margin:0px auto;"><q><cite><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></cite></q></p>
<a class="label label-info" href="/admin/down/offlineapp/view/<?= $item['id']; ?>">原始申请表</a> </p>
<?php if ($item['datastatus']!=4) : ?> <p>
<span id="start_<?= $item['id']; ?>"> 数据清单:<?= $item['datalist']; ?>
<a class="label label-success" href="javascript:action('start',<?= $item['id']; ?>);" onclick="return confirm('确定收到该申请?')">收到</a> </p>
</span> <p>
<?php else: ?> <a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">原始申请表</a> |
<a class="label label-success" href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定通过该申请?')">通过</a> <?php if ($item['datastatus']==3) : ?>
<?php endif; ?> <span id="start_<?= $item['id']; ?>"><a href="javascript:action('start',<?= $item['id']; ?>);" onclick="return confirm('确定收到该申请?')">收到</a></span> |
<a class="label label-danger" href="javascript:action('deleted',<?= $item['id']; ?>);" onclick="return confirm('确定将此记录删除?')">删除</a> <?php endif; ?>
<?php if ($item['datastatus']!=-1) : ?> <a href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定通过该申请?')">通过</a> |
<a class="label label-warning" href="javascript:action('deny',<?= $item['id']; ?>);" onclick="return confirm('确定拒绝该申请?')">拒绝</a> <a href="javascript:action('deleted',<?= $item['id']; ?>);" onclick="return confirm('确定将此记录删除?')">删除</a> |
<?php endif; ?> <a href="javascript:action('deny',<?= $item['id']; ?>);" onclick="return confirm('确定拒绝该申请?')">拒绝</a> |
<a class="label label-warning" href="javascript:action('reset',<?= $item['id']; ?>);" onclick="return confirm('是否重置该申请?')">重置</a> <a href="javascript:action('reset',<?= $item['id']; ?>);" onclick="return confirm('是否重置该申请?')">重置</a> |
<a class="label label-primary" href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传签字申请表</a> <a href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传签字申请表</a>
<?php if(!empty($item['applicationform'])) { ?> <?php if(!empty($item['applicationform'])) { ?>
<a class="label label-primary" href="/admin/down/applicationform/ac/view/?link=<?= urlencode($item['applicationform'])?>">查看签字申请表</a> | <a href="/admin/down/applicationform/ac/view/?link=<?= urlencode($item['applicationform'])?>">查看签字申请表</a>
<a class="label label-warning" href="/admin/down/offlineapps/ac/resetappform/?offlineappid=<?= $item['id'] ?>" onclick="return confirm('是否重置该申请表?')">重置申请表</a> | <a href="/admin/down/offlineapps/ac/resetappform/?offlineappid=<?= $item['id'] ?>" onclick="return confirm('是否重置该申请表?')">重置申请表</a>
<?php }?> <?php }?>
</p> </p>
</li> </li>
<?php endforeach; <?php endforeach;
echo "</ul>"; echo "</ul>";
endif; ?> endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
</div> </div>
</div> </div>
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
<div class="modal fade" id="upload-form" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header">
<div class="modal-dialog"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="modal-content"> <h3 id="myModalLabel">申请表上传</h3>
<div class="modal-header"> </div>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <div class="modal-body">
<h4 class="modal-title" id="myModalLabel">申请表上传</h4> <form id="application-form">
</div> <div id="fsUploadProgress">允许上传30M以内的 PDF 文件</div>
<div class="modal-body"> <input type="file" name="Filedata" id="file_upload" />
<form id="application-form"> </form>
<div id="fsUploadProgress">允许上传30M以内的 PDF 文件</div> </div>
<input type="file" name="Filedata" id="file_upload" /> <div class="modal-footer">
</form> <button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button>
</div> <button class="btn btn-primary">上传完成</button>
<div class="modal-footer"> </div>
<button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button> </div>
<button class="btn btn-primary">上传完成</button> <script>
</div> //var param = {};
</div> //var upload_count = 0;
</div> var uploader;
</div> var param;
<script> $(function() {
//var param = {}; $('#file_upload').uploadify({
//var upload_count = 0; 'swf' : '/js/lib/uploadify/uploadify.swf',
var uploader; 'uploader' : '/admin/down/uploadapplicationform',
var param; 'multi' : false,
$(function() { 'auto' : true,
$('#file_upload').uploadify({ 'fileTypeExts' : '*.pdf; *.jpg',
'swf' : '/js/lib/uploadify/uploadify.swf', 'onUploadSuccess' : function(file, data, response) {
'uploader' : '/admin/down/uploadapplicationform', upload.onsuccess(file, data, response);
'multi' : false, },
'auto' : true, 'onUploadStart' : function(file) {
'fileTypeExts' : '*.pdf; *.jpg', $('#file_upload').uploadify('settings','formData',param);
'onUploadSuccess' : function(file, data, response) { }
upload.onsuccess(file, data, response); });
}, });
'onUploadStart' : function(file) {
$('#file_upload').uploadify('settings','formData',param); var upload = {
} onsuccess : function(file, data, response){
}); _data = $.parseJSON(data);
}); if(!$.isEmptyObject(_data.error))
{
var upload = { alert(_data.error);
onsuccess : function(file, data, response){ }else{
_data = $.parseJSON(data); $('#upload-form').modal('hide');
if(!$.isEmptyObject(_data.error)) window.location = window.location;
{ }
alert(_data.error); },
}else{ showUploadForm : function(id){
$('#upload-form').modal('hide'); $('#upload-form').modal('show');
window.location = window.location; param = {
} "PHPSESSID" : "<?php echo session_id(); ?>",
}, 'orderid' : id
showUploadForm : function(id){ };
$('#upload-form').modal('show'); }
param = { };
"PHPSESSID" : "<?php echo session_id(); ?>",
'orderid' : id function action(name,id){
}; var url;
} if(name == "start")
}; {url = '/admin/down/offlineapp/start/'+id;}
if(name == "finish")
function action(name,id){ {url = '/admin/down/offlineapp/finish/'+id;}
var url; if(name == "deleted")
if(name == "start") {url = '/admin/down/offlineapp/cancel/'+id;}
{url = '/admin/down/offlineapp/start/'+id;} if(name == "deny")
if(name == "finish") {url = '/admin/down/offlineapp/deny/'+id;}
{url = '/admin/down/offlineapp/finish/'+id;} if(name == "reset")
if(name == "deleted") {url = '/admin/down/offlineapp/reset/'+id;}
{url = '/admin/down/offlineapp/cancel/'+id;} $.ajax({
if(name == "deny") 'type':"POST",
{url = '/admin/down/offlineapp/deny/'+id;} 'url':url,
if(name == "reset") 'data':'',
{url = '/admin/down/offlineapp/reset/'+id;} 'success':OnDataLoad,
$.ajax({ 'timeout': 30000,
'type':"POST", 'error': AjaxError
'url':url, });
'data':'', }
'success':OnDataLoad, function OnDataLoad(data){
'timeout': 30000, if (typeof(data)=='object')
'error': AjaxError {
}); if(typeof(data.error)!='undefined')
} {Alert(data.error);return false;}
function OnDataLoad(data){ if(typeof(data.msg)!='undefined')
if (typeof(data)=='object') {Alert(data.msg);}
{ if(typeof(data.started)!='undefined')
if(typeof(data.error)!='undefined') {$('#start_'+data.started).remove();}
{Alert(data.error);return false;} if(typeof(data.finish) != 'undefined')
if(typeof(data.msg)!='undefined') {$('#list_'+data.finish).fadeOut();}
{Alert(data.msg);} }
if(typeof(data.started)!='undefined') else{
{$('#start_'+data.started).remove();} Alert('出现错误,请稍后再试');
if(typeof(data.finish) != 'undefined') }
{$('#list_'+data.finish).fadeOut();} }
} function AjaxError(){
else{ $.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
Alert('出现错误,请稍后再试'); }
} $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
} $(".inline").colorbox({inline:true, width:"50%"});
function AjaxError(){ function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'}); $.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
} }
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); </script>
$(".inline").colorbox({inline:true, width:"50%"});
function Alert(html){
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
}
</script>

View File

@ -11,8 +11,5 @@
<li class="<?= $this->navIn == "passed" ? "active":"" ?>"> <li class="<?= $this->navIn == "passed" ? "active":"" ?>">
<a href="/admin/down/offlineapps/ac/passed">已上传申请表已通过</a> <a href="/admin/down/offlineapps/ac/passed">已上传申请表已通过</a>
</li> </li>
<li class="<?= $this->navIn == "notsubmitted" ? "active":"" ?>">
<a href="/admin/down/offlineapps/ac/notsubmitted">未接收未上传申请表</a>
</li>
</ul> </ul>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'uploadify'); $this->Theme->AppendPlus($this,'uploadify');
@ -22,11 +21,11 @@
table thead tr th {background:#EBF2F6;color:#444;} table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;} .high{background:#444;color:#FFF;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?> <?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'uploadify'); $this->Theme->AppendPlus($this,'uploadify');
@ -22,11 +21,11 @@
table thead tr th {background:#EBF2F6;color:#444;} table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;} .high{background:#444;color:#FFF;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?> <?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'uploadify'); $this->Theme->AppendPlus($this,'uploadify');
@ -22,11 +21,11 @@
table thead tr th {background:#EBF2F6;color:#444;} table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;} .high{background:#444;color:#FFF;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?> <?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'uploadify'); $this->Theme->AppendPlus($this,'uploadify');
@ -22,11 +21,11 @@
table thead tr th {background:#EBF2F6;color:#444;} table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;} .high{background:#444;color:#FFF;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?> <?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>

View File

@ -1,24 +1,19 @@
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">申请表上传</h3>
</div>
<div class="modal-body">
<form id="application-form">
<div id="fsUploadProgress">允许上传20M以内的 PDF 文件</div>
<input type="file" name="Filedata" id="file_upload" />
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button>
<button class="btn btn-primary">上传完成</button>
</div>
</div>
<script> <script>
_this.SessionID = '<?php echo session_id(); ?>'; _this.SessionID = '<?php echo session_id(); ?>';
</script> </script>
<!-- Modal -->
<div class="modal fade" id="upload-form" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">申请表上传</h4>
</div>
<div class="modal-body">
<form id="application-form">
<div id="fsUploadProgress">允许上传20M以内的 PDF 文件</div>
<input type="file" name="Filedata" id="file_upload" />
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button>
<button class="btn btn-primary">上传完成</button>
</div>
</div>
</div>
</div>

View File

@ -2,7 +2,6 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->Theme->AppendPlus($this,'colorbox'); $this->Theme->AppendPlus($this,'colorbox');
$this->Theme->AppendPlus($this,'uploadify'); $this->Theme->AppendPlus($this,'uploadify');
@ -22,11 +21,11 @@
table thead tr th {background:#EBF2F6;color:#444;} table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;} .high{background:#444;color:#FFF;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?> <?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>

View File

@ -2,23 +2,24 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<style> <style>
table thead tr th {background:#EBF2F6;color:#444;} table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;} .high{background:#444;color:#FFF;}
</style> </style>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span3">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div class="span9">
<?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?> <?= $this->partial('down/offlineapps-navpills.phtml',array('navIn'=>$this->navIn)); ?>
<form action="" method="get" class="search input-append"> <form action="" method="get" class="search input-append">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" /> <input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<button type="submit" class="btn">搜索</button> <button type="submit" class="btn">搜索</button>
</form> </form>
<table class="table table-bordered table-hover"><thead> <table class="table table-bordered table-hover"><thead>

View File

@ -10,30 +10,34 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div class="row"> <div id="divContent">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('down/left.phtml'); ?> <div id="leftPanel">
</div> <?= $this->partial('down/left.phtml'); ?>
<?php if ($this->msg or $this->messages) :?> </div>
<div id="message" class="alert alert-info">
<?php if ($this->msg) : ?> <?php if ($this->msg or $this->messages) :?>
<p><?php echo $this->msg; ?></p> <div id="message">
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php if ($this->msg) : ?>
<p><?php echo $msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endforeach;endif; ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
</div> <p><?php echo $msg; ?></p>
<?php endif; ?> <?php endforeach;endif; ?>
<div class="col-md-10 col-sm-12"> </div>
<table class="stylized table table-bordered table-striped table-hover"> <?php endif; ?>
<tr><td width='80'>姓名</td><td><?php echo $this->infos['username'];?></td></tr>
<tr><td>单位</td><td><?php echo $this->infos['unit'];?></td></tr>
<tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr> <div id="rightPanel">
<tr><td>地址</td><td><?php echo $this->infos['address'];?></td></tr> <table>
<tr><td>邮编</td><td><?php echo $this->infos['postcode'];?></td></tr> <tr><td width='80'>姓名</td><td><?php echo $this->infos['username'];?></td></tr>
<tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr> <tr><td>单位</td><td><?php echo $this->infos['unit'];?></td></tr>
<tr><td>Email</td><td><?php echo $this->infos['email'];?></td></tr> <tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr>
<tr><td>用途</td><td><textarea style="width: 99%; height: 163px;" readonly="readonly"><?php echo $this->infos['project'];?></textarea></td></tr> <tr><td>地址</td><td><?php echo $this->infos['address'];?></td></tr>
<tr><td>时间</td><td><?php echo date('Y-m-d H:i:s', strtotime($this->infos['ts_created']));?></td></tr> <tr><td>邮编</td><td><?php echo $this->infos['postcode'];?></td></tr>
</table> <tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr>
</div> <tr><td>Email</td><td><?php echo $this->infos['email'];?></td></tr>
<tr><td>用途</td><td><textarea style="width:500px;height:200px;font-size:12px;" readonly="readonly"><?php echo $this->infos['project'];?></textarea></td></tr>
<tr><td>时间</td><td><?php echo date('Y-m-d H:i:s', strtotime($this->infos['ts_created']));?></td></tr>
</table>
</div>
</div> </div>

View File

@ -2,70 +2,71 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/down">申请管理</a>'); $this->breadcrumb('<a href="/admin/down">申请管理</a>');
$this->breadcrumb('在线数据下载记录</a>'); $this->breadcrumb('在线数据下载记录</a>');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div class="row"> <div class="row-fluid">
<div class="hidden-sm hidden-xs col-md-2"> <div class="span2">
<?= $this->partial('down/left.phtml'); ?> <?= $this->partial('down/left.phtml'); ?>
</div> </div>
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div class="span10">
<h3><?php if(!empty($this->title)) echo $this->title;?>共有 <?php echo $this->count;?> 条在线下载记录</h3>
<hr />
<?php if ($this->msg or $this->messages) :?>
<div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="col-md-10 col-sm-12">
<h4 class="right_title"><?php if(!empty($this->title)) echo $this->title;?>共有 <?php echo $this->count;?> 条在线下载记录</h4><hr /> <div class="search">
<div class="input-group form-group"> <form action="/admin/down/search/" method="get">
<form action="/admin/down/search/" method="get" class="search_form input-group"> <div class="input-append">
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" class="form-control" placeholder="搜索关键字" /> <input type="hidden" name="search" value='1' />
<input type="hidden" name="search" value='1' /> <input type="text" name="keyword" value="<?php echo $this->keyword; ?>" />
<span class="input-group-btn"><input class="btn btn-default" type="submit" class="searchbtn" value="搜索" /></span> <button class="btn" type="submit">搜索</button>
</div>
</form> </form>
</div><!-- search DIV --> </div><!-- search DIV -->
<div class="table-responsive">
<table class="stylized table table-bordered table-striped table-hover"> <table class="table table-hover">
<thead><tr> <thead>
<td width='100'>姓名</td> <tr>
<td width='150'>单位</td> <td width='100'>姓名</td>
<td width='350'>数据</td> <td width='150'>单位</td>
<td width='300'>用途</td> <td width='350'>数据</td>
<td width='120'>下载时间</td> <td width='300'>用途</td>
<td width='100'>操作</td> <td width='120'>下载时间</td>
</tr></thead> <td width='100'>操作</td>
<?php if (count($this->paginator)): ?> </tr>
<?php $autoindex=0;?> </thead>
<?php foreach ($this->paginator as $item): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex++;?> <?php $autoindex=0;?>
<tr> <?php foreach ($this->paginator as $item): ?>
<td> <?php $autoindex++;?>
<a href="/admin/user/show/id/<?php echo $item['userid'];?>"><span class="glyphicon glyphicon-user"></span></a> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> <td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
</td> <td><?= $item['unit']?></td>
<td><?= $item['unit']?></td> <td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
<td> <td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?php echo $item['project']; ?></textarea></td>
<a href="/data/<?php echo $item['uuid'];?>" target="_blank"><span class="glyphicon glyphicon-hdd"></span></a> <td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
<a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a> <td>
</td> <a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
<td><textarea readonly="readonly" style="width:98%;height:98%;border:none;font-size:12px;background:#FFF;"><?php echo $item['project']; ?></textarea></td> <a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td> </td>
<td> </tr>
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a> <?php endforeach; ?>
<a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a> <?php endif; ?>
</td> </table>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div> </div>
</div> </div>

View File

@ -10,36 +10,35 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div>
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<table class="stylized table table-bordered table-striped table-hover"> <table>
<tr><td>用户</td><td><a href="/admin/user/show/id/<?php echo $this->infos['uid'];?>"><?php echo $this->infos['uname'];?> </a> <a href="/admin/down/user/show/<?php echo $this->infos['uid'];?>">用户下载记录 </a></td></tr> <tr><td>用户</td><td><a href="/admin/user/show/id/<?php echo $this->infos['uid'];?>"><?php echo $this->infos['uname'];?> </a> <a href="/admin/down/user/show/<?php echo $this->infos['uid'];?>">用户下载记录 </a></td></tr>
<tr><td>姓名</td><td><?php echo $this->infos['username'];?></td></tr> <tr><td>姓名</td><td><?php echo $this->infos['username'];?></td></tr>
<tr><td>数据</td><td><a href="/data/<?php echo $this->infos['uuid'];?>"><?php echo $this->infos['title'];?></a><a href="/admin/down/data/show/<?php echo $this->infos['uuid'];?>">数据下载记录</a></td></tr> <tr><td>数据</td><td><a href="/data/<?php echo $this->infos['uuid'];?>"><?php echo $this->infos['title'];?></a><a href="/admin/down/data/show/<?php echo $this->infos['uuid'];?>">数据下载记录</a></td></tr>
<tr><td>单位</td><td><?php echo $this->infos['unit'];?></td></tr> <tr><td>单位</td><td><?php echo $this->infos['unit'];?></td></tr>
<tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr> <tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr>
<tr><td>地址</td><td><?php echo $this->infos['address'];?></td></tr> <tr><td>地址</td><td><?php echo $this->infos['address'];?></td></tr>
<tr><td>邮编</td><td><?php echo $this->infos['postcode'];?></td></tr> <tr><td>邮编</td><td><?php echo $this->infos['postcode'];?></td></tr>
<tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr> <tr><td>电话</td><td><?php echo $this->infos['phone'];?></td></tr>
<tr><td>Email</td><td><?php echo $this->infos['email'];?></td></tr> <tr><td>Email</td><td><?php echo $this->infos['email'];?></td></tr>
<tr><td>用途</td><td><textarea style="width:99%;height:200px;font-size:12px;"><?php echo $this->infos['project'];?></textarea></td></tr> <tr><td>用途</td><td><textarea style="width:500px;height:200px;font-size:12px;"><?php echo $this->infos['project'];?></textarea></td></tr>
<tr><td>项目编号</td><td><?php echo $this->infos['project_id'];?></td></tr> <tr><td>项目编号</td><td><?php echo $this->infos['project_id'];?></td></tr>
<tr><td>项目标题</td><td><?php echo $this->infos['project_title'];?></td></tr> <tr><td>项目标题</td><td><?php echo $this->infos['project_title'];?></td></tr>
<tr><td>项目类型</td><td><?php echo $this->infos['project_type'];?></td></tr> <tr><td>项目类型</td><td><?php echo $this->infos['project_type'];?></td></tr>
<tr><td>项目信息</td><td><?php echo $this->infos['project'];?></td></tr> <tr><td>项目信息</td><td><?php echo $this->infos['project'];?></td></tr>
<tr><td>时间</td><td><?php echo date('Y-m-d H:i:s', strtotime($this->infos['ts_created']));?></td></tr> <tr><td>时间</td><td><?php echo date('Y-m-d H:i:s', strtotime($this->infos['ts_created']));?></td></tr>
</table> </table>
</div>
</div> </div>

View File

@ -12,11 +12,10 @@
$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css'); $this->headLink()->appendStylesheet('/css/colorbox.css');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div class="col-md-10 col-sm-12"> <div id="rightPanel">
<?php <?php
if(!empty($this->error)) if(!empty($this->error))
{ {
@ -55,7 +54,6 @@
} }
?> ?>
</div> </div>
</div>
<script> <script>
$('#wapper').width($('body').width()-300); $('#wapper').width($('body').width()-300);
function sendmail(){ function sendmail(){

View File

@ -10,52 +10,48 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div>
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="col-md-10 col-sm-12">
<h4> <div id="rightPanel">
<a href="/data/<?php echo $this->infos['uuid'];?>" target="_blank"> <div><a href="/data/<?php echo $this->infos['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><?php echo $this->infos['title']; ?>” 的下载记录</div>
<span class="glyphicon glyphicon-hdd"></span><?php echo $this->infos['title']; ?></a> 的下载记录 <table><thead>
</h4> <tr>
<hr /> <td width='120'>用户</td>
<table class="stylized table table-bordered table-striped table-hover"> <td width='350'>姓名</td>
<thead><tr> <td width='150'>下载时间</td>
<td width='120'>用户</td> <td width='150'>操作</td>
<td width='350'>姓名</td> </tr></thead>
<td width='150'>下载时间</td> <?php if (count($this->paginator)): ?>
<td width='150'>操作</td> <?php $autoindex=0;?>
</tr></thead> <?php foreach ($this->paginator as $item): ?>
<?php if (count($this->paginator)): ?> <?php $autoindex++;?>
<?php $autoindex=0;?> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<?php foreach ($this->paginator as $item): ?> <td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
<?php $autoindex++;?> <td><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['realname'];?></a></td>
<tr > <td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><span class="glyphicon glyphicon-user"></span></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td> <td>
<td><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['realname'];?></a></td> <?php if ($item['onlineappid']>0) : ?>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td> <a href='/admin/down/online/show/<?php echo $item['onlineappid'];?>'>详细</a>
<td> <?php endif; ?>
<?php if ($item['onlineappid']>0) : ?> <?php if ($item['offlineappid']>0) : ?>
<a href='/admin/down/online/show/<?php echo $item['onlineappid'];?>'>详细</a> <a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a>
<?php endif; ?> <?php endif; ?>
<?php if ($item['offlineappid']>0) : ?> </td>
<a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a> </tr>
<?php endif; ?> <?php endforeach; ?>
</td> <?php endif; ?>
</tr> </table>
<?php endforeach; ?> <div class="pagenavi"><?= $this->paginator; ?></div>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>

View File

@ -10,47 +10,46 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/prototype.js');
?> ?>
<div class="row"> <div id="leftPanel">
<div class="hidden-sm hidden-xs col-md-2"> <?= $this->partial('down/left.phtml'); ?>
<?= $this->partial('down/left.phtml'); ?> </div>
</div>
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="col-md-10 col-sm-12">
<h4>用户 “<?php echo $this->infos['username']; ?>” 的下载记录dd</h4> <div id="rightPanel">
<hr /> <div style="font-size:16px;line-height:30px;">用户 “<?php echo $this->infos['username']; ?>” 的下载记录</div>
<table class="stylized table table-bordered table-striped table-hover"> <table><thead>
<thead><tr> <tr>
<td width='100'>姓名</td> <td width='100'>姓名</td>
<td width='350'>数据</td> <td width='350'>数据</td>
<td width='150'>下载时间</td> <td width='150'>下载时间</td>
<td width='150'>操作</td> <td width='150'>操作</td>
</tr></thead> </tr></thead>
<?php if (count($this->paginator)): ?> <?php if (count($this->paginator)): ?>
<?php $autoindex=0;?> <?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?> <?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?> <?php $autoindex++;?>
<tr> <tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><span class="glyphicon glyphicon-user"></span></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td> <td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><span class="glyphicon glyphicon-hdd"></span></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a>(<?php echo $item['filesize'];?>MB)</td> <td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a>(<?php echo $item['filesize'];?>MB)</td>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td> <td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
<td> <td>
<?php if($item['onlineappid']>0){echo '<a href="/admin/down/online/show/'.$item['onlineappid'].'">详细</a>';} ?> <?php if($item['onlineappid']>0){echo '<a href="/admin/down/online/show/'.$item['onlineappid'].'">详细</a>';} ?>
<?php if ($item['offlineappid']>0) : ?> <?php if ($item['offlineappid']>0) : ?>
<a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a> <a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a>
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
<div class="pagenavi"><?= $this->paginator; ?></div> <div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div> </div>

Some files were not shown because too many files have changed in this diff Show More