Advertisement
Guest User

Untitled

a guest
Sep 30th, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.76 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <link rel="shortcut icon" href="https://i.servimg.com/u/f84/20/18/28/71/oie_tr10.png" />
  6. <meta charset="UTF-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  9. <title>UNEP | Aula</title>
  10.  
  11. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"/>
  12. <style type="text/css">
  13. *,
  14. *::before,
  15. *::after {
  16. margin: 0;
  17. padding: 0;
  18. box-sizing: border-box;
  19. }
  20.  
  21. html,
  22. body {
  23. height: 100%;
  24. }
  25.  
  26. body {
  27. font-size: 17px;
  28. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  29. font-weight: normal;
  30. line-height: 1.5;
  31. color: #212121;
  32. line-height: 1.5;
  33. background: linear-gradient(270deg, rgba(203, 203, 203, 0.56) 10%, rgba(186, 186, 186, 0.11) 20%, #fafafa 30%, #fff 100%);
  34. }
  35.  
  36. /**
  37. * Begin tipografia.
  38. */
  39.  
  40. a,
  41. a:active,
  42. a:link,
  43. a:visited,
  44. a:focus {
  45. color: #D8B500;
  46. text-decoration: none;
  47. border-bottom: solid 1px transparent;
  48. outline: 0;
  49. }
  50.  
  51. a:hover {
  52. border-bottom-color: #2688dc;
  53. }
  54.  
  55. a.fa:hover {
  56. border-bottom-color: transparent;
  57. color: #1f6db0;
  58. }
  59.  
  60. h3 {
  61. font-size: 20px;
  62. font-weight: 300;
  63. margin-bottom: 10px;
  64. display: block;
  65. width: 100%;
  66. padding-bottom: 3px;
  67. border-bottom: 2px solid #375e7f;
  68. }
  69.  
  70. textarea {
  71. height: 90px;
  72. box-sizing: border-box;
  73. resize: vertical;
  74. outline: none;
  75. }
  76.  
  77. .btn {
  78. border: solid 1px #e4e4e4;
  79. background: linear-gradient(180deg, #fff 0%, #efefef 100%);
  80. padding: .575rem 1.1rem;
  81. border-radius: .175rem;
  82. font-weight: 600;
  83. color: #686a6b;
  84. cursor: pointer;
  85. display: block;
  86. text-align: center;
  87. margin-bottom: 5px;
  88. width: 100%;
  89. }
  90.  
  91. .btn:focus {
  92. border-color: #375e7f;
  93. box-shadow: inset 0 -5px 40px rgba(120, 120, 120, 0.1), inset 0 1px 2px rgba(27, 31, 35, 0.075), 0 0 0 0.2em rgba(0, 0, 0, 0.1);
  94. outline: none;
  95. }
  96.  
  97. .btn:hover {
  98. box-shadow: inset 0 -100px rgba(108, 108, 108, 0.1);
  99. }
  100.  
  101. .btn.btn-primary {
  102. border-radius: 3px;
  103. box-shadow: none;
  104. color: #fff;
  105. background: #D8B500;
  106. font-size: 14px;
  107. transition: linear all 125ms;
  108. margin-top: 50%;
  109. }
  110.  
  111. .btn.btn-primary:focus {
  112. border-color: #375e7f;
  113. box-shadow: inset 0 1px 2px rgba(39, 56, 28, 0.075), 0 0 0 0.2em rgba(39, 56, 28, 0.6);
  114. outline: none;
  115. }
  116.  
  117. .btn.btn-primary:hover {
  118. background: #444;
  119. }
  120.  
  121. .btn.btn-danger {
  122. color: #fff;
  123. border-color: #bd2c00;
  124. background: #e7592e;
  125. background: linear-gradient(180deg, #f86b40 0%, #bd2c00 100%);
  126. }
  127.  
  128. .btn.btn-danger:focus {
  129. border-color: #aa2c05;
  130. box-shadow: inset 0 1px 2px rgba(27, 31, 35, 0.075), 0 0 0 0.2em rgba(197, 53, 9, 0.66);
  131. outline: none;
  132. }
  133.  
  134. .btn-progress {
  135. cursor: not-allowed;
  136. opacity: .657;
  137. }
  138.  
  139. .form-control {
  140. background-color: #fff;
  141. border: 1px solid #d4d4d4;
  142. padding: 6px 8px;
  143. margin: 5px 0 0;
  144. display: block;
  145. width: 100%;
  146. font-size: 16px;
  147. color: #555;
  148. line-height: 20px;
  149. border-radius: 3px;
  150. box-shadow: inset 0 1px 2px rgba(27, 31, 35, 0.075);
  151. outline: none;
  152. }
  153.  
  154. .form-control:focus {
  155. border-color: #375e7f;
  156. box-shadow: inset 0 1px 2px rgba(75, 107, 53, 0.075), 0 0 0 0.2em rgba(75, 107, 53, 0.6);
  157. outline: none;
  158. }
  159.  
  160. input[type="text"]:disabled {
  161. background: #dddddd;
  162. cursor: not-allowed;
  163. }
  164.  
  165. .card {
  166. background-color: #E54732;
  167. padding: 5px;
  168. font-size: 10px;
  169. color: #fff;
  170. font-weight: 800;
  171. border-radius: 5px;
  172. float: left;
  173. margin-right: 5px;
  174. }
  175.  
  176.  
  177. /*
  178. * End tipografia.
  179. **/
  180.  
  181. .wrapper {
  182. width: 50%;
  183. position: absolute;
  184. top: 5%;
  185. left: 50%;
  186. -webkit-transform: translateX(-50%);
  187. -moz-transform: translateX(-50%);
  188. -ms-transform: translateX(-50%);
  189. -o-transform: translateX(-50%);
  190. transform: translateX(-50%);
  191. }
  192.  
  193. .wrapper hgroup {
  194. text-align: center;
  195. }
  196.  
  197. .wrapper hgroup i.fa {
  198. font-size: 4em;
  199. }
  200.  
  201. .wrapper hgroup h1 {
  202. font-weight: 300;
  203. margin: 10px 0;
  204. padding: 0;
  205. color: #545454;
  206. }
  207.  
  208. .wrapper form {
  209. border: solid 1px #d4d4d4;
  210. margin: 0 0 25px;
  211. padding: 20px;
  212. color: #555;
  213. border-radius: 4px;
  214. background-color: #fff;
  215. }
  216.  
  217. .wrapper form .form-group label {
  218. display: table;
  219. }
  220.  
  221. .wrapper form .form-group .form-group-col {
  222. float: left;
  223. margin-right: 2%;
  224. margin-top: 2%;
  225. }
  226.  
  227. .form-group .form-group-col:first-child {
  228. margin-left: 3%;
  229. }
  230.  
  231. .wrapper footer {
  232. border: solid 1px #d6d6d6;
  233. border-radius: 3px;
  234. padding: 13px;
  235. text-align: center;
  236. font-size: 16px;
  237. color: #555;
  238. margin-bottom: 2%;
  239. }
  240.  
  241. .col-94 {
  242. width: 94%;
  243. }
  244.  
  245. .col-46 {
  246. width: 46%;
  247. }
  248.  
  249. .col-30 {
  250. width: 30%;
  251. }
  252.  
  253. /**
  254. * FOR JS Styles:
  255. */
  256.  
  257. #login-form,
  258. footer {
  259. box-shadow: 3px 3px 2px 0px rgba(0, 0, 0, 0.16);
  260. }
  261.  
  262. .title h2 {
  263. font-weight: 300;
  264. margin-bottom: 5px;
  265. text-align: center;
  266. }
  267. .title h4 {
  268. font-weight: 300;
  269. margin-bottom: 15px;
  270. text-align: center;
  271. }
  272.  
  273. @media screen and (max-width: 900px) {
  274. .wrapper {
  275. width: 40%;
  276. }
  277. }
  278.  
  279. @media screen and (max-width: 600px) {
  280. .wrapper {
  281. width: 70%;
  282. }
  283. }
  284.  
  285. @media screen and (max-width: 500px) {
  286. .wrapper {
  287. width: 80%;
  288. }
  289. }
  290.  
  291. @media screen and (max-width: 400px) {
  292. .wrapper {
  293. width: 90%;
  294. }
  295. }
  296. </style>
  297. </head>
  298. <body>
  299. <main class="wrapper">
  300.  
  301. <hgroup>
  302. <h1><img src="https://i.servimg.com/u/f84/20/18/28/71/oie_tr10.png"></h1>
  303. </hgroup>
  304.  
  305. <form id="form-content">
  306. <a href="/h1-" title="Voltar ao menu"><i class="fas fa-arrow-left" aria-hidden="true"></i></a>
  307. <div class="title">
  308. <h4>Preencha os dados corretamente. No caso dos campos opcionais, se não quiser preencher com dados relevantes, deixe vazio.</h4>
  309. </div>
  310. <h3>Dados do instrutor</h3>
  311. <div class="form-group" style="margin-bottom: 15%;">
  312. <div class="form-group-col col-46">
  313. <label for="npunidor">Seu nick:</label>
  314. <input type="text" id="npunidor" class="form-control" placeholder="O seu nickname" required/>
  315. </div>
  316. <div class="form-group-col col-46">
  317. <label for="cargoantigo">Cargo:</label>
  318. <select data-type="select" id="cargoantigo" class="form-control" required="">
  319. <!-- First -->
  320. <option value="Trainee">Trainee</option>
  321. <option value="Estagiário">Estagiário</option>
  322. <option value="Associado">Associado</option>
  323. <option value="Orientador">Orientador</option>
  324. <option value="Analista">Analista</option>
  325. <option value="Supervisor">Supervisor</option>
  326. <option value="Secretário">Secretário</option>
  327. <option value="Avaliador">Avaliador</option>
  328. <option value="Diretor">Diretor</option>
  329. <option value="Vice-Presidente">Vice-Presidente</option>
  330. <option value="Presidente">Presidente</option>
  331. <option value="Conselheiro">Conselheiro</option>
  332. <option value="Assessor">Assessor</option>
  333. <option value="Gestor">Gestor</option>
  334. <option value="CEO">CEO</option>
  335. <option value="Fundador">Fundador</option>
  336. </select>
  337. </div>
  338. </div>
  339. <h3>Dados da aula</h3>
  340. <div class="form-group">
  341. <div class="form-group-col col-30">
  342. <label for="dataadv">Data da aula:</label>
  343. <input type="text" id="dataadv" class="form-control" disabled/>
  344. </div>
  345. <div class="form-group-col col-30">
  346. <label for="naluno">Nick:</label>
  347. <input type="text" id="naluno" class="form-control" placeholder="Nickname" required/>
  348. </div>
  349. <div class="form-group-col col-30">
  350. <label for="patente">Aula:</label>
  351. <select data-type="select" id="patente" class="form-control" required>
  352. <!-- First -->
  353. <option value="T1">T1</option>
  354. <option value="T2">T2</option>
  355. <option value="T3">T3</option>
  356. <option value="T4">T4</option>
  357. <option value="T5">T5</option>
  358. <option value="T6">T6</option>
  359. <option value="AMISSÃO AO R.H">ADMISSÃO R.H</option>
  360.  
  361. </select>
  362. </div>
  363. </div>
  364. <div class="form-group">
  365. <div class="form-group-col col-94">
  366. <span class="card">OBRIGATÓRIO</span>
  367. <label for="motivos">Observações:</label>
  368. <textarea data-type="textarea" id="motivos" class="form-control" placeholder="Como foi a aula? O aluno ficou com dúvidas?" required></textarea>
  369. </div>
  370. </div>
  371. <div class="form-group">
  372.  
  373. </div>
  374. <div class="form-group">
  375. <div class="form-group-col col-94">
  376. <input type="checkbox" name="termos" value="X" required> Declaro que estou postando de forma correta as informações acima.
  377. </div>
  378. </div>
  379. <div>
  380. <button type="submit" class="btn btn-primary">Enviar</button>
  381.  
  382. </form>
  383. </main>
  384.  
  385. <script>
  386. var instance = new Date();
  387.  
  388. var month =["Jan","Fev","Mar", "Abr","Mai","Jun", "Jul","Ago","Set", "Out","Nov","Dez"];
  389.  
  390. var day = (!! instance.getDate().toString()[1]) ? instance.getDate() : '0' + instance.getDate();
  391. var month_index = instance.getMonth();
  392. var year = instance.getFullYear();
  393.  
  394. var date = [ day, month[month_index], year ].join(" ");
  395.  
  396. document.getElementById('dataadv').value = date;
  397. </script>
  398.  
  399.  
  400. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" type="text/javascript"></script>
  401. <script type="text/javascript">
  402. (function ($) {
  403. 'use strict';
  404.  
  405. $(function () {
  406. $('#form-content').on('submit', function (event) {
  407.  
  408. var data = {
  409. npunidor: $('#npunidor').val(),
  410. cpunidor: $('#cpunidor').val(),
  411. npunido: $('#npunido').val(),
  412. cargoantigo: $('#cargoantigo').val(),
  413. patente: $('#patente').val(),
  414. dataadv: $('#dataadv').val(),
  415. motivos: $('#motivos').val(),
  416. naluno: $('#naluno').val(),
  417. provas: '',
  418. permissao: '',
  419. termos: ' x ',
  420. };
  421.  
  422. if ($('#permissao').val() === '') {
  423. data.permissao = 'N/A.';
  424. } else {
  425. data.permissao = $('#permissao').val();
  426. }
  427.  
  428. event.preventDefault();
  429. setTimeout(function () {
  430. $.post('/post', {
  431. t: IDFORUM,
  432. message: [
  433. '[center][b][size=18][font=Georgia]RELATÓRIO DE AULA [/font][/size][/b] [/center]',
  434. '',
  435. '[b]Aula feita por: [/b] ' + data.cargoantigo + ' ' + data.npunidor,
  436. '[b]Tipo de aula:[/b] ' + data.patente,
  437. '[b] Data da aula:[/b] ' + data.dataadv,
  438. '[b] Nick do Aluno:[/b] ' + data.naluno,
  439. '',
  440. '[b] Observações: [/b] ' + data.motivos,
  441. '',
  442. '(' + data.termos + ') Termo de ciencia de dados corretos.',
  443. ].join('\n'),
  444. mode: 'reply',
  445. tid: $('[name="tid"]:first').val(),
  446. post: 1,
  447. attach_sig: 'on'
  448. }).done(function () {
  449. alert('Postado com sucesso. Você será redirecionado para o tópico...');
  450. location.href = 'http://' + location.host + '/tIDFORUM-?view=newest';
  451. }).fail(function () {
  452. alert('Houve um erro! Tente novamente!');
  453. });
  454. }, 600);
  455. });
  456. });
  457. }(jQuery));
  458. </script>
  459. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement