Ejemplo n.º 1
0
print html_entity_decode(str_replace("<br />", "", $descrizione_ted));
?>
</textarea></td>
			    </tr>
             </table>
		 </div>
		<?php 
if (isset($_GET["id"]) and $_GET["id"] != "") {
    ?>
		 <div id="tabs-6">
            <table width="100%" border="0" cellspacing="2" cellpadding="2" class="testo tblimg">
                <?php 
    $campiTbl = dimmi_campi_tabella("pr_prodotti");
    $arrayCampi = explode(":", $campiTbl);
    foreach ($arrayCampi as $campoTbl) {
        $idT = dimmi_id_tabella("pr_prodotti", $campoTbl);
        $cartellaUploadFile = dimmi_cartella_upload($idT);
        $percorsoFile = "../" . UPLOAD_FILE . "/" . $cartellaUploadFile . "/";
        print scrivi_campi_dett($idT, $id, $percorsoFile, "tblimg");
    }
    ?>
			</table>        

		 </div>
		<?php 
}
?>
	 
	 
	 </div>
		
Ejemplo n.º 2
0
				<tr>
                  <td width="131" class="backscuro">Home</td>
                  <td width="655" class="backchiaro"><input type="checkbox" name="home" class="input" value="t" <?php 
if ($home == "t") {
    print " checked";
}
?>
></td>
                </tr>
                
				<?php 
if (isset($_GET["id"]) and $_GET["id"] != "") {
    $campiTbl = dimmi_campi_tabella("news");
    $arrayCampi = explode(":", $campiTbl);
    foreach ($arrayCampi as $campoTbl) {
        $idT = dimmi_id_tabella("news", $campoTbl);
        $cartellaUploadFile = dimmi_cartella_upload($idT);
        $percorsoFile = "../" . UPLOAD_FILE . "/" . $cartellaUploadFile . "/";
        print scrivi_campi_dett($idT, $id, $percorsoFile, "tblimg");
    }
}
?>
                
			</table>
		 </div>
		 <div id="tabs-2">
			  <table width="100%" border="0" cellspacing="2" cellpadding="2" class="testo">
				<tr>
                  <td width="131" class="backscuro">Titolo*</td>
                  <td width="655" class="backchiaro"><input type="text" name="titolo" class="input" size="50" value="<?php 
print $titolo;
Ejemplo n.º 3
0
function cancella_file_tabella($nomeTbl, $id)
{
    $campiTbl = dimmi_campi_tabella($nomeTbl);
    $arrayCampi = explode(":", $campiTbl);
    foreach ($arrayCampi as $campoTbl) {
        $idTabellaFile = dimmi_id_tabella($nomeTbl, $campoTbl);
        $cartella_upload = dimmi_cartella_upload($idTabellaFile);
        $percorsoFile = "../" . UPLOAD_FILE . "/" . $cartella_upload . "/";
        //si devono controllare i file, se sono da cancellare dal file system oppure no
        $queryFile = "select * from file where (fk_tabella = " . $idTabellaFile . ") and fk_record = " . $id;
        $resFile = makequery($queryFile);
        while ($arrFile = makefetch($resFile)) {
            if ($arrFile["tipoF"] == "file") {
                elimina_unico($arrFile["file"], $idTabellaFile, $percorsoFile, $arrFile["idF"], $arrFile["tipoF"]);
            } else {
                $arrayFile = explode(":", $arrFile["file"]);
                elimina_unicoMd5($arrayFile[1], $idTabellaFile, $percorsoFile, $arrFile["idF"], $arrFile["tipoF"]);
            }
        }
        //faccio pulizia nella tbl file
        $queryDel = "delete from file where (fk_tabella = " . $idTabellaFile . ") and fk_record = " . $id;
        makequery($queryDel);
    }
}
print $sottocategoria_ted;
?>
" /></td>
			    </tr>
             </table>
		 </div>
		<?php 
if (isset($_GET["id"]) and $_GET["id"] != "") {
    ?>
		 <div id="tabs-5">
            <table width="100%" border="0" cellspacing="2" cellpadding="2" class="testo tblimg">
                <?php 
    $campiTbl = dimmi_campi_tabella("pr_sottocategoria");
    $arrayCampi = explode(":", $campiTbl);
    foreach ($arrayCampi as $campoTbl) {
        $idT = dimmi_id_tabella("pr_sottocategoria", $campoTbl);
        $cartellaUploadFile = dimmi_cartella_upload($idT);
        $percorsoFile = "../" . UPLOAD_FILE . "/" . $cartellaUploadFile . "/";
        print scrivi_campi_dett($idT, $id, $percorsoFile, "tblimg");
    }
    ?>
			</table>        

		 </div>
		<?php 
}
?>
	 
	 
	 </div>
		
Ejemplo n.º 5
0
                </tr>
				<tr>
                  <td width="131" class="backscuro">Prodotti</td>
                  <td width="655" class="backchiaro"><input type="checkbox" name="prodotti" class="input" value="t" <?php 
if ($prodotti == "t") {
    print " checked";
}
?>
></td>
                </tr>
				<?php 
if (isset($_GET["id"]) and $_GET["id"] != "") {
    $campiTbl = dimmi_campi_tabella("foto");
    $arrayCampi = explode(":", $campiTbl);
    foreach ($arrayCampi as $campoTbl) {
        $idT = dimmi_id_tabella("foto", $campoTbl);
        $cartellaUploadFile = dimmi_cartella_upload($idT);
        $percorsoFile = "../" . UPLOAD_FILE . "/" . $cartellaUploadFile . "/";
        print scrivi_campi_dett($idT, $id, $percorsoFile, "tblimg");
    }
}
?>
                
			</table>
		 </div>
		 <div id="tabs-2">
			  <table width="100%" border="0" cellspacing="2" cellpadding="2" class="testo">
				<tr>
                  <td width="131" class="backscuro">Titolo*</td>
                  <td width="655" class="backchiaro"><input type="text" name="titolo" class="input" size="50" value="<?php 
print $titolo;
Ejemplo n.º 6
0
print $nome_ted;
?>
" /></td>
			    </tr>
             </table>
		 </div>
		<?php 
if (isset($_GET["id"]) and $_GET["id"] != "") {
    ?>
		 <div id="tabs-4">
            <table width="100%" border="0" cellspacing="2" cellpadding="2" class="testo tblimg">
                <?php 
    $campiTbl = dimmi_campi_tabella("pr_classe_merceologica");
    $arrayCampi = explode(":", $campiTbl);
    foreach ($arrayCampi as $campoTbl) {
        $idT = dimmi_id_tabella("pr_classe_merceologica", $campoTbl);
        $cartellaUploadFile = dimmi_cartella_upload($idT);
        $percorsoFile = "../" . UPLOAD_FILE . "/" . $cartellaUploadFile . "/";
        print scrivi_campi_dett($idT, $id, $percorsoFile, "tblimg");
    }
    ?>
			</table>        

		 </div>
		<?php 
}
?>
	 
	 
	 </div>