-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-anotacao.php
70 lines (62 loc) · 2.23 KB
/
form-anotacao.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
require 'header.php';
require 'dao-disciplina.php';
$disciplinas = listaDisciplinas($conexao);
?>
<link rel="stylesheet" type="text/css" href="css/feed.css">
<script type="text/javascript" src="js/feed.js"></script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
});
</script>
<title>Break</title>
</head>
<body onload="loading();">
<?php
include 'essencials/top.php';
?>
<div class="main">
<?php include 'tabs.php'; ?>
<div id="grad">
<div id="header_main">
<div id="header_space2">
<h2>Crie uma Anotação</h2>
<br>
<form id="form-adiciona-anotacao" action="adiciona-anotacao.php" method="post">
<div class="post_area">
<textarea name="anota_titulo" id="title_perg" onkeyup="ajustarTamanho(this)" placeholder="Insira um título" required></textarea>
<textarea name="anota_descricao" onkeyup="ajustarTamanho(this)" placeholder="Anote o que quiser aqui..." required></textarea>
<div id="post_btns">
<select class="" name="id_disciplina" required>
<option value="">Disciplina</option>
<?php foreach($disciplinas as $disciplina) : ?>
<option value="<?=$disciplina['iddisciplina']?>"><?=$disciplina['disc_nome']?></option>
<?php endforeach ?>
</select>
<button type="button" id="btn_opt" onclick="show_tools()">
<img id="btn_opt_img" src="img/sum_icon.png" alt="+-*:" title="Usar símbolos Matemáticos">
</button>
<input type="submit" value="ADICIONAR" id="btn_posta"/>
</div>
<div id="tools">
<a id="tool" title="Abrir Fórmula" href="#" onclick="math_func()"><img src="img/formula.png" alt=""/>Abrir fórmula</a>
</div>
<div id="view">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="back_rodape">
<div id="rodape">
<h3> Este é um rodapé </h3>
</div>
</div>
</body>
</html>