/web/htdocs/www.euroroma.net/home/admin/notiziebrevi/mod.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<? session_start();

if(!
array_key_exists('user'$_SESSION))
{
    
header("Location: index.php");
    exit;

?>
<?  
//Configura le variabili
    
include("../setConn.php");
    include(
"../class_utility.php");
    
$special = new class_utility();
    
$namedb "Sql603025_1";
    if (
$db == FALSE)
        die (
"Errore nella connessione.");
    
$sql "SELECT * FROM notiziebrevi WHERE ID=".$_GET['ID'];
    
$result mysql_db_query($namedb$sql$db);
    while(
$results mysql_fetch_array($result))
    {
        
$rubrica $special->specialChars($results["Rubrica"]);
        
$autore $special->specialChars($results["Autore"]);
        
$stato $special->specialChars($results["Stato"]);
        
$titolo $special->specialChars($results["Titolo"]);
        
$sottotitolo $special->specialChars($results["Sottotitolo"]);
        
$testo $special->specialChars($results["Testo"]);
        
$url $special->specialChars($results["URLimg"]);
        
$data $special->specialChars($results["Data_e_ora"]);
        
$video $results["Video"];
        
$tags $results["Tags"];
        
$speciale $results["ID_speciale"];
        
$ID_photogallery $results["ID_photogallery"];
    }

    
$rubrica str_replace("\"""&quot;"$rubrica);
    
$autore str_replace("\"""&quot;"$autore);
    
$titolo str_replace("\"""&quot;"$titolo);
    
$sottotitolo str_replace("\"""&quot;"$sottotitolo);
    
$tags str_replace("\"""&quot;"$tags);
    
    
mysql_close($db);

?>
<html>
<head>


<? include("../jstextarea.php"); ?>

<link rel="stylesheet" href="../style.css" type="text/css" media="screen" />

<title></title>

</head>
<body>
<div id="container">
    
    <div id="content">
        <FORM enctype="multipart/form-data" method="POST" action='mod2.php'>
            <INPUT TYPE="hidden" name="ID" value="<?echo $_GET['ID'];?>">
            <INPUT TYPE="hidden" name="nomecat" value="<?echo $_GET['nomecat'];?>">
            <INPUT TYPE="hidden" name="rubrica" value="<?echo $rubrica;?>">
            <INPUT TYPE="hidden" name="data" value="<?echo $data;?>">
            <INPUT TYPE="hidden" name="url" value="<?echo $url;?>">
        <TABLE width="100%" border="0">
        <TR>
            <TD valign="top">
                <TABLE>
                <TR>
                    <td height="50"><H1><? echo str_replace("_"" "$_GET['nomecat']); ?></H1></td>
                </TR>
                </TABLE>
            </TD>
        </TR>
        
        <TR>
            <TD width="200"><B>Titolo</B>:</TD>
            <TD valign="top">
                <INPUT TYPE="text" NAME="titolo" size="80" maxlength="500" class="modulo"  value="<? echo $titolo?>">
            </TD>
        </TR>

        
        <TR>
            <TD width="200"><B>Testo</B>:</TD>
            <TD valign="top">
                <TEXTAREA id="testo" NAME="testo" ROWS="15" COLS="100" class="modulo"><? echo $testo?></TEXTAREA>
            </TD>
        </TR>

        
        

            <TR>
                <TD width="100%" height="50" colspan="2"><HR></TD>
            </TR>

        <TR>
            <TD><INPUT TYPE="submit" value="Modifica" class="modulo"></TD>
        </TR>
        </TABLE>
        </FORM>        
    </div>
</div>
</body>
</html>