register.blade.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!DOCTYPE html>
  2. <!--[if IE 8]> <html lang="{{app()->getLocale()}}" class="ie8 no-js"> <![endif]-->
  3. <!--[if IE 9]> <html lang="{{app()->getLocale()}}" class="ie9 no-js"> <![endif]-->
  4. <!--[if !IE]><!-->
  5. <html lang="{{app()->getLocale()}}">
  6. <!--<![endif]-->
  7. <head>
  8. <meta charset="utf-8" />
  9. <title>{{trans('register.title')}}</title>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta content="width=device-width, initial-scale=1" name="viewport" />
  12. <meta content="" name="description" />
  13. <meta content="" name="author" />
  14. <!-- BEGIN GLOBAL MANDATORY STYLES -->
  15. <link href="/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  16. <link href="/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
  17. <link href="/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  18. <link href="/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
  19. <!-- END GLOBAL MANDATORY STYLES -->
  20. <!-- BEGIN THEME GLOBAL STYLES -->
  21. <link href="/assets/global/css/components-rounded.min.css" rel="stylesheet" id="style_components" type="text/css" />
  22. <!-- END THEME GLOBAL STYLES -->
  23. <!-- BEGIN PAGE LEVEL STYLES -->
  24. <link href="/assets/pages/css/login-2.min.css" rel="stylesheet" type="text/css" />
  25. <!-- END PAGE LEVEL STYLES -->
  26. <!-- BEGIN THEME LAYOUT STYLES -->
  27. <!-- END THEME LAYOUT STYLES -->
  28. <link rel="shortcut icon" href="{{asset('favicon.ico')}}" />
  29. </head>
  30. <body class=" login">
  31. <!-- BEGIN LOGO -->
  32. <div class="logo">
  33. <a href="javascript:;"> <img src="/assets/images/home_logo.png" alt="" /> </a>
  34. </div>
  35. <!-- END LOGO -->
  36. <!-- BEGIN LOGIN -->
  37. <div class="content">
  38. @if(Session::get('locale') == 'zh-CN')
  39. <a href="/?locale=en">English</a>
  40. @else
  41. <a href="/?locale=zh-CN">中文</a>
  42. @endif
  43. <!-- BEGIN REGISTRATION FORM -->
  44. <form class="register-form" action="{{url('register')}}" method="post" style="display: block;">
  45. @if($is_register)
  46. @if(Session::get('errorMsg'))
  47. <div class="alert alert-danger">
  48. <button class="close" data-close="alert"></button>
  49. <span> {{Session::get('errorMsg')}} </span>
  50. </div>
  51. @endif
  52. <div class="form-group">
  53. <label class="control-label visible-ie8 visible-ie9">{{trans('register.username')}}</label>
  54. <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="{{trans('register.username_placeholder')}}" name="username" value="{{Request::old('username')}}" required />
  55. <input type="hidden" name="register_token" value="{{Session::get('register_token')}}" />
  56. <input type="hidden" name="_token" value="{{csrf_token()}}" />
  57. <input type="hidden" name="aff" value="{{Request::get('aff')}}" />
  58. </div>
  59. <div class="form-group">
  60. <label class="control-label visible-ie8 visible-ie9">{{trans('register.password')}}</label>
  61. <input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="{{trans('register.password')}}" name="password" value="{{Request::old('password')}}" required />
  62. </div>
  63. <div class="form-group">
  64. <label class="control-label visible-ie8 visible-ie9">{{trans('register.retype_password')}}</label>
  65. <input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="{{trans('register.retype_password')}}" name="repassword" value="{{Request::old('repassword')}}" required />
  66. </div>
  67. @if($is_invite_register)
  68. <div class="form-group">
  69. <label class="control-label visible-ie8 visible-ie9">{{trans('register.code')}}</label>
  70. <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="{{trans('register.code')}}" name="code" value="{{Request::old('code') ? Request::old('code') : Request::get('code')}}" required />
  71. </div>
  72. <p class="hint"> <a href="{{url('free')}}" target="_blank">获取免费邀请码</a> </p>
  73. @endif
  74. @if($is_captcha)
  75. <div class="form-group" style="margin-bottom:75px;">
  76. <label class="control-label visible-ie8 visible-ie9">{{trans('register.captcha')}}</label>
  77. <input class="form-control placeholder-no-fix" style="width:60%;float:left;" type="text" autocomplete="off" placeholder="{{trans('register.captcha')}}" name="captcha" value="" required />
  78. <img src="{{captcha_src()}}" onclick="this.src='/captcha/default?'+Math.random()" alt="{{trans('register.captcha')}}" style="float:right;" />
  79. </div>
  80. @endif
  81. <div class="form-group margin-top-20 margin-bottom-20">
  82. <label class="mt-checkbox mt-checkbox-outline">
  83. <input type="checkbox" name="tnc" checked disabled /> {{trans('register.tnc_button')}}
  84. <a href="javascript:showTnc();"> {{trans('register.tnc_link')}} </a>
  85. <span></span>
  86. </label>
  87. </div>
  88. @else
  89. <div class="alert alert-danger">
  90. <span> {{trans('register.register_alter')}} </span>
  91. </div>
  92. @endif
  93. <div class="form-actions">
  94. <button type="button" class="btn btn-default" onclick="login()">{{trans('register.back')}}</button>
  95. @if($is_register)
  96. <button type="submit" class="btn red uppercase pull-right">{{trans('register.submit')}}</button>
  97. @endif
  98. </div>
  99. </form>
  100. <!-- END REGISTRATION FORM -->
  101. </div>
  102. <!-- END LOGIN -->
  103. <!--[if lt IE 9]>
  104. <script src="/assets/global/plugins/respond.min.js"></script>
  105. <script src="/assets/global/plugins/excanvas.min.js"></script>
  106. <script src="/assets/global/plugins/ie8.fix.min.js"></script>
  107. <![endif]-->
  108. <!-- BEGIN CORE PLUGINS -->
  109. <script src="/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
  110. <script src="/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
  111. <!-- END CORE PLUGINS -->
  112. <!-- BEGIN PAGE LEVEL PLUGINS -->
  113. <!-- END PAGE LEVEL PLUGINS -->
  114. <script type="text/javascript">
  115. // 登录
  116. function login() {
  117. window.location.href = '{{url('login')}}';
  118. }
  119. // 服务条款
  120. function showTnc() {
  121. layer.open({
  122. type: 1
  123. ,title: false //不显示标题栏
  124. ,closeBtn: false
  125. ,area: '500px;'
  126. ,shade: 0.8
  127. ,id: 'tnc' //设定一个id,防止重复弹出
  128. ,resize: false
  129. ,btn: ['{{trans('register.tnc_title')}}']
  130. ,btnAlign: 'c'
  131. ,moveType: 1 //拖拽模式,0或者1
  132. ,content: '<div style="padding: 20px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">不得通过本站提供的服务发布、转载、传送含有下列内容之一的信息:<br>1.违反宪法确定的基本原则的;<br>2.危害国家安全,泄漏国家机密,颠覆国家政权,破坏国家统一的;<br>3.损害国家荣誉和利益的;<br>4.煽动民族仇恨、民族歧视,破坏民族团结的;<br>5.破坏国家宗教政策,宣扬邪教和封建迷信的; <br>6.散布谣言,扰乱社会秩序,破坏社会稳定的;<br>7.散布淫秽、色情、赌博、暴力、恐怖或者教唆犯罪的;<br>8.侮辱或者诽谤他人,侵害他人合法权益的;<br>9.煽动非法集会、结社、游行、示威、聚众扰乱社会秩序的;<br>10.以非法民间组织名义活动的;<br>11.含有法律、行政法规禁止的其他内容的。</div>'
  133. ,success: function(layero){
  134. // var btn = layero.find('.layui-layer-btn');
  135. // btn.find('.layui-layer-btn0').attr({
  136. // href: 'http://www.layui.com/'
  137. // ,target: '_blank'
  138. // });
  139. }
  140. });
  141. }
  142. </script>
  143. <!-- BEGIN THEME GLOBAL SCRIPTS -->
  144. <script src="/assets/global/scripts/app.min.js" type="text/javascript"></script>
  145. <script src="/js/layer/layer.js" type="text/javascript"></script>
  146. <!-- END THEME GLOBAL SCRIPTS -->
  147. </body>
  148. </html>