protocollo
roles) === true){
echo ‘ ‘;
}
<?php echo ‘ciao‘; ?>
echo ‘
‘;
?>
= ‘”.$_POST[‘da_data_protocollo’].”‘”;
if($_POST[‘a_data_protocollo’] != ”) $where .= ” AND data_protocollo <= ‘”.$_POST[‘a_data_protocollo’].”‘”; $sql = “SELECT * FROM wp_protocollo $where ORDER BY id_riga DESC LIMIT 10 OFFSET “.($_POST[‘pagina’]*10); $result = $wpdb->get_results($sql);
if(count($result) == 0){
echo “non ci sono dati da visualizzare
“;
}else{
foreach ($result as $page) {
$elenco .= “Protocollo nr. “.$page->nr_protocollo.” del “.date(“d/m/Y”, strtotime($page->data_protocollo)).”
Oggetto: “.$page->oggetto.”
Mittente: “.$page->mittente.”
Destinatario: “.$page->destinatario.”
“;
echo ”
Protocollo nr. “.$page->nr_protocollo.” del “.date(“d/m/Y”, strtotime($page->data_protocollo)).” | id_riga.”‘>Oggetto: “.$page->oggetto.” | “.($page->flg_inout== ‘1’ ? ‘Entrata’ : ($page->flg_inout== ‘0’ ? ‘Uscita’ : ”)).” | id_riga.”‘>
|
||||
|
“;
}
echo ”
“;
echo “
}
?>
Ultimo aggiornamento
3 Aprile 2023, 18:12