From 0e67cd22ef24856752f9f3bd56627d6ec6ea1898 Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Sat, 25 Nov 2017 16:25:30 +0800 Subject: [PATCH] rbac --- application/admin/controller/Auth.php | 31 + application/admin/controller/Index.php | 17 +- application/config.php | 7 +- application/database.php | 4 +- composer.json | 3 +- extend/tp5auth/Auth.php | 436 ++ extend/tp5auth/README.md | 431 ++ extend/tp5auth/controller/Rbac.php | 520 ++ extend/tp5auth/helper.php | 11 + extend/tp5auth/library/Tree.php | 154 + extend/tp5auth/model/ActionLog.php | 22 + extend/tp5auth/model/AuthAccess.php | 22 + extend/tp5auth/model/AuthRole.php | 37 + extend/tp5auth/model/AuthRoleUser.php | 63 + extend/tp5auth/model/AuthRule.php | 52 + extend/tp5auth/model/Menu.php | 128 + extend/tp5auth/mysql/tp_action_log.sql | 37 + extend/tp5auth/mysql/tp_auth_access.sql | 40 + extend/tp5auth/mysql/tp_auth_role.sql | 45 + extend/tp5auth/mysql/tp_auth_role_user.sql | 38 + extend/tp5auth/mysql/tp_auth_rule.sql | 45 + extend/tp5auth/mysql/tp_menu.sql | 54 + extend/tp5auth/static/css/bootstrap.min.css | 5759 +++++++++++++++++++ extend/tp5auth/static/css/site.css | 16 + extend/tp5auth/static/js/bootstrap.min.js | 7 + extend/tp5auth/static/js/cmsinfo.js | 148 + extend/tp5auth/static/js/jquery.min.js | 6 + extend/tp5auth/view/adminAuthorize.php | 117 + extend/tp5auth/view/authorize.php | 119 + extend/tp5auth/view/form/form_menu.php | 125 + extend/tp5auth/view/form/form_role.php | 37 + extend/tp5auth/view/log.php | 67 + extend/tp5auth/view/menu.php | 38 + extend/tp5auth/view/menuAdd.php | 13 + extend/tp5auth/view/menuEdit.php | 16 + extend/tp5auth/view/public/foot.php | 6 + extend/tp5auth/view/public/top.php | 35 + extend/tp5auth/view/role.php | 61 + extend/tp5auth/view/roleAdd.php | 19 + extend/tp5auth/view/roleEdit.php | 19 + extend/tp5auth/view/viewLog.php | 69 + file/think.sql | 208 + 42 files changed, 9075 insertions(+), 7 deletions(-) create mode 100644 application/admin/controller/Auth.php create mode 100644 extend/tp5auth/Auth.php create mode 100644 extend/tp5auth/README.md create mode 100644 extend/tp5auth/controller/Rbac.php create mode 100644 extend/tp5auth/helper.php create mode 100644 extend/tp5auth/library/Tree.php create mode 100644 extend/tp5auth/model/ActionLog.php create mode 100644 extend/tp5auth/model/AuthAccess.php create mode 100644 extend/tp5auth/model/AuthRole.php create mode 100644 extend/tp5auth/model/AuthRoleUser.php create mode 100644 extend/tp5auth/model/AuthRule.php create mode 100644 extend/tp5auth/model/Menu.php create mode 100644 extend/tp5auth/mysql/tp_action_log.sql create mode 100644 extend/tp5auth/mysql/tp_auth_access.sql create mode 100644 extend/tp5auth/mysql/tp_auth_role.sql create mode 100644 extend/tp5auth/mysql/tp_auth_role_user.sql create mode 100644 extend/tp5auth/mysql/tp_auth_rule.sql create mode 100644 extend/tp5auth/mysql/tp_menu.sql create mode 100644 extend/tp5auth/static/css/bootstrap.min.css create mode 100644 extend/tp5auth/static/css/site.css create mode 100644 extend/tp5auth/static/js/bootstrap.min.js create mode 100644 extend/tp5auth/static/js/cmsinfo.js create mode 100644 extend/tp5auth/static/js/jquery.min.js create mode 100644 extend/tp5auth/view/adminAuthorize.php create mode 100644 extend/tp5auth/view/authorize.php create mode 100644 extend/tp5auth/view/form/form_menu.php create mode 100644 extend/tp5auth/view/form/form_role.php create mode 100644 extend/tp5auth/view/log.php create mode 100644 extend/tp5auth/view/menu.php create mode 100644 extend/tp5auth/view/menuAdd.php create mode 100644 extend/tp5auth/view/menuEdit.php create mode 100644 extend/tp5auth/view/public/foot.php create mode 100644 extend/tp5auth/view/public/top.php create mode 100644 extend/tp5auth/view/role.php create mode 100644 extend/tp5auth/view/roleAdd.php create mode 100644 extend/tp5auth/view/roleEdit.php create mode 100644 extend/tp5auth/view/viewLog.php create mode 100644 file/think.sql diff --git a/application/admin/controller/Auth.php b/application/admin/controller/Auth.php new file mode 100644 index 0000000..784a240 --- /dev/null +++ b/application/admin/controller/Auth.php @@ -0,0 +1,31 @@ +autoload($name); + if($auth){ + if(isset($auth['code'])){ + return json($auth); + }elseif(isset($auth['file'])){ + return $auth['file']; + } + $this->view->engine->layout(false); + return $this->fetch($auth[0],$auth[1]); + } + return abort(404,'页面不存在'); + } +} \ No newline at end of file diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 695ce19..5ffc170 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -5,6 +5,21 @@ class Index { public function index() { - return '

:)

ThinkPHP V5
十年磨一剑 - 为API开发设计的高性能框架

[ V5.0 版本由 七牛云 独家赞助发布 ]
'; + } + + public function _empty($name) + { + $auth = new \tp5auth\auth\Auth(); + $auth = $auth->autoload($name); + if($auth){ + if(isset($auth['code'])){ + return json($auth); + }elseif(isset($auth['file'])){ + return $auth['file']; + } + $this->view->engine->layout(false); + return $this->fetch($auth[0],$auth[1]); + } + //return abort(404,'页面不存在'); } } diff --git a/application/config.php b/application/config.php index e415f4c..cd4e013 100644 --- a/application/config.php +++ b/application/config.php @@ -27,9 +27,12 @@ return [ // 入口自动绑定模块 'auto_bind_module' => false, // 注册的根命名空间 - 'root_namespace' => [], + 'root_namespace' => [ ], // 扩展函数文件 - 'extra_file_list' => [THINK_PATH . 'helper' . EXT], + 'extra_file_list' => [ + THINK_PATH . 'helper' . EXT, + EXTEND_PATH . "tp5auth/" . 'helper' . EXT, + ], // 默认输出类型 'default_return_type' => 'htmlspecialchars', // 默认AJAX 数据返回格式,可选json xml ... diff --git a/application/database.php b/application/database.php index 4caac2f..7dd15a4 100644 --- a/application/database.php +++ b/application/database.php @@ -15,7 +15,7 @@ return [ // 服务器地址 'hostname' => '127.0.0.1', // 数据库名 - 'database' => '', + 'database' => 'think', // 用户名 'username' => 'root', // 密码 @@ -29,7 +29,7 @@ return [ // 数据库编码默认采用utf8 'charset' => 'utf8', // 数据库表前缀 - 'prefix' => '', + 'prefix' => 'tp_', // 数据库调试模式 'debug' => true, // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) diff --git a/composer.json b/composer.json index 7e8c7c0..dcaddcf 100644 --- a/composer.json +++ b/composer.json @@ -19,8 +19,7 @@ "php": ">=5.4.0", "topthink/framework": "~5.0.0", "workerman/workerman-for-win": "^3.5", - "phpunit/phpunit":"5.7.23", - "tekintian/tp5auth":">=2.0" + "phpunit/phpunit":"5.7.23" }, "autoload": { "psr-4": { diff --git a/extend/tp5auth/Auth.php b/extend/tp5auth/Auth.php new file mode 100644 index 0000000..6bbb43b --- /dev/null +++ b/extend/tp5auth/Auth.php @@ -0,0 +1,436 @@ + +// +---------------------------------------------------------------------- +namespace tp5auth; + +defined('VIEW_PATH') or define('VIEW_PATH', __DIR__ . DS . "view/"); + +use think\Cache; + +use think\Config; +use think\Loader; +use think\Request; +use think\Session; +use tp5auth\controller\Rbac; +use tp5auth\model\ActionLog; +use tp5auth\model\AuthAccess; +use tp5auth\model\AuthRoleUser; +use tp5auth\model\Menu; + +class Auth +{ + const PATH = __DIR__; + public $log = true; + public $noNeedCheckRules = []; //不需要检查的路由规则 + + public function __construct() + { + $this->request = Request::instance(); + $this->param = $this->request->param(); + $this->module = $this->request->module(); + $this->controller = $this->request->controller(); + $this->action = $this->request->action(); + + } + + /** + * 加载控制器方法 + * @access public + * @param string $name 方法名 + * @return mixed + */ + public function autoload($name) + { + + $controller = new Rbac($this->request); + + if (strtolower($this->controller) == 'auth' && method_exists($controller, $name)) { + return call_user_func([$controller, $name]); + } + + return false; + } + + /** + * 权限认证 + * @access public + * @return mixed + */ + public function auth() + { + $uid = self::sessionGet('user.uid'); + $controller = Loader::parseName($this->controller, 1); //字符串命名风格转换 + $rule = strtolower("{$this->module}/{$controller}/{$this->action}"); + //如果用户角色是1,则无需判断 + if (empty($uid)) { + return false; + } + if ($uid == 1) { + self::actionLog($rule); + return true; + } + //无需认证 + $noNeedCheckRules = array_merge($this->noNeedCheckRules, [$this->module . '/auth/openfile', $this->module . '/auth/cache']); + if (!in_array($rule, $noNeedCheckRules)) { + return self::authCheck($rule, 'or'); + } else { + return true; + } + + } + + /** + * 菜单权限检查 + * @access public + * @return array + */ + public static function menuCheck() + { + + $uid = self::sessionGet('user.uid'); + + if (empty($uid)) { + return false; + } + $where['status'] = 1; + + if ($uid != 1) { + $authMenu = self::authMenu('', false); + if (array($authMenu)) { //授权菜单ID + $where['id'] = ['in', array_keys($authMenu)]; + } + } + + $menu = Menu::where($where)->order(["list_order" => "asc", 'id' => 'asc'])->column('*', 'id'); + + return $menu; + } + + + /** + * 行为日志检查 + * @access public + * @param string $rule 日志规则 + * @return array + */ + private function actionLog($rule) + { + + //是否需要打开 行为日志检查 + if ($this->log === false) { + return true; + } + + $logMenu = Cache::get('logMenu'); + if (empty($logMenu)) { //缓存日志24小时 + $logMenu = Menu::actionLogMenu(); + Cache::set('logMenu', $logMenu, 86400); + } + + $menu = isset($logMenu[$rule]) ? $logMenu[$rule] : ''; + + $log = []; + if (empty($menu)) { + return true; + } + + //子集行为日志菜单匹配 + if (isset($menu['child'])) { + foreach ($menu['child'] as $v) { + if (!empty($v['rule_param'])) { + $condition = ''; + $command = preg_replace('/\{(\w*?)\}/', '$this->param[\'\\1\']', $v['rule_param']); + @(eval('$condition=(' . $command . ');')); + if ($condition and $v['request'] == $this->request->method()) { + $log = $v; + } + } + } + } + + //父集行为日志菜单匹配 + if (empty($log)) { + if ($menu['request'] == $this->request->method()) { + $log = $menu; + } + } + + if (!empty($log)) { + return self::createLog($log['log_rule'], $log['name']); + } + + return true; + } + + + /** + * 创建行为日志 + * @param string $logrule 行为日志规则 + * @param string $title 标题 + * @param int $uid 执行者ID + * @return array + */ + public function createLog($logrule, $title) + { + $uid = self::sessionGet('user.uid'); + $param = $this->param; + $condition = ''; + $command = preg_replace('/\{(\w*?)\}/', '{$param[\'\\1\']}', $logrule); + @(eval('$condition=("' . $command . '");')); + + $data = [ + 'action_ip' => ip2long($this->request->ip()), + 'username' => self::sessionGet('user.nickname'), + 'create_time' => time(), + 'log_url' => '/' . $this->request->pathinfo(), + 'log' => $condition, + 'user_id' => $uid, + 'title' => $title + ]; + return ActionLog::create($data); + } + + /** + * 检查路由权限 + * @access public static + * @param string $path 路由 + * @param array $param 参数 + * @return bool + */ + public static function checkPath($path, $param = []) + { + $uid = self::sessionGet('user.uid'); + if ($uid == 1) { + return true; + } + + $authMenu = Cache::get('authMenu_' . $uid); + + if (!$authMenu) { //存入缓存 授权菜单 + $authMenu = self::authMenu(); + Cache::set('authMenu_' . $uid, $authMenu, 600); + } + + $count = count(explode('/', $path)); + if ($count == 2) { + $module = Request::instance()->module(); + $path = "$module/$path"; + } + + $path = strtolower($path); + + //是否为超级管理员角色 + if ($path === true) { + return true; + } else if ($path === false) { + return false; + } + + if ($authMenu === false) { + return false; + } + + //验证路由 + foreach ($authMenu as $v) { + if ($v['name'] == $path) { + if (empty($v['rule_param'])) { //验证规则为空,表示所有通过 + return true; + } else { //如有验证规则,根据规则验证 + $condition = false; + $command = preg_replace('/\{(\w*?)\}/', '$param[\'\\1\']', $v['rule_param']); + @(eval('$condition=(' . $command . ');')); + if ($condition) { + return true; + } + } + } + } + return false; + } + + /** + * 检查权限 + * @access protected + * @param string $url 路由 + * @param string $relation + * @return mixed + */ + protected function authCheck($url, $relation = 'or') + { + + $rule = array($url); + $list = []; //保存验证通过的规则名) + $param = $this->param; + + $rules = self::authMenu(["b.name" => ["in", $rule]]); + + //是否为超级管理员角色 + if ($rules === true) { + //行为日志 + self::actionLog($url); + return true; + } else if ($rules === false) { + return false; + } + + foreach ($rules as $rule) { + if (!empty($rule['rule_param'])) { //根据rule_param进行验证 + $condition = false; + + $command = preg_replace('/\{(\w*?)\}/', '$param[\'\\1\']', $rule['rule_param']); + + @(eval('$condition=(' . $command . ');')); + if ($condition) { + $list[] = strtolower($rule['name']); + } + + } else { + $list[] = strtolower($rule['name']); + } + } + + if ($relation == 'or' and !empty($list)) { + + //行为日志 + self::actionLog($url); + return true; + } + + $diff = array_diff($rule, $list); + + if ($relation == 'and' and empty($diff)) { + + return true; + } + + return false; + } + + /** + * 权限访问清单 + * @access private + * @param array $where 查询附加条件 + * @param bool $default 隐藏的菜单 + * @return array + */ + private static function authMenu($where = [], $default = true) + { + $uid = self::sessionGet('user.uid'); + $rule = []; + $roleId = AuthRoleUser::hasWhere('authRole', ['`AuthRoleUser`.`user_id`' => $uid, '`AuthRole`.`status`' => 1]) + //->fetchSql(1) + ->column('role_id'); + //echo $roleId;die; + + + if (in_array(1, $roleId)) { + return true; + } + $roleId = implode(',', $roleId); + //角色权限 or 管理员权限 + if ($default === true) { + $rule = AuthAccess::hasWhere('authRole')->where($where) + ->where('(AuthAccess.type="admin_url" and AuthAccess.role_id in(:roleId))or(AuthAccess.type="admin" and AuthAccess.role_id =:uid)', ['roleId' => $roleId, + 'uid' => $uid]); + } else if ($default === false) { + $rule = AuthAccess::where($where) + ->where('(type="admin_url" and role_id in(:roleId))or(type="admin" and role_id =:uid)', ['roleId' => $roleId, + 'uid' => $uid]); + } + + + $rule = $rule->column('*', 'menu_id'); + + if (empty($rule)) { + return false; + } + return $rule; + } + + /** + * 检测用户是否登录 + * @return mixed + */ + public static function is_login() + { + $user = self::sessionGet('user'); + if (empty($user)) { + return false; + } else { + return self::sessionGet('user_sign') == self::data_auth_sign($user) ? $user : false; + } + } + + /** + * 用户登入 + * @access private static + * @param int $uid 用户ID + * @param string $nickname 用户昵称 + * @return array + */ + public static function login($uid, $nickname) + { + if (empty($uid) && empty($nickname)) { + return false; + } + $session_prefix = Config::get('tp5auth.session_prefix'); + $user = [ + 'uid' => $uid, + 'nickname' => $nickname, + 'time' => time() + ]; + + Session::set($session_prefix . 'user', $user); + Session::set($session_prefix . 'user_sign', self::data_auth_sign($user)); + return true; + } + + /** + * 注销 + * @access private static + * @return bool + */ + public static function logout() + { + $session_prefix = Config::get('tp5auth.session_prefix'); + Session::delete($session_prefix . 'user'); + Session::delete($session_prefix . 'user_sign'); + return true; + } + + /** + * 数据签名认证 + * @access private static + * @param array $data 被认证的数据 + * @return string 签名 + */ + private static function data_auth_sign($data) + { + $code = http_build_query($data); //url编码并生成query字符串 + $sign = sha1($code); //生成签名 + return $sign; + } + + + /** + * 读取session + * @access private static + * @param string $path 被认证的数据 + * @return mixed + */ + private static function sessionGet($path = '') + { + $session_prefix = Config::get('tp5auth.session_prefix'); + $user = Session::get($session_prefix . $path); + return $user; + } + + +} \ No newline at end of file diff --git a/extend/tp5auth/README.md b/extend/tp5auth/README.md new file mode 100644 index 0000000..c74bc1a --- /dev/null +++ b/extend/tp5auth/README.md @@ -0,0 +1,431 @@ +# thinkphp5 权限认证 RBAC 加 行为日志 +这个插件主要有一整套RBAC 行为日志 视图 只需要 composer安装即可和你的系统融为一体 + +## 安装 +~~~ +> composer require tekintian/tp5auth +~~~ +## v1.1更新 +* 1.加入了行为日志 +* 2.加入样式文件路由定义, + +## v1.1.1新加入方法 +~~~ +is_login() 判断是否登录 +login($uid 用户ID,$nickname 用户昵称) 用户登录 +logout() 用户退出 +checkPath($path 路由,$param 参数) 检查路由是否有权限 ,可以做按钮权限判断( 已经加入助手函数可以直接使用) +注 更新废弃函数输入用户ID 和 用户昵称 ,加入 按钮的路由权限判断, + +## 配置 v1.1 +~~~ +'tp5auth' =>[ + 'style_directory' => '/static/admin/', + 'session_prefix' => 'abc_', + ] +~~~ + + +可以不配置 配置以后Js css文件需要放到配置的目录里 + +## 手动加入日志 v1.1 +~~~ + $auth = new Auth(); + $auth->admin = $list['user_name']; + $auth->createLog('管理员[ {name} ]偷偷的进入后台了,','后台登录'); +~~~ + +## 视图调用 +~~~ + public function _empty($name) + { + $auth = new \tp5auth\auth\Auth(); + $auth = $auth->autoload($name); + if($auth){ + if(isset($auth['code'])){ + return json($auth); + }elseif(isset($auth['file'])){ + return $auth['file']; + } + $this->view->engine->layout(false); + return $this->fetch($auth[0],$auth[1]); + } + return abort(404,'页面不存在'); + } +~~~ +在模块中创建一个Auth控制器,把_empty方法复制上去,这样就可以访问以下视图 + +* /auth/role.html 角色列表 +* /auth/roleAdd.html 角色添加 +* /auth/roleEdit.html 角色修改 +* /auth/authorize/id/2.html 权限设置 +* /auth/menu.html 菜单列表 +* /auth/menuAdd.html 菜单增加 +* /auth/menuEdit.html 菜单修改 +* /auth/log.html 行为日志 新v1.1 +* /auth/viewLog.html 查看日志 新v1.1 +* /auth/clear.html 清空日志 新v1.1 +* /auth/adminAuthorize.html 独立权限 新v1.1.2 + +## 权限认证 +~~~ + public function __construct() + { + parent::__construct(); + $auth = new Auth(); + $auth->noNeedCheckRules = ['index/index/index','index/index/home']; + $auth->log = true; // v1.1版本 日志开关默认true + $user = $auth::is_login(); + + if($user){//用户登录状态 + $this->uid = $user['uid']; + if(!$auth->auth()){ + return $this->error("你没有权限访问!"); + } + }else{ + return $this->error("您还没有登录!",url("publics/login")); + } + } +~~~ +这里在公共控制器上加入验证即可 + +##管理员独立权限 +~~~ + url('auth/adminAuthorize',['id' => '用户ID','name'=>'用户昵称']) +~~~ +## 授权菜单 +~~~ + Auth::menuCheck(); +~~~ +这个方法返回授权及非隐藏的所有菜单,这样我们后台的菜单就可以根据管理员的权限来来展示授权的目录 + + + + +代码案例 + public function _empty($name) + { + $auth = new \tp5auth\auth\Auth(); + $auth = $auth->autoload($name); + if($auth){ + if(isset($auth['code'])){ + return json($auth); + }elseif(isset($auth['file'])){ + return $auth['file']; + } + $this->view->engine->layout(false); + return $this->fetch($auth[0],$auth[1]); + } + return abort(404,'页面不存在'); + } + +创建一个控制器把这个_empty方法加进去会渲染rbac视图,这个我就不多讲了待会看图 + +## 手动加入日志 + $auth = new Auth(); + $auth->admin = $list['user_name']; + $auth->createLog('管理员[ {name} ]偷偷的进入后台了,','后台登录'); + + + + +路由目录 +/auth/role.html 角色列表 +/auth/roleAdd.html 角色添加 +/auth/roleEdit.html 角色修改 +/auth/authorize/id/2.html 权限设置 +/auth/menu.html 菜单列表 +/auth/menuAdd.html 菜单增加 +/auth/menuEdit.html 菜单修改 +/auth/log.html 行为日志 新v1.1 +/auth/viewLog.html 查看日志 新v1.1 +/auth/clear.html 清空日志 新v1.1 +/auth/adminAuthorize.html 独立权限 新v1.1.2 + public function __construct() + { + parent::__construct(); + $auth = new Auth(); + $auth->noNeedCheckRules = ['index/index/index','index/index/home']; + $auth->log = true; // v1.1版本 日志开关默认true + $user = $auth::is_login(); + if($user){//用户登录状态 + $this->uid = $user['uid']; + if(!$auth->auth()){ + return $this->error("你没有权限访问!"); + } + }else{ + return $this->error("您还没有登录!",url("publics/login")); + } + } + +这个是base控制器 +$auth->noNeedCheckRules 为不需要权限认证的Url +$auth->auth 权限认证方法 +到了这里你的权限rbac就搞定了 +后台账户密码 admin admin + Auth::menuCheck(); +复制代码 +这个方法返回授权及非隐藏的所有菜单,这样我们后台的菜单就可以根据管理员的权限来来展示授权的目录 + + +权限条件设置 + +假设我们需要index/extend/edit/id/875.html在这个rul上面设置权限只有*角色能打开ID=875 的应用编辑,那我们就可以在 +[参数] = id=875 这里是菜单上的URL使用 +[验证规则] = {id}==875 这里是权限认证条件判断 ({id}<=1 && {id} >=1 || in_array({id},[1,2,4,5] ) ) + + + + + +## mysql文件 +~~~ +tp_action_log.sql +tp_auth_access.sql +tp_auth_role.sql +tp_auth_role_user.sql +tp_auth_rule.sql +tp_menu.sql +~~~ + +## 完整数据库脚本 + +/* +Navicat MySQL Data Transfer + +Source Server : mysql-5.7_x64 +Source Server Version : 50715 +Source Host : localhost:3306 +Source Database : tpauth + +Target Server Type : MYSQL +Target Server Version : 50715 +File Encoding : 65001 + +Date: 2017-01-18 22:41:00 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for tp_action_log +-- ---------------------------- +DROP TABLE IF EXISTS `tp_action_log`; +CREATE TABLE `tp_action_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', + `user_id` int(10) NOT NULL DEFAULT '0' COMMENT '执行用户id', + `action_ip` bigint(20) NOT NULL COMMENT '执行行为者ip', + `log` longtext NOT NULL COMMENT '日志备注', + `log_url` varchar(255) NOT NULL COMMENT '执行的URL', + `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行行为的时间', + `username` varchar(255) NOT NULL COMMENT '执行者', + `title` varchar(255) NOT NULL COMMENT '标题', + PRIMARY KEY (`id`), + KEY `id` (`id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=124 DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='行为日志表'; + +-- ---------------------------- +-- Records of tp_action_log +-- ---------------------------- +INSERT INTO `tp_action_log` VALUES ('109', '1', '2130706433', '5', '/index/auth/menuedit.html', '1484745934', 'admin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('110', '27', '2130706433', '管理员[ tekin ]偷偷的进入后台了,', '/index/publics/login.html', '1484746112', 'tekin', '后台登录'); +INSERT INTO `tp_action_log` VALUES ('111', '1', '2130706433', '管理员[ admin ]偷偷的进入后台了,', '/index/publics/login.html', '1484746195', 'admin', '后台登录'); +INSERT INTO `tp_action_log` VALUES ('112', '27', '2130706433', '管理员[ tekin ]偷偷的进入后台了,', '/index/publics/login.html', '1484746265', 'tekin', '后台登录'); +INSERT INTO `tp_action_log` VALUES ('113', '1', '2130706433', '管理员[ admin ]偷偷的进入后台了,', '/index/publics/login.html', '1484746296', 'admin', '后台登录'); +INSERT INTO `tp_action_log` VALUES ('114', '27', '2130706433', '管理员[ tekin ]偷偷的进入后台了,', '/index/publics/login.html', '1484746331', 'tekin', '后台登录'); +INSERT INTO `tp_action_log` VALUES ('115', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746336', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('116', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746340', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('117', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746342', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('118', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746344', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('119', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746346', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('120', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746351', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('121', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746353', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('122', '27', '2130706433', '5', '/index/auth/menuedit.html', '1484746354', 'tekin', '测试5'); +INSERT INTO `tp_action_log` VALUES ('123', '1', '2130706433', '管理员[ admin ]偷偷的进入后台了,', '/index/publics/login.html', '1484746396', 'admin', '后台登录'); + +-- ---------------------------- +-- Table structure for tp_admin +-- ---------------------------- +DROP TABLE IF EXISTS `tp_admin`; +CREATE TABLE `tp_admin` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '管理员自增ID', + `user_name` varchar(255) DEFAULT NULL COMMENT '用户名', + `user_password` varchar(255) DEFAULT NULL COMMENT '管理员的密码', + `user_nicename` varchar(255) DEFAULT NULL COMMENT '管理员的简称', + `user_status` int(11) DEFAULT '1' COMMENT '用户状态 0:禁用; 1:正常 ;', + `user_email` varchar(255) DEFAULT '' COMMENT '邮箱', + `last_login_ip` varchar(16) DEFAULT NULL COMMENT '最后登录ip', + `last_login_time` datetime DEFAULT NULL COMMENT '最后登录时间', + `create_time` datetime DEFAULT NULL COMMENT '注册时间', + `role` varchar(255) DEFAULT NULL COMMENT '角色ID', + PRIMARY KEY (`id`) +) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='后台管理员表'; + +-- ---------------------------- +-- Records of tp_admin +-- ---------------------------- +INSERT INTO `tp_admin` VALUES ('1', 'admin', '21232f297a57a5a743894a0e4a801fc3', null, '1', 'admin@qq.com', '114.88.197.96', '2016-10-26 12:06:43', '2016-06-07 17:04:05', null); +INSERT INTO `tp_admin` VALUES ('16', 'zou', '21232f297a57a5a743894a0e4a801fc3', null, '1', 'zou1@qq.com', '127.0.0.1', '2016-07-17 17:01:36', '2016-07-08 15:29:41', '2'); +INSERT INTO `tp_admin` VALUES ('23', 'sdasd', '0aa1ea9a5a04b78d4581dd6d17742627', null, '1', 'asdas@qq.com', null, null, '2016-11-15 16:55:36', '2,3'); +INSERT INTO `tp_admin` VALUES ('27', 'tekin', '21232f297a57a5a743894a0e4a801fc3', null, '1', 'tekin@qq.com', null, null, '2017-01-18 21:14:40', '2'); + +-- ---------------------------- +-- Table structure for tp_auth_access +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_access`; +CREATE TABLE `tp_auth_access` ( + `role_id` mediumint(8) unsigned NOT NULL COMMENT '角色', + `rule_name` varchar(255) NOT NULL COMMENT '规则唯一英文标识,全小写', + `type` varchar(30) DEFAULT NULL COMMENT '权限规则分类,请加应用前缀,如admin_', + `menu_id` int(11) DEFAULT NULL COMMENT '后台菜单ID', + KEY `role_id` (`role_id`), + KEY `rule_name` (`rule_name`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限授权表'; + +-- ---------------------------- +-- Records of tp_auth_access +-- ---------------------------- +INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/default', 'admin_url', '1'); +INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/default', 'admin_url', '2'); +INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/log', 'admin_url', '20'); +INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/viewlog', 'admin_url', '21'); +INSERT INTO `tp_auth_access` VALUES ('2', 'index/index/sasd', 'admin_url', '15'); +INSERT INTO `tp_auth_access` VALUES ('2', 'index/index/asd', 'admin_url', '16'); +INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/menuedit', 'admin_url', '19'); + +-- ---------------------------- +-- Table structure for tp_auth_role +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_role`; +CREATE TABLE `tp_auth_role` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(20) NOT NULL COMMENT '角色名称', + `pid` smallint(6) DEFAULT '0' COMMENT '父角色ID', + `status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', + `listorder` int(3) NOT NULL DEFAULT '0' COMMENT '排序字段', + PRIMARY KEY (`id`), + KEY `parentId` (`pid`), + KEY `status` (`status`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='角色表'; + +-- ---------------------------- +-- Records of tp_auth_role +-- ---------------------------- +INSERT INTO `tp_auth_role` VALUES ('1', '超级管理员', '0', '1', '拥有网站最高管理员权限!', '1329633709', '1329633709', '0'); +INSERT INTO `tp_auth_role` VALUES ('2', '文章管理', '0', '1', 'SDAS', '0', '0', '0'); +INSERT INTO `tp_auth_role` VALUES ('3', 'abc', '0', '1', '', '0', '0', '0'); + +-- ---------------------------- +-- Table structure for tp_auth_role_user +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_role_user`; +CREATE TABLE `tp_auth_role_user` ( + `role_id` int(11) unsigned DEFAULT '0' COMMENT '角色 id', + `user_id` int(11) DEFAULT '0' COMMENT '用户id', + KEY `group_id` (`role_id`), + KEY `user_id` (`user_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户角色对应表'; + +-- ---------------------------- +-- Records of tp_auth_role_user +-- ---------------------------- +INSERT INTO `tp_auth_role_user` VALUES ('2', '16'); +INSERT INTO `tp_auth_role_user` VALUES ('2', '27'); + +-- ---------------------------- +-- Table structure for tp_auth_rule +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_rule`; +CREATE TABLE `tp_auth_rule` ( + `menu_id` int(11) NOT NULL COMMENT '后台菜单 ID', + `module` varchar(20) NOT NULL COMMENT '规则所属module', + `type` varchar(30) NOT NULL DEFAULT '1' COMMENT '权限规则分类,请加应用前缀,如admin_', + `name` varchar(255) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识,全小写', + `url_param` varchar(255) DEFAULT NULL COMMENT '额外url参数', + `title` varchar(20) NOT NULL DEFAULT '' COMMENT '规则中文描述', + `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效(0:无效,1:有效)', + `rule_param` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件', + `nav_id` int(11) DEFAULT '0' COMMENT 'nav id', + PRIMARY KEY (`menu_id`), + KEY `module` (`module`,`status`,`type`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权限规则表'; + +-- ---------------------------- +-- Records of tp_auth_rule +-- ---------------------------- +INSERT INTO `tp_auth_rule` VALUES ('2', 'index', 'admin_url', 'index/auth/default', '', '权限管理', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('3', 'index', 'admin_url', 'index/auth/role', '', '角色管理', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('4', 'index', 'admin_url', 'index/auth/roleadd', '', '角色增加', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('5', 'index', 'admin_url', 'index/auth/roleedit', '', '角色编辑', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('6', 'index', 'admin_url', 'index/auth/roledelete', '', '角色删除', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('7', 'index', 'admin_url', 'index/auth/authorize', '', '角色授权', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('8', 'index', 'admin_url', 'index/auth/menu', '', '菜单管理', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('9', 'index', 'admin_url', 'index/auth/menu', '', '菜单列表', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('10', 'index', 'admin_url', 'index/auth/menuadd', '', '菜单增加', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('11', 'index', 'admin_url', 'index/auth/menuedit', '', '菜单修改', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('12', 'index', 'admin_url', 'index/auth/menudelete', '', '菜单删除', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('13', 'index', 'admin_url', 'index/auth/menuorder', '', '菜单排序', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('14', 'index', 'admin_url', 'index/admin/index', '', '用户管理', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('15', 'index', 'admin_url', 'index/index/sasd', '', '测试', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('16', 'index', 'admin_url', 'index/index/asd', 'asd', '测试', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('17', 'index', 'admin_url', 'index/auth/menuedit', 'dasd', '边缘', '1', 'in_array({id},[1,2,4,5] )', '0'); +INSERT INTO `tp_auth_rule` VALUES ('19', 'index', 'admin_url', 'index/auth/menuedit', 'id=5', '测试5', '1', '{id}==5', '0'); +INSERT INTO `tp_auth_rule` VALUES ('20', 'index', 'admin_url', 'index/auth/log', '', '行为日志', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('21', 'index', 'admin_url', 'index/auth/viewlog', '', '查看日志', '1', '', '0'); +INSERT INTO `tp_auth_rule` VALUES ('22', 'index', 'admin_url', 'index/auth/clear', '', '清空日志', '1', '', '0'); + +-- ---------------------------- +-- Table structure for tp_menu +-- ---------------------------- +DROP TABLE IF EXISTS `tp_menu`; +CREATE TABLE `tp_menu` ( + `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID', + `parent_id` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID', + `app` char(20) NOT NULL COMMENT '应用名称app', + `model` char(20) NOT NULL COMMENT '控制器', + `action` char(20) NOT NULL COMMENT '操作名称', + `url_param` char(50) NOT NULL COMMENT 'url参数', + `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '菜单类型 1:权限认证+菜单;0:只作为菜单', + `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态,1显示,0不显示', + `name` varchar(50) NOT NULL COMMENT '菜单名称', + `icon` varchar(50) NOT NULL COMMENT '菜单图标', + `remark` varchar(255) NOT NULL COMMENT '备注', + `list_order` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '排序ID', + `rule_param` varchar(255) NOT NULL COMMENT '验证规则', + `nav_id` int(11) DEFAULT '0' COMMENT 'nav ID ', + `request` varchar(255) NOT NULL COMMENT '请求方式(日志生成)', + `log_rule` varchar(255) NOT NULL COMMENT '日志规则', + PRIMARY KEY (`id`), + KEY `status` (`status`), + KEY `model` (`model`), + KEY `parent_id` (`parent_id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='后台菜单表'; + +-- ---------------------------- +-- Records of tp_menu +-- ---------------------------- +INSERT INTO `tp_menu` VALUES ('1', '0', 'index', 'auth', 'default', '', '0', '1', '系统管理', '', '', '10', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('2', '1', 'index', 'auth', 'default', '', '0', '1', '权限管理', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('3', '2', 'index', 'auth', 'role', '', '1', '1', '角色管理', '', '1', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('4', '3', 'index', 'auth', 'roleAdd', '', '1', '0', '角色增加', '', '', '0', '', '0', '', '{id}'); +INSERT INTO `tp_menu` VALUES ('5', '3', 'index', 'auth', 'roleEdit', '', '1', '0', '角色编辑', '', 'asdas', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('6', '3', 'index', 'auth', 'roleDelete', '', '1', '0', '角色删除', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('7', '3', 'index', 'auth', 'authorize', '', '1', '0', '角色授权', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('8', '1', 'index', 'auth', 'default', '', '0', '1', '菜单管理', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('9', '8', 'index', 'auth', 'menu', '', '1', '1', '菜单列表', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('10', '9', 'index', 'auth', 'menuAdd', '', '1', '0', '菜单增加', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('11', '9', 'index', 'auth', 'menuEdit', '', '1', '0', '菜单修改', '', '', '0', '', '0', 'POST', '我的ID是{id}
记入的目录{name}'); +INSERT INTO `tp_menu` VALUES ('12', '9', 'index', 'auth', 'menuDelete', '', '1', '0', '菜单删除', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('13', '9', 'index', 'auth', 'menuOrder', '', '1', '0', '菜单排序', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('14', '2', 'index', 'admin', 'index', '', '1', '1', '用户管理', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('15', '0', 'index', 'index', 'sasd', '', '0', '1', '测试', '', '', '20', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('16', '15', 'index', 'index', 'asd', 'asd', '1', '1', '测试', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('17', '15', 'index', 'auth', 'menuEdit', 'dasd', '1', '1', '边缘', '', '11q1adas1adsasdfsdfdsd', '0', 'in_array({id},[1,2,4,5] )', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('20', '2', 'index', 'auth', 'log', '', '1', '1', '行为日志', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('19', '16', 'index', 'auth', 'menuEdit', 'id=5', '1', '1', '测试5', '', 'dasd', '0', '{id}==5', '0', 'GET', '{id}'); +INSERT INTO `tp_menu` VALUES ('21', '20', 'index', 'auth', 'viewLog', '', '1', '0', '查看日志', '', '', '0', '', '0', '', ''); +INSERT INTO `tp_menu` VALUES ('22', '20', 'index', 'auth', 'clear', '', '1', '0', '清空日志', '', '', '0', '', '0', '', ''); + diff --git a/extend/tp5auth/controller/Rbac.php b/extend/tp5auth/controller/Rbac.php new file mode 100644 index 0000000..3816a35 --- /dev/null +++ b/extend/tp5auth/controller/Rbac.php @@ -0,0 +1,520 @@ +'require' , 'app|应用'=>'require' , 'model|控制器'=>'require' , 'action|方法'=>'require']; + public $roleValidate = ['name|角色名称' => 'require']; + private $id; + public function __construct($request) + { + $this->request = $request; + $this->param = $this->request->param(); + $this->post = $this->request->post(); + $this->id = isset($this->param['id'])?intval($this->param['id']):''; + $this->data = ['pach'=>VIEW_PATH]; + } + + /** + * 菜单and权限列表 + */ + public function menu(){ + $result = Menu::where('')->order(["list_order" => "asc",'id'=>'asc'])->column('*','id'); + $tree = new Tree(); + $tree->nbsp = '   '; + + foreach ($result as $n=> $r) { + $result[$n]['level'] = $tree->get_level($r['id'], $result); + $result[$n]['parent_id_node'] = ($r['parent_id']) ? ' class="child-of-node-' . $r['parent_id'] . '"' : ''; + + $result[$n]['str_manage'] = checkPath('auth/menuAdd',["parent_id" => $r['id']]) ? ' $r['id']]).'">添加子菜单 |':''; + $result[$n]['str_manage'] .= checkPath('auth/menuEdit',["id" => $r['id']]) ?' $r['id']]).'">编辑 |':''; + $result[$n]['str_manage'] .= checkPath('auth/menuDelete',["id" => $r['id']]) ?' $r['id']]).'">删除|':''; + $result[$n]['status'] = $r['status'] ? '开启' : '隐藏'; + } + $str = " + + + + \$id + \$spacer \$name + \$app + \$model + \$action + \$request + \$status + \$str_manage + "; + + $tree->init($result); + $info = $tree->get_tree(0, $str); + return [VIEW_PATH.'menu.php',array_merge($this->data,['info'=>$info])]; + } + + /** + * 菜单and权限 修改 + */ + public function menuEdit(){ + + $post = $this->post; + $info = Menu::get($this->id); + + if(empty($info)){ + return false; + } + + if($this->request->isPost()){ + + $validate = new Validate($this->menuValidate); + + if (!$validate->check($post)) { + return ['code'=>0,'msg'=>$validate->getError()]; + } + + if($info->menuEdit($post)){ + return ['code'=>1,'msg'=>'修改成功','url'=>url('auth/menu')]; + }else{ + return ['code'=>0,'msg'=>'修改失败']; + } + } + + $info['selectCategorys'] = menu($info['parent_id']); + return [VIEW_PATH.'menuEdit.php',array_merge($this->data,['info'=>$info])]; + } + + /** + * 菜单and权限 增加 + */ + public function menuAdd(){ + $parent_id = isset($this->param['parent_id'])?$this->param['parent_id']:''; + + if($this->request->isPost()){ + $post = $this->post; + $validate = new Validate($this->menuValidate); + + if (!$validate->check($post)) { + return ['code'=>0,'msg'=>$validate->getError()]; + } + $menu = new Menu(); + if($menu->menuAdd($post)){ + return ['code'=>1,'msg'=>'增加成功','url'=>url('auth/menu')]; + }else{ + return ['code'=>0,'msg'=>'增加失败']; + } + } + + $info['selectCategorys'] = menu($parent_id); + return [VIEW_PATH.'menuAdd.php',array_merge($this->data,['info'=>$info])]; + } + + /** + * 菜单and权限 删除 + */ + public function menuDelete(){ + if($this->request->isPost()){ + $result = Menu::get($this->id); + + if(empty($result)){ + return ['code'=>0,'msg'=>'没有数据']; + }else if(Menu::where(['parent_id'=>$result['id']])->find()){ + return ['code'=>0,'msg'=>'有子目录不可删除']; + }; + + if($result->menuDelete($this->id)){ + return ['code'=>1,'msg'=>'删除成功','url'=>url('auth/menu')]; + }else{ + return ['code'=>0,'msg'=>'删除失败']; + } + } + return ['code'=>0,'msg'=>'请求方式错误']; + } + + /** + * 菜单 排序 + */ + public function menuOrder(){ + if($this->request->isPost()) { + $order = isset($this->param['order'])?intval($this->param['order']):''; + $result = Menu::get($this->id); + + if(empty($result)){ + return ['code'=>0,'msg'=>'没有数据']; + }else if ($result) { + if ($result->save(['list_order' => $order])) { + return ['code' => 1, 'msg' => '数据已更新']; + } + } + + return ['code'=>0,'msg'=>'数据无变化']; + } + return ['code'=>0,'msg'=>'请求方式错误']; + } + /** + * 角色列表 + */ + public function role(){ + $data = AuthRole::all(); + return [VIEW_PATH.'role.php',array_merge($this->data,['list'=>$data])]; + } + + /** + * 角色修改 + */ + public function roleEdit(){ + + $post = $this->post; + $info = AuthRole::get($this->id); + if(empty($info)){ + return false; + } + //post 数据处理 + if($this->request->isPost()){ + + $validate = new Validate($this->roleValidate); + + if (!$validate->check($post)) { + return ['code'=>0,'msg'=>$validate->getError()]; + } + + if($info->save($post)){ + return ['code'=>1,'msg'=>'修改成功','url'=>url('auth/role')]; + }else{ + return ['code'=>0,'msg'=>'修改失败']; + } + } + + return [VIEW_PATH.'roleEdit.php',array_merge($this->data,['info'=>$info])]; + } + + /** + * 角色增加 + */ + public function roleAdd(){ + + //post 数据处理 + if($this->request->isPost()){ + $post = $this->post; + + //现在数据 + $validate = new Validate($this->roleValidate); + if (!$validate->check($post)) { + return ['code'=>0,'msg'=>$validate->getError()]; + } + + if(AuthRole::create($post)){ + return ['code'=>1,'msg'=>'增加成功','url'=>url('auth/role')]; + }else{ + return ['code'=>0,'msg'=>'增加失败']; + } + } + return [VIEW_PATH.'roleAdd.php',$this->data]; + } + + public function roleDelete(){ + if($this->request->isPost()){ + $result = AuthRole::get($this->id); + + if($this->id==1){ + return ['code'=>0,'msg'=>'超级管理员不可删除']; + }else if(empty($result)){ + return ['code'=>0,'msg'=>'没有数据']; + } + + if($result->authRoleDelete()){ + return ['code'=>1,'msg'=>'删除成功','url'=>url('auth/role')]; + }else{ + return ['code'=>0,'msg'=>'删除失败']; + } + } + return ['code'=>0,'msg'=>'请求方式错误']; + } + /** + * 角色授权 + */ + public function authorize(){ + + + $menu = Menu::where('')->order(["list_order" => "asc",'id'=>'asc'])->column('*','id'); + + if($this->request->isPost()){//表单处理 + + $post = $this->post; + $menuid = $post['menuid']; + + if(empty($this->id)){ + return ['code'=>0,'msg'=>'需要授权的角色不存在']; + } + + AuthAccess::where(["role_id" => $this->id,'type'=>'admin_url'])->delete(); + + if (is_array($menuid) && count($menuid)>0) { + foreach ($menuid as $v) { + + $menus = isset($menu[$v])?$menu[$v]:''; + + if($menus){ + $name = strtolower("{$menus['app']}/{$menus['model']}/{$menus['action']}"); + $data[] = [ + "role_id" => $this->id, + "rule_name" => $name, + 'type' => 'admin_url', + 'menu_id' => $v + ]; + } + } + + if(!empty($data)){ + $AuthAccess = new AuthAccess(); + if($AuthAccess->saveAll($data)){ + return ['code'=>1,'msg'=>'增加成功','url'=>url('auth/role')]; + }else{ + return ['code'=>0,'msg'=>'增加失败']; + } + } + + }else{ + return ['code'=>0,'msg'=>'没有接收到数据,执行清除授权成功!']; + } + }//表单处理结束 + + if(empty($this->id)){ + return false; + } + $info = self::authorizeHtml($menu,'admin_url'); + + return [VIEW_PATH.'authorize.php',array_merge($this->data,['info'=>$info])]; + } + /** + * 管理员授权 + */ + public function adminAuthorize(){ + + + $menu = Menu::where('')->order(["list_order" => "asc",'id'=>'asc'])->column('*','id'); + + if($this->request->isPost()){//表单处理 + + $post = $this->post; + $menuid = $post['menuid']; + + if(empty($this->id)){ + return ['code'=>0,'msg'=>'需要授权的角色不存在']; + } + + AuthAccess::where(["role_id" => $this->id,'type'=>'admin'])->delete(); + + if (is_array($menuid) && count($menuid)>0) { + foreach ($menuid as $v) { + + $menus = isset($menu[$v])?$menu[$v]:''; + + if($menus){ + $name = strtolower("{$menus['app']}/{$menus['model']}/{$menus['action']}"); + $data[] = [ + "role_id" => $this->id, + "rule_name" => $name, + 'type' => 'admin', + 'menu_id' => $v + ]; + } + } + + if(!empty($data)){ + $AuthAccess = new AuthAccess(); + if($AuthAccess->saveAll($data)){ + return ['code'=>1,'msg'=>'增加成功','url'=>'']; + }else{ + return ['code'=>0,'msg'=>'增加失败']; + } + } + + }else{ + return ['code'=>0,'msg'=>'没有接收到数据,执行清除授权成功!']; + } + }//表单处理结束 + + if(empty($this->id)){ + return false; + } + + //管理员所有角色权限 + $roleId = AuthRoleUser::hasWhere('authRule')->where(['a.user_id'=>$this->id,'b.status'=>1])->column('role_id'); + if(in_array(1,$roleId)){ + $AuthAccess = true; + }else if(empty($roleId)){ + $AuthAccess = []; + }else{ + $AuthAccess = AuthAccess::where(["role_id"=>["in",$roleId]])->column('*','menu_id'); + } + + + $info = self::authorizeHtml($menu,'admin',$AuthAccess); + + return [VIEW_PATH.'adminAuthorize.php',array_merge($this->data,['info'=>$info])]; + } + + /** + * 注册样式文件 + */ + public function openFile(){ + + $text = ''; + $file = strtr($this->param['file'], '_', DS); + $extension = substr(strrchr($file, '.'), 1); + + switch ($extension) + { + case 'css': + $text = 'text/css'; + break; + case 'js': + $text = 'text/js'; + break; + default: + return false; + } + + $pach = VIEW_PATH.'../static/'.$file; + $file = file_get_contents($pach); + + return ['file'=>response($file, 200, ['Content-Length' => strlen($file)])->contentType($text)]; + } + + /** + * 日志列表 + */ + public function log(){ + $where = []; + $param = $this->param; + if(!empty($param['username'])){ + $where['username'] = $param['username']; + } + if(!empty($param['userId'])){ + $where['user_id'] = $param['userId']; + } + if(!empty($param['title'])){ + $where['title'] = ['like','%'.$param['title'].'%']; + } + + $list = ActionLog::where($where)->order('id desc')->paginate(20,'',[ + 'query'=>$param + ]); + $page = $list->render(); + + return [VIEW_PATH.'log.php',array_merge($this->data,['list'=>$list,'page'=>$page])]; + } + + /** + * 日志详情 + */ + public function viewLog(){ + $info = ActionLog::get($this->id); + return [VIEW_PATH.'viewLog.php',array_merge($this->data,['info'=>$info])]; + } + + /** + * 清空日志 + */ + public function clear(){ + if(ActionLog::where('1=1')->delete()){ + return ['code'=>1,'msg'=>'数据已清空','url'=>url('auth/log')]; + } + return ['code'=>0,'msg'=>'操作失败']; + } + + /** + * 清除缓存 + */ + public function cache(){ + Cache::rm('logMenu'); + return ['code'=>1,'msg'=>'操作成功','url'=>url('auth/menu')]; + } + + protected function authorizeHtml($menu,$type,$authMenu=[]){ + $priv_data = AuthAccess::where(['role_id'=>$this->id,'type'=>$type])->field("rule_name")->column('menu_id'); + $tree = new Tree(); + foreach ($menu as $n => $t) { + $menu[$n]['checked'] = (in_array($t['id'], $priv_data)) ? ' checked' : ''; + $menu[$n]['level'] = $tree->get_level($t['id'], $menu); + $menu[$n]['width'] = 100-$menu[$n]['level']; + $menu[$n]['disabled'] = isset($authMenu[$t['id']])||$authMenu===true?[0=>"style='display: none;'disabled=''",1=>'★']:[0=>'', + 1=>'']; + + } + + $tree->init($menu); + $tree->text =[ + 'other' => "", + '0' => [ + '0' =>"
+
+ +
+
", + '1' => "
", + ], + '1' => [ + '0' => " + +
", + + '1' => "
", + ] + + ]; + + $info['html'] = $tree->get_authTree(0); + $info['id'] = $this->id; + return $info; + } +} + +/** + * 所有后台菜单 + * @param int $selected 默认id + * @return mixed + */ +function menu($selected = 1){ + $array = ''; + $result = Menu::where('')->order(["list_order" => "asc",'id'=>'asc'])->column('*','id'); + + $tree = new Tree(); + foreach ($result as $r) { + $r['selected'] = $r['id'] == $selected ? 'selected' : ''; + $array[] = $r; + } + $str = ""; + $tree->init($array); + $parentid = isset($where['parentid'])?$where['parentid']:0; + + return $tree->get_tree($parentid, $str); +} \ No newline at end of file diff --git a/extend/tp5auth/helper.php b/extend/tp5auth/helper.php new file mode 100644 index 0000000..24a2657 --- /dev/null +++ b/extend/tp5auth/helper.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/extend/tp5auth/library/Tree.php b/extend/tp5auth/library/Tree.php new file mode 100644 index 0000000..a7a5865 --- /dev/null +++ b/extend/tp5auth/library/Tree.php @@ -0,0 +1,154 @@ + array('id'=>'1','parentid'=>0,'name'=>'一级栏目一'), + * 2 => array('id'=>'2','parentid'=>0,'name'=>'一级栏目二'), + * 3 => array('id'=>'3','parentid'=>1,'name'=>'二级栏目一'), + * 4 => array('id'=>'4','parentid'=>1,'name'=>'二级栏目二'), + * 5 => array('id'=>'5','parentid'=>2,'name'=>'二级栏目三'), + * 6 => array('id'=>'6','parentid'=>3,'name'=>'三级栏目一'), + * 7 => array('id'=>'7','parentid'=>3,'name'=>'三级栏目二') + * ) + */ + public function init($arr=array()) { + $this->arr = $arr; + $this->ret = ''; + return is_array($arr); + } + + /** + * 得到树型结构 + * @param int ID,表示获得这个ID下的所有子级 + * @param string 生成树型结构的基本代码,例如:"" + * @param int 被选中的ID,比如在做树型下拉框的时候需要用到 + * @return string + */ + public function get_tree($myid, $str, $sid = 0, $adds = '', $str_group = '') { + $parent_id = ''; + $nstr = ''; + $number = 1; + + //一级栏目 + $child = $this->get_child($myid); + if (is_array($child)) { + $total = count($child); + foreach ($child as $id => $value) { + $j = $k = ''; + if ($number == $total) { + $j .= $this->icon[2]; + } else { + $j .= $this->icon[1]; + $k = $adds ? $this->icon[0] : ''; + } + $spacer = $adds ? $adds . $j : ''; + $selected = $id == $sid ? 'selected' : ''; + @extract($value); + $parent_id == 0 && $str_group ? eval("\$nstr = \"$str_group\";") : eval("\$nstr = \"$str\";"); + $this->ret .= $nstr; + $nbsp = $this->nbsp; + $this->get_tree($id, $str, $sid, $adds . $k . $nbsp, $str_group); + $number++; + } + } + return $this->ret; + } + + public function get_authTree($myid){ + $id = ''; + $nstr = ''; + $child = $this->get_child($myid); + if (is_array($child)) { + $level = current($child); + + $text = isset($this->text[$level['level']]) ? $this->text[$level['level']] : end($this->text); + + foreach($child as $k=>$v){ + @extract($v); + + if($this->get_child($id)){ + eval("\$nstr = \"$text[0]\";"); + $this->html .= $nstr; + + self::get_authTree($id); + + eval("\$nstr = \"$text[1]\";"); + $this->html .= $nstr; + }else{ + $a = $this->text['other']; + eval("\$nstr = \"$a\";"); + + $this->html .= $nstr; + } + + + } + + } + return $this->html; + } + + /** + * 得到子级数组 + * @param int + * @return array + */ + public function get_child($myid) { + $a = $newarr = array(); + if (is_array($this->arr)) { + foreach ($this->arr as $id => $a) { + if ($a['parent_id'] == $myid) + $newarr[$id] = $a; + } + } + return $newarr ? $newarr : false; + } + + + + /** + * 递归获取级别 + * @param int $id ID + * @param array $array 所有菜单 + * @param int $i 所在级别 + * @return array + */ + public function get_level($id, $array = array(), $i = 0) { + if ($array[$id]['parent_id']==0 || empty($array[$array[$id]['parent_id']]) || $array[$id]['parent_id']==$id){ + return $i; + }else{ + $i++; + return self::get_level($array[$id]['parent_id'],$array,$i); + } + } + +} \ No newline at end of file diff --git a/extend/tp5auth/model/ActionLog.php b/extend/tp5auth/model/ActionLog.php new file mode 100644 index 0000000..4d2dc47 --- /dev/null +++ b/extend/tp5auth/model/ActionLog.php @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/extend/tp5auth/model/AuthAccess.php b/extend/tp5auth/model/AuthAccess.php new file mode 100644 index 0000000..4684311 --- /dev/null +++ b/extend/tp5auth/model/AuthAccess.php @@ -0,0 +1,22 @@ +hasOne('AuthRule','menu_id','menu_id'); + } +} +?> \ No newline at end of file diff --git a/extend/tp5auth/model/AuthRole.php b/extend/tp5auth/model/AuthRole.php new file mode 100644 index 0000000..1fc04f3 --- /dev/null +++ b/extend/tp5auth/model/AuthRole.php @@ -0,0 +1,37 @@ +hasMany('AuthAccess','role_id','id'); + } + + /** + * 关联删除 AuthAccess + * @return bool + */ + public function authRoleDelete(){ + if($this->delete()){ + if($this->authAccess){ + AuthAccess::where(['role_id'=>$this->id,'type'=>'admin_url'])->delete(); + } + return true; + } + return false; + } + +} +?> \ No newline at end of file diff --git a/extend/tp5auth/model/AuthRoleUser.php b/extend/tp5auth/model/AuthRoleUser.php new file mode 100644 index 0000000..b0a6a12 --- /dev/null +++ b/extend/tp5auth/model/AuthRoleUser.php @@ -0,0 +1,63 @@ +hasOne('authRole','id','role_id'); + } + + //关联一对一 角色 + public function authAccess() + { + return $this->hasOne('authAccess','role_id','role_id'); + } + + /** + * 加入角色权限 + * @param array $role_id 角色ID + * @param int $user_id 用户ID + * @return bool + */ + public function authRoleUserAdd($role_id,$user_id){ + + $data = []; + if(is_array($role_id)){ + self::where(['user_id'=>$user_id])->delete(); + foreach($role_id as $v){ + $data[] = [ + 'role_id' => $v, + 'user_id' => $user_id + ]; + } + self::saveAll($data); + + return true; + } + return false; + } + + /** + * 删除角色权限 + * @param int $user_id 用户ID + * @return bool + */ + public function authRoleUserDelete($user_id){ + self::where(['user_id'=>$user_id])->delete(); + AuthAccess::where(['role_id'=>$user_id,'type'=>'admin'])->delete(); + } + +} +?> \ No newline at end of file diff --git a/extend/tp5auth/model/AuthRule.php b/extend/tp5auth/model/AuthRule.php new file mode 100644 index 0000000..b0febdf --- /dev/null +++ b/extend/tp5auth/model/AuthRule.php @@ -0,0 +1,52 @@ +hasMany('AuthAccess','menu_id','menu_id'); + } + + + /** + * 关联 authAccess模型 修改 + * @param array $param 参数 + * @return bool + */ + public function authRuleEdit($param){ + if($this->save($param)){ + if($this->authAccess){ + AuthAccess::where(['menu_id'=>$param['menu_id']])->update(['rule_name'=>$param['name'],'type'=>$param['type']]); + } + return true; + } + return false; + } + + /** + * 删除 + * @return bool + */ + public function authRuleDelete(){ + if($this->delete()){ + if($this->authAccess){ + AuthAccess::where(['menu_id'=>$this->menu_id])->delete(); + } + return true; + } + return false; + } +} +?> \ No newline at end of file diff --git a/extend/tp5auth/model/Menu.php b/extend/tp5auth/model/Menu.php new file mode 100644 index 0000000..691b844 --- /dev/null +++ b/extend/tp5auth/model/Menu.php @@ -0,0 +1,128 @@ + "" ')->column('*'); + + foreach($men as $v){ + $url = strtolower($v['app'].'/'.$v['model'].'/'.$v['action']); + $arr = [ + 'log_rule' => $v['log_rule'], + 'request' => $v['request'], + 'rule_param'=> $v['rule_param'], + 'name' => $v['name'], + ]; + if(!isset($log[$url])){ + $log[$url] = $arr; + }else{ + $log[$url]['child'][] = $arr; + } + } + return $log; + } + + //关联一对一 目录 + public function authRule() + { + return $this->hasOne('AuthRule','menu_id','id'); + } + + + /** + * 关联 authRule模型 修改 + * @param array $param 参数 + * @return bool + */ + public function menuEdit($param){ + + if($this->save($param)){ + $authRule = $this->authRule; + + if($this->data['action'] == 'default' ||$this->data['type'] == 0) {//判断他们是否需要加入权限 + if($authRule){ + $this->authRule->authRuleDelete(); + } + return true; + } + + $name = strtolower("{$this->data['app']}/{$this->data['model']}/{$this->data['action']}"); + + $authRuledata = [ + "name" => $name, + "module" => $this->data['app'], + "type" => "admin_url", + "title" => $this->data['name'], + 'menu_id' => $this->data['id'], + 'url_param' => $this->data['url_param'], + 'rule_param' => $this->data['rule_param'], + ]; + if($authRule){ + $authRule->authRuleEdit($authRuledata); + return true; + }else{ + AuthRule::create($authRuledata); + return true; + } + + } + return false; + } + + /** + * 关联 authRule模型 增加 + * @param array $param 参数 + * @return bool + */ + public function menuAdd($param){ + $auth = $this->create($param); + if($auth){ + + $name = strtolower("{$auth->data['app']}/{$auth->data['model']}/{$auth->data['action']}"); + $authRule = [ + "name" => $name, + "module" => $auth->data['app'], + "type" => "admin_url", + "title" => $auth->data['name'], + 'menu_id' => $auth->data['id'], + 'url_param' => $auth->data['url_param'], + 'rule_param' => $auth->data['rule_param'], + ]; + + AuthRule::create($authRule); + return true; + } + return false; + } + + /** + * 关联 authRule模型 删除 + * @param int $id 参数 + * @return bool + */ + public function menuDelete(){ + if($this->delete()){ + if($this->authRule){ + $this->authRule->authRuleDelete(); + } + return true; + } + return false; + } +} +?> \ No newline at end of file diff --git a/extend/tp5auth/mysql/tp_action_log.sql b/extend/tp5auth/mysql/tp_action_log.sql new file mode 100644 index 0000000..ce75175 --- /dev/null +++ b/extend/tp5auth/mysql/tp_action_log.sql @@ -0,0 +1,37 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50712 + Source Host : localhost + Source Database : rbac + + Target Server Type : MySQL + Target Server Version : 50712 + File Encoding : utf-8 + + Date: 11/17/2016 00:01:38 AM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `tp_action_log` +-- ---------------------------- +DROP TABLE IF EXISTS `tp_action_log`; +CREATE TABLE `tp_action_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', + `user_id` int(10) NOT NULL DEFAULT '0' COMMENT '执行用户id', + `action_ip` bigint(20) NOT NULL COMMENT '执行行为者ip', + `log` longtext NOT NULL COMMENT '日志备注', + `log_url` varchar(255) NOT NULL COMMENT '执行的URL', + `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行行为的时间', + `username` varchar(255) NOT NULL COMMENT '执行者', + `title` varchar(255) NOT NULL COMMENT '标题', + PRIMARY KEY (`id`), + KEY `id` (`id`) USING BTREE +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='行为日志表'; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/extend/tp5auth/mysql/tp_auth_access.sql b/extend/tp5auth/mysql/tp_auth_access.sql new file mode 100644 index 0000000..26c876c --- /dev/null +++ b/extend/tp5auth/mysql/tp_auth_access.sql @@ -0,0 +1,40 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50712 + Source Host : localhost + Source Database : rbac + + Target Server Type : MySQL + Target Server Version : 50712 + File Encoding : utf-8 + + Date: 11/12/2016 23:25:30 PM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `tp_auth_access` +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_access`; +CREATE TABLE `tp_auth_access` ( + `role_id` mediumint(8) unsigned NOT NULL COMMENT '角色', + `rule_name` varchar(255) NOT NULL COMMENT '规则唯一英文标识,全小写', + `type` varchar(30) DEFAULT NULL COMMENT '权限规则分类,请加应用前缀,如admin_', + `menu_id` int(11) DEFAULT NULL COMMENT '后台菜单ID', + KEY `role_id` (`role_id`), + KEY `rule_name` (`rule_name`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限授权表'; + +-- ---------------------------- +-- Records of `tp_auth_access` +-- ---------------------------- +BEGIN; +INSERT INTO `tp_auth_access` VALUES ('2', 'index/auth/default', 'admin_url', '1'), ('2', 'index/auth/default', 'admin_url', '8'), ('2', 'index/auth/menu', 'admin_url', '9'), ('2', 'index/auth/menuadd', 'admin_url', '10'), ('2', 'index/auth/menuedit', 'admin_url', '11'), ('2', 'index/auth/menudelete', 'admin_url', '12'), ('2', 'index/auth/menuorder', 'admin_url', '13'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/extend/tp5auth/mysql/tp_auth_role.sql b/extend/tp5auth/mysql/tp_auth_role.sql new file mode 100644 index 0000000..8148e52 --- /dev/null +++ b/extend/tp5auth/mysql/tp_auth_role.sql @@ -0,0 +1,45 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50712 + Source Host : localhost + Source Database : rbac + + Target Server Type : MySQL + Target Server Version : 50712 + File Encoding : utf-8 + + Date: 11/12/2016 23:25:24 PM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `tp_auth_role` +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_role`; +CREATE TABLE `tp_auth_role` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(20) NOT NULL COMMENT '角色名称', + `pid` smallint(6) DEFAULT '0' COMMENT '父角色ID', + `status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态', + `remark` varchar(255) DEFAULT NULL COMMENT '备注', + `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', + `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间', + `listorder` int(3) NOT NULL DEFAULT '0' COMMENT '排序字段', + PRIMARY KEY (`id`), + KEY `parentId` (`pid`), + KEY `status` (`status`) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='角色表'; + +-- ---------------------------- +-- Records of `tp_auth_role` +-- ---------------------------- +BEGIN; +INSERT INTO `tp_auth_role` VALUES ('1', '超级管理员', '0', '1', '拥有网站最高管理员权限!', '1329633709', '1329633709', '0'), ('2', '文章管理', '0', '1', '', '0', '0', '0'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/extend/tp5auth/mysql/tp_auth_role_user.sql b/extend/tp5auth/mysql/tp_auth_role_user.sql new file mode 100644 index 0000000..5f7e273 --- /dev/null +++ b/extend/tp5auth/mysql/tp_auth_role_user.sql @@ -0,0 +1,38 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50712 + Source Host : localhost + Source Database : rbac + + Target Server Type : MySQL + Target Server Version : 50712 + File Encoding : utf-8 + + Date: 11/12/2016 23:25:19 PM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `tp_auth_role_user` +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_role_user`; +CREATE TABLE `tp_auth_role_user` ( + `role_id` int(11) unsigned DEFAULT '0' COMMENT '角色 id', + `user_id` int(11) DEFAULT '0' COMMENT '用户id', + KEY `group_id` (`role_id`), + KEY `user_id` (`user_id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户角色对应表'; + +-- ---------------------------- +-- Records of `tp_auth_role_user` +-- ---------------------------- +BEGIN; +INSERT INTO `tp_auth_role_user` VALUES ('2', '16'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/extend/tp5auth/mysql/tp_auth_rule.sql b/extend/tp5auth/mysql/tp_auth_rule.sql new file mode 100644 index 0000000..2ccc336 --- /dev/null +++ b/extend/tp5auth/mysql/tp_auth_rule.sql @@ -0,0 +1,45 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50712 + Source Host : localhost + Source Database : rbac + + Target Server Type : MySQL + Target Server Version : 50712 + File Encoding : utf-8 + + Date: 11/12/2016 23:25:13 PM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `tp_auth_rule` +-- ---------------------------- +DROP TABLE IF EXISTS `tp_auth_rule`; +CREATE TABLE `tp_auth_rule` ( + `menu_id` int(11) NOT NULL COMMENT '后台菜单 ID', + `module` varchar(20) NOT NULL COMMENT '规则所属module', + `type` varchar(30) NOT NULL DEFAULT '1' COMMENT '权限规则分类,请加应用前缀,如admin_', + `name` varchar(255) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识,全小写', + `url_param` varchar(255) DEFAULT NULL COMMENT '额外url参数', + `title` varchar(20) NOT NULL DEFAULT '' COMMENT '规则中文描述', + `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效(0:无效,1:有效)', + `rule_param` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件', + `nav_id` int(11) DEFAULT '0' COMMENT 'nav id', + PRIMARY KEY (`menu_id`), + KEY `module` (`module`,`status`,`type`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权限规则表'; + +-- ---------------------------- +-- Records of `tp_auth_rule` +-- ---------------------------- +BEGIN; +INSERT INTO `tp_auth_rule` VALUES ('2', 'index', 'admin_url', 'index/auth/default', '', '权限管理', '1', '', '0'), ('3', 'index', 'admin_url', 'index/auth/role', '', '角色管理', '1', '', '0'), ('4', 'index', 'admin_url', 'index/auth/roleadd', '', '角色增加', '1', '', '0'), ('5', 'index', 'admin_url', 'index/auth/roleedit', '', '角色编辑', '1', '', '0'), ('6', 'index', 'admin_url', 'index/auth/roledelete', '', '角色删除', '1', '', '0'), ('7', 'index', 'admin_url', 'index/auth/authorize', '', '角色授权', '1', '', '0'), ('8', 'index', 'admin_url', 'index/auth/menu', '', '菜单管理', '1', '', '0'), ('9', 'index', 'admin_url', 'index/auth/menu', '', '菜单列表', '1', '', '0'), ('10', 'index', 'admin_url', 'index/auth/menuadd', '', '菜单增加', '1', '', '0'), ('11', 'index', 'admin_url', 'index/auth/menuedit', '', '菜单修改', '1', '', '0'), ('12', 'index', 'admin_url', 'index/auth/menudelete', '', '菜单删除', '1', '', '0'), ('13', 'index', 'admin_url', 'index/auth/menuorder', '', '菜单排序', '1', '', '0'), ('14', 'index', 'admin_url', 'index/admin/index', '', '用户管理', '1', '', '0'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/extend/tp5auth/mysql/tp_menu.sql b/extend/tp5auth/mysql/tp_menu.sql new file mode 100644 index 0000000..26ac2c9 --- /dev/null +++ b/extend/tp5auth/mysql/tp_menu.sql @@ -0,0 +1,54 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 50712 + Source Host : localhost + Source Database : rbac + + Target Server Type : MySQL + Target Server Version : 50712 + File Encoding : utf-8 + + Date: 11/12/2016 23:25:08 PM +*/ + +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `tp_menu` +-- ---------------------------- +DROP TABLE IF EXISTS `tp_menu`; +CREATE TABLE `tp_menu` ( + `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID', + `parent_id` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID', + `app` char(20) NOT NULL COMMENT '应用名称app', + `model` char(20) NOT NULL COMMENT '控制器', + `action` char(20) NOT NULL COMMENT '操作名称', + `url_param` char(50) NOT NULL COMMENT 'url参数', + `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '菜单类型 1:权限认证+菜单;0:只作为菜单', + `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态,1显示,0不显示', + `name` varchar(50) NOT NULL COMMENT '菜单名称', + `icon` varchar(50) NOT NULL COMMENT '菜单图标', + `remark` varchar(255) NOT NULL COMMENT '备注', + `list_order` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '排序ID', + `rule_param` varchar(255) NOT NULL COMMENT '验证规则', + `nav_id` int(11) DEFAULT '0' COMMENT 'nav ID ', + `request` varchar(255) NOT NULL COMMENT '请求方式(日志生成)', + `log_rule` varchar(255) NOT NULL COMMENT '日志规则', + PRIMARY KEY (`id`), + KEY `status` (`status`), + KEY `model` (`model`), + KEY `parent_id` (`parent_id`) USING BTREE +) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='后台菜单表'; + +-- ---------------------------- +-- Records of `tp_menu` +-- ---------------------------- +BEGIN; +INSERT INTO `tp_menu` VALUES ('1', '0', 'index', 'auth', 'default', '', '0', '1', '系统管理', '', '', '10', '', '0', '', ''), ('2', '1', 'index', 'auth', 'default', '', '0', '1', '权限管理', '', '', '0', '', '0', '', ''), ('3', '2', 'index', 'auth', 'role', '', '1', '1', '角色管理', '', '', '0', '', '0', '', ''), ('4', '3', 'index', 'auth', 'roleAdd', '', '1', '0', '角色增加', '', '', '0', '', '0', '', ''), ('5', '3', 'index', 'auth', 'roleEdit', '', '1', '0', '角色编辑', '', '', '0', '', '0', '', ''), ('6', '3', 'index', 'auth', 'roleDelete', '', '1', '0', '角色删除', '', '', '0', '', '0', '', ''), ('7', '3', 'index', 'auth', 'authorize', '', '1', '0', '角色授权', '', '', '0', '', '0', '', ''), ('8', '1', 'index', 'auth', 'default', '', '0', '1', '菜单管理', '', '', '0', '', '0', '', ''), ('9', '8', 'index', 'auth', 'menu', '', '1', '1', '菜单列表', '', '', '0', '', '0', '', ''), ('10', '9', 'index', 'auth', 'menuAdd', '', '1', '0', '菜单增加', '', '', '0', '', '0', '', ''), ('11', '9', 'index', 'auth', 'menuEdit', '', '1', '0', '菜单修改', '', '', '0', '', '0', '', ''), ('12', '9', 'index', 'auth', 'menuDelete', '', '1', '0', '菜单删除', '', '', '0', '', '0', '', ''), ('13', '9', 'index', 'auth', 'menuOrder', '', '1', '0', '菜单排序', '', '', '0', '', '0', '', ''), ('14', '2', 'index', 'admin', 'index', '', '1', '1', '用户管理', '', '', '0', '', '0', '', ''); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/extend/tp5auth/static/css/bootstrap.min.css b/extend/tp5auth/static/css/bootstrap.min.css new file mode 100644 index 0000000..ef346e1 --- /dev/null +++ b/extend/tp5auth/static/css/bootstrap.min.css @@ -0,0 +1,5759 @@ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100% +} +body { + margin: 0 +} +article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { + display: block +} +audio, canvas, progress, video { + display: inline-block; + vertical-align: baseline +} +audio:not([controls]) { + display: none; + height: 0 +} +[hidden], template { + display:none +} +a { + background-color: transparent +} +a:active, a:hover { + outline: 0 +} +abbr[title] { + border-bottom: 1px dotted +} +b, strong { + font-weight: 700 +} +dfn { + font-style: italic +} +h1 { + margin: .67em 0; + font-size: 2em +} +mark { + color: #000; + background: #ff0 +} +small { + font-size: 80% +} +sub, sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline +} +sup { + top: -.5em +} +sub { + bottom: -.25em +} +img { + border: 0 +} +svg:not(:root) { + overflow: hidden +} +figure { + margin: 1em 40px +} +hr { + height: 0; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box +} +pre { + overflow: auto +} +code, kbd, pre, samp { + font-family: monospace, monospace; + font-size: 1em +} +button, input, optgroup, select, textarea { + margin: 0; + font: inherit; + color: inherit +} +button { + overflow: visible +} +button, select { + text-transform: none +} +button, html input[type=button], input[type=reset], input[type=submit] { + -webkit-appearance: button; + cursor: pointer +} +button[disabled], html input[disabled] { + cursor: default +} +button::-moz-focus-inner, input::-moz-focus-inner { + padding:0; + border:0 +} +input { + line-height: normal +} +input[type=checkbox], input[type=radio] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 0 +} +input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { + height:auto +} +input[type=search] { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + -webkit-appearance: textfield +} +input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { + -webkit-appearance:none +} +fieldset { + padding: .35em .625em .75em; + margin: 0 2px; + border: 1px solid silver +} +legend { + padding: 0; + border: 0 +} +textarea { + overflow: auto +} +optgroup { + font-weight: 700 +} +table { + border-spacing: 0; + border-collapse: collapse +} +td, th { + padding: 0 +}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ +@media print { + *, :after, :before { + color: #000!important; + text-shadow: none!important; + background: 0 0!important; + -webkit-box-shadow: none!important; + box-shadow: none!important + } + a, a:visited { + text-decoration: underline + } + a[href]:after { + content: " (" attr(href) ")" + } + abbr[title]:after { + content: " (" attr(title) ")" + } + a[href^="javascript:"]:after, a[href^="#"]:after { + content: "" + } + blockquote, pre { + border: 1px solid #999; + page-break-inside: avoid + } + thead { + display: table-header-group + } + img, tr { + page-break-inside: avoid + } + img { + max-width: 100%!important + } + h2, h3, p { + orphans: 3; + widows: 3 + } + h2, h3 { + page-break-after: avoid + } + .navbar { + display: none + } + .btn>.caret, .dropup>.btn>.caret { + border-top-color: #000!important + } + .label { + border: 1px solid #000 + } + .table { + border-collapse: collapse!important + } + .table td, .table th { + background-color: #fff!important + } + .table-bordered td, .table-bordered th { + border: 1px solid #ddd!important + } +} +@font-face { + font-family: 'Glyphicons Halflings'; + src: url(../fonts/glyphicons-halflings-regular.eot); + src: url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'), url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'), url(../fonts/glyphicons-halflings-regular.woff) format('woff'), url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'), url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg') +} +.glyphicon { + position: relative; + top: 1px; + display: inline-block; + font-family: 'Glyphicons Halflings'; + font-style: normal; + font-weight: 400; + line-height: 1; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale +} +.glyphicon-asterisk:before { + content: "\2a" +} +.glyphicon-plus:before { + content: "\2b" +} +.glyphicon-eur:before, .glyphicon-euro:before { + content: "\20ac" +} +.glyphicon-minus:before { + content: "\2212" +} +.glyphicon-cloud:before { + content: "\2601" +} +.glyphicon-envelope:before { + content: "\2709" +} +.glyphicon-pencil:before { + content: "\270f" +} +.glyphicon-glass:before { + content: "\e001" +} +.glyphicon-music:before { + content: "\e002" +} +.glyphicon-search:before { + content: "\e003" +} +.glyphicon-heart:before { + content: "\e005" +} +.glyphicon-star:before { + content: "\e006" +} +.glyphicon-star-empty:before { + content: "\e007" +} +.glyphicon-user:before { + content: "\e008" +} +.glyphicon-film:before { + content: "\e009" +} +.glyphicon-th-large:before { + content: "\e010" +} +.glyphicon-th:before { + content: "\e011" +} +.glyphicon-th-list:before { + content: "\e012" +} +.glyphicon-ok:before { + content: "\e013" +} +.glyphicon-remove:before { + content: "\e014" +} +.glyphicon-zoom-in:before { + content: "\e015" +} +.glyphicon-zoom-out:before { + content: "\e016" +} +.glyphicon-off:before { + content: "\e017" +} +.glyphicon-signal:before { + content: "\e018" +} +.glyphicon-cog:before { + content: "\e019" +} +.glyphicon-trash:before { + content: "\e020" +} +.glyphicon-home:before { + content: "\e021" +} +.glyphicon-file:before { + content: "\e022" +} +.glyphicon-time:before { + content: "\e023" +} +.glyphicon-road:before { + content: "\e024" +} +.glyphicon-download-alt:before { + content: "\e025" +} +.glyphicon-download:before { + content: "\e026" +} +.glyphicon-upload:before { + content: "\e027" +} +.glyphicon-inbox:before { + content: "\e028" +} +.glyphicon-play-circle:before { + content: "\e029" +} +.glyphicon-repeat:before { + content: "\e030" +} +.glyphicon-refresh:before { + content: "\e031" +} +.glyphicon-list-alt:before { + content: "\e032" +} +.glyphicon-lock:before { + content: "\e033" +} +.glyphicon-flag:before { + content: "\e034" +} +.glyphicon-headphones:before { + content: "\e035" +} +.glyphicon-volume-off:before { + content: "\e036" +} +.glyphicon-volume-down:before { + content: "\e037" +} +.glyphicon-volume-up:before { + content: "\e038" +} +.glyphicon-qrcode:before { + content: "\e039" +} +.glyphicon-barcode:before { + content: "\e040" +} +.glyphicon-tag:before { + content: "\e041" +} +.glyphicon-tags:before { + content: "\e042" +} +.glyphicon-book:before { + content: "\e043" +} +.glyphicon-bookmark:before { + content: "\e044" +} +.glyphicon-print:before { + content: "\e045" +} +.glyphicon-camera:before { + content: "\e046" +} +.glyphicon-font:before { + content: "\e047" +} +.glyphicon-bold:before { + content: "\e048" +} +.glyphicon-italic:before { + content: "\e049" +} +.glyphicon-text-height:before { + content: "\e050" +} +.glyphicon-text-width:before { + content: "\e051" +} +.glyphicon-align-left:before { + content: "\e052" +} +.glyphicon-align-center:before { + content: "\e053" +} +.glyphicon-align-right:before { + content: "\e054" +} +.glyphicon-align-justify:before { + content: "\e055" +} +.glyphicon-list:before { + content: "\e056" +} +.glyphicon-indent-left:before { + content: "\e057" +} +.glyphicon-indent-right:before { + content: "\e058" +} +.glyphicon-facetime-video:before { + content: "\e059" +} +.glyphicon-picture:before { + content: "\e060" +} +.glyphicon-map-marker:before { + content: "\e062" +} +.glyphicon-adjust:before { + content: "\e063" +} +.glyphicon-tint:before { + content: "\e064" +} +.glyphicon-edit:before { + content: "\e065" +} +.glyphicon-share:before { + content: "\e066" +} +.glyphicon-check:before { + content: "\e067" +} +.glyphicon-move:before { + content: "\e068" +} +.glyphicon-step-backward:before { + content: "\e069" +} +.glyphicon-fast-backward:before { + content: "\e070" +} +.glyphicon-backward:before { + content: "\e071" +} +.glyphicon-play:before { + content: "\e072" +} +.glyphicon-pause:before { + content: "\e073" +} +.glyphicon-stop:before { + content: "\e074" +} +.glyphicon-forward:before { + content: "\e075" +} +.glyphicon-fast-forward:before { + content: "\e076" +} +.glyphicon-step-forward:before { + content: "\e077" +} +.glyphicon-eject:before { + content: "\e078" +} +.glyphicon-chevron-left:before { + content: "\e079" +} +.glyphicon-chevron-right:before { + content: "\e080" +} +.glyphicon-plus-sign:before { + content: "\e081" +} +.glyphicon-minus-sign:before { + content: "\e082" +} +.glyphicon-remove-sign:before { + content: "\e083" +} +.glyphicon-ok-sign:before { + content: "\e084" +} +.glyphicon-question-sign:before { + content: "\e085" +} +.glyphicon-info-sign:before { + content: "\e086" +} +.glyphicon-screenshot:before { + content: "\e087" +} +.glyphicon-remove-circle:before { + content: "\e088" +} +.glyphicon-ok-circle:before { + content: "\e089" +} +.glyphicon-ban-circle:before { + content: "\e090" +} +.glyphicon-arrow-left:before { + content: "\e091" +} +.glyphicon-arrow-right:before { + content: "\e092" +} +.glyphicon-arrow-up:before { + content: "\e093" +} +.glyphicon-arrow-down:before { + content: "\e094" +} +.glyphicon-share-alt:before { + content: "\e095" +} +.glyphicon-resize-full:before { + content: "\e096" +} +.glyphicon-resize-small:before { + content: "\e097" +} +.glyphicon-exclamation-sign:before { + content: "\e101" +} +.glyphicon-gift:before { + content: "\e102" +} +.glyphicon-leaf:before { + content: "\e103" +} +.glyphicon-fire:before { + content: "\e104" +} +.glyphicon-eye-open:before { + content: "\e105" +} +.glyphicon-eye-close:before { + content: "\e106" +} +.glyphicon-warning-sign:before { + content: "\e107" +} +.glyphicon-plane:before { + content: "\e108" +} +.glyphicon-calendar:before { + content: "\e109" +} +.glyphicon-random:before { + content: "\e110" +} +.glyphicon-comment:before { + content: "\e111" +} +.glyphicon-magnet:before { + content: "\e112" +} +.glyphicon-chevron-up:before { + content: "\e113" +} +.glyphicon-chevron-down:before { + content: "\e114" +} +.glyphicon-retweet:before { + content: "\e115" +} +.glyphicon-shopping-cart:before { + content: "\e116" +} +.glyphicon-folder-close:before { + content: "\e117" +} +.glyphicon-folder-open:before { + content: "\e118" +} +.glyphicon-resize-vertical:before { + content: "\e119" +} +.glyphicon-resize-horizontal:before { + content: "\e120" +} +.glyphicon-hdd:before { + content: "\e121" +} +.glyphicon-bullhorn:before { + content: "\e122" +} +.glyphicon-bell:before { + content: "\e123" +} +.glyphicon-certificate:before { + content: "\e124" +} +.glyphicon-thumbs-up:before { + content: "\e125" +} +.glyphicon-thumbs-down:before { + content: "\e126" +} +.glyphicon-hand-right:before { + content: "\e127" +} +.glyphicon-hand-left:before { + content: "\e128" +} +.glyphicon-hand-up:before { + content: "\e129" +} +.glyphicon-hand-down:before { + content: "\e130" +} +.glyphicon-circle-arrow-right:before { + content: "\e131" +} +.glyphicon-circle-arrow-left:before { + content: "\e132" +} +.glyphicon-circle-arrow-up:before { + content: "\e133" +} +.glyphicon-circle-arrow-down:before { + content: "\e134" +} +.glyphicon-globe:before { + content: "\e135" +} +.glyphicon-wrench:before { + content: "\e136" +} +.glyphicon-tasks:before { + content: "\e137" +} +.glyphicon-filter:before { + content: "\e138" +} +.glyphicon-briefcase:before { + content: "\e139" +} +.glyphicon-fullscreen:before { + content: "\e140" +} +.glyphicon-dashboard:before { + content: "\e141" +} +.glyphicon-paperclip:before { + content: "\e142" +} +.glyphicon-heart-empty:before { + content: "\e143" +} +.glyphicon-link:before { + content: "\e144" +} +.glyphicon-phone:before { + content: "\e145" +} +.glyphicon-pushpin:before { + content: "\e146" +} +.glyphicon-usd:before { + content: "\e148" +} +.glyphicon-gbp:before { + content: "\e149" +} +.glyphicon-sort:before { + content: "\e150" +} +.glyphicon-sort-by-alphabet:before { + content: "\e151" +} +.glyphicon-sort-by-alphabet-alt:before { + content: "\e152" +} +.glyphicon-sort-by-order:before { + content: "\e153" +} +.glyphicon-sort-by-order-alt:before { + content: "\e154" +} +.glyphicon-sort-by-attributes:before { + content: "\e155" +} +.glyphicon-sort-by-attributes-alt:before { + content: "\e156" +} +.glyphicon-unchecked:before { + content: "\e157" +} +.glyphicon-expand:before { + content: "\e158" +} +.glyphicon-collapse-down:before { + content: "\e159" +} +.glyphicon-collapse-up:before { + content: "\e160" +} +.glyphicon-log-in:before { + content: "\e161" +} +.glyphicon-flash:before { + content: "\e162" +} +.glyphicon-log-out:before { + content: "\e163" +} +.glyphicon-new-window:before { + content: "\e164" +} +.glyphicon-record:before { + content: "\e165" +} +.glyphicon-save:before { + content: "\e166" +} +.glyphicon-open:before { + content: "\e167" +} +.glyphicon-saved:before { + content: "\e168" +} +.glyphicon-import:before { + content: "\e169" +} +.glyphicon-export:before { + content: "\e170" +} +.glyphicon-send:before { + content: "\e171" +} +.glyphicon-floppy-disk:before { + content: "\e172" +} +.glyphicon-floppy-saved:before { + content: "\e173" +} +.glyphicon-floppy-remove:before { + content: "\e174" +} +.glyphicon-floppy-save:before { + content: "\e175" +} +.glyphicon-floppy-open:before { + content: "\e176" +} +.glyphicon-credit-card:before { + content: "\e177" +} +.glyphicon-transfer:before { + content: "\e178" +} +.glyphicon-cutlery:before { + content: "\e179" +} +.glyphicon-header:before { + content: "\e180" +} +.glyphicon-compressed:before { + content: "\e181" +} +.glyphicon-earphone:before { + content: "\e182" +} +.glyphicon-phone-alt:before { + content: "\e183" +} +.glyphicon-tower:before { + content: "\e184" +} +.glyphicon-stats:before { + content: "\e185" +} +.glyphicon-sd-video:before { + content: "\e186" +} +.glyphicon-hd-video:before { + content: "\e187" +} +.glyphicon-subtitles:before { + content: "\e188" +} +.glyphicon-sound-stereo:before { + content: "\e189" +} +.glyphicon-sound-dolby:before { + content: "\e190" +} +.glyphicon-sound-5-1:before { + content: "\e191" +} +.glyphicon-sound-6-1:before { + content: "\e192" +} +.glyphicon-sound-7-1:before { + content: "\e193" +} +.glyphicon-copyright-mark:before { + content: "\e194" +} +.glyphicon-registration-mark:before { + content: "\e195" +} +.glyphicon-cloud-download:before { + content: "\e197" +} +.glyphicon-cloud-upload:before { + content: "\e198" +} +.glyphicon-tree-conifer:before { + content: "\e199" +} +.glyphicon-tree-deciduous:before { + content: "\e200" +} +.glyphicon-cd:before { + content: "\e201" +} +.glyphicon-save-file:before { + content: "\e202" +} +.glyphicon-open-file:before { + content: "\e203" +} +.glyphicon-level-up:before { + content: "\e204" +} +.glyphicon-copy:before { + content: "\e205" +} +.glyphicon-paste:before { + content: "\e206" +} +.glyphicon-alert:before { + content: "\e209" +} +.glyphicon-equalizer:before { + content: "\e210" +} +.glyphicon-king:before { + content: "\e211" +} +.glyphicon-queen:before { + content: "\e212" +} +.glyphicon-pawn:before { + content: "\e213" +} +.glyphicon-bishop:before { + content: "\e214" +} +.glyphicon-knight:before { + content: "\e215" +} +.glyphicon-baby-formula:before { + content: "\e216" +} +.glyphicon-tent:before { + content: "\26fa" +} +.glyphicon-blackboard:before { + content: "\e218" +} +.glyphicon-bed:before { + content: "\e219" +} +.glyphicon-apple:before { + content: "\f8ff" +} +.glyphicon-erase:before { + content: "\e221" +} +.glyphicon-hourglass:before { + content: "\231b" +} +.glyphicon-lamp:before { + content: "\e223" +} +.glyphicon-duplicate:before { + content: "\e224" +} +.glyphicon-piggy-bank:before { + content: "\e225" +} +.glyphicon-scissors:before { + content: "\e226" +} +.glyphicon-bitcoin:before { + content: "\e227" +} +.glyphicon-btc:before { + content: "\e227" +} +.glyphicon-xbt:before { + content: "\e227" +} +.glyphicon-yen:before { + content: "\00a5" +} +.glyphicon-jpy:before { + content: "\00a5" +} +.glyphicon-ruble:before { + content: "\20bd" +} +.glyphicon-rub:before { + content: "\20bd" +} +.glyphicon-scale:before { + content: "\e230" +} +.glyphicon-ice-lolly:before { + content: "\e231" +} +.glyphicon-ice-lolly-tasted:before { + content: "\e232" +} +.glyphicon-education:before { + content: "\e233" +} +.glyphicon-option-horizontal:before { + content: "\e234" +} +.glyphicon-option-vertical:before { + content: "\e235" +} +.glyphicon-menu-hamburger:before { + content: "\e236" +} +.glyphicon-modal-window:before { + content: "\e237" +} +.glyphicon-oil:before { + content: "\e238" +} +.glyphicon-grain:before { + content: "\e239" +} +.glyphicon-sunglasses:before { + content: "\e240" +} +.glyphicon-text-size:before { + content: "\e241" +} +.glyphicon-text-color:before { + content: "\e242" +} +.glyphicon-text-background:before { + content: "\e243" +} +.glyphicon-object-align-top:before { + content: "\e244" +} +.glyphicon-object-align-bottom:before { + content: "\e245" +} +.glyphicon-object-align-horizontal:before { + content: "\e246" +} +.glyphicon-object-align-left:before { + content: "\e247" +} +.glyphicon-object-align-vertical:before { + content: "\e248" +} +.glyphicon-object-align-right:before { + content: "\e249" +} +.glyphicon-triangle-right:before { + content: "\e250" +} +.glyphicon-triangle-left:before { + content: "\e251" +} +.glyphicon-triangle-bottom:before { + content: "\e252" +} +.glyphicon-triangle-top:before { + content: "\e253" +} +.glyphicon-console:before { + content: "\e254" +} +.glyphicon-superscript:before { + content: "\e255" +} +.glyphicon-subscript:before { + content: "\e256" +} +.glyphicon-menu-left:before { + content: "\e257" +} +.glyphicon-menu-right:before { + content: "\e258" +} +.glyphicon-menu-down:before { + content: "\e259" +} +.glyphicon-menu-up:before { + content: "\e260" +} +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} +:after, :before { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} +html { + font-size: 10px; + -webkit-tap-highlight-color: rgba(0,0,0,0) +} +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.42857143; + color: #333; + background-color: #fff +} +button, input, select, textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit +} +a { + color: #337ab7; + text-decoration: none +} +a:focus, a:hover { + color: #23527c; + text-decoration: underline +} +a:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} +figure { + margin: 0 +} +img { + vertical-align: middle +} +.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-responsive, .thumbnail a>img, .thumbnail>img { + display: block; + max-width: 100%; + height: auto +} +.img-rounded { + border-radius: 6px +} +.img-thumbnail { + display: inline-block; + max-width: 100%; + height: auto; + padding: 4px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: all .2s ease-in-out; + -o-transition: all .2s ease-in-out; + transition: all .2s ease-in-out +} +.img-circle { + border-radius: 50% +} +hr { + margin-top: 20px; + margin-bottom: 20px; + border: 0; + border-top: 1px solid #eee +} +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0,0,0,0); + border: 0 +} +.sr-only-focusable:active, .sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto +} +[role=button] { + cursor:pointer +} +.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { + font-family: inherit; + font-weight: 500; + line-height: 1.1; + color: inherit +} +.h1 .small, .h1 small, .h2 .small, .h2 small, .h3 .small, .h3 small, .h4 .small, .h4 small, .h5 .small, .h5 small, .h6 .small, .h6 small, h1 .small, h1 small, h2 .small, h2 small, h3 .small, h3 small, h4 .small, h4 small, h5 .small, h5 small, h6 .small, h6 small { + font-weight: 400; + line-height: 1; + color: #777 +} +.h1, .h2, .h3, h1, h2, h3 { + margin-top: 20px; + margin-bottom: 10px +} +.h1 .small, .h1 small, .h2 .small, .h2 small, .h3 .small, .h3 small, h1 .small, h1 small, h2 .small, h2 small, h3 .small, h3 small { + font-size: 65% +} +.h4, .h5, .h6, h4, h5, h6 { + margin-top: 10px; + margin-bottom: 10px +} +.h4 .small, .h4 small, .h5 .small, .h5 small, .h6 .small, .h6 small, h4 .small, h4 small, h5 .small, h5 small, h6 .small, h6 small { + font-size: 75% +} +.h1, h1 { + font-size: 36px +} +.h2, h2 { + font-size: 30px +} +.h3, h3 { + font-size: 24px +} +.h4, h4 { + font-size: 18px +} +.h5, h5 { + font-size: 14px +} +.h6, h6 { + font-size: 12px +} +p { + margin: 0 0 10px +} +.lead { + margin-bottom: 20px; + font-size: 16px; + font-weight: 300; + line-height: 1.4 +} +@media (min-width:768px) { + .lead { + font-size: 21px + } +} +.small, small { + font-size: 85% +} +.mark, mark { + padding: .2em; + background-color: #fcf8e3 +} +.text-left { + text-align: left +} +.text-right { + text-align: right +} +.text-center { + text-align: center +} +.text-justify { + text-align: justify +} +.text-nowrap { + white-space: nowrap +} +.text-lowercase { + text-transform: lowercase +} +.text-uppercase { + text-transform: uppercase +} +.text-capitalize { + text-transform: capitalize +} +.text-muted { + color: #777 +} +.text-primary { + color: #337ab7 +} +a.text-primary:focus, a.text-primary:hover { + color: #286090 +} +.text-success { + color: #3c763d +} +a.text-success:focus, a.text-success:hover { + color: #2b542c +} +.text-info { + color: #31708f +} +a.text-info:focus, a.text-info:hover { + color: #245269 +} +.text-warning { + color: #8a6d3b +} +a.text-warning:focus, a.text-warning:hover { + color: #66512c +} +.text-danger { + color: #a94442 +} +a.text-danger:focus, a.text-danger:hover { + color: #843534 +} +.bg-primary { + color: #fff; + background-color: #337ab7 +} +a.bg-primary:focus, a.bg-primary:hover { + background-color: #286090 +} +.bg-success { + background-color: #dff0d8 +} +a.bg-success:focus, a.bg-success:hover { + background-color: #c1e2b3 +} +.bg-info { + background-color: #d9edf7 +} +a.bg-info:focus, a.bg-info:hover { + background-color: #afd9ee +} +.bg-warning { + background-color: #fcf8e3 +} +a.bg-warning:focus, a.bg-warning:hover { + background-color: #f7ecb5 +} +.bg-danger { + background-color: #f2dede +} +a.bg-danger:focus, a.bg-danger:hover { + background-color: #e4b9b9 +} +.page-header { + padding-bottom: 9px; + margin: 40px 0 20px; + border-bottom: 1px solid #eee +} +ol, ul { + margin-top: 0; + margin-bottom: 10px +} +ol ol, ol ul, ul ol, ul ul { + margin-bottom: 0 +} +.list-unstyled { + padding-left: 0; + list-style: none +} +.list-inline { + padding-left: 0; + margin-left: -5px; + list-style: none +} +.list-inline>li { + display: inline-block; + padding-right: 5px; + padding-left: 5px +} +dl { + margin-top: 0; + margin-bottom: 20px +} +dd, dt { + line-height: 1.42857143 +} +dt { + font-weight: 700 +} +dd { + margin-left: 0 +} +@media (min-width:768px) { + .dl-horizontal dt { + float: left; + width: 160px; + overflow: hidden; + clear: left; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap + } + .dl-horizontal dd { + margin-left: 180px + } +} +abbr[data-original-title], abbr[title] { + cursor: help; + border-bottom: 1px dotted #777 +} +.initialism { + font-size: 90%; + text-transform: uppercase +} +blockquote { + padding: 10px 20px; + margin: 0 0 20px; + font-size: 17.5px; + border-left: 5px solid #eee +} +blockquote ol:last-child, blockquote p:last-child, blockquote ul:last-child { + margin-bottom: 0 +} +blockquote .small, blockquote footer, blockquote small { + display: block; + font-size: 80%; + line-height: 1.42857143; + color: #777 +} +blockquote .small:before, blockquote footer:before, blockquote small:before { + content: '\2014 \00A0' +} +.blockquote-reverse, blockquote.pull-right { + padding-right: 15px; + padding-left: 0; + text-align: right; + border-right: 5px solid #eee; + border-left: 0 +} +.blockquote-reverse .small:before, .blockquote-reverse footer:before, .blockquote-reverse small:before, blockquote.pull-right .small:before, blockquote.pull-right footer:before, blockquote.pull-right small:before { + content: '' +} +.blockquote-reverse .small:after, .blockquote-reverse footer:after, .blockquote-reverse small:after, blockquote.pull-right .small:after, blockquote.pull-right footer:after, blockquote.pull-right small:after { + content: '\00A0 \2014' +} +address { + margin-bottom: 20px; + font-style: normal; + line-height: 1.42857143 +} +code, kbd, pre, samp { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace +} +code { + padding: 2px 4px; + font-size: 90%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 4px +} +kbd { + padding: 2px 4px; + font-size: 90%; + color: #fff; + background-color: #333; + border-radius: 3px; + -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); + box-shadow: inset 0 -1px 0 rgba(0,0,0,.25) +} +kbd kbd { + padding: 0; + font-size: 100%; + font-weight: 700; + -webkit-box-shadow: none; + box-shadow: none +} +pre { + display: block; + padding: 9.5px; + margin: 0 0 10px; + font-size: 13px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px +} +pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0 +} +.pre-scrollable { + max-height: 340px; + overflow-y: scroll +} +.container { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto +} +@media (min-width:768px) { + .container { + width: 750px + } +} +@media (min-width:992px) { + .container { + width: 970px + } +} +@media (min-width:1200px) { + .container { + width: 1170px + } +} +.container-fluid { + padding-right: 15px; + padding-left: 15px; + margin-right: auto; + margin-left: auto +} +.row { + margin-right: -15px; + margin-left: -15px +} +.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { + position: relative; + min-height: 1px; + padding-right: 15px; + padding-left: 15px +} +.col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { + float: left +} +.col-xs-12 { + width: 100% +} +.col-xs-11 { + width: 91.66666667% +} +.col-xs-10 { + width: 83.33333333% +} +.col-xs-9 { + width: 75% +} +.col-xs-8 { + width: 66.66666667% +} +.col-xs-7 { + width: 58.33333333% +} +.col-xs-6 { + width: 50% +} +.col-xs-5 { + width: 41.66666667% +} +.col-xs-4 { + width: 33.33333333% +} +.col-xs-3 { + width: 25% +} +.col-xs-2 { + width: 16.66666667% +} +.col-xs-1 { + width: 8.33333333% +} +.col-xs-pull-12 { + right: 100% +} +.col-xs-pull-11 { + right: 91.66666667% +} +.col-xs-pull-10 { + right: 83.33333333% +} +.col-xs-pull-9 { + right: 75% +} +.col-xs-pull-8 { + right: 66.66666667% +} +.col-xs-pull-7 { + right: 58.33333333% +} +.col-xs-pull-6 { + right: 50% +} +.col-xs-pull-5 { + right: 41.66666667% +} +.col-xs-pull-4 { + right: 33.33333333% +} +.col-xs-pull-3 { + right: 25% +} +.col-xs-pull-2 { + right: 16.66666667% +} +.col-xs-pull-1 { + right: 8.33333333% +} +.col-xs-pull-0 { + right: auto +} +.col-xs-push-12 { + left: 100% +} +.col-xs-push-11 { + left: 91.66666667% +} +.col-xs-push-10 { + left: 83.33333333% +} +.col-xs-push-9 { + left: 75% +} +.col-xs-push-8 { + left: 66.66666667% +} +.col-xs-push-7 { + left: 58.33333333% +} +.col-xs-push-6 { + left: 50% +} +.col-xs-push-5 { + left: 41.66666667% +} +.col-xs-push-4 { + left: 33.33333333% +} +.col-xs-push-3 { + left: 25% +} +.col-xs-push-2 { + left: 16.66666667% +} +.col-xs-push-1 { + left: 8.33333333% +} +.col-xs-push-0 { + left: auto +} +.col-xs-offset-12 { + margin-left: 100% +} +.col-xs-offset-11 { + margin-left: 91.66666667% +} +.col-xs-offset-10 { + margin-left: 83.33333333% +} +.col-xs-offset-9 { + margin-left: 75% +} +.col-xs-offset-8 { + margin-left: 66.66666667% +} +.col-xs-offset-7 { + margin-left: 58.33333333% +} +.col-xs-offset-6 { + margin-left: 50% +} +.col-xs-offset-5 { + margin-left: 41.66666667% +} +.col-xs-offset-4 { + margin-left: 33.33333333% +} +.col-xs-offset-3 { + margin-left: 25% +} +.col-xs-offset-2 { + margin-left: 16.66666667% +} +.col-xs-offset-1 { + margin-left: 8.33333333% +} +.col-xs-offset-0 { + margin-left: 0 +} +@media (min-width:768px) { + .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9 { + float: left + } + .col-sm-12 { + width: 100% + } + .col-sm-11 { + width: 91.66666667% + } + .col-sm-10 { + width: 83.33333333% + } + .col-sm-9 { + width: 75% + } + .col-sm-8 { + width: 66.66666667% + } + .col-sm-7 { + width: 58.33333333% + } + .col-sm-6 { + width: 50% + } + .col-sm-5 { + width: 41.66666667% + } + .col-sm-4 { + width: 33.33333333% + } + .col-sm-3 { + width: 25% + } + .col-sm-2 { + width: 16.66666667% + } + .col-sm-1 { + width: 8.33333333% + } + .col-sm-pull-12 { + right: 100% + } + .col-sm-pull-11 { + right: 91.66666667% + } + .col-sm-pull-10 { + right: 83.33333333% + } + .col-sm-pull-9 { + right: 75% + } + .col-sm-pull-8 { + right: 66.66666667% + } + .col-sm-pull-7 { + right: 58.33333333% + } + .col-sm-pull-6 { + right: 50% + } + .col-sm-pull-5 { + right: 41.66666667% + } + .col-sm-pull-4 { + right: 33.33333333% + } + .col-sm-pull-3 { + right: 25% + } + .col-sm-pull-2 { + right: 16.66666667% + } + .col-sm-pull-1 { + right: 8.33333333% + } + .col-sm-pull-0 { + right: auto + } + .col-sm-push-12 { + left: 100% + } + .col-sm-push-11 { + left: 91.66666667% + } + .col-sm-push-10 { + left: 83.33333333% + } + .col-sm-push-9 { + left: 75% + } + .col-sm-push-8 { + left: 66.66666667% + } + .col-sm-push-7 { + left: 58.33333333% + } + .col-sm-push-6 { + left: 50% + } + .col-sm-push-5 { + left: 41.66666667% + } + .col-sm-push-4 { + left: 33.33333333% + } + .col-sm-push-3 { + left: 25% + } + .col-sm-push-2 { + left: 16.66666667% + } + .col-sm-push-1 { + left: 8.33333333% + } + .col-sm-push-0 { + left: auto + } + .col-sm-offset-12 { + margin-left: 100% + } + .col-sm-offset-11 { + margin-left: 91.66666667% + } + .col-sm-offset-10 { + margin-left: 83.33333333% + } + .col-sm-offset-9 { + margin-left: 75% + } + .col-sm-offset-8 { + margin-left: 66.66666667% + } + .col-sm-offset-7 { + margin-left: 58.33333333% + } + .col-sm-offset-6 { + margin-left: 50% + } + .col-sm-offset-5 { + margin-left: 41.66666667% + } + .col-sm-offset-4 { + margin-left: 33.33333333% + } + .col-sm-offset-3 { + margin-left: 25% + } + .col-sm-offset-2 { + margin-left: 16.66666667% + } + .col-sm-offset-1 { + margin-left: 8.33333333% + } + .col-sm-offset-0 { + margin-left: 0 + } +} +@media (min-width:992px) { + .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 { + float: left + } + .col-md-12 { + width: 100% + } + .col-md-11 { + width: 91.66666667% + } + .col-md-10 { + width: 83.33333333% + } + .col-md-9 { + width: 75% + } + .col-md-8 { + width: 66.66666667% + } + .col-md-7 { + width: 58.33333333% + } + .col-md-6 { + width: 50% + } + .col-md-5 { + width: 41.66666667% + } + .col-md-4 { + width: 33.33333333% + } + .col-md-3 { + width: 25% + } + .col-md-2 { + width: 16.66666667% + } + .col-md-1 { + width: 8.33333333% + } + .col-md-pull-12 { + right: 100% + } + .col-md-pull-11 { + right: 91.66666667% + } + .col-md-pull-10 { + right: 83.33333333% + } + .col-md-pull-9 { + right: 75% + } + .col-md-pull-8 { + right: 66.66666667% + } + .col-md-pull-7 { + right: 58.33333333% + } + .col-md-pull-6 { + right: 50% + } + .col-md-pull-5 { + right: 41.66666667% + } + .col-md-pull-4 { + right: 33.33333333% + } + .col-md-pull-3 { + right: 25% + } + .col-md-pull-2 { + right: 16.66666667% + } + .col-md-pull-1 { + right: 8.33333333% + } + .col-md-pull-0 { + right: auto + } + .col-md-push-12 { + left: 100% + } + .col-md-push-11 { + left: 91.66666667% + } + .col-md-push-10 { + left: 83.33333333% + } + .col-md-push-9 { + left: 75% + } + .col-md-push-8 { + left: 66.66666667% + } + .col-md-push-7 { + left: 58.33333333% + } + .col-md-push-6 { + left: 50% + } + .col-md-push-5 { + left: 41.66666667% + } + .col-md-push-4 { + left: 33.33333333% + } + .col-md-push-3 { + left: 25% + } + .col-md-push-2 { + left: 16.66666667% + } + .col-md-push-1 { + left: 8.33333333% + } + .col-md-push-0 { + left: auto + } + .col-md-offset-12 { + margin-left: 100% + } + .col-md-offset-11 { + margin-left: 91.66666667% + } + .col-md-offset-10 { + margin-left: 83.33333333% + } + .col-md-offset-9 { + margin-left: 75% + } + .col-md-offset-8 { + margin-left: 66.66666667% + } + .col-md-offset-7 { + margin-left: 58.33333333% + } + .col-md-offset-6 { + margin-left: 50% + } + .col-md-offset-5 { + margin-left: 41.66666667% + } + .col-md-offset-4 { + margin-left: 33.33333333% + } + .col-md-offset-3 { + margin-left: 25% + } + .col-md-offset-2 { + margin-left: 16.66666667% + } + .col-md-offset-1 { + margin-left: 8.33333333% + } + .col-md-offset-0 { + margin-left: 0 + } +} +@media (min-width:1200px) { + .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9 { + float: left + } + .col-lg-12 { + width: 100% + } + .col-lg-11 { + width: 91.66666667% + } + .col-lg-10 { + width: 83.33333333% + } + .col-lg-9 { + width: 75% + } + .col-lg-8 { + width: 66.66666667% + } + .col-lg-7 { + width: 58.33333333% + } + .col-lg-6 { + width: 50% + } + .col-lg-5 { + width: 41.66666667% + } + .col-lg-4 { + width: 33.33333333% + } + .col-lg-3 { + width: 25% + } + .col-lg-2 { + width: 16.66666667% + } + .col-lg-1 { + width: 8.33333333% + } + .col-lg-pull-12 { + right: 100% + } + .col-lg-pull-11 { + right: 91.66666667% + } + .col-lg-pull-10 { + right: 83.33333333% + } + .col-lg-pull-9 { + right: 75% + } + .col-lg-pull-8 { + right: 66.66666667% + } + .col-lg-pull-7 { + right: 58.33333333% + } + .col-lg-pull-6 { + right: 50% + } + .col-lg-pull-5 { + right: 41.66666667% + } + .col-lg-pull-4 { + right: 33.33333333% + } + .col-lg-pull-3 { + right: 25% + } + .col-lg-pull-2 { + right: 16.66666667% + } + .col-lg-pull-1 { + right: 8.33333333% + } + .col-lg-pull-0 { + right: auto + } + .col-lg-push-12 { + left: 100% + } + .col-lg-push-11 { + left: 91.66666667% + } + .col-lg-push-10 { + left: 83.33333333% + } + .col-lg-push-9 { + left: 75% + } + .col-lg-push-8 { + left: 66.66666667% + } + .col-lg-push-7 { + left: 58.33333333% + } + .col-lg-push-6 { + left: 50% + } + .col-lg-push-5 { + left: 41.66666667% + } + .col-lg-push-4 { + left: 33.33333333% + } + .col-lg-push-3 { + left: 25% + } + .col-lg-push-2 { + left: 16.66666667% + } + .col-lg-push-1 { + left: 8.33333333% + } + .col-lg-push-0 { + left: auto + } + .col-lg-offset-12 { + margin-left: 100% + } + .col-lg-offset-11 { + margin-left: 91.66666667% + } + .col-lg-offset-10 { + margin-left: 83.33333333% + } + .col-lg-offset-9 { + margin-left: 75% + } + .col-lg-offset-8 { + margin-left: 66.66666667% + } + .col-lg-offset-7 { + margin-left: 58.33333333% + } + .col-lg-offset-6 { + margin-left: 50% + } + .col-lg-offset-5 { + margin-left: 41.66666667% + } + .col-lg-offset-4 { + margin-left: 33.33333333% + } + .col-lg-offset-3 { + margin-left: 25% + } + .col-lg-offset-2 { + margin-left: 16.66666667% + } + .col-lg-offset-1 { + margin-left: 8.33333333% + } + .col-lg-offset-0 { + margin-left: 0 + } +} +table { + background-color: transparent +} +caption { + padding-top: 8px; + padding-bottom: 8px; + color: #777; + text-align: left +} +th { + text-align: left +} +.table { + width: 100%; + max-width: 100%; + margin-bottom: 20px +} +.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th { + padding: 8px; + line-height: 1.42857143; + /*vertical-align: top;*/ + border-top: 1px solid #ddd +} +.table>thead>tr>th { + vertical-align: bottom; + border-bottom: 2px solid #ddd +} +.table>caption+thead>tr:first-child>td, .table>caption+thead>tr:first-child>th, .table>colgroup+thead>tr:first-child>td, .table>colgroup+thead>tr:first-child>th, .table>thead:first-child>tr:first-child>td, .table>thead:first-child>tr:first-child>th { + border-top: 0 +} +.table>tbody+tbody { + border-top: 2px solid #ddd +} +.table .table { + background-color: #fff +} +.table-condensed>tbody>tr>td, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>td, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>thead>tr>th { + padding: 5px +} +.table-bordered { + border: 1px solid #ddd +} +.table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th { + border: 1px solid #ddd +} +.table-bordered>thead>tr>td, .table-bordered>thead>tr>th { + border-bottom-width: 2px +} +.table-striped>tbody>tr:nth-of-type(odd) { + background-color: #f9f9f9 +} +.table-hover>tbody>tr:hover { + background-color: #f5f5f5 +} +table col[class*=col-] { + position: static; + display: table-column; + float: none +} +table td[class*=col-], table th[class*=col-] { + position: static; + display: table-cell; + float: none +} +.table>tbody>tr.active>td, .table>tbody>tr.active>th, .table>tbody>tr>td.active, .table>tbody>tr>th.active, .table>tfoot>tr.active>td, .table>tfoot>tr.active>th, .table>tfoot>tr>td.active, .table>tfoot>tr>th.active, .table>thead>tr.active>td, .table>thead>tr.active>th, .table>thead>tr>td.active, .table>thead>tr>th.active { + background-color: #f5f5f5 +} +.table-hover>tbody>tr.active:hover>td, .table-hover>tbody>tr.active:hover>th, .table-hover>tbody>tr:hover>.active, .table-hover>tbody>tr>td.active:hover, .table-hover>tbody>tr>th.active:hover { + background-color: #e8e8e8 +} +.table>tbody>tr.success>td, .table>tbody>tr.success>th, .table>tbody>tr>td.success, .table>tbody>tr>th.success, .table>tfoot>tr.success>td, .table>tfoot>tr.success>th, .table>tfoot>tr>td.success, .table>tfoot>tr>th.success, .table>thead>tr.success>td, .table>thead>tr.success>th, .table>thead>tr>td.success, .table>thead>tr>th.success { + background-color: #dff0d8 +} +.table-hover>tbody>tr.success:hover>td, .table-hover>tbody>tr.success:hover>th, .table-hover>tbody>tr:hover>.success, .table-hover>tbody>tr>td.success:hover, .table-hover>tbody>tr>th.success:hover { + background-color: #d0e9c6 +} +.table>tbody>tr.info>td, .table>tbody>tr.info>th, .table>tbody>tr>td.info, .table>tbody>tr>th.info, .table>tfoot>tr.info>td, .table>tfoot>tr.info>th, .table>tfoot>tr>td.info, .table>tfoot>tr>th.info, .table>thead>tr.info>td, .table>thead>tr.info>th, .table>thead>tr>td.info, .table>thead>tr>th.info { + background-color: #d9edf7 +} +.table-hover>tbody>tr.info:hover>td, .table-hover>tbody>tr.info:hover>th, .table-hover>tbody>tr:hover>.info, .table-hover>tbody>tr>td.info:hover, .table-hover>tbody>tr>th.info:hover { + background-color: #c4e3f3 +} +.table>tbody>tr.warning>td, .table>tbody>tr.warning>th, .table>tbody>tr>td.warning, .table>tbody>tr>th.warning, .table>tfoot>tr.warning>td, .table>tfoot>tr.warning>th, .table>tfoot>tr>td.warning, .table>tfoot>tr>th.warning, .table>thead>tr.warning>td, .table>thead>tr.warning>th, .table>thead>tr>td.warning, .table>thead>tr>th.warning { + background-color: #fcf8e3 +} +.table-hover>tbody>tr.warning:hover>td, .table-hover>tbody>tr.warning:hover>th, .table-hover>tbody>tr:hover>.warning, .table-hover>tbody>tr>td.warning:hover, .table-hover>tbody>tr>th.warning:hover { + background-color: #faf2cc +} +.table>tbody>tr.danger>td, .table>tbody>tr.danger>th, .table>tbody>tr>td.danger, .table>tbody>tr>th.danger, .table>tfoot>tr.danger>td, .table>tfoot>tr.danger>th, .table>tfoot>tr>td.danger, .table>tfoot>tr>th.danger, .table>thead>tr.danger>td, .table>thead>tr.danger>th, .table>thead>tr>td.danger, .table>thead>tr>th.danger { + background-color: #f2dede +} +.table-hover>tbody>tr.danger:hover>td, .table-hover>tbody>tr.danger:hover>th, .table-hover>tbody>tr:hover>.danger, .table-hover>tbody>tr>td.danger:hover, .table-hover>tbody>tr>th.danger:hover { + background-color: #ebcccc +} +.table-responsive { + min-height: .01%; + overflow-x: auto +} +@media screen and (max-width:767px) { + .table-responsive { + width: 100%; + margin-bottom: 15px; + overflow-y: hidden; + -ms-overflow-style: -ms-autohiding-scrollbar; + border: 1px solid #ddd + } + .table-responsive>.table { + margin-bottom: 0 + } + .table-responsive>.table>tbody>tr>td, .table-responsive>.table>tbody>tr>th, .table-responsive>.table>tfoot>tr>td, .table-responsive>.table>tfoot>tr>th, .table-responsive>.table>thead>tr>td, .table-responsive>.table>thead>tr>th { + white-space: nowrap + } + .table-responsive>.table-bordered { + border: 0 + } + .table-responsive>.table-bordered>tbody>tr>td:first-child, .table-responsive>.table-bordered>tbody>tr>th:first-child, .table-responsive>.table-bordered>tfoot>tr>td:first-child, .table-responsive>.table-bordered>tfoot>tr>th:first-child, .table-responsive>.table-bordered>thead>tr>td:first-child, .table-responsive>.table-bordered>thead>tr>th:first-child { + border-left: 0 + } + .table-responsive>.table-bordered>tbody>tr>td:last-child, .table-responsive>.table-bordered>tbody>tr>th:last-child, .table-responsive>.table-bordered>tfoot>tr>td:last-child, .table-responsive>.table-bordered>tfoot>tr>th:last-child, .table-responsive>.table-bordered>thead>tr>td:last-child, .table-responsive>.table-bordered>thead>tr>th:last-child { + border-right: 0 + } + .table-responsive>.table-bordered>tbody>tr:last-child>td, .table-responsive>.table-bordered>tbody>tr:last-child>th, .table-responsive>.table-bordered>tfoot>tr:last-child>td, .table-responsive>.table-bordered>tfoot>tr:last-child>th { + border-bottom: 0 + } +} +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0 +} +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 20px; + font-size: 21px; + line-height: inherit; + color: #333; + border: 0; + border-bottom: 1px solid #e5e5e5 +} +label { + display: inline-block; + max-width: 100%; + margin-bottom: 5px; + font-weight: 700 +} +input[type=search] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} +input[type=checkbox], input[type=radio] { + margin: 4px 0 0; + margin-top: 1px\9; + line-height: normal +} +input[type=file] { + display: block +} +input[type=range] { + display: block; + width: 100% +} +select[multiple], select[size] { + height: auto +} +input[type=file]:focus, input[type=checkbox]:focus, input[type=radio]:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} +output { + display: block; + padding-top: 7px; + font-size: 14px; + line-height: 1.42857143; + color: #555 +} +.form-control { + display: block; + width: 100%; + height: 34px; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s +} +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6) +} +.form-control::-moz-placeholder { + color:#999; + opacity:1 +} +.form-control:-ms-input-placeholder { + color:#999 +} +.form-control::-webkit-input-placeholder { + color:#999 +} +.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { + background-color: #eee; + opacity: 1 +} +.form-control[disabled], fieldset[disabled] .form-control { + cursor: not-allowed +} +textarea.form-control { + height: auto +} +input[type=search] { + -webkit-appearance: none +} +@media screen and (-webkit-min-device-pixel-ratio:0) { + input[type=date].form-control, input[type=time].form-control, input[type=datetime-local].form-control, input[type=month].form-control { + line-height: 34px + } + .input-group-sm input[type=date], .input-group-sm input[type=time], .input-group-sm input[type=datetime-local], .input-group-sm input[type=month], input[type=date].input-sm, input[type=time].input-sm, input[type=datetime-local].input-sm, input[type=month].input-sm { + line-height: 30px + } + .input-group-lg input[type=date], .input-group-lg input[type=time], .input-group-lg input[type=datetime-local], .input-group-lg input[type=month], input[type=date].input-lg, input[type=time].input-lg, input[type=datetime-local].input-lg, input[type=month].input-lg { + line-height: 46px + } +} +.form-group { + margin-bottom: 15px +} +.checkbox, .radio { + position: relative; + display: block; + margin-top: 10px; + margin-bottom: 10px +} +.checkbox label, .radio label { + min-height: 20px; + padding-left: 20px; + margin-bottom: 0; + font-weight: 400; + cursor: pointer +} +/*.checkbox input[type=checkbox], .checkbox-inline input[type=checkbox], .radio input[type=radio], .radio-inline input[type=radio] { + position: absolute; + margin-top: 4px\9; + margin-left: -20px +}*/ +.checkbox+.checkbox, .radio+.radio { + margin-top: -5px +} +.checkbox-inline, .radio-inline { + position: relative; + display: inline-block; + padding-left: 20px; + margin-bottom: 0; + font-weight: 400; + vertical-align: middle; + cursor: pointer +} +.checkbox-inline+.checkbox-inline, .radio-inline+.radio-inline { + margin-top: 0; + margin-left: 10px +} +fieldset[disabled] input[type=checkbox], fieldset[disabled] input[type=radio], input[type=checkbox].disabled, input[type=checkbox][disabled], input[type=radio].disabled, input[type=radio][disabled] { + cursor: not-allowed +} +.checkbox-inline.disabled, .radio-inline.disabled, fieldset[disabled] .checkbox-inline, fieldset[disabled] .radio-inline { + cursor: not-allowed +} +.checkbox.disabled label, .radio.disabled label, fieldset[disabled] .checkbox label, fieldset[disabled] .radio label { + cursor: not-allowed +} +.form-control-static { + min-height: 34px; + padding-top: 7px; + padding-bottom: 7px; + margin-bottom: 0 +} +.form-control-static.input-lg, .form-control-static.input-sm { + padding-right: 0; + padding-left: 0 +} +.input-sm { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} +select.input-sm { + height: 30px; + line-height: 30px +} +select[multiple].input-sm, textarea.input-sm { + height: auto +} +.form-group-sm .form-control { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} +.form-group-sm select.form-control { + height: 30px; + line-height: 30px +} +.form-group-sm select[multiple].form-control, .form-group-sm textarea.form-control { + height: auto +} +.form-group-sm .form-control-static { + height: 30px; + min-height: 32px; + padding: 6px 10px; + font-size: 12px; + line-height: 1.5 +} +.input-lg { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} +select.input-lg { + height: 46px; + line-height: 46px +} +select[multiple].input-lg, textarea.input-lg { + height: auto +} +.form-group-lg .form-control { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} +.form-group-lg select.form-control { + height: 46px; + line-height: 46px +} +.form-group-lg select[multiple].form-control, .form-group-lg textarea.form-control { + height: auto +} +.form-group-lg .form-control-static { + height: 46px; + min-height: 38px; + padding: 11px 16px; + font-size: 18px; + line-height: 1.3333333 +} +.has-feedback { + position: relative +} +.has-feedback .form-control { + padding-right: 42.5px +} +.form-control-feedback { + position: absolute; + top: 0; + right: 0; + z-index: 2; + display: block; + width: 34px; + height: 34px; + line-height: 34px; + text-align: center; + pointer-events: none +} +.form-group-lg .form-control+.form-control-feedback, .input-group-lg+.form-control-feedback, .input-lg+.form-control-feedback { + width: 46px; + height: 46px; + line-height: 46px +} +.form-group-sm .form-control+.form-control-feedback, .input-group-sm+.form-control-feedback, .input-sm+.form-control-feedback { + width: 30px; + height: 30px; + line-height: 30px +} +.has-success .checkbox, .has-success .checkbox-inline, .has-success .control-label, .has-success .help-block, .has-success .radio, .has-success .radio-inline, .has-success.checkbox label, .has-success.checkbox-inline label, .has-success.radio label, .has-success.radio-inline label { + color: #3c763d +} +.has-success .form-control { + border-color: #3c763d; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075) +} +.has-success .form-control:focus { + border-color: #2b542c; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #67b168; + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #67b168 +} +.has-success .input-group-addon { + color: #3c763d; + background-color: #dff0d8; + border-color: #3c763d +} +.has-success .form-control-feedback { + color: #3c763d +} +.has-warning .checkbox, .has-warning .checkbox-inline, .has-warning .control-label, .has-warning .help-block, .has-warning .radio, .has-warning .radio-inline, .has-warning.checkbox label, .has-warning.checkbox-inline label, .has-warning.radio label, .has-warning.radio-inline label { + color: #8a6d3b +} +.has-warning .form-control { + border-color: #8a6d3b; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075) +} +.has-warning .form-control:focus { + border-color: #66512c; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #c0a16b; + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #c0a16b +} +.has-warning .input-group-addon { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #8a6d3b +} +.has-warning .form-control-feedback { + color: #8a6d3b +} +.has-error .checkbox, .has-error .checkbox-inline, .has-error .control-label, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.checkbox label, .has-error.checkbox-inline label, .has-error.radio label, .has-error.radio-inline label { + color: #a94442 +} +.has-error .form-control { + border-color: #a94442; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075) +} +.has-error .form-control:focus { + border-color: #843534; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483; + box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483 +} +.has-error .input-group-addon { + color: #a94442; + background-color: #f2dede; + border-color: #a94442 +} +.has-error .form-control-feedback { + color: #a94442 +} +.has-feedback label~.form-control-feedback { + top: 25px +} +.has-feedback label.sr-only~.form-control-feedback { + top: 0 +} +.help-block { + display: block; + margin-top: 5px; + margin-bottom: 10px; + color: #737373 +} +@media (min-width:768px) { + .form-inline .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle + } + .form-inline .form-control { + display: inline-block; + width: auto; + vertical-align: middle + } + .form-inline .form-control-static { + display: inline-block + } + .form-inline .input-group { + display: inline-table; + vertical-align: middle + } + .form-inline .input-group .form-control, .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn { + width: auto + } + .form-inline .input-group>.form-control { + width: 100% + } + .form-inline .control-label { + margin-bottom: 0; + vertical-align: middle + } + .form-inline .checkbox, .form-inline .radio { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle + } + .form-inline .checkbox label, .form-inline .radio label { + padding-left: 0 + } + .form-inline .checkbox input[type=checkbox], .form-inline .radio input[type=radio] { + position: relative; + margin-left: 0 + } + .form-inline .has-feedback .form-control-feedback { + top: 0 + } +} +.form-horizontal .checkbox, .form-horizontal .checkbox-inline, .form-horizontal .radio, .form-horizontal .radio-inline { + padding-top: 7px; + margin-top: 0; + margin-bottom: 0 +} +.form-horizontal .checkbox, .form-horizontal .radio { + min-height: 27px +} +.form-horizontal .form-group { + margin-right: -15px; + margin-left: -15px +} +@media (min-width:768px) { + .form-horizontal .control-label { + padding-top: 7px; + margin-bottom: 0; + text-align: right + } +} +.form-horizontal .has-feedback .form-control-feedback { + right: 15px +} +@media (min-width:768px) { + .form-horizontal .form-group-lg .control-label { + padding-top: 14.33px; + font-size: 18px + } +} +@media (min-width:768px) { + .form-horizontal .form-group-sm .control-label { + padding-top: 6px; + font-size: 12px + } +} +.btn { + display: inline-block; + padding: 6px 12px; + margin-bottom: 0; + font-size: 14px; + font-weight: 400; + line-height: 1.42857143; + text-align: center; + white-space: nowrap; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-image: none; + border: 1px solid transparent; + border-radius: 4px +} +.btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} +.btn.focus, .btn:focus, .btn:hover { + color: #333; + text-decoration: none +} +.btn.active, .btn:active { + background-image: none; + outline: 0; + -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); + box-shadow: inset 0 3px 5px rgba(0,0,0,.125) +} +.btn.disabled, .btn[disabled], fieldset[disabled] .btn { + cursor: not-allowed; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none; + opacity: .65 +} +a.btn.disabled, fieldset[disabled] a.btn { + pointer-events: none +} +.btn-default { + color: #333; + background-color: #fff; + border-color: #ccc +} +.btn-default.focus, .btn-default:focus { + color: #333; + background-color: #e6e6e6; + border-color: #8c8c8c +} +.btn-default:hover { + color: #333; + background-color: #e6e6e6; + border-color: #adadad +} +.btn-default.active, .btn-default:active, .open>.dropdown-toggle.btn-default { + color: #333; + background-color: #e6e6e6; + border-color: #adadad +} +.btn-default.active.focus, .btn-default.active:focus, .btn-default.active:hover, .btn-default:active.focus, .btn-default:active:focus, .btn-default:active:hover, .open>.dropdown-toggle.btn-default.focus, .open>.dropdown-toggle.btn-default:focus, .open>.dropdown-toggle.btn-default:hover { + color: #333; + background-color: #d4d4d4; + border-color: #8c8c8c +} +.btn-default.active, .btn-default:active, .open>.dropdown-toggle.btn-default { + background-image: none +} +.btn-default.disabled, .btn-default.disabled.active, .btn-default.disabled.focus, .btn-default.disabled:active, .btn-default.disabled:focus, .btn-default.disabled:hover, .btn-default[disabled], .btn-default[disabled].active, .btn-default[disabled].focus, .btn-default[disabled]:active, .btn-default[disabled]:focus, .btn-default[disabled]:hover, fieldset[disabled] .btn-default, fieldset[disabled] .btn-default.active, fieldset[disabled] .btn-default.focus, fieldset[disabled] .btn-default:active, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default:hover { + background-color: #fff; + border-color: #ccc +} +.btn-default .badge { + color: #fff; + background-color: #333 +} +.btn-primary { + color: #fff; + background-color: #337ab7; + border-color: #2e6da4 +} +.btn-primary.focus, .btn-primary:focus { + color: #fff; + background-color: #286090; + border-color: #122b40 +} +.btn-primary:hover { + color: #fff; + background-color: #286090; + border-color: #204d74 +} +.btn-primary.active, .btn-primary:active, .open>.dropdown-toggle.btn-primary { + color: #fff; + background-color: #286090; + border-color: #204d74 +} +.btn-primary.active.focus, .btn-primary.active:focus, .btn-primary.active:hover, .btn-primary:active.focus, .btn-primary:active:focus, .btn-primary:active:hover, .open>.dropdown-toggle.btn-primary.focus, .open>.dropdown-toggle.btn-primary:focus, .open>.dropdown-toggle.btn-primary:hover { + color: #fff; + background-color: #204d74; + border-color: #122b40 +} +.btn-primary.active, .btn-primary:active, .open>.dropdown-toggle.btn-primary { + background-image: none +} +.btn-primary.disabled, .btn-primary.disabled.active, .btn-primary.disabled.focus, .btn-primary.disabled:active, .btn-primary.disabled:focus, .btn-primary.disabled:hover, .btn-primary[disabled], .btn-primary[disabled].active, .btn-primary[disabled].focus, .btn-primary[disabled]:active, .btn-primary[disabled]:focus, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary, fieldset[disabled] .btn-primary.active, fieldset[disabled] .btn-primary.focus, fieldset[disabled] .btn-primary:active, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary:hover { + background-color: #337ab7; + border-color: #2e6da4 +} +.btn-primary .badge { + color: #337ab7; + background-color: #fff +} +.btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c +} +.btn-success.focus, .btn-success:focus { + color: #fff; + background-color: #449d44; + border-color: #255625 +} +.btn-success:hover { + color: #fff; + background-color: #449d44; + border-color: #398439 +} +.btn-success.active, .btn-success:active, .open>.dropdown-toggle.btn-success { + color: #fff; + background-color: #449d44; + border-color: #398439 +} +.btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .btn-success:active:focus, .btn-success:active:hover, .open>.dropdown-toggle.btn-success.focus, .open>.dropdown-toggle.btn-success:focus, .open>.dropdown-toggle.btn-success:hover { + color: #fff; + background-color: #398439; + border-color: #255625 +} +.btn-success.active, .btn-success:active, .open>.dropdown-toggle.btn-success { + background-image: none +} +.btn-success.disabled, .btn-success.disabled.active, .btn-success.disabled.focus, .btn-success.disabled:active, .btn-success.disabled:focus, .btn-success.disabled:hover, .btn-success[disabled], .btn-success[disabled].active, .btn-success[disabled].focus, .btn-success[disabled]:active, .btn-success[disabled]:focus, .btn-success[disabled]:hover, fieldset[disabled] .btn-success, fieldset[disabled] .btn-success.active, fieldset[disabled] .btn-success.focus, fieldset[disabled] .btn-success:active, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:hover { + background-color: #5cb85c; + border-color: #4cae4c +} +.btn-success .badge { + color: #5cb85c; + background-color: #fff +} +.btn-info { + color: #fff; + background-color: #5bc0de; + border-color: #46b8da +} +.btn-info.focus, .btn-info:focus { + color: #fff; + background-color: #31b0d5; + border-color: #1b6d85 +} +.btn-info:hover { + color: #fff; + background-color: #31b0d5; + border-color: #269abc +} +.btn-info.active, .btn-info:active, .open>.dropdown-toggle.btn-info { + color: #fff; + background-color: #31b0d5; + border-color: #269abc +} +.btn-info.active.focus, .btn-info.active:focus, .btn-info.active:hover, .btn-info:active.focus, .btn-info:active:focus, .btn-info:active:hover, .open>.dropdown-toggle.btn-info.focus, .open>.dropdown-toggle.btn-info:focus, .open>.dropdown-toggle.btn-info:hover { + color: #fff; + background-color: #269abc; + border-color: #1b6d85 +} +.btn-info.active, .btn-info:active, .open>.dropdown-toggle.btn-info { + background-image: none +} +.btn-info.disabled, .btn-info.disabled.active, .btn-info.disabled.focus, .btn-info.disabled:active, .btn-info.disabled:focus, .btn-info.disabled:hover, .btn-info[disabled], .btn-info[disabled].active, .btn-info[disabled].focus, .btn-info[disabled]:active, .btn-info[disabled]:focus, .btn-info[disabled]:hover, fieldset[disabled] .btn-info, fieldset[disabled] .btn-info.active, fieldset[disabled] .btn-info.focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:hover { + background-color: #5bc0de; + border-color: #46b8da +} +.btn-info .badge { + color: #5bc0de; + background-color: #fff +} +.btn-warning { + color: #fff; + background-color: #f0ad4e; + border-color: #eea236 +} +.btn-warning.focus, .btn-warning:focus { + color: #fff; + background-color: #ec971f; + border-color: #985f0d +} +.btn-warning:hover { + color: #fff; + background-color: #ec971f; + border-color: #d58512 +} +.btn-warning.active, .btn-warning:active, .open>.dropdown-toggle.btn-warning { + color: #fff; + background-color: #ec971f; + border-color: #d58512 +} +.btn-warning.active.focus, .btn-warning.active:focus, .btn-warning.active:hover, .btn-warning:active.focus, .btn-warning:active:focus, .btn-warning:active:hover, .open>.dropdown-toggle.btn-warning.focus, .open>.dropdown-toggle.btn-warning:focus, .open>.dropdown-toggle.btn-warning:hover { + color: #fff; + background-color: #d58512; + border-color: #985f0d +} +.btn-warning.active, .btn-warning:active, .open>.dropdown-toggle.btn-warning { + background-image: none +} +.btn-warning.disabled, .btn-warning.disabled.active, .btn-warning.disabled.focus, .btn-warning.disabled:active, .btn-warning.disabled:focus, .btn-warning.disabled:hover, .btn-warning[disabled], .btn-warning[disabled].active, .btn-warning[disabled].focus, .btn-warning[disabled]:active, .btn-warning[disabled]:focus, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning, fieldset[disabled] .btn-warning.active, fieldset[disabled] .btn-warning.focus, fieldset[disabled] .btn-warning:active, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning:hover { + background-color: #f0ad4e; + border-color: #eea236 +} +.btn-warning .badge { + color: #f0ad4e; + background-color: #fff +} +.btn-danger { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a +} +.btn-danger.focus, .btn-danger:focus { + color: #fff; + background-color: #c9302c; + border-color: #761c19 +} +.btn-danger:hover { + color: #fff; + background-color: #c9302c; + border-color: #ac2925 +} +.btn-danger.active, .btn-danger:active, .open>.dropdown-toggle.btn-danger { + color: #fff; + background-color: #c9302c; + border-color: #ac2925 +} +.btn-danger.active.focus, .btn-danger.active:focus, .btn-danger.active:hover, .btn-danger:active.focus, .btn-danger:active:focus, .btn-danger:active:hover, .open>.dropdown-toggle.btn-danger.focus, .open>.dropdown-toggle.btn-danger:focus, .open>.dropdown-toggle.btn-danger:hover { + color: #fff; + background-color: #ac2925; + border-color: #761c19 +} +.btn-danger.active, .btn-danger:active, .open>.dropdown-toggle.btn-danger { + background-image: none +} +.btn-danger.disabled, .btn-danger.disabled.active, .btn-danger.disabled.focus, .btn-danger.disabled:active, .btn-danger.disabled:focus, .btn-danger.disabled:hover, .btn-danger[disabled], .btn-danger[disabled].active, .btn-danger[disabled].focus, .btn-danger[disabled]:active, .btn-danger[disabled]:focus, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger, fieldset[disabled] .btn-danger.active, fieldset[disabled] .btn-danger.focus, fieldset[disabled] .btn-danger:active, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger:hover { + background-color: #d9534f; + border-color: #d43f3a +} +.btn-danger .badge { + color: #d9534f; + background-color: #fff +} +.btn-link { + font-weight: 400; + color: #337ab7; + border-radius: 0 +} +.btn-link, .btn-link.active, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none +} +.btn-link, .btn-link:active, .btn-link:focus, .btn-link:hover { + border-color: transparent +} +.btn-link:focus, .btn-link:hover { + color: #23527c; + text-decoration: underline; + background-color: transparent +} +.btn-link[disabled]:focus, .btn-link[disabled]:hover, fieldset[disabled] .btn-link:focus, fieldset[disabled] .btn-link:hover { + color: #777; + text-decoration: none +} +.btn-group-lg>.btn, .btn-lg { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} +.btn-group-sm>.btn, .btn-sm { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} +.btn-group-xs>.btn, .btn-xs { + padding: 1px 5px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} +.btn-block { + display: block; + width: 100% +} +.btn-block+.btn-block { + margin-top: 5px +} +input[type=button].btn-block, input[type=reset].btn-block, input[type=submit].btn-block { + width: 100% +} +.fade { + opacity: 0; + -webkit-transition: opacity .15s linear; + -o-transition: opacity .15s linear; + transition: opacity .15s linear +} +.fade.in { + opacity: 1 +} +.collapse { + display: none +} +.collapse.in { + display: block +} +tr.collapse.in { + display: table-row +} +tbody.collapse.in { + display: table-row-group +} +.collapsing { + position: relative; + height: 0; + overflow: hidden; + -webkit-transition-timing-function: ease; + -o-transition-timing-function: ease; + transition-timing-function: ease; + -webkit-transition-duration: .35s; + -o-transition-duration: .35s; + transition-duration: .35s; + -webkit-transition-property: height, visibility; + -o-transition-property: height, visibility; + transition-property: height, visibility +} +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px dashed; + border-top: 4px solid\9; + border-right: 4px solid transparent; + border-left: 4px solid transparent +} +.dropdown, .dropup { + position: relative +} +.dropdown-toggle:focus { + outline: 0 +} +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + font-size: 14px; + text-align: left; + list-style: none; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0,0,0,.15); + border-radius: 4px; + -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175); + box-shadow: 0 6px 12px rgba(0,0,0,.175) +} +.dropdown-menu.pull-right { + right: 0; + left: auto +} +.dropdown-menu .divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5 +} +.dropdown-menu>li>a { + display: block; + padding: 3px 20px; + clear: both; + font-weight: 400; + line-height: 1.42857143; + color: #333; + white-space: nowrap +} +.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover { + color: #262626; + text-decoration: none; + background-color: #f5f5f5 +} +.dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover { + color: #fff; + text-decoration: none; + background-color: #337ab7; + outline: 0 +} +.dropdown-menu>.disabled>a, .dropdown-menu>.disabled>a:focus, .dropdown-menu>.disabled>a:hover { + color: #777 +} +.dropdown-menu>.disabled>a:focus, .dropdown-menu>.disabled>a:hover { + text-decoration: none; + cursor: not-allowed; + background-color: transparent; + background-image: none; + filter:progid:DXImageTransform.Microsoft.gradient(enabled=false) +} +.open>.dropdown-menu { + display: block +} +.open>a { + outline: 0 +} +.dropdown-menu-right { + right: 0; + left: auto +} +.dropdown-menu-left { + right: auto; + left: 0 +} +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 12px; + line-height: 1.42857143; + color: #777; + white-space: nowrap +} +.dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990 +} +.pull-right>.dropdown-menu { + right: 0; + left: auto +} +.dropup .caret, .navbar-fixed-bottom .dropdown .caret { + content: ""; + border-top: 0; + border-bottom: 4px dashed; + border-bottom: 4px solid\9 +} +.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 2px +} +@media (min-width:768px) { + .navbar-right .dropdown-menu { + right: 0; + left: auto + } + .navbar-right .dropdown-menu-left { + right: auto; + left: 0 + } +} +.btn-group, .btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle +} +.btn-group-vertical>.btn, .btn-group>.btn { + position: relative; + float: left +} +.btn-group-vertical>.btn.active, .btn-group-vertical>.btn:active, .btn-group-vertical>.btn:focus, .btn-group-vertical>.btn:hover, .btn-group>.btn.active, .btn-group>.btn:active, .btn-group>.btn:focus, .btn-group>.btn:hover { + z-index: 2 +} +.btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group { + margin-left: -1px +} +.btn-toolbar { + margin-left: -5px +} +.btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { + float: left +} +.btn-toolbar>.btn, .btn-toolbar>.btn-group, .btn-toolbar>.input-group { + margin-left: 5px +} +.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0 +} +.btn-group>.btn:first-child { + margin-left: 0 +} +.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} +.btn-group>.btn:last-child:not(:first-child), .btn-group>.dropdown-toggle:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0 +} +.btn-group>.btn-group { + float: left +} +.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn { + border-radius: 0 +} +.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child, .btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle { + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} +.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0 +} +.btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { + outline: 0 +} +.btn-group>.btn+.dropdown-toggle { + padding-right: 8px; + padding-left: 8px +} +.btn-group>.btn-lg+.dropdown-toggle { + padding-right: 12px; + padding-left: 12px +} +.btn-group.open .dropdown-toggle { + -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125); + box-shadow: inset 0 3px 5px rgba(0,0,0,.125) +} +.btn-group.open .dropdown-toggle.btn-link { + -webkit-box-shadow: none; + box-shadow: none +} +.btn .caret { + margin-left: 0 +} +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0 +} +.dropup .btn-lg .caret { + border-width: 0 5px 5px +} +.btn-group-vertical>.btn, .btn-group-vertical>.btn-group, .btn-group-vertical>.btn-group>.btn { + display: block; + float: none; + width: 100%; + max-width: 100% +} +.btn-group-vertical>.btn-group>.btn { + float: none +} +.btn-group-vertical>.btn+.btn, .btn-group-vertical>.btn+.btn-group, .btn-group-vertical>.btn-group+.btn, .btn-group-vertical>.btn-group+.btn-group { + margin-top: -1px; + margin-left: 0 +} +.btn-group-vertical>.btn:not(:first-child):not(:last-child) { + border-radius: 0 +} +.btn-group-vertical>.btn:first-child:not(:last-child) { + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} +.btn-group-vertical>.btn:last-child:not(:first-child) { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-bottom-left-radius: 4px +} +.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn { + border-radius: 0 +} +.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child, .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} +.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0 +} +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate +} +.btn-group-justified>.btn, .btn-group-justified>.btn-group { + display: table-cell; + float: none; + width: 1% +} +.btn-group-justified>.btn-group .btn { + width: 100% +} +.btn-group-justified>.btn-group .dropdown-menu { + left: auto +} +[data-toggle=buttons]>.btn input[type=checkbox], [data-toggle=buttons]>.btn input[type=radio], [data-toggle=buttons]>.btn-group>.btn input[type=checkbox], [data-toggle=buttons]>.btn-group>.btn input[type=radio] { + position:absolute; + clip:rect(0,0,0,0); + pointer-events:none +} +.input-group { + position: relative; + display: table; + border-collapse: separate +} +.input-group[class*=col-] { + float: none; + padding-right: 0; + padding-left: 0 +} +.input-group .form-control { + position: relative; + z-index: 2; + float: left; + width: 100%; + margin-bottom: 0 +} +.input-group-lg>.form-control, .input-group-lg>.input-group-addon, .input-group-lg>.input-group-btn>.btn { + height: 46px; + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333; + border-radius: 6px +} +select.input-group-lg>.form-control, select.input-group-lg>.input-group-addon, select.input-group-lg>.input-group-btn>.btn { + height: 46px; + line-height: 46px +} +select[multiple].input-group-lg>.form-control, select[multiple].input-group-lg>.input-group-addon, select[multiple].input-group-lg>.input-group-btn>.btn, textarea.input-group-lg>.form-control, textarea.input-group-lg>.input-group-addon, textarea.input-group-lg>.input-group-btn>.btn { + height: auto +} +.input-group-sm>.form-control, .input-group-sm>.input-group-addon, .input-group-sm>.input-group-btn>.btn { + height: 30px; + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} +select.input-group-sm>.form-control, select.input-group-sm>.input-group-addon, select.input-group-sm>.input-group-btn>.btn { + height: 30px; + line-height: 30px +} +select[multiple].input-group-sm>.form-control, select[multiple].input-group-sm>.input-group-addon, select[multiple].input-group-sm>.input-group-btn>.btn, textarea.input-group-sm>.form-control, textarea.input-group-sm>.input-group-addon, textarea.input-group-sm>.input-group-btn>.btn { + height: auto +} +.input-group .form-control, .input-group-addon, .input-group-btn { + display: table-cell +} +.input-group .form-control:not(:first-child):not(:last-child), .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child) { + border-radius: 0 +} +.input-group-addon, .input-group-btn { + width: 1%; + white-space: nowrap; + vertical-align: middle +} +.input-group-addon { + padding: 6px 12px; + font-size: 14px; + font-weight: 400; + line-height: 1; + color: #555; + text-align: center; + background-color: #eee; + border: 1px solid #ccc; + border-radius: 4px +} +.input-group-addon.input-sm { + padding: 5px 10px; + font-size: 12px; + border-radius: 3px +} +.input-group-addon.input-lg { + padding: 10px 16px; + font-size: 18px; + border-radius: 6px +} +.input-group-addon input[type=checkbox], .input-group-addon input[type=radio] { + margin-top: 0 +} +.input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group>.btn, .input-group-btn:first-child>.dropdown-toggle, .input-group-btn:last-child>.btn-group:not(:last-child)>.btn, .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { + border-top-right-radius: 0; + border-bottom-right-radius: 0 +} +.input-group-addon:first-child { + border-right: 0 +} +.input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:first-child>.btn-group:not(:first-child)>.btn, .input-group-btn:first-child>.btn:not(:first-child), .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group>.btn, .input-group-btn:last-child>.dropdown-toggle { + border-top-left-radius: 0; + border-bottom-left-radius: 0 +} +.input-group-addon:last-child { + border-left: 0 +} +.input-group-btn { + position: relative; + font-size: 0; + white-space: nowrap +} +.input-group-btn>.btn { + position: relative +} +.input-group-btn>.btn+.btn { + margin-left: -1px +} +.input-group-btn>.btn:active, .input-group-btn>.btn:focus, .input-group-btn>.btn:hover { + z-index: 2 +} +.input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group { + margin-right: -1px +} +.input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group { + z-index: 2; + margin-left: -1px +} +.nav { + padding-left: 0; + margin-bottom: 0; + list-style: none +} +.nav>li { + position: relative; + display: block +} +.nav>li>a { + position: relative; + display: block; + padding: 10px 15px +} +.nav>li>a:focus, .nav>li>a:hover { + text-decoration: none; + background-color: #eee +} +.nav>li.disabled>a { + color: #777 +} +.nav>li.disabled>a:focus, .nav>li.disabled>a:hover { + color: #777; + text-decoration: none; + cursor: not-allowed; + background-color: transparent +} +.nav .open>a, .nav .open>a:focus, .nav .open>a:hover { + background-color: #eee; + border-color: #337ab7 +} +.nav .nav-divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5 +} +.nav>li>a>img { + max-width: none +} +.nav-tabs { + border-bottom: 1px solid #ddd +} +.nav-tabs>li { + float: left; + margin-bottom: -1px +} +.nav-tabs>li>a { + margin-right: 2px; + line-height: 1.42857143; + border: 1px solid transparent; + border-radius: 4px 4px 0 0 +} +.nav-tabs>li>a:hover { + border-color: #eee #eee #ddd +} +.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover { + color: #555; + cursor: default; + background-color: #fff; + border: 1px solid #ddd; + border-bottom-color: transparent +} +.nav-tabs.nav-justified { + width: 100%; + border-bottom: 0 +} +.nav-tabs.nav-justified>li { + float: none +} +.nav-tabs.nav-justified>li>a { + margin-bottom: 5px; + text-align: center +} +.nav-tabs.nav-justified>.dropdown .dropdown-menu { + top: auto; + left: auto +} +@media (min-width:768px) { + .nav-tabs.nav-justified>li { + display: table-cell; + width: 1% + } + .nav-tabs.nav-justified>li>a { + margin-bottom: 0 + } +} +.nav-tabs.nav-justified>li>a { + margin-right: 0; + border-radius: 4px +} +.nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus, .nav-tabs.nav-justified>.active>a:hover { + border: 1px solid #ddd +} +@media (min-width:768px) { + .nav-tabs.nav-justified>li>a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0 + } + .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus, .nav-tabs.nav-justified>.active>a:hover { + border-bottom-color: #fff + } +} +.nav-pills>li { + float: left +} +.nav-pills>li>a { + border-radius: 4px +} +.nav-pills>li+li { + margin-left: 2px +} +.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover { + color: #fff; + background-color: #337ab7 +} +.nav-stacked>li { + float: none +} +.nav-stacked>li+li { + margin-top: 2px; + margin-left: 0 +} +.nav-justified { + width: 100% +} +.nav-justified>li { + float: none +} +.nav-justified>li>a { + margin-bottom: 5px; + text-align: center +} +.nav-justified>.dropdown .dropdown-menu { + top: auto; + left: auto +} +@media (min-width:768px) { + .nav-justified>li { + display: table-cell; + width: 1% + } + .nav-justified>li>a { + margin-bottom: 0 + } +} +.nav-tabs-justified { + border-bottom: 0 +} +.nav-tabs-justified>li>a { + margin-right: 0; + border-radius: 4px +} +.nav-tabs-justified>.active>a, .nav-tabs-justified>.active>a:focus, .nav-tabs-justified>.active>a:hover { + border: 1px solid #ddd +} +@media (min-width:768px) { + .nav-tabs-justified>li>a { + border-bottom: 1px solid #ddd; + border-radius: 4px 4px 0 0 + } + .nav-tabs-justified>.active>a, .nav-tabs-justified>.active>a:focus, .nav-tabs-justified>.active>a:hover { + border-bottom-color: #fff + } +} +.tab-content>.tab-pane { + display: none +} +.tab-content>.active { + display: block +} +.nav-tabs .dropdown-menu { + margin-top: -1px; + border-top-left-radius: 0; + border-top-right-radius: 0 +} +.navbar { + position: relative; + min-height: 50px; + margin-bottom: 20px; + border: 1px solid transparent +} +@media (min-width:768px) { + .navbar { + border-radius: 4px + } +} +@media (min-width:768px) { + .navbar-header { + float: left + } +} +.navbar-collapse { + padding-right: 15px; + padding-left: 15px; + overflow-x: visible; + -webkit-overflow-scrolling: touch; + border-top: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1); + box-shadow: inset 0 1px 0 rgba(255,255,255,.1) +} +.navbar-collapse.in { + overflow-y: auto +} +@media (min-width:768px) { + .navbar-collapse { + width: auto; + border-top: 0; + -webkit-box-shadow: none; + box-shadow: none + } + .navbar-collapse.collapse { + display: block!important; + height: auto!important; + padding-bottom: 0; + overflow: visible!important + } + .navbar-collapse.in { + overflow-y: visible + } + .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse { + padding-right: 0; + padding-left: 0 + } +} +.navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse { + max-height: 340px +} +@media (max-device-width:480px) and (orientation:landscape) { + .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse { + max-height: 200px + } +} +.container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header { + margin-right: -15px; + margin-left: -15px +} +@media (min-width:768px) { + .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header { + margin-right: 0; + margin-left: 0 + } +} +.navbar-static-top { + z-index: 1000; + border-width: 0 0 1px +} +@media (min-width:768px) { + .navbar-static-top { + border-radius: 0 + } +} +.navbar-fixed-bottom, .navbar-fixed-top { + position: fixed; + right: 0; + left: 0; + z-index: 1030 +} +@media (min-width:768px) { + .navbar-fixed-bottom, .navbar-fixed-top { + border-radius: 0 + } +} +.navbar-fixed-top { + top: 0; + border-width: 0 0 1px +} +.navbar-fixed-bottom { + bottom: 0; + margin-bottom: 0; + border-width: 1px 0 0 +} +.navbar-brand { + float: left; + height: 50px; + padding: 15px 15px; + font-size: 18px; + line-height: 20px +} +.navbar-brand:focus, .navbar-brand:hover { + text-decoration: none +} +.navbar-brand>img { + display: block +} +@media (min-width:768px) { + .navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand { + margin-left: -15px + } +} +.navbar-toggle { + position: relative; + float: right; + padding: 9px 10px; + margin-top: 8px; + margin-right: 15px; + margin-bottom: 8px; + background-color: transparent; + background-image: none; + border: 1px solid transparent; + border-radius: 4px +} +.navbar-toggle:focus { + outline: 0 +} +.navbar-toggle .icon-bar { + display: block; + width: 22px; + height: 2px; + border-radius: 1px +} +.navbar-toggle .icon-bar+.icon-bar { + margin-top: 4px +} +@media (min-width:768px) { + .navbar-toggle { + display: none + } +} +.navbar-nav { + margin: 7.5px -15px +} +.navbar-nav>li>a { + padding-top: 10px; + padding-bottom: 10px; + line-height: 20px +} +@media (max-width:767px) { + .navbar-nav .open .dropdown-menu { + position: static; + float: none; + width: auto; + margin-top: 0; + background-color: transparent; + border: 0; + -webkit-box-shadow: none; + box-shadow: none + } + .navbar-nav .open .dropdown-menu .dropdown-header, .navbar-nav .open .dropdown-menu>li>a { + padding: 5px 15px 5px 25px + } + .navbar-nav .open .dropdown-menu>li>a { + line-height: 20px + } + .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-nav .open .dropdown-menu>li>a:hover { + background-image: none + } +} +@media (min-width:768px) { + .navbar-nav { + float: left; + margin: 0 + } + .navbar-nav>li { + float: left + } + .navbar-nav>li>a { + padding-top: 15px; + padding-bottom: 15px + } +} +.navbar-form { + padding: 10px 15px; + margin-top: 8px; + margin-right: -15px; + margin-bottom: 8px; + margin-left: -15px; + border-top: 1px solid transparent; + border-bottom: 1px solid transparent; + -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1); + box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1) +} +@media (min-width:768px) { + .navbar-form .form-group { + display: inline-block; + margin-bottom: 0; + vertical-align: middle + } + .navbar-form .form-control { + display: inline-block; + width: auto; + vertical-align: middle + } + .navbar-form .form-control-static { + display: inline-block + } + .navbar-form .input-group { + display: inline-table; + vertical-align: middle + } + .navbar-form .input-group .form-control, .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn { + width: auto + } + .navbar-form .input-group>.form-control { + width: 100% + } + .navbar-form .control-label { + margin-bottom: 0; + vertical-align: middle + } + .navbar-form .checkbox, .navbar-form .radio { + display: inline-block; + margin-top: 0; + margin-bottom: 0; + vertical-align: middle + } + .navbar-form .checkbox label, .navbar-form .radio label { + padding-left: 0 + } + .navbar-form .checkbox input[type=checkbox], .navbar-form .radio input[type=radio] { + position: relative; + margin-left: 0 + } + .navbar-form .has-feedback .form-control-feedback { + top: 0 + } +} +@media (max-width:767px) { + .navbar-form .form-group { + margin-bottom: 5px + } + .navbar-form .form-group:last-child { + margin-bottom: 0 + } +} +@media (min-width:768px) { + .navbar-form { + width: auto; + padding-top: 0; + padding-bottom: 0; + margin-right: 0; + margin-left: 0; + border: 0; + -webkit-box-shadow: none; + box-shadow: none + } +} +.navbar-nav>li>.dropdown-menu { + margin-top: 0; + border-top-left-radius: 0; + border-top-right-radius: 0 +} +.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu { + margin-bottom: 0; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} +.navbar-btn { + margin-top: 8px; + margin-bottom: 8px +} +.navbar-btn.btn-sm { + margin-top: 10px; + margin-bottom: 10px +} +.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px +} +.navbar-text { + margin-top: 15px; + margin-bottom: 15px +} +@media (min-width:768px) { + .navbar-text { + float: left; + margin-right: 15px; + margin-left: 15px + } +} +@media (min-width:768px) { + .navbar-left { + float: left!important + } + .navbar-right { + float: right!important; + margin-right: -15px + } + .navbar-right~.navbar-right { + margin-right: 0 + } +} +.navbar-default { + background-color: #f8f8f8; + border-color: #e7e7e7 +} +.navbar-default .navbar-brand { + color: #777 +} +.navbar-default .navbar-brand:focus, .navbar-default .navbar-brand:hover { + color: #5e5e5e; + background-color: transparent +} +.navbar-default .navbar-text { + color: #777 +} +.navbar-default .navbar-nav>li>a { + color: #777 +} +.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover { + color: #333; + background-color: transparent +} +.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover { + color: #555; + background-color: #e7e7e7 +} +.navbar-default .navbar-nav>.disabled>a, .navbar-default .navbar-nav>.disabled>a:focus, .navbar-default .navbar-nav>.disabled>a:hover { + color: #ccc; + background-color: transparent +} +.navbar-default .navbar-toggle { + border-color: #ddd +} +.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover { + background-color: #ddd +} +.navbar-default .navbar-toggle .icon-bar { + background-color: #888 +} +.navbar-default .navbar-collapse, .navbar-default .navbar-form { + border-color: #e7e7e7 +} +.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover { + color: #555; + background-color: #e7e7e7 +} +@media (max-width:767px) { + .navbar-default .navbar-nav .open .dropdown-menu>li>a { + color: #777 + } + .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover { + color: #333; + background-color: transparent + } + .navbar-default .navbar-nav .open .dropdown-menu>.active>a, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover { + color: #555; + background-color: #e7e7e7 + } + .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a, .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover { + color: #ccc; + background-color: transparent + } +} +.navbar-default .navbar-link { + color: #777 +} +.navbar-default .navbar-link:hover { + color: #333 +} +.navbar-default .btn-link { + color: #777 +} +.navbar-default .btn-link:focus, .navbar-default .btn-link:hover { + color: #333 +} +.navbar-default .btn-link[disabled]:focus, .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:focus, fieldset[disabled] .navbar-default .btn-link:hover { + color: #ccc +} +.navbar-inverse { + background-color: #222; + border-color: #080808 +} +.navbar-inverse .navbar-brand { + color: #9d9d9d +} +.navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover { + color: #fff; + background-color: transparent +} +.navbar-inverse .navbar-text { + color: #9d9d9d +} +.navbar-inverse .navbar-nav>li>a { + color: #9d9d9d +} +.navbar-inverse .navbar-nav>li>a:focus, .navbar-inverse .navbar-nav>li>a:hover { + color: #fff; + background-color: transparent +} +.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover { + color: #fff; + background-color: #080808 +} +.navbar-inverse .navbar-nav>.disabled>a, .navbar-inverse .navbar-nav>.disabled>a:focus, .navbar-inverse .navbar-nav>.disabled>a:hover { + color: #444; + background-color: transparent +} +.navbar-inverse .navbar-toggle { + border-color: #333 +} +.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover { + background-color: #333 +} +.navbar-inverse .navbar-toggle .icon-bar { + background-color: #fff +} +.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { + border-color: #101010 +} +.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover { + color: #fff; + background-color: #080808 +} +@media (max-width:767px) { + .navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header { + border-color: #080808 + } + .navbar-inverse .navbar-nav .open .dropdown-menu .divider { + background-color: #080808 + } + .navbar-inverse .navbar-nav .open .dropdown-menu>li>a { + color: #9d9d9d + } + .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover { + color: #fff; + background-color: transparent + } + .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a, .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover { + color: #fff; + background-color: #080808 + } + .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a, .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover { + color: #444; + background-color: transparent + } +} +.navbar-inverse .navbar-link { + color: #9d9d9d +} +.navbar-inverse .navbar-link:hover { + color: #fff +} +.navbar-inverse .btn-link { + color: #9d9d9d +} +.navbar-inverse .btn-link:focus, .navbar-inverse .btn-link:hover { + color: #fff +} +.navbar-inverse .btn-link[disabled]:focus, .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:focus, fieldset[disabled] .navbar-inverse .btn-link:hover { + color: #444 +} +.breadcrumb { + padding: 8px 15px; + margin-bottom: 20px; + list-style: none; + background-color: #f5f5f5; + border-radius: 4px +} +.breadcrumb>li { + display: inline-block +} +.breadcrumb>li+li:before { + padding: 0 5px; + color: #ccc; + content: "/\00a0" +} +.breadcrumb>.active { + color: #777 +} +.pagination { + display: inline-block; + padding-left: 0; + margin: 20px 0; + border-radius: 4px +} +.pagination>li { + display: inline +} +.pagination>li>a, .pagination>li>span { + position: relative; + float: left; + padding: 6px 12px; + margin-left: -1px; + line-height: 1.42857143; + color: #337ab7; + text-decoration: none; + background-color: #fff; + border: 1px solid #ddd +} +.pagination>li:first-child>a, .pagination>li:first-child>span { + margin-left: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px +} +.pagination>li:last-child>a, .pagination>li:last-child>span { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px +} +.pagination>li>a:focus, .pagination>li>a:hover, .pagination>li>span:focus, .pagination>li>span:hover { + z-index: 3; + color: #23527c; + background-color: #eee; + border-color: #ddd +} +.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover { + z-index: 2; + color: #fff; + cursor: default; + background-color: #337ab7; + border-color: #337ab7 +} +.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover { + color: #777; + cursor: not-allowed; + background-color: #fff; + border-color: #ddd +} +.pagination-lg>li>a, .pagination-lg>li>span { + padding: 10px 16px; + font-size: 18px; + line-height: 1.3333333 +} +.pagination-lg>li:first-child>a, .pagination-lg>li:first-child>span { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px +} +.pagination-lg>li:last-child>a, .pagination-lg>li:last-child>span { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px +} +.pagination-sm>li>a, .pagination-sm>li>span { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5 +} +.pagination-sm>li:first-child>a, .pagination-sm>li:first-child>span { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px +} +.pagination-sm>li:last-child>a, .pagination-sm>li:last-child>span { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px +} +.pager { + padding-left: 0; + margin: 20px 0; + text-align: center; + list-style: none +} +.pager li { + display: inline +} +.pager li>a, .pager li>span { + display: inline-block; + padding: 5px 14px; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 15px +} +.pager li>a:focus, .pager li>a:hover { + text-decoration: none; + background-color: #eee +} +.pager .next>a, .pager .next>span { + float: right +} +.pager .previous>a, .pager .previous>span { + float: left +} +.pager .disabled>a, .pager .disabled>a:focus, .pager .disabled>a:hover, .pager .disabled>span { + color: #777; + cursor: not-allowed; + background-color: #fff +} +.label { + display: inline; + padding: .2em .6em .3em; + font-size: 75%; + font-weight: 700; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25em +} +a.label:focus, a.label:hover { + color: #fff; + text-decoration: none; + cursor: pointer +} +.label:empty { + display: none +} +.btn .label { + position: relative; + top: -1px +} +.label-default { + background-color: #777 +} +.label-default[href]:focus, .label-default[href]:hover { + background-color: #5e5e5e +} +.label-primary { + background-color: #337ab7 +} +.label-primary[href]:focus, .label-primary[href]:hover { + background-color: #286090 +} +.label-success { + background-color: #5cb85c +} +.label-success[href]:focus, .label-success[href]:hover { + background-color: #449d44 +} +.label-info { + background-color: #5bc0de +} +.label-info[href]:focus, .label-info[href]:hover { + background-color: #31b0d5 +} +.label-warning { + background-color: #f0ad4e +} +.label-warning[href]:focus, .label-warning[href]:hover { + background-color: #ec971f +} +.label-danger { + background-color: #d9534f +} +.label-danger[href]:focus, .label-danger[href]:hover { + background-color: #c9302c +} +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 12px; + font-weight: 700; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: middle; + background-color: #777; + border-radius: 10px +} +.badge:empty { + display: none +} +.btn .badge { + position: relative; + top: -1px +} +.btn-group-xs>.btn .badge, .btn-xs .badge { + top: 0; + padding: 1px 5px +} +a.badge:focus, a.badge:hover { + color: #fff; + text-decoration: none; + cursor: pointer +} +.list-group-item.active>.badge, .nav-pills>.active>a>.badge { + color: #337ab7; + background-color: #fff +} +.list-group-item>.badge { + float: right +} +.list-group-item>.badge+.badge { + margin-right: 5px +} +.nav-pills>li>a>.badge { + margin-left: 3px +} +.jumbotron { + padding-top: 30px; + padding-bottom: 30px; + margin-bottom: 30px; + color: inherit; + background-color: #eee +} +.jumbotron .h1, .jumbotron h1 { + color: inherit +} +.jumbotron p { + margin-bottom: 15px; + font-size: 21px; + font-weight: 200 +} +.jumbotron>hr { + border-top-color: #d5d5d5 +} +.container .jumbotron, .container-fluid .jumbotron { + border-radius: 6px +} +.jumbotron .container { + max-width: 100% +} +@media screen and (min-width:768px) { + .jumbotron { + padding-top: 48px; + padding-bottom: 48px + } + .container .jumbotron, .container-fluid .jumbotron { + padding-right: 60px; + padding-left: 60px + } + .jumbotron .h1, .jumbotron h1 { + font-size: 63px + } +} +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 20px; + line-height: 1.42857143; + background-color: #fff; + border: 1px solid #ddd; + border-radius: 4px; + -webkit-transition: border .2s ease-in-out; + -o-transition: border .2s ease-in-out; + transition: border .2s ease-in-out +} +.thumbnail a>img, .thumbnail>img { + margin-right: auto; + margin-left: auto +} +a.thumbnail.active, a.thumbnail:focus, a.thumbnail:hover { + border-color: #337ab7 +} +.thumbnail .caption { + padding: 9px; + color: #333 +} +.alert { + padding: 15px; + margin-bottom: 20px; + border: 1px solid transparent; + border-radius: 4px +} +.alert h4 { + margin-top: 0; + color: inherit +} +.alert .alert-link { + font-weight: 700 +} +.alert>p, .alert>ul { + margin-bottom: 0 +} +.alert>p+p { + margin-top: 5px +} +.alert-dismissable, .alert-dismissible { + padding-right: 35px +} +.alert-dismissable .close, .alert-dismissible .close { + position: relative; + top: -2px; + right: -21px; + color: inherit +} +.alert-success { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6 +} +.alert-success hr { + border-top-color: #c9e2b3 +} +.alert-success .alert-link { + color: #2b542c +} +.alert-info { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1 +} +.alert-info hr { + border-top-color: #a6e1ec +} +.alert-info .alert-link { + color: #245269 +} +.alert-warning { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc +} +.alert-warning hr { + border-top-color: #f7e1b5 +} +.alert-warning .alert-link { + color: #66512c +} +.alert-danger { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1 +} +.alert-danger hr { + border-top-color: #e4b9c0 +} +.alert-danger .alert-link { + color: #843534 +} +@-webkit-keyframes progress-bar-stripes { + from { + background-position:40px 0 + } + to { + background-position: 0 0 + } +} +@-o-keyframes progress-bar-stripes { + from { + background-position:40px 0 + } + to { + background-position: 0 0 + } +} +@keyframes progress-bar-stripes { + from { + background-position:40px 0 + } + to { + background-position: 0 0 + } +} +.progress { + height: 20px; + margin-bottom: 20px; + overflow: hidden; + background-color: #f5f5f5; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1); + box-shadow: inset 0 1px 2px rgba(0,0,0,.1) +} +.progress-bar { + float: left; + width: 0; + height: 100%; + font-size: 12px; + line-height: 20px; + color: #fff; + text-align: center; + background-color: #337ab7; + -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); + box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); + -webkit-transition: width .6s ease; + -o-transition: width .6s ease; + transition: width .6s ease +} +.progress-bar-striped, .progress-striped .progress-bar { + background-image: -webkit-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + -webkit-background-size: 40px 40px; + background-size: 40px 40px +} +.progress-bar.active, .progress.active .progress-bar { + -webkit-animation: progress-bar-stripes 2s linear infinite; + -o-animation: progress-bar-stripes 2s linear infinite; + animation: progress-bar-stripes 2s linear infinite +} +.progress-bar-success { + background-color: #5cb85c +} +.progress-striped .progress-bar-success { + background-image: -webkit-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent) +} +.progress-bar-info { + background-color: #5bc0de +} +.progress-striped .progress-bar-info { + background-image: -webkit-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent) +} +.progress-bar-warning { + background-color: #f0ad4e +} +.progress-striped .progress-bar-warning { + background-image: -webkit-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent) +} +.progress-bar-danger { + background-color: #d9534f +} +.progress-striped .progress-bar-danger { + background-image: -webkit-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: -o-linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); + background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent) +} +.media { + margin-top: 15px +} +.media:first-child { + margin-top: 0 +} +.media, .media-body { + overflow: hidden; + zoom: 1 +} +.media-body { + width: 10000px +} +.media-object { + display: block +} +.media-object.img-thumbnail { + max-width: none +} +.media-right, .media>.pull-right { + padding-left: 10px +} +.media-left, .media>.pull-left { + padding-right: 10px +} +.media-body, .media-left, .media-right { + display: table-cell; + vertical-align: top +} +.media-middle { + vertical-align: middle +} +.media-bottom { + vertical-align: bottom +} +.media-heading { + margin-top: 0; + margin-bottom: 5px +} +.media-list { + padding-left: 0; + list-style: none +} +.list-group { + padding-left: 0; + margin-bottom: 20px +} +.list-group-item { + position: relative; + display: block; + padding: 10px 15px; + margin-bottom: -1px; + background-color: #fff; + border: 1px solid #ddd +} +.list-group-item:first-child { + border-top-left-radius: 4px; + border-top-right-radius: 4px +} +.list-group-item:last-child { + margin-bottom: 0; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px +} +a.list-group-item, button.list-group-item { + color: #555 +} +a.list-group-item .list-group-item-heading, button.list-group-item .list-group-item-heading { + color: #333 +} +a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus, button.list-group-item:hover { + color: #555; + text-decoration: none; + background-color: #f5f5f5 +} +button.list-group-item { + width: 100%; + text-align: left +} +.list-group-item.disabled, .list-group-item.disabled:focus, .list-group-item.disabled:hover { + color: #777; + cursor: not-allowed; + background-color: #eee +} +.list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading { + color: inherit +} +.list-group-item.disabled .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text { + color: #777 +} +.list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover { + z-index: 2; + color: #fff; + background-color: #337ab7; + border-color: #337ab7 +} +.list-group-item.active .list-group-item-heading, .list-group-item.active .list-group-item-heading>.small, .list-group-item.active .list-group-item-heading>small, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading>.small, .list-group-item.active:focus .list-group-item-heading>small, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading>.small, .list-group-item.active:hover .list-group-item-heading>small { + color: inherit +} +.list-group-item.active .list-group-item-text, .list-group-item.active:focus .list-group-item-text, .list-group-item.active:hover .list-group-item-text { + color: #c7ddef +} +.list-group-item-success { + color: #3c763d; + background-color: #dff0d8 +} +a.list-group-item-success, button.list-group-item-success { + color: #3c763d +} +a.list-group-item-success .list-group-item-heading, button.list-group-item-success .list-group-item-heading { + color: inherit +} +a.list-group-item-success:focus, a.list-group-item-success:hover, button.list-group-item-success:focus, button.list-group-item-success:hover { + color: #3c763d; + background-color: #d0e9c6 +} +a.list-group-item-success.active, a.list-group-item-success.active:focus, a.list-group-item-success.active:hover, button.list-group-item-success.active, button.list-group-item-success.active:focus, button.list-group-item-success.active:hover { + color: #fff; + background-color: #3c763d; + border-color: #3c763d +} +.list-group-item-info { + color: #31708f; + background-color: #d9edf7 +} +a.list-group-item-info, button.list-group-item-info { + color: #31708f +} +a.list-group-item-info .list-group-item-heading, button.list-group-item-info .list-group-item-heading { + color: inherit +} +a.list-group-item-info:focus, a.list-group-item-info:hover, button.list-group-item-info:focus, button.list-group-item-info:hover { + color: #31708f; + background-color: #c4e3f3 +} +a.list-group-item-info.active, a.list-group-item-info.active:focus, a.list-group-item-info.active:hover, button.list-group-item-info.active, button.list-group-item-info.active:focus, button.list-group-item-info.active:hover { + color: #fff; + background-color: #31708f; + border-color: #31708f +} +.list-group-item-warning { + color: #8a6d3b; + background-color: #fcf8e3 +} +a.list-group-item-warning, button.list-group-item-warning { + color: #8a6d3b +} +a.list-group-item-warning .list-group-item-heading, button.list-group-item-warning .list-group-item-heading { + color: inherit +} +a.list-group-item-warning:focus, a.list-group-item-warning:hover, button.list-group-item-warning:focus, button.list-group-item-warning:hover { + color: #8a6d3b; + background-color: #faf2cc +} +a.list-group-item-warning.active, a.list-group-item-warning.active:focus, a.list-group-item-warning.active:hover, button.list-group-item-warning.active, button.list-group-item-warning.active:focus, button.list-group-item-warning.active:hover { + color: #fff; + background-color: #8a6d3b; + border-color: #8a6d3b +} +.list-group-item-danger { + color: #a94442; + background-color: #f2dede +} +a.list-group-item-danger, button.list-group-item-danger { + color: #a94442 +} +a.list-group-item-danger .list-group-item-heading, button.list-group-item-danger .list-group-item-heading { + color: inherit +} +a.list-group-item-danger:focus, a.list-group-item-danger:hover, button.list-group-item-danger:focus, button.list-group-item-danger:hover { + color: #a94442; + background-color: #ebcccc +} +a.list-group-item-danger.active, a.list-group-item-danger.active:focus, a.list-group-item-danger.active:hover, button.list-group-item-danger.active, button.list-group-item-danger.active:focus, button.list-group-item-danger.active:hover { + color: #fff; + background-color: #a94442; + border-color: #a94442 +} +.list-group-item-heading { + margin-top: 0; + margin-bottom: 5px +} +.list-group-item-text { + margin-bottom: 0; + line-height: 1.3 +} +.panel { + margin-bottom: 20px; + background-color: #fff; + border: 1px solid transparent; + border-radius: 4px; + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05); + box-shadow: 0 1px 1px rgba(0,0,0,.05) +} +.panel-body { + padding: 15px +} +.panel-heading { + padding: 10px 15px; + border-bottom: 1px solid transparent; + border-top-left-radius: 3px; + border-top-right-radius: 3px +} +.panel-heading>.dropdown .dropdown-toggle { + color: inherit +} +.panel-title { + margin-top: 0; + margin-bottom: 0; + font-size: 16px; + color: inherit +} +.panel-title>.small, .panel-title>.small>a, .panel-title>a, .panel-title>small, .panel-title>small>a { + color: inherit +} +.panel-footer { + padding: 10px 15px; + background-color: #f5f5f5; + border-top: 1px solid #ddd; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} +.panel>.list-group, .panel>.panel-collapse>.list-group { + margin-bottom: 0 +} +.panel>.list-group .list-group-item, .panel>.panel-collapse>.list-group .list-group-item { + border-width: 1px 0; + border-radius: 0 +} +.panel>.list-group:first-child .list-group-item:first-child, .panel>.panel-collapse>.list-group:first-child .list-group-item:first-child { + border-top: 0; + border-top-left-radius: 3px; + border-top-right-radius: 3px +} +.panel>.list-group:last-child .list-group-item:last-child, .panel>.panel-collapse>.list-group:last-child .list-group-item:last-child { + border-bottom: 0; + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} +.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child { + border-top-left-radius: 0; + border-top-right-radius: 0 +} +.panel-heading+.list-group .list-group-item:first-child { + border-top-width: 0 +} +.list-group+.panel-footer { + border-top-width: 0 +} +.panel>.panel-collapse>.table, .panel>.table, .panel>.table-responsive>.table { + margin-bottom: 0 +} +.panel>.panel-collapse>.table caption, .panel>.table caption, .panel>.table-responsive>.table caption { + padding-right: 15px; + padding-left: 15px +} +.panel>.table-responsive:first-child>.table:first-child, .panel>.table:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px +} +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child, .panel>.table:first-child>tbody:first-child>tr:first-child, .panel>.table:first-child>thead:first-child>tr:first-child { + border-top-left-radius: 3px; + border-top-right-radius: 3px +} +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child, .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child, .panel>.table:first-child>tbody:first-child>tr:first-child td:first-child, .panel>.table:first-child>tbody:first-child>tr:first-child th:first-child, .panel>.table:first-child>thead:first-child>tr:first-child td:first-child, .panel>.table:first-child>thead:first-child>tr:first-child th:first-child { + border-top-left-radius: 3px +} +.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child, .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child, .panel>.table:first-child>tbody:first-child>tr:first-child td:last-child, .panel>.table:first-child>tbody:first-child>tr:first-child th:last-child, .panel>.table:first-child>thead:first-child>tr:first-child td:last-child, .panel>.table:first-child>thead:first-child>tr:first-child th:last-child { + border-top-right-radius: 3px +} +.panel>.table-responsive:last-child>.table:last-child, .panel>.table:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child, .panel>.table:last-child>tbody:last-child>tr:last-child, .panel>.table:last-child>tfoot:last-child>tr:last-child { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px +} +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child, .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child, .panel>.table:last-child>tbody:last-child>tr:last-child td:first-child, .panel>.table:last-child>tbody:last-child>tr:last-child th:first-child, .panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child, .panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child { + border-bottom-left-radius: 3px +} +.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child, .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child, .panel>.table:last-child>tbody:last-child>tr:last-child td:last-child, .panel>.table:last-child>tbody:last-child>tr:last-child th:last-child, .panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child, .panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child { + border-bottom-right-radius: 3px +} +.panel>.panel-body+.table, .panel>.panel-body+.table-responsive, .panel>.table+.panel-body, .panel>.table-responsive+.panel-body { + border-top: 1px solid #ddd +} +.panel>.table>tbody:first-child>tr:first-child td, .panel>.table>tbody:first-child>tr:first-child th { + border-top: 0 +} +.panel>.table-bordered, .panel>.table-responsive>.table-bordered { + border: 0 +} +.panel>.table-bordered>tbody>tr>td:first-child, .panel>.table-bordered>tbody>tr>th:first-child, .panel>.table-bordered>tfoot>tr>td:first-child, .panel>.table-bordered>tfoot>tr>th:first-child, .panel>.table-bordered>thead>tr>td:first-child, .panel>.table-bordered>thead>tr>th:first-child, .panel>.table-responsive>.table-bordered>tbody>tr>td:first-child, .panel>.table-responsive>.table-bordered>tbody>tr>th:first-child, .panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child, .panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child, .panel>.table-responsive>.table-bordered>thead>tr>td:first-child, .panel>.table-responsive>.table-bordered>thead>tr>th:first-child { + border-left: 0 +} +.panel>.table-bordered>tbody>tr>td:last-child, .panel>.table-bordered>tbody>tr>th:last-child, .panel>.table-bordered>tfoot>tr>td:last-child, .panel>.table-bordered>tfoot>tr>th:last-child, .panel>.table-bordered>thead>tr>td:last-child, .panel>.table-bordered>thead>tr>th:last-child, .panel>.table-responsive>.table-bordered>tbody>tr>td:last-child, .panel>.table-responsive>.table-bordered>tbody>tr>th:last-child, .panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child, .panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child, .panel>.table-responsive>.table-bordered>thead>tr>td:last-child, .panel>.table-responsive>.table-bordered>thead>tr>th:last-child { + border-right: 0 +} +.panel>.table-bordered>tbody>tr:first-child>td, .panel>.table-bordered>tbody>tr:first-child>th, .panel>.table-bordered>thead>tr:first-child>td, .panel>.table-bordered>thead>tr:first-child>th, .panel>.table-responsive>.table-bordered>tbody>tr:first-child>td, .panel>.table-responsive>.table-bordered>tbody>tr:first-child>th, .panel>.table-responsive>.table-bordered>thead>tr:first-child>td, .panel>.table-responsive>.table-bordered>thead>tr:first-child>th { + border-bottom: 0 +} +.panel>.table-bordered>tbody>tr:last-child>td, .panel>.table-bordered>tbody>tr:last-child>th, .panel>.table-bordered>tfoot>tr:last-child>td, .panel>.table-bordered>tfoot>tr:last-child>th, .panel>.table-responsive>.table-bordered>tbody>tr:last-child>td, .panel>.table-responsive>.table-bordered>tbody>tr:last-child>th, .panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td, .panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th { + border-bottom: 0 +} +.panel>.table-responsive { + margin-bottom: 0; + border: 0 +} +.panel-group { + margin-bottom: 20px +} +.panel-group .panel { + margin-bottom: 0; + border-radius: 4px +} +.panel-group .panel+.panel { + margin-top: 5px +} +.panel-group .panel-heading { + border-bottom: 0 +} +.panel-group .panel-heading+.panel-collapse>.list-group, .panel-group .panel-heading+.panel-collapse>.panel-body { + border-top: 1px solid #ddd +} +.panel-group .panel-footer { + border-top: 0 +} +.panel-group .panel-footer+.panel-collapse .panel-body { + border-bottom: 1px solid #ddd +} +.panel-default { + border-color: #ddd +} +.panel-default>.panel-heading { + color: #333; + background-color: #f5f5f5; + border-color: #ddd +} +.panel-default>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #ddd +} +.panel-default>.panel-heading .badge { + color: #f5f5f5; + background-color: #333 +} +.panel-default>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #ddd +} +.panel-primary { + border-color: #337ab7 +} +.panel-primary>.panel-heading { + color: #fff; + background-color: #337ab7; + border-color: #337ab7 +} +.panel-primary>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #337ab7 +} +.panel-primary>.panel-heading .badge { + color: #337ab7; + background-color: #fff +} +.panel-primary>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #337ab7 +} +.panel-success { + border-color: #d6e9c6 +} +.panel-success>.panel-heading { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6 +} +.panel-success>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #d6e9c6 +} +.panel-success>.panel-heading .badge { + color: #dff0d8; + background-color: #3c763d +} +.panel-success>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #d6e9c6 +} +.panel-info { + border-color: #bce8f1 +} +.panel-info>.panel-heading { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1 +} +.panel-info>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #bce8f1 +} +.panel-info>.panel-heading .badge { + color: #d9edf7; + background-color: #31708f +} +.panel-info>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #bce8f1 +} +.panel-warning { + border-color: #faebcc +} +.panel-warning>.panel-heading { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc +} +.panel-warning>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #faebcc +} +.panel-warning>.panel-heading .badge { + color: #fcf8e3; + background-color: #8a6d3b +} +.panel-warning>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #faebcc +} +.panel-danger { + border-color: #ebccd1 +} +.panel-danger>.panel-heading { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1 +} +.panel-danger>.panel-heading+.panel-collapse>.panel-body { + border-top-color: #ebccd1 +} +.panel-danger>.panel-heading .badge { + color: #f2dede; + background-color: #a94442 +} +.panel-danger>.panel-footer+.panel-collapse>.panel-body { + border-bottom-color: #ebccd1 +} +.embed-responsive { + position: relative; + display: block; + height: 0; + padding: 0; + overflow: hidden +} +.embed-responsive .embed-responsive-item, .embed-responsive embed, .embed-responsive iframe, .embed-responsive object, .embed-responsive video { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + border: 0 +} +.embed-responsive-16by9 { + padding-bottom: 56.25% +} +.embed-responsive-4by3 { + padding-bottom: 75% +} +.well { + min-height: 20px; + padding: 19px; + margin-bottom: 20px; + background-color: #f5f5f5; + border: 1px solid #e3e3e3; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05); + box-shadow: inset 0 1px 1px rgba(0,0,0,.05) +} +.well blockquote { + border-color: #ddd; + border-color: rgba(0,0,0,.15) +} +.well-lg { + padding: 24px; + border-radius: 6px +} +.well-sm { + padding: 9px; + border-radius: 3px +} +.close { + float: right; + font-size: 21px; + font-weight: 700; + line-height: 1; + color: #000; + text-shadow: 0 1px 0 #fff; + filter: alpha(opacity=20); + opacity: .2 +} +.close:focus, .close:hover { + color: #000; + text-decoration: none; + cursor: pointer; + filter: alpha(opacity=50); + opacity: .5 +} +button.close { + -webkit-appearance: none; + padding: 0; + cursor: pointer; + background: 0 0; + border: 0 +} +.modal-open { + overflow: hidden +} +.modal { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1050; + display: none; + overflow: hidden; + -webkit-overflow-scrolling: touch; + outline: 0 +} +.modal.fade .modal-dialog { + -webkit-transition: -webkit-transform .3s ease-out; + -o-transition: -o-transform .3s ease-out; + transition: transform .3s ease-out; + -webkit-transform: translate(0, -25%); + -ms-transform: translate(0, -25%); + -o-transform: translate(0, -25%); + transform: translate(0, -25%) +} +.modal.in .modal-dialog { + -webkit-transform: translate(0, 0); + -ms-transform: translate(0, 0); + -o-transform: translate(0, 0); + transform: translate(0, 0) +} +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto +} +.modal-dialog { + position: relative; + width: auto; + margin: 10px +} +.modal-content { + position: relative; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #999; + border: 1px solid rgba(0,0,0,.2); + border-radius: 6px; + outline: 0; + -webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5); + box-shadow: 0 3px 9px rgba(0,0,0,.5) +} +.modal-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + background-color: #000 +} +.modal-backdrop.fade { + filter: alpha(opacity=0); + opacity: 0 +} +.modal-backdrop.in { + filter: alpha(opacity=50); + opacity: .5 +} +.modal-header { + min-height: 16.43px; + padding: 15px; + border-bottom: 1px solid #e5e5e5 +} +.modal-header .close { + margin-top: -2px +} +.modal-title { + margin: 0; + line-height: 1.42857143 +} +.modal-body { + position: relative; + padding: 15px +} +.modal-footer { + padding: 15px; + text-align: right; + border-top: 1px solid #e5e5e5 +} +.modal-footer .btn+.btn { + margin-bottom: 0; + margin-left: 5px +} +.modal-footer .btn-group .btn+.btn { + margin-left: -1px +} +.modal-footer .btn-block+.btn-block { + margin-left: 0 +} +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll +} +@media (min-width:768px) { + .modal-dialog { + width: 600px; + margin: 30px auto + } + .modal-content { + -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5); + box-shadow: 0 5px 15px rgba(0,0,0,.5) + } + .modal-sm { + width: 300px + } +} +@media (min-width:992px) { + .modal-lg { + width: 900px + } +} +.tooltip { + position: absolute; + z-index: 1070; + display: block; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + filter: alpha(opacity=0); + opacity: 0; + line-break: auto +} +.tooltip.in { + filter: alpha(opacity=90); + opacity: .9 +} +.tooltip.top { + padding: 5px 0; + margin-top: -3px +} +.tooltip.right { + padding: 0 5px; + margin-left: 3px +} +.tooltip.bottom { + padding: 5px 0; + margin-top: 3px +} +.tooltip.left { + padding: 0 5px; + margin-left: -3px +} +.tooltip-inner { + max-width: 200px; + padding: 3px 8px; + color: #fff; + text-align: center; + background-color: #000; + border-radius: 4px +} +.tooltip-arrow { + position: absolute; + width: 0; + height: 0; + border-color: transparent; + border-style: solid +} +.tooltip.top .tooltip-arrow { + bottom: 0; + left: 50%; + margin-left: -5px; + border-width: 5px 5px 0; + border-top-color: #000 +} +.tooltip.top-left .tooltip-arrow { + right: 5px; + bottom: 0; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000 +} +.tooltip.top-right .tooltip-arrow { + bottom: 0; + left: 5px; + margin-bottom: -5px; + border-width: 5px 5px 0; + border-top-color: #000 +} +.tooltip.right .tooltip-arrow { + top: 50%; + left: 0; + margin-top: -5px; + border-width: 5px 5px 5px 0; + border-right-color: #000 +} +.tooltip.left .tooltip-arrow { + top: 50%; + right: 0; + margin-top: -5px; + border-width: 5px 0 5px 5px; + border-left-color: #000 +} +.tooltip.bottom .tooltip-arrow { + top: 0; + left: 50%; + margin-left: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000 +} +.tooltip.bottom-left .tooltip-arrow { + top: 0; + right: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000 +} +.tooltip.bottom-right .tooltip-arrow { + top: 0; + left: 5px; + margin-top: -5px; + border-width: 0 5px 5px; + border-bottom-color: #000 +} +.popover { + position: absolute; + top: 0; + left: 0; + z-index: 1060; + display: none; + max-width: 276px; + padding: 1px; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 1.42857143; + text-align: left; + text-align: start; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-break: normal; + word-spacing: normal; + word-wrap: normal; + white-space: normal; + background-color: #fff; + -webkit-background-clip: padding-box; + background-clip: padding-box; + border: 1px solid #ccc; + border: 1px solid rgba(0,0,0,.2); + border-radius: 6px; + -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); + box-shadow: 0 5px 10px rgba(0,0,0,.2); + line-break: auto +} +.popover.top { + margin-top: -10px +} +.popover.right { + margin-left: 10px +} +.popover.bottom { + margin-top: 10px +} +.popover.left { + margin-left: -10px +} +.popover-title { + padding: 8px 14px; + margin: 0; + font-size: 14px; + background-color: #f7f7f7; + border-bottom: 1px solid #ebebeb; + border-radius: 5px 5px 0 0 +} +.popover-content { + padding: 9px 14px +} +.popover>.arrow, .popover>.arrow:after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid +} +.popover>.arrow { + border-width: 11px +} +.popover>.arrow:after { + content: ""; + border-width: 10px +} +.popover.top>.arrow { + bottom: -11px; + left: 50%; + margin-left: -11px; + border-top-color: #999; + border-top-color: rgba(0,0,0,.25); + border-bottom-width: 0 +} +.popover.top>.arrow:after { + bottom: 1px; + margin-left: -10px; + content: " "; + border-top-color: #fff; + border-bottom-width: 0 +} +.popover.right>.arrow { + top: 50%; + left: -11px; + margin-top: -11px; + border-right-color: #999; + border-right-color: rgba(0,0,0,.25); + border-left-width: 0 +} +.popover.right>.arrow:after { + bottom: -10px; + left: 1px; + content: " "; + border-right-color: #fff; + border-left-width: 0 +} +.popover.bottom>.arrow { + top: -11px; + left: 50%; + margin-left: -11px; + border-top-width: 0; + border-bottom-color: #999; + border-bottom-color: rgba(0,0,0,.25) +} +.popover.bottom>.arrow:after { + top: 1px; + margin-left: -10px; + content: " "; + border-top-width: 0; + border-bottom-color: #fff +} +.popover.left>.arrow { + top: 50%; + right: -11px; + margin-top: -11px; + border-right-width: 0; + border-left-color: #999; + border-left-color: rgba(0,0,0,.25) +} +.popover.left>.arrow:after { + right: 1px; + bottom: -10px; + content: " "; + border-right-width: 0; + border-left-color: #fff +} +.carousel { + position: relative +} +.carousel-inner { + position: relative; + width: 100%; + overflow: hidden +} +.carousel-inner>.item { + position: relative; + display: none; + -webkit-transition: .6s ease-in-out left; + -o-transition: .6s ease-in-out left; + transition: .6s ease-in-out left +} +.carousel-inner>.item>a>img, .carousel-inner>.item>img { + line-height: 1 +} +@media all and (transform-3d), (-webkit-transform-3d) { + .carousel-inner>.item { + -webkit-transition: -webkit-transform .6s ease-in-out; + -o-transition: -o-transform .6s ease-in-out; + transition: transform .6s ease-in-out; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-perspective: 1000px; + perspective: 1000px + } + .carousel-inner>.item.active.right, .carousel-inner>.item.next { + left: 0; + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0) + } + .carousel-inner>.item.active.left, .carousel-inner>.item.prev { + left: 0; + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0) + } + .carousel-inner>.item.active, .carousel-inner>.item.next.left, .carousel-inner>.item.prev.right { + left: 0; + -webkit-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0) + } +} +.carousel-inner>.active, .carousel-inner>.next, .carousel-inner>.prev { + display: block +} +.carousel-inner>.active { + left: 0 +} +.carousel-inner>.next, .carousel-inner>.prev { + position: absolute; + top: 0; + width: 100% +} +.carousel-inner>.next { + left: 100% +} +.carousel-inner>.prev { + left: -100% +} +.carousel-inner>.next.left, .carousel-inner>.prev.right { + left: 0 +} +.carousel-inner>.active.left { + left: -100% +} +.carousel-inner>.active.right { + left: 100% +} +.carousel-control { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 15%; + font-size: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0,0,0,.6); + filter: alpha(opacity=50); + opacity: .5 +} +.carousel-control.left { + background-image: -webkit-linear-gradient(left, rgba(0,0,0,.5) 0, rgba(0,0,0,.0001) 100%); + background-image: -o-linear-gradient(left, rgba(0,0,0,.5) 0, rgba(0,0,0,.0001) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,.5)), to(rgba(0,0,0,.0001))); + background-image: linear-gradient(to right, rgba(0,0,0,.5) 0, rgba(0,0,0,.0001) 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); + background-repeat: repeat-x +} +.carousel-control.right { + right: 0; + left: auto; + background-image: -webkit-linear-gradient(left, rgba(0,0,0,.0001) 0, rgba(0,0,0,.5) 100%); + background-image: -o-linear-gradient(left, rgba(0,0,0,.0001) 0, rgba(0,0,0,.5) 100%); + background-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,.0001)), to(rgba(0,0,0,.5))); + background-image: linear-gradient(to right, rgba(0,0,0,.0001) 0, rgba(0,0,0,.5) 100%); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); + background-repeat: repeat-x +} +.carousel-control:focus, .carousel-control:hover { + color: #fff; + text-decoration: none; + filter: alpha(opacity=90); + outline: 0; + opacity: .9 +} +.carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next, .carousel-control .icon-prev { + position: absolute; + top: 50%; + z-index: 5; + display: inline-block; + margin-top: -10px +} +.carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { + left: 50%; + margin-left: -10px +} +.carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { + right: 50%; + margin-right: -10px +} +.carousel-control .icon-next, .carousel-control .icon-prev { + width: 20px; + height: 20px; + font-family: serif; + line-height: 1 +} +.carousel-control .icon-prev:before { + content: '\2039' +} +.carousel-control .icon-next:before { + content: '\203a' +} +.carousel-indicators { + position: absolute; + bottom: 10px; + left: 50%; + z-index: 15; + width: 60%; + padding-left: 0; + margin-left: -30%; + text-align: center; + list-style: none +} +.carousel-indicators li { + display: inline-block; + width: 10px; + height: 10px; + margin: 1px; + text-indent: -999px; + cursor: pointer; + background-color: #000\9; + background-color: rgba(0,0,0,0); + border: 1px solid #fff; + border-radius: 10px +} +.carousel-indicators .active { + width: 12px; + height: 12px; + margin: 0; + background-color: #fff +} +.carousel-caption { + position: absolute; + right: 15%; + bottom: 20px; + left: 15%; + z-index: 10; + padding-top: 20px; + padding-bottom: 20px; + color: #fff; + text-align: center; + text-shadow: 0 1px 2px rgba(0,0,0,.6) +} +.carousel-caption .btn { + text-shadow: none +} +@media screen and (min-width:768px) { + .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next, .carousel-control .icon-prev { + width: 30px; + height: 30px; + margin-top: -15px; + font-size: 30px + } + .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { + margin-left: -15px + } + .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { + margin-right: -15px + } + .carousel-caption { + right: 20%; + left: 20%; + padding-bottom: 30px + } + .carousel-indicators { + bottom: 20px + } +} +.btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before, .btn-toolbar:after, .btn-toolbar:before, .clearfix:after, .clearfix:before, .container-fluid:after, .container-fluid:before, .container:after, .container:before, .dl-horizontal dd:after, .dl-horizontal dd:before, .form-horizontal .form-group:after, .form-horizontal .form-group:before, .modal-footer:after, .modal-footer:before, .nav:after, .nav:before, .navbar-collapse:after, .navbar-collapse:before, .navbar-header:after, .navbar-header:before, .navbar:after, .navbar:before, .pager:after, .pager:before, .panel-body:after, .panel-body:before, .row:after, .row:before { + display: table; + content: " " +} +.btn-group-vertical>.btn-group:after, .btn-toolbar:after, .clearfix:after, .container-fluid:after, .container:after, .dl-horizontal dd:after, .form-horizontal .form-group:after, .modal-footer:after, .nav:after, .navbar-collapse:after, .navbar-header:after, .navbar:after, .pager:after, .panel-body:after, .row:after { + clear: both +} +.center-block { + display: block; + margin-right: auto; + margin-left: auto +} +.pull-right { + float: right!important +} +.pull-left { + float: left!important +} +.hide { + display: none!important +} +.show { + display: block!important +} +.invisible { + visibility: hidden +} +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0 +} +.hidden { + display: none!important +} +.affix { + position: fixed +} +@-ms-viewport { + width:device-width +} +.visible-lg, .visible-md, .visible-sm, .visible-xs { + display: none!important +} +.visible-lg-block, .visible-lg-inline, .visible-lg-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block { + display: none!important +} +@media (max-width:767px) { + .visible-xs { + display: block!important + } + table.visible-xs { + display: table!important + } + tr.visible-xs { + display: table-row!important + } + td.visible-xs, th.visible-xs { + display: table-cell!important + } +} +@media (max-width:767px) { + .visible-xs-block { + display: block!important + } +} +@media (max-width:767px) { + .visible-xs-inline { + display: inline!important + } +} +@media (max-width:767px) { + .visible-xs-inline-block { + display: inline-block!important + } +} +@media (min-width:768px) and (max-width:991px) { + .visible-sm { + display: block!important + } + table.visible-sm { + display: table!important + } + tr.visible-sm { + display: table-row!important + } + td.visible-sm, th.visible-sm { + display: table-cell!important + } +} +@media (min-width:768px) and (max-width:991px) { + .visible-sm-block { + display: block!important + } +} +@media (min-width:768px) and (max-width:991px) { + .visible-sm-inline { + display: inline!important + } +} +@media (min-width:768px) and (max-width:991px) { + .visible-sm-inline-block { + display: inline-block!important + } +} +@media (min-width:992px) and (max-width:1199px) { + .visible-md { + display: block!important + } + table.visible-md { + display: table!important + } + tr.visible-md { + display: table-row!important + } + td.visible-md, th.visible-md { + display: table-cell!important + } +} +@media (min-width:992px) and (max-width:1199px) { + .visible-md-block { + display: block!important + } +} +@media (min-width:992px) and (max-width:1199px) { + .visible-md-inline { + display: inline!important + } +} +@media (min-width:992px) and (max-width:1199px) { + .visible-md-inline-block { + display: inline-block!important + } +} +@media (min-width:1200px) { + .visible-lg { + display: block!important + } + table.visible-lg { + display: table!important + } + tr.visible-lg { + display: table-row!important + } + td.visible-lg, th.visible-lg { + display: table-cell!important + } +} +@media (min-width:1200px) { + .visible-lg-block { + display: block!important + } +} +@media (min-width:1200px) { + .visible-lg-inline { + display: inline!important + } +} +@media (min-width:1200px) { + .visible-lg-inline-block { + display: inline-block!important + } +} +@media (max-width:767px) { + .hidden-xs { + display: none!important + } +} +@media (min-width:768px) and (max-width:991px) { + .hidden-sm { + display: none!important + } +} +@media (min-width:992px) and (max-width:1199px) { + .hidden-md { + display: none!important + } +} +@media (min-width:1200px) { + .hidden-lg { + display: none!important + } +} +.visible-print { + display: none!important +} +@media print { + .visible-print { + display: block!important + } + table.visible-print { + display: table!important + } + tr.visible-print { + display: table-row!important + } + td.visible-print, th.visible-print { + display: table-cell!important + } +} +.visible-print-block { + display: none!important +} +@media print { + .visible-print-block { + display: block!important + } +} +.visible-print-inline { + display: none!important +} +@media print { + .visible-print-inline { + display: inline!important + } +} +.visible-print-inline-block { + display: none!important +} +@media print { + .visible-print-inline-block { + display: inline-block!important + } +} +@media print { + .hidden-print { + display: none!important + } +} diff --git a/extend/tp5auth/static/css/site.css b/extend/tp5auth/static/css/site.css new file mode 100644 index 0000000..b534540 --- /dev/null +++ b/extend/tp5auth/static/css/site.css @@ -0,0 +1,16 @@ +html, +.help-block-error{color: #a94442;} +.nav{margin-bottom: 20px;margin-top: 20px;} +.table td {font-size: 12px;} +a{color: #1abc9c;} +.form-actions {padding: 19px 20px 20px;margin-top: 20px;margin-bottom: 20px;background-color: #f5f5f5;border-top: 1px solid #e5e5e5;} +.form-required{float: left;padding-top: 6px;padding-left: 4px;font-size: 18px;color: #e74c3c;} +.text{float: left;width: 300px;} +.width1{width: 100px} +.width2{width: 200px} +.width3{width: 300px} +.listOrder{height: 20px; border: 1px solid rgb(203, 208, 212); text-align: center; width: 40px; background-color: rgb(241, 241, 241);} +.toggle {text-align: center;} +.toggle img{cursor: pointer } +.span-text{float: left;padding-top: 9px;padding-left: 10px;padding-right: 10px;} + diff --git a/extend/tp5auth/static/js/bootstrap.min.js b/extend/tp5auth/static/js/bootstrap.min.js new file mode 100644 index 0000000..7701dac --- /dev/null +++ b/extend/tp5auth/static/js/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under the MIT license + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.5",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.5",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.5",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file diff --git a/extend/tp5auth/static/js/cmsinfo.js b/extend/tp5auth/static/js/cmsinfo.js new file mode 100644 index 0000000..fc9af6d --- /dev/null +++ b/extend/tp5auth/static/js/cmsinfo.js @@ -0,0 +1,148 @@ +!function(a) { + + + //a标签post提交 + $('.a-post').click(function(){ + + var msg =$(this).attr('post-msg'); + if(msg){ + if (!confirm(msg)){ + return false; + } + } + var url =$(this).attr('post-url'); + $.ajax( + { + url : url, + type : 'post', + dataType : 'json', + success : function (json) + { + if(json.code == 1){ + + $('#alert').html(alertSuccess(json.msg)); + setTimeout(function() { + window.location.href=json.url; + },1000); + }else if(json.code == 0){ + $('#alert').html(alertDanger(json.msg)); + } + setTimeout(function() { + $('.close').click(); + },3e3); + }, + error:function(xhr){ //上传失败 + $('#alert').html(alertDanger(xhr.responseText)); + + } + }); + + }); + + + //form表达提交 + $(".ajax-post").click(function(){ + + var data,ajaxCallUrl,postUrl; + + d = $(this).parents('.form-horizontal'); + postUrl = $(this).attr('post-url'); + + //按钮上的url优先 + ajaxCallUrl = postUrl ? postUrl : d.attr('action'); + + $.ajax({ + url : ajaxCallUrl, + type : 'post', + dataType : 'json', + data : d.serialize(), + success: function(json) { + if(json.code == 1){ + + $('#alert').html(alertSuccess(json.msg)); + if (confirm('是否离开此页')){ + window.location.href=json.url; + } + + }else if(json.code == 0){ + $('#alert').html(alertDanger(json.msg)); + + } + setTimeout(function() { + $('.close').click(); + },3e3); + }, + error:function(xhr){ //上传失败 + + $('#alert').html(alertDanger(xhr.responseText)); + } + }); + }); + + + + //按钮禁止 + a(".ajax-post").on("click", + function() { + var b = a(this); + b.button("loading"), + setTimeout(function() { + b.button("reset"); + },3e3) + }); + + + $(".listOrder").focus(function () + { + $('#alert').html(alertDanger('输入一个数字来更改排序')); + $(this).css("background-color", "#E93333"); + } + ); + $(".listOrder").blur(function(){ + + var url,id,order; + + $(this).css("background-color", "#F1F1F1"); + url = $('.listOrderUrl').val(); + id = $(this).attr('data'); + order = $(this).val(); + + $.ajax( + { + url : url, + type : 'post', + dataType : 'json', + data : 'id=' + id + '&order=' + order, + success : function (json) + { + if(json.code == 1){ + $('#alert').html(alertSuccess(json.msg)); + }else if(json.code == 0){ + $('#alert').html(alertDanger(json.msg)); + } + setTimeout(function() { + $('.close').click(); + },3e3); + }, + error:function(xhr){ //上传失败 + + $('#alert').html(alertDanger(xhr.responseText)); + } + }); + }); + +} (jQuery); + + + + + +function alertSuccess(data){ + return ''; +} + + +function alertDanger(data){ + return ''; +} + diff --git a/extend/tp5auth/static/js/jquery.min.js b/extend/tp5auth/static/js/jquery.min.js new file mode 100644 index 0000000..f364443 --- /dev/null +++ b/extend/tp5auth/static/js/jquery.min.js @@ -0,0 +1,6 @@ +/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; + +return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/\s*$/g,ra={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:k.htmlSerialize?[0,"",""]:[1,"X
","
"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?""!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("