<?php

include_once "login.php";
require_once APPS_DIR . "/lib/tabella_v.class.php";
require_once APPS_DIR . "/lib/tabella_h.class.php";
$tabpath = "report";
$azione = strtolower($_REQUEST["azione"]);
$filter = "";
$cols = array();
if (in_array($azione, array('cerca', 'report'))) {
    include APPS_DIR . "db/search.report.ap.php";
    $risultati = new tabella_h("{$tabpath}/report_ap.tab", 'list');
    $risultati->set_dati($filter);
    $cols = $risultati->defColDataTable();
}
if ($azione == 'report') {
    require_once APPS_DIR . "plugins/PHPExcel.php";
    $objReader = PHPExcel_IOFactory::createReader('Excel2007');
    $objPHPExcel = $objReader->load("test.xlsx");
    $objPHPExcel->getActiveSheet()->fromArray($risultati->array_dati);
    $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
    $objWriter->save('output.xlsx');
}
?>
<html>
<head>
<title>Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<SCRIPT language="javascript" src="js/LoadLibs.js" type="text/javascript"></SCRIPT>
<script language="javascript">
} else {
    //-<<<<<<<<<<<<<<<<<<<<<< VISUALIZZA DATI RICHIESTA E MAPPALI >>>>>>>>>>>>>>>>>>>>>>>>>>>----------------------->
    $tabella_richiesta = new tabella_v("{$tabpath}/richiesta", 'view');
    $nrec = $tabella_richiesta->set_dati("pratica = {$idpratica}");
    ?>
			
		<!-- <<<<<<<<<<<<<<<<<<<<<   RICHIESTA  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
		<H2 class="blueBanner">Richiesta</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    if ($nrec) {
        $tabella_richiesta->set_titolo("Richiesta cdu", "modifica");
        $tabella_mappali = new tabella_h("{$tabpath}/mappali", 'view');
        $tabella_mappali->set_titolo("Elenco dei mappali", "modifica", array("mappali" => 1));
        $nrow = $tabella_mappali->set_dati("pratica={$idpratica}");
        $tabella_richiesta->get_titolo();
        $tabella_richiesta->tabella();
        $tabella_mappali->get_titolo();
        if ($nrow) {
            $tabella_mappali->elenco();
        } else {
            print "<p><b>Nessun mappale</b></p>";
        }
    } else {
        $tabella_richiesta->set_titolo("Nuova richiesta", "nuovo");
        $tabella_richiesta->get_titolo();
        print "<p><b>Nessuna richiesta</b></p>";
    }
</BODY>
<?php 
    include "./inc/inc.window.php";
    // contiene la gesione della finestra popup
} elseif ($modo == "all") {
    ?>
<!-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA TUTTI DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
<body>
	<H2 class="blueBanner">Elenco dei membri delle Commissioni Locali per il Paesaggio</H2>
		
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    $tabella = new tabella_h($file_config . "_paes", 'list');
    $tabella->set_titolo("Elenco membri", "nuovo");
    $tabella->get_titolo();
    $nrec = $tabella->set_dati("pratica=0");
    $tabella->elenco();
    $tabella->close_db();
    ?>
				<form name="membri_v" method="POST" action="ce.membri_paes.php">
					<input type="hidden" name="mode" value="<?php 
    echo $modo;
    ?>
">
					<input type="hidden" name="id" value="<?php 
    echo $id;
    ?>
">
Esempio n. 4
0
'left=20,top=20,width=500,height=500,scrollbars=1,toolbar=1,resizable=1');
}
</script>

		<H2 class="blueBanner">Dati di progetto</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		  <tr> 
			<td> 
			<?php 
    $tabella_progetto = new tabella_v("{$tabpath}/progetto");
    $nrec = $tabella_progetto->set_dati("pratica = {$idpratica}");
    if ($nrec) {
        $tabella_progetto->set_titolo("Progetto", "modifica", array("progetto" => 1));
        $tabella_progetto->elenco();
        print "<br>";
        $tabella_parametri = new tabella_h("{$tabpath}/parametri");
        $numrows = $tabella_parametri->set_dati("pratica={$idpratica};");
        $tabella_parametri->set_titolo("Parametri di progetto", "modifica", array("parametri" => 1));
        $tabella_parametri->get_titolo();
        if ($numrows) {
            $tabella_parametri->elenco();
        } else {
            print "<p><b>Nessun parametro impostato</b></p>";
        }
        $tabella_parametri->set_titolo("Nuovo Parametro di progetto", "nuovo", array("parametri" => 1));
        $tabella_parametri->get_titolo();
    } else {
        $tabella_progetto->set_titolo("Aggiungi nuovo Progetto", "nuovo", array("progetto" => 1));
        print $tabella_progetto->get_titolo();
        print "<p><b>Nessun progetto</b></p>";
    }
	}
}

