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.
151 lines
6.3 KiB
151 lines
6.3 KiB
<?php
|
|
session_start();
|
|
|
|
@include '../cgi-bin/conn.conn';
|
|
@include '../cgi-bin/functions.inc';
|
|
@include '../cgi-bin/params.inc';
|
|
|
|
$GLOBALS['conn'];
|
|
|
|
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR");
|
|
mysqli_set_charset($conn, "utf8");
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Ordine dei Farmacisti della Provincia di Salerno</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<base href="<?php echo $BASE_URL;?>/">
|
|
<link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/>
|
|
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
|
|
</head>
|
|
<body>
|
|
<div class="row no-gutters">
|
|
|
|
<?php
|
|
if(!$_SESSION['AUTH']){
|
|
?>
|
|
|
|
<div id="actions" class="row mx-auto text-center">
|
|
<div class="col-10 my-3 mx-auto">
|
|
<button class="is-user">Sono iscritto all'Ordine di Salerno</button>
|
|
</div>
|
|
<div class="col-10 my-3 mx-auto">
|
|
<button class="not-user">NON sono iscritto all'Ordine di Salerno</button>
|
|
</div>
|
|
</div>
|
|
|
|
<form id="login-form" method="post">
|
|
<div class="row no-gutters">
|
|
<div class="col-10 col-sm-6 mx-auto">
|
|
<label class="font-10">Username</label>
|
|
<input type="text" name="usr" placeholder="username">
|
|
|
|
<label class="font-10">Password</label>
|
|
<input type="password" name="pwd" placeholder="password">
|
|
<input type="submit" name="go" value="Accedi">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<form id="adv-form" method="post" enctype="multipart/form-data" action="<?php echo $BASE_URL;?>/blocks/advFormSubmit.php"
|
|
<?php if($_SESSION['AUTH']){echo "style=\"display: block\"";}?>>
|
|
<div class="row no-gutters">
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Tipologia inserzione</span>
|
|
<select class="input" name="type">
|
|
<option value="find">Cerco lavoro</option>
|
|
<option value="offer">Offro lavoro</option>
|
|
<option value="adv">Annunci di compravendita</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-4 d-none d-sm-block"></div>
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Nome e Cognome</span>
|
|
<input type="text" name="full_name" <?php if($_SESSION['AUTH']){echo "value=\"".$_SESSION['AUTH']['last_name']." ".$_SESSION['AUTH']['first_name']."\" readonly";}?>>
|
|
</div>
|
|
|
|
|
|
<?php
|
|
if(!$_SESSION['AUTH']){
|
|
?>
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Iscritto all'Ordine di*</span>
|
|
<select type="text" name="other_order" required>
|
|
<?php foreach($PROVINCE as $p) {
|
|
if($p != "Salerno") {
|
|
echo "<option value=\"$p\">$p</option>";
|
|
}
|
|
}?>
|
|
<option value="NESSUN ORDINE">NON SONO ISCRITTO AD ALCUN ORDINE</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">N° Iscrizione*</span>
|
|
<input type="text" name="other_order_number" required>
|
|
</div>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Testo inserzione</span>
|
|
<textarea cols="40" rows="6" name="text"></textarea>
|
|
</div>
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Comune di residenza*</span>
|
|
<input type="text" name="city" required>
|
|
</div>
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Recapiti telefonici*</span>
|
|
<input type="text" name="contact_phone" required>
|
|
</div>
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Email contatto*</span>
|
|
<input type="text" name="contact_email" required <?php if($_SESSION['AUTH']){echo "value=\"".$_SESSION['AUTH']['email']."\"";}?>>
|
|
</div>
|
|
<div class="col-10 mx-auto">
|
|
<span class="font-12">Allegato (opzionale, ES: curriculum)</span><br>
|
|
<input type="file" name="append">
|
|
</div>
|
|
<div class="col-10 mx-auto">
|
|
<div class="g-recaptcha" data-sitekey="6Le7kkUUAAAAAK-lsvoefiaBsH1TycWnHipCC8VF"></div>
|
|
</div>
|
|
<div class="col-10 mt-3 mx-auto font-10">
|
|
<p>L'inserzione avrà una durata di 3 mesi, decorsi i quali verrà automaticamente cancellata.</p>
|
|
<p>ATTENZIONE: Per effettuare la pubblicazione diretta di un annuncio bisogna essere un utente iscritto all'Albo ed effettuare il log-in. Per coloro che sono iscritti ad altri Ordini oppure non ancora iscritti, è possibile pubblicare un'inserzione cliccando su "Non sono iscritto all'Ordine di Salerno"; in tal caso l'annuncio verrà valutato ed eventualmente approvato dallo staff dell'Ordine.</p>
|
|
</div>
|
|
<div class="col-10 mx-auto">
|
|
<button type="submit">Pubblica inserzione</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/node_modules/jquery/dist/jquery.min.js"></script>
|
|
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
|
|
|
|
<script>
|
|
$('#actions .not-user').on('click', function(){
|
|
$('#actions').fadeOut( function(){
|
|
$('#adv-form').fadeIn();
|
|
});
|
|
});
|
|
|
|
$('#actions .is-user').on('click', function(){
|
|
$('#actions').fadeOut( function(){
|
|
$('#login-form').fadeIn();
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|