You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.9 KiB
55 lines
1.9 KiB
<div class="row">
|
|
<div class="col-12">
|
|
<div class="section-title">Aggiungi link</div>
|
|
</div>
|
|
<div class="col-12">
|
|
|
|
<div class="sheet-box p-4">
|
|
|
|
<?php
|
|
if($_POST['go']){
|
|
|
|
$q=mysqli_query($conn, "INSERT INTO links VALUES(0, '".addslashes($_POST['title'])."', '".addslashes($_POST['text'])."', '".$_POST['section']."')");
|
|
|
|
echo "INSERT INTO links VALUES(0, '".addslashes($_POST['title'])."', '".addslashes($_POST['text'])."', '".$_POST['section']."')";
|
|
echo '<div class="col-10 text-center mx-auto my-5">
|
|
<p><i class="fa fa-check-circle font-alert p-4"></i></p>
|
|
Link aggiunto correttamente!
|
|
</div>';
|
|
|
|
}else{
|
|
?>
|
|
<form method="post">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<span class="font-12">Sezione</span>
|
|
<select name="section">
|
|
<option value="cerca-un-farmaco">Cerca un farmaco</option>
|
|
<option value="siti-istituzionali">Siti istituzionali</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-12">
|
|
<span class="font-12">Titolo</span>
|
|
<input type="text" name="title">
|
|
</div>
|
|
<div class="col-12">
|
|
<span class="font-12">Testo</span>
|
|
<textarea class="mce" name="text"></textarea>
|
|
</div>
|
|
|
|
|
|
<div class="col-12 text-right">
|
|
<button type="submit" name="go" value="1">Aggiungi link</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|