</script>
</head>

<body>

<?php 
if ($modo == "edit" or $modo == "new") {
    $tab_new = $_POST["tab_new"] . ".tab";
    $tab_edit = $_POST["tab_edit"] . ".tab";
    $titolo = $_POST["titolo"];
    include "./inc/inc.page_header.php";
    $tabellav = new tabella_v($tab_new, 'new');
    $tabellah = new tabella_h($tab_edit, 'edit');
    ?>
		
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="99%" align="center">		
		<tr> 
			<td> 
			<!-- intestazione-->
				<H2 class="blueBanner"><?php 
    echo $titolo;
    ?>
</H2>
			<!-- fine intestazione-->
			</td>
		  </tr>
		  <tr> 
			<td> 
Esempio n. 6
0
    .ui-state-hover,.ui-state-active,.ui-state-focus{
        background:url("css/start/images/ui-bg_glass_45_0078ae_1x400.png");
        color:white;
    }
</style>
</head>
<body  background="" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<?php 
if ($modo == "edit") {
    $_SESSION["ADD_NEW"] = 0;
    $iter = $_POST["iter"];
    $nomeiter = $_POST["nomeiter"];
    include "./inc/inc.page_header.php";
    $tabella_allegati = new tabella_h("{$tabpath}/doc_allegati", $modo);
    $tabella_elenco = new tabella_h("{$tabpath}/doc_elenco", $modo);
    $dummytable = new tabella_h("buttons", 'new');
    $num_allegati = $tabella_allegati->set_dati("pratica={$idpratica} and iter={$iter} and (allegato=1 or mancante=1)");
    $num_elenco = $tabella_elenco->set_dati("iter={$iter} and id not in (select 'doc_'||documento::varchar as id from pe.allegati inner join pe.e_documenti on(e_documenti.id=documento) where iter={$iter} and (allegato=1 or integrato=1 or mancante=1) and pratica={$idpratica})");
    $tabella_allegati->set_titolo($nomeiter);
    $tabella_elenco->set_titolo($nomeiter);
    $tabella_allegati->set_color("#728bb8", "#FFFFFF", 0, 0);
    ?>
		<H2 class=blueBanner>Gestione allegati:&nbsp;<?php 
    echo $nomeiter;
    ?>
</H2>
        <FORM method="POST" action="praticaweb.php">
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="99%" align="center">		
			<tr> 
                <td> 
			<!-- contenuto-->		
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<SCRIPT language="javascript" src="js/LoadLibs.js" type="text/javascript"></SCRIPT>
</head>
<body  background="" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<?php 
if ($modo == "edit" or $modo == "new") {
    $_SESSION["ADD_NEW"] = 0;
    $id_integrazione = isset($_POST["id"]) && $_POST["id"] ? $_POST["id"] : null;
    $nomeiter = $_POST["nomeiter"];
    $iter = $_POST["iter"];
    $tabella_integrazione = new tabella_v("{$tabpath}/integrazioni.tab", $modo);
    $tabella_integrati = new tabella_h("{$tabpath}/doc_integrati.tab", $modo);
    $tabella_mancanti = new tabella_h("{$tabpath}/doc_integrati.tab", $modo);
    $num_integrati = $tabella_integrati->set_dati("integrazione={$id_integrazione} and iter={$iter} and mancante=0");
    $num_mancanti = $tabella_mancanti->set_dati("pratica={$idpratica} and iter={$iter} and mancante=1");
    //$tabella_integrati->set_titolo("Documenti integrati o sostituiti");
    //$tabella_mancanti->set_titolo("Documenti mancanti");
    $tabella_mancanti->set_color("#E7EFFF", "#FF0000", 0, 0);
    include "./inc/inc.page_header.php";
    //-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN EDITING  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
    ?>
	<FORM id="" name="" method="post" action="praticaweb.php">
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="99%" align="center">		
				  
		  <tr> 
			<td> 
			<!-- intestazione-->
				<H2 class="blueBanner">Integrazione documenti fase: <?php 
Esempio n. 8
0
?>

<html>
<head>
<title>Scadenze - <?php 
echo $titolo;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<SCRIPT language="javascript" src="js/LoadLibs.js" type="text/javascript"></SCRIPT>
</head>
<body>
<?php 
//-<<<<<<<<<<<<<<<<<<<<<< VISUALIZZA ITER >>>>>>>>>>>>>>>>>>>>>>>>>>>----------------------->
$tabella = new tabella_h("{$tabpath}/scadenze");
?>
	<H2 class="blueBanner">Scadenze della pratica</H2>
	<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
	  <TR> 
		<TD> 
		<!-- contenuto-->
<?php 
$sql = "SELECT id,nome from pe.e_iter order by ordine";
$tabella->connettidb();
$tabella->db->sql_query($sql);
$iter = $tabella->db->sql_fetchrowset();
for ($i = 0; $i < count($iter); $i++) {
    $tabella->set_titolo($iter[$i]["nome"]);
    $tabella->get_titolo();
    $table = "<table class=\"stiletabella\" width=\"90%\"><tr><td><img src=\"get_scadenza.php?pratica={$idpratica}&iter=" . $iter[$i]["id"] . "\" border=\"0\"></td></tr></table>";
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    $tabella_asservimento = new tabella_v("{$tabpath}/asservimenti");
    $nrec = $tabella_asservimento->set_dati("pratica = {$idpratica} order by data_reg");
    if ($nrec) {
        $tabella_asservimento->set_titolo("Asservimento", "modifica", array("id" => ""));
        for ($i = 0; $i < $nrec; $i++) {
            $tabella_asservimento->curr_record = $i;
            $tabella_asservimento->set_titolo("Asservimento " . $tabella_asservimento->array_dati[$i]['numero'], "modifica", array("id" => ""));
            $tabella_asservimento->idtabella = $tabella_asservimento->array_dati[$i]['id'];
            $tabella_asservimento->get_titolo();
            $tabella_asservimento->tabella();
            $tabella_asserviti = new tabella_h("{$tabpath}/asservimenti_mappali");
            //$tabella_asserviti->set_titolo("Elenco dei mappali asserviti","modifica",array("mappali"=>"1"array("titolo"=>$titolo,"tab_new"=>$file_tab."_new","tab_edit"=>$file_tab."_edit")));
            $tabella_asserviti->set_titolo("Elenco dei mappali asserviti", "modifica", array("mappali" => 1, "asservimento" => $tabella_asservimento->array_dati[$i]['id']));
            $nrow = $tabella_asserviti->set_dati("pratica={$idpratica} and asservimento=" . $tabella_asservimento->array_dati[$i]['id']);
            $tabella_asserviti->get_titolo();
            if ($nrow) {
                $tabella_asserviti->elenco();
            } else {
                print "<p><b>Nessun mappale asservito</b></p>";
            }
        }
    }
    $tabella_asservimento->set_titolo("Nuovo Asservimento", "nuovo");
    $tabella_asservimento->get_titolo();
    if (!$nrec) {
        print "<p><b>Nessun asservimento</b></p>";
Esempio n. 10
0
			</TD>
			
		</TR>
	</TABLE>
<?php 
} else {
    //-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
    ?>
		<H2 class="blueBanner">Elenco Tariffe Oneri</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    unset($_SESSION["ADD_NEW"]);
    $tabella = new tabella_h("{$tabpath}/tariffe", "list");
    $nrec = $tabella->set_dati("true");
    $tabella->set_titolo("Tariffe Oneri", "nuovo", array("id" => ""));
    $tabella->get_titolo();
    $tabella->elenco();
    ?>
			<!-- fine contenuto-->
			 </TD>
	      </TR>
		</TABLE>
        <button id="btn_close" />
        <script>
            
        
       
            
Esempio n. 11
0
						<OPTION value="0">NO</OPTION>
					</SELECT>
				</td>
			</tr>
		</table>
		<HR>
		<table>
			<tr>
				<td width="20%"><input class="hexfield" type="button" name="azione" value="Chiudi" onclick="window.opener.focus();window.close();"></td>
				<td><input class="hexfield" type="submit" name="azione" value="Avanti >>>"></td>
			</tr>
		</table>
	</form>
	<?php 
} elseif ($modo == "view") {
    $tabella = new tabella_h("{$tabpath}/{$file_config}", $modo);
    $tabella->def_col[0][0] = "";
    $tabella->def_col[1][0] = "Nome del Modello";
    $tabella->def_col[0][1] = "modello";
    $tabella->def_col[1][1] = "nome";
    $tabella->def_col[0][2] = "5%";
    $tabella->def_col[1][2] = "95%";
    $tabella->def_col[0][3] = "info";
    $tabella->def_col[1][3] = "text";
    if ($handle = opendir(MODELLI_DIR)) {
        $i = 0;
        while (false !== ($file = readdir($handle))) {
            if ($file != "." && $file != "..") {
                if (count(explode(".", $file)) == 2) {
                    list($nome, $ext) = explode(".", $file);
                    if (strtolower($ext) == "html" or strtolower($ext) == "htm") {
Esempio n. 12
0
			}
			else{
				o.options[0]=new Option('Seleziona ====>','');			//Aggiungo il Primo elemento
				for(j=1;j<=arr.length;j++) o.options[j]=new Option(arr[j-1].name,arr[j-1].id);	//Aggiungo le altre opzioni
			}
		}
	}*/
</script>
</head>
<body  background="" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<?php 
if ($modo == "edit" or $modo == "new") {
    include_once "./lib/tabella_h.class.php";
    include_once "./lib/tabella_v.class.php";
    $tabellav = new tabella_v("{$tabpath}/zone_mappale", 'new');
    $tabellah = new tabella_h("{$tabpath}/zone_mappale", 'edit');
    $tabellav->set_errors($errors);
    if ($ar_particella[0]) {
        $sparticella = "Sezione " . $ar_particella[0] . " ";
        $sql = "sezione='" . $ar_particella[0] . "' and ";
    }
    $sparticella .= "Foglio " . $ar_particella[1] . " Mappale " . $ar_particella[2];
    $sql = "foglio='" . $ar_particella[1] . "' and mappale='" . $ar_particella[2] . "'";
    include "./inc/inc.page_header.php";
    ?>
<form method=post name="vincoli" id="vincoli" action="cdu.vincoli.php">
	<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="99%" align="center">		
		<TR> 
			<td> 
			<!-- intestazione-->
				<H2 class="blueBanner">Modifica elenco vincoli associati alla particella <?php 
Esempio n. 13
0
    echo $modo;
    ?>
">
</FORM>	
<?php 
} else {
    //-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
    ?>
		<H2 class="blueBanner">Elenco Fideiussioni</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    $tabella = new tabella_v("{$tabpath}/fidi");
    $tabella_svincoli = new tabella_h("{$tabpath}/svincoli", 'list');
    //$tabella->set_titolo("istituto","modifica",array("istituto"=>"","id"=>""));
    $tabella->set_dati("pratica={$idpratica}");
    for ($i = 0; $i < count($tabella->array_dati); $i++) {
        $tb = new tabella_v("{$tabpath}/fidi");
        $tb->set_titolo("istituto " . $tabella->array_dati[$i]["istituto"], "modifica", array("istituto" => "", "id" => $tabella->array_dati[$i]["id"]));
        $tb->get_titolo();
        $tb->set_dati($tabella->array_dati[$i]);
        $tb->tabella();
        $tabella_svincoli->set_titolo("Elenco degli svincoli", "nuovo", array("fido" => $tabella->array_dati[$i]["id"]));
        $tabella_svincoli->get_titolo("oneri.svincoli_fidi.php");
        $tabella_svincoli->set_dati("fido=" . $tabella->array_dati[$i]["id"]);
        $tabella_svincoli->elenco();
    }
    //$tabella->elenco();
    echo "<br>";
   


<?php 
} else {
    //-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA TUTTI DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
    ?>
   <TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">
	  <TR> 
			<TD> 
	  <!-- contenuto-->
		  <?php 
    //$sql="SELECT * FROM gd_vocglo order by gruppo,mnemonico";
    //$dbconn->sql_query($sql);
    //$ris=$dbconn->sql_fetchrowset();
    $tabella = new tabella_h("{$tabpath}/{$file_config}", 'list');
    $tabella->set_titolo("Elenco degli Campi");
    $tabella->get_titolo();
    $tabella->set_dati("true");
    //print_array($tabella);
    $tabella->elenco();
    ?>
	  <!-- fine contenuto-->
		 
		 </TD>
	  </TR>
  </TABLE>

   <button id="btn_close" />
   <script>
	  $('#btn_close').button({
Esempio n. 15
0
		<FORM method="post" action="praticaweb.php">	
			<tr>
				<td><input name="active_form" type="hidden" value="ce.iter.php">
				<input name="pratica" type="hidden" value="<?php 
    echo $idpratica;
    ?>
"></td>
				<INPUT type="hidden" name="comm" value="1">
				<td valign="bottom"><input name="azione" type="submit" class="hexfield" tabindex="14" value="Chiudi"></td>
			</tr>
		</FORM>		
		</TABLE>
	<?php 
} else {
    //-<<<<<<<<<<<<<<<<<<<<<< VISUALIZZA ITER >>>>>>>>>>>>>>>>>>>>>>>>>>>----------------------->
    $tabella = new tabella_h("{$tabpath}/iter");
    $titolo = "Iter della pratica";
    $nrec = $tabella->set_dati("pratica = {$idpratica}");
    ?>
			
		<H2 class="blueBanner">Iter della pratica</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    $tabella->set_titolo($titolo, "modifica");
    $tabella->get_titolo();
    if ($nrec) {
        $tabella->elenco();
    } else {
Esempio n. 16
0
} else {
    // modalit� vedi
    ?>


		<H2 class="blueBanner">Comunicazione Pratiche ad altri uffici</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		<?php 
    ?>
		  <tr> 
			<td> 
			<!--  intestazione-->
			<?php 
    $file_tab = "visione_pratiche";
    $titolo = "Visione delle Pratiche";
    $tabella = new tabella_h('pe/' . $file_tab, 'view');
    $tabella->set_titolo($titolo, "modifica", array("titolo" => $titolo, "tab_new" => $file_tab, "tab_edit" => $file_tab, "pratica" => $idpratica));
    $numrows = $tabella->set_dati("pratica={$idpratica}");
    $tabella->editable = true;
    $tabella->get_titolo();
    if ($numrows) {
        $tabella->elenco();
    } else {
        print "<p><b>Pratica non visionata</b></p>";
    }
    ?>
			<!-- fine intestazione-->
			<br>
			</td>
		  </tr>
		
Esempio n. 17
0
    echo $id;
    ?>
">
				<input name="pratica" type="hidden" value="<?php 
    echo $idpratica;
    ?>
">
				
		</FORM>
<?php 
} else {
    $idpratica = $_GET["pid"];
    if (!isset($idpratica)) {
        $idpratica = $_POST["pratica"];
    }
    $tabella = new tabella_h("sanzioni");
    ?>
		<!-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
		<H2 class="blueBanner">Provvedimenti</H2>
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">
	
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    $tabella->set_titolo(array($idpratica, "Sanzione", "modifica", "id_row"));
    $tabella->set_dati(",id_row from sanzioni where pratica={$idpratica} order by data_avvio;");
    $tabella->elenco();
    $conn = pg_connect("dbname=praticaweb user=Roberto") or die("non mi sono connesso");
    ?>
Esempio n. 18
0
<?php 
        include "./inc/inc.window.php";
        // contiene la gesione della finestra popup
    }
} elseif ($modo == "list") {
    ?>
<!-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA TUTTI DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
<body>
	<H2 class="blueBanner">Elenco degli stili di stampa</H2>
		
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">		
		  <TR> 
			<TD> 
			<!-- contenuto-->
				<?php 
    $tabella = new tabella_h($file_config, 'list');
    echo $file_config;
    $tabella->set_titolo("Elenco stili di stampa", "nuovo");
    $tabella->get_titolo();
    $nrec = $tabella->set_dati("true");
    $tabella->elenco();
    $tabella->close_db();
    ?>
				<form name="css_v" method="POST" action="stp.css.php">
					<input type="hidden" name="mode" value="<?php 
    echo $modo;
    ?>
">
					
					<input type="hidden" name="id" value="<?php 
    echo $id;
		<tr>
			<td colspan="2">
				<input class="hexfield" type="button" value="Annulla" onclick="window.opener.focus();window.close();">
				<input class="hexfield" type="submit" name="azione" value="Cerca" onclick="if (numero.value.length>0) return true; else{alert('Inserire un n° di pratica');return false;}">
			</td>
		</tr>
		
	</table>
	</form>
	
<?php 
} else {
    include_once "./lib/tabella_h.class.php";
    $tabella_v = new tabella_v("pe/eliminapratica_info_amb.tab");
    $tabella_ubi = new tabella_h("pe/eliminapratica_ubi.tab");
    $tabella_richied = new tabella_h("pe/eliminapratica_richied.tab");
    $tabella_v->set_titolo("Dati Pratica");
    $tabella_ubi->set_titolo("Ubicazione");
    $tabella_richied->set_titolo("Richiedenti");
    $numrows = $tabella_v->set_dati("numero='" . $_POST["numero"] . "'");
    $pratica = $tabella_v->array_dati[0]["pratica"];
    $numrows_u = $tabella_ubi->set_dati("pratica=" . $pratica . "");
    $numrows_r = $tabella_richied->set_dati("pratica=" . $pratica . " and richiedente=1");
    ?>

	<form action="pe.eliminapratica_amb.php" method="POST" name="main">
	<table width="70%">
		<tr> 
			<td colspan="2"> 
			<!-- intestazione-->
				<H2 class="blueBanner">Procedura di Eliminazione delle Pratiche Edilizie</H2>
Esempio n. 20
0
   <!--<form name="invia" method="POST">
	  <input type="hidden" name="mode" value="list">
   <input type="submit" id="btn_close" style="margin-left:20px;" value="Chiudi"></div>-->
   


<?php 
} else {
    //-- <<<<<<<<<<<<<<<<<<<<<   MODALITA' FORM IN VISTA TUTTI DATI  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
    ?>
   <TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="100%">
	  <TR> 
			<TD> 
	  <!-- contenuto-->
		  <?php 
    $tabella = new tabella_h("{$tabpath}/{$file_config}", 'list');
    $tabella->set_titolo("Elenco degli Utenti", "nuovo", array("id" => ""));
    $tabella->get_titolo();
    $tabella->set_dati("true");
    //print_array($tabella);
    $tabella->elenco();
    ?>
	  <!-- fine contenuto-->
		 
		 </TD>
	  </TR>
  </TABLE>

   <button id="btn_close" />
   <script>
	  $('#btn_close').button({
<html>
<head>
<title>Provvedimento - <?php 
echo $titolo;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<SCRIPT language="javascript" src="js/LoadLibs.js" type="text/javascript"></SCRIPT>
</head>
<body>
<?php 
$tipo = array("sanzione" => "Sanzione Amministrativa", "sospensione" => "Ordinanza di sospensione lavori", "demolizione" => "Ordinanza di demolizione");
$idtipo = $_POST["tipo"];
//if ($_POST["mode"]=="new"){
$tabella = new tabella_h($idtipo, 'new');
include "./inc/inc.page_header.php";
?>
	
		<!-- <<<<<<<<<<<<<<<<<<<<<   NUOVO PROVVEDIMENTO  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
		<TABLE cellPadding=0  cellspacing=0 border=0 class="stiletabella" width="99%" align="center">		
		<FORM id="" name="" method="post" action="praticaweb.php">		  
		  <tr> 
			<td> 
			<!-- intestazione-->
				<H2 class="blueBanner"><?php 
echo "Inserisci Nuova " . $tipo[$idtipo];
?>
</H2>
			<!-- fine intestazione-->
			</td>
            $tabellah->elenco();
        }
    }
    ?>

			<!-- fine contenuto-->
			 </TD>
	      </TR>
				<!-- se c'e qualche record aggiungo la gestione delle notifiche-->

		  <TR> 
			<TD> 
			<!-- tabella nuovo inserimento-->
				<?php 
    if (!isset($tabellah)) {
        $tabellah = new tabella_h("{$tabpath}/notifiche");
    }
    $tabellah->set_titolo("Aggiungi nuovo Provvedimento ---> clicca su Nuovo", "nuovo", array("mode" => "tmp_new"));
    print $tabellah->get_titolo();
    ?>
<BR>
			<!-- fine tabella nuovo inserimento-->
			</TD>
		  </TR>			  
		</TABLE>
<?php 
}
?>

</body>
</html>