Файловый менеджер - Редактировать - C:/xampp/htdocs/backoffice/modificar_noticies.php
Назад
<?php session_start(); // Incluyo las funciones basicas include "../files/config.php"; include "../files/funciones.php"; // Incluyo funciones espcifica de esta web // Arranque BBDD $link = conectar(); $tabla = "web_noticies"; // Taula a insertar o modificar de la BBDD $sufix = "noticies"; // Per directoris i fitxers $element = "la noticia"; // Per treure missatges a pantalla $elementtxt = "noticia"; // Singular sense article $elementBBDD ="tituloCA"; // Per treure missatges a pantalla $calperBBDD = "un TÍTOL en Català"; // Text per indicar que cal per actualitzar BBDD $titolseccio = "Modificar Noticia"; // Titol de la pgina ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php // HEAD + javascripts ?> <?php include "head.php"; ?> <body> <?php // Cabecera de la web ?> <table align="center" cellpadding="0" cellspacing="1" border="0" bgcolor="#D1D1D1"> <tr> <td> <?php include "cabecera.php"; ?> <table width="950" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF"> <tr class="data"> <td height="15" class="bg_colorback"></td> <td height="15" class="bg_colorback"><p class="textblancBold"><?php echo $titolseccio; ?></p></td> <td height="15" class="bg_colorback"></td> </tr> <tr> <td width="15"></td> <td height="300" valign="top" class="text"> <!-- --> <?php // Acciones de Formulario $id = $_GET["id"]; if (isset($_POST["DELFITXER"])) { $sql = "UPDATE ".$tabla." SET fitxer='' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut modificar.</p>"); unlink ("../arxiu/".$_POST["fitxervell"]); ?> <p class="text_alertaok"><img src="img/s_ok.gif" width="22" height="20" /> El Fitxer de <?php echo $element;?> <? echo $_POST[$elementBBDD]; ?> ha sigut eliminat amb èxit.</p> <?php } if (isset($_POST["DELFITXER2"])) { $sql = "UPDATE ".$tabla." SET fitxer2='' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut modificar.</p>"); unlink ("../arxiu/".$_POST["fitxervell2"]); ?> <p class="text_alertaok"><img src="img/s_ok.gif" width="22" height="20" /> El Fitxer de <?php echo $element;?> <? echo $_POST[$elementBBDD]; ?> ha sigut eliminat amb èxit.</p> <?php } if (isset($_POST["DELFITXER3"])) { $sql = "UPDATE ".$tabla." SET fitxer3='' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut modificar.</p>"); unlink ("../arxiu/".$_POST["fitxervell3"]); ?> <p class="text_alertaok"><img src="img/s_ok.gif" width="22" height="20" /> El Fitxer de <?php echo $element;?> <? echo $_POST[$elementBBDD]; ?> ha sigut eliminat amb èxit.</p> <?php } if (isset($_POST["DELFITXER4"])) { $sql = "UPDATE ".$tabla." SET fitxer4='' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut modificar.</p>"); unlink ("../arxiu/".$_POST["fitxervell4"]); ?> <p class="text_alertaok"><img src="img/s_ok.gif" width="22" height="20" /> El Fitxer de <?php echo $element;?> <? echo $_POST[$elementBBDD]; ?> ha sigut eliminat amb èxit.</p> <?php } if (isset($_POST["DELFOTO"])) { $sql = "UPDATE ".$tabla." SET foto='' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> La Fotografia de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut modificar.</p>"); unlink ("../images/".$sufix."/".$_POST["fotovell"]); ?> <p class="text_alertaok"><img src="img/s_ok.gif" width="22" height="20" /> La Fotografia de <?php echo $element;?> <? echo $_POST[$elementBBDD]; ?> ha sigut eliminada amb èxit.</p> <?php } if (isset($_POST["MODIFICAR"])) { if ($_POST[$elementBBDD]!="") { $Data = explode("-",$_POST["dataalta"]); $CadData = sprintf ("%04d-%02d-%02d",$Data[2],$Data[1],$Data[0]) ; $sql = "UPDATE ".$tabla." SET dataalta='".$CadData."',tituloCA='".$_POST["tituloCA"]."',textoCA='".$_POST["textoCA"]."', tituloES='".$_POST["tituloES"]."',textoES='".$_POST["textoES"]."', _status='".$_POST["_status"]."',link='".$_POST["link"]."' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> ".ucfirst($element)." ".$_POST[$elementBBDD]." no s'ha pogut modificar.</p>"); $last_id = mysql_insert_id($link); // FOTO //compruebo si las caractersticas del archivo son las que deseo if ($_FILES [ 'foto' ][ 'name' ]!= "") // Si hay fichero preparo la cadena con el fichero nuevo { if (!(strpos($_FILES [ 'foto' ][ 'type' ], "jpeg"))) { ?> <p class="text_alerta">La fotografia ha de ser un fitxer .JPG. No s'ha pogut guardar l'imatge, però si <?php echo $element; ?>.</p> <?php } else // Hay fichero y es valido. Es un JPG. { $fichero_foto = sprintf("../images/".$sufix."/%05d_foto_".$sufix.".jpg",$_POST["id"]); $ficherosolo_foto = sprintf("%05d_foto_".$sufix.".jpg",$_POST["id"]); //echo $fichero_foto; if (copy($_FILES [ 'foto' ][ 'tmp_name' ], $fichero_foto)) // Fichero copiado ready { //echo "<p class=\"data\">La fotografia ha sido guardada correctamente.</p>\n"; // $filename_corto,$Sdirectory,$Ddirectory,$Swidth $sql = "UPDATE ".$tabla." SET foto ='".$ficherosolo_foto."' WHERE id = '".$_POST["id"]."' LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\">No s'ha pogut modificar ".$element." correctament amb el nom del fitxer de la imatge.</p>"); //echo "<p class=\"data\">La noticia ha sido actualizada con la fotografia correctamente.</p>\n"; } else { ?> <p class="text_alerta">No s'ha pogut guardar la fotografia. Problema al servidor.</p> <?php } } } if ($_FILES [ 'fitxer' ][ 'name' ]) { $fitxer = $_FILES [ 'fitxer' ][ 'name' ]; $fitxer = str_replace("'","",$fitxer); $fitxer = str_replace('"',"",$fitxer); $fitxer = str_replace("\'","",$fitxer); $fitxer = str_replace('\"',"",$fitxer); $fitxer = str_replace('\\',"",$fitxer); $fitxer = str_replace('/',"",$fitxer); $fitxer = str_replace(' ',"_",$fitxer); $fitxer = str_replace('*',"",$fitxer); $fitxer = str_replace('$',"",$fitxer); $fitxer = str_replace('&',"",$fitxer); $fitxer = str_replace('%',"",$fitxer); $fitxer = str_replace('?',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('!',"",$fitxer); $fitxer = str_replace('#',"",$fitxer); $fitxer = str_replace('|',"",$fitxer); $fitxer = str_replace('<',"",$fitxer); $fitxer = str_replace('>',"",$fitxer); $fitxer = elimina_acentos($fitxer); //echo $_FILES [ 'fitxer' ]['tmp_name']; die(); copy($_FILES [ 'fitxer' ][ 'tmp_name' ],'../arxiu/'.$fitxer); $sql = "UPDATE ".$tabla." SET fitxer='".$fitxer."' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut adjuntar.</p>"); } if ($_FILES [ 'fitxer2' ][ 'name' ]) { $fitxer = $_FILES [ 'fitxer2' ][ 'name' ]; $fitxer = str_replace("'","",$fitxer); $fitxer = str_replace('"',"",$fitxer); $fitxer = str_replace("\'","",$fitxer); $fitxer = str_replace('\"',"",$fitxer); $fitxer = str_replace('\\',"",$fitxer); $fitxer = str_replace('/',"",$fitxer); $fitxer = str_replace(' ',"_",$fitxer); $fitxer = str_replace('*',"",$fitxer); $fitxer = str_replace('$',"",$fitxer); $fitxer = str_replace('&',"",$fitxer); $fitxer = str_replace('%',"",$fitxer); $fitxer = str_replace('?',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('!',"",$fitxer); $fitxer = str_replace('#',"",$fitxer); $fitxer = str_replace('|',"",$fitxer); $fitxer = str_replace('<',"",$fitxer); $fitxer = str_replace('>',"",$fitxer); $fitxer = elimina_acentos($fitxer); //echo $_FILES [ 'fitxer' ]['tmp_name']; die(); copy($_FILES [ 'fitxer2' ][ 'tmp_name' ],'../arxiu/'.$fitxer); $sql = "UPDATE ".$tabla." SET fitxer2='".$fitxer."' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut adjuntar.</p>"); } if ($_FILES [ 'fitxer3' ][ 'name' ]) { $fitxer = $_FILES [ 'fitxer3' ][ 'name' ]; $fitxer = str_replace("'","",$fitxer); $fitxer = str_replace('"',"",$fitxer); $fitxer = str_replace("\'","",$fitxer); $fitxer = str_replace('\"',"",$fitxer); $fitxer = str_replace('\\',"",$fitxer); $fitxer = str_replace('/',"",$fitxer); $fitxer = str_replace(' ',"_",$fitxer); $fitxer = str_replace('*',"",$fitxer); $fitxer = str_replace('$',"",$fitxer); $fitxer = str_replace('&',"",$fitxer); $fitxer = str_replace('%',"",$fitxer); $fitxer = str_replace('?',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('!',"",$fitxer); $fitxer = str_replace('#',"",$fitxer); $fitxer = str_replace('|',"",$fitxer); $fitxer = str_replace('<',"",$fitxer); $fitxer = str_replace('>',"",$fitxer); $fitxer = elimina_acentos($fitxer); //echo $_FILES [ 'fitxer' ]['tmp_name']; die(); copy($_FILES [ 'fitxer3' ][ 'tmp_name' ],'../arxiu/'.$fitxer); $sql = "UPDATE ".$tabla." SET fitxer3='".$fitxer."' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut adjuntar.</p>"); } if ($_FILES [ 'fitxer4' ][ 'name' ]) { $fitxer = $_FILES [ 'fitxer4' ][ 'name' ]; $fitxer = str_replace("'","",$fitxer); $fitxer = str_replace('"',"",$fitxer); $fitxer = str_replace("\'","",$fitxer); $fitxer = str_replace('\"',"",$fitxer); $fitxer = str_replace('\\',"",$fitxer); $fitxer = str_replace('/',"",$fitxer); $fitxer = str_replace(' ',"_",$fitxer); $fitxer = str_replace('*',"",$fitxer); $fitxer = str_replace('$',"",$fitxer); $fitxer = str_replace('&',"",$fitxer); $fitxer = str_replace('%',"",$fitxer); $fitxer = str_replace('?',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('',"",$fitxer); $fitxer = str_replace('!',"",$fitxer); $fitxer = str_replace('#',"",$fitxer); $fitxer = str_replace('|',"",$fitxer); $fitxer = str_replace('<',"",$fitxer); $fitxer = str_replace('>',"",$fitxer); $fitxer = elimina_acentos($fitxer); //echo $_FILES [ 'fitxer' ]['tmp_name']; die(); copy($_FILES [ 'fitxer4' ][ 'tmp_name' ],'../arxiu/'.$fitxer); $sql = "UPDATE ".$tabla." SET fitxer4='".$fitxer."' WHERE id=".$_POST["id"]." LIMIT 1"; $result = mysql_query ($sql) or die("<p class=\"text_alerta\"><img src=\"img/s_error.gif\" width=\"22\" height=\"20\" /> El Fitxer de ".$element." ".$_POST[$elementBBDD]." no s'ha pogut adjuntar.</p>"); } ?> <p class="text_alertaok"><img src="img/s_ok.gif" width="22" height="20" /> <? echo ucfirst($element)." ".$_POST[$elementBBDD]; ?> s'ha modificat amb èxit.</p> <?php } else { ?> <p class="text_alerta">CAL al menys <?php echo $calperBBDD; ?> per poder donar d'alta <?php echo $element; ?>.</p> <?php } ?> <?php unset ($_POST["MODIFICAR"]); } ?> <?php $sql = "SELECT * FROM ".$tabla." WHERE id=".$id." LIMIT 1"; //echo $sql."<br />"; $result = mysql_query($sql) or die("No ha sido posible realizar la consulta"); $line = mysql_fetch_array($result, MYSQL_ASSOC); ?> <form method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data"> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td colspan="2" valign="top"> </td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold">Data</td> <td width="12" valign="top"> </td> <td colspan="2" valign="top"><?php $Data = explode("-",$line["dataalta"]); $CadDatatxt = sprintf ("%02d-%02d-%04d",$Data[2],$Data[1],$Data[0]) ; ?> <input name="dataalta" type="text" class="form_input" id="dataalta" value="<?php echo $CadDatatxt; ?>" size="20" maxlength="10" /> <input name="id" type="hidden" value="<?php echo $id; ?>" /> <br /> <span class="data_p">* Format DD-MM-AAAA</span> </td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td colspan="2" valign="top"> </td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top">Català</td> <td valign="top">Castell</td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"> </td> <td valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold">Nom</td> <td width="12" valign="top"> </td> <td valign="top"><input name="tituloCA" type="text" class="form_input" id="tituloCA" value="<?php echo htmlspecialchars($line["tituloCA"]); ?>" size="64" maxlength="250" /></td> <td valign="top"><input name="tituloES" type="text" class="form_input" id="tituloES" value="<?php echo htmlspecialchars($line["tituloES"]); ?>" size="64" maxlength="250" /></td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td valign="top"> </td> <td width="12" valign="top"> </td> </tr> <!-- <tr> <td valign="top" class="text_black_bold">Categoria</td> <td width="12" valign="top"> </td> <td valign="top"> <select name="categoria" class="form_input"> <?php /* $a = mysql_query("SELECT * FROM web_categories ORDER BY nom_categoria ASC"); while($ar_a = mysql_fetch_array($a)){ echo "<option value='".$ar_a['id_categoria']."' "; if($line["categoria"] == $ar_a['id_categoria']){ echo " selected='selected' "; } echo ">".$ar_a['nom_categoria']."</option>"; } */ ?> </select> </td> <td valign="top"></td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td valign="top"> </td> <td width="12" valign="top"> </td> </tr> --> <tr> <td valign="top" class="text_black_bold">Descripció</td> <td width="12" valign="top"> </td> <td valign="top"><textarea name="textoCA" cols="60" rows="20" class="form_input" id="textoCA"><?php echo $line["textoCA"]; ?></textarea></td> <td valign="top"><textarea name="textoES" cols="60" rows="20" class="form_input" id="textoES"><?php echo $line["textoES"]; ?></textarea></td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td valign="top"> </td> <td width="12" valign="top"> </td> </tr> <tr> <td align="left" valign="top" class="text_black_bold">Imatge</td> <td valign="top"> </td> <td valign="top"><input name="foto" type="file" class="form_fichero" id="foto" size="50" /> <br /> *Fitxers JPG - Amplada màx. 450 pixels.</td> <td align="center" valign="top"><?php if ($line["foto"]!="") { ?> <img src="../images/<?php echo $sufix; ?>/<?php echo $line["foto"]; ?>" width="210" /> <br /> <br /> <input name="DELFOTO" type="submit" class="form_submit" id="DELFOTO" value="Eliminar" /> <input name="fotovell" type="hidden" id="fotovell" value="<?php echo $line["foto"]; ?>" /> <?php } ?></td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold">Fitxer Adjunt</td> <td valign="top"> </td> <td valign="top"><input name="fitxer" type="file" class="form_fichero" id="fitxer" size="50" /> <?php if ($line["fitxer"]!="") { ?> <p> Fitxer Actual: <?php echo $line["fitxer"]; ?></p> <p> <input name="DELFITXER" type="submit" class="form_submit" id="DELFITXER" value="Eliminar Fitxer de <?php echo $element; ?>" /> <input name="fitxervell" type="hidden" id="fitxervell" value="<?php echo $line["fitxer"]; ?>" /> </p> <?php } else { ?> <p> Actualment no hi ha Fitxer asociat.</p> <?php } ?> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold">Fitxer Adjunt 2</td> <td valign="top"> </td> <td valign="top"><input name="fitxer2" type="file" class="form_fichero" id="fitxer2" size="50" /> <?php if ($line["fitxer2"]!="") { ?> <p> Fitxer Actual: <?php echo $line["fitxer2"]; ?></p> <p> <input name="DELFITXER2" type="submit" class="form_submit" id="DELFITXER2" value="Eliminar Fitxer de <?php echo $element; ?>" /> <input name="fitxervell2" type="hidden" id="fitxervell2" value="<?php echo $line["fitxer2"]; ?>" /> </p> <?php } else { ?> <p> Actualment no hi ha Fitxer asociat.</p> <?php } ?> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold">Fitxer Adjunt 3</td> <td valign="top"> </td> <td valign="top"><input name="fitxer3" type="file" class="form_fichero" id="fitxer3" size="50" /> <?php if ($line["fitxer3"]!="") { ?> <p> Fitxer Actual: <?php echo $line["fitxer3"]; ?></p> <p> <input name="DELFITXER3" type="submit" class="form_submit" id="DELFITXER3" value="Eliminar Fitxer de <?php echo $element; ?>" /> <input name="fitxervell3" type="hidden" id="fitxervell3" value="<?php echo $line["fitxer3"]; ?>" /> </p> <?php } else { ?> <p> Actualment no hi ha Fitxer asociat.</p> <?php } ?> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td width="12" valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold">Fitxer Adjunt 4</td> <td valign="top"> </td> <td valign="top"><input name="fitxer4" type="file" class="form_fichero" id="fitxer4" size="50" /> <?php if ($line["fitxer4"]!="") { ?> <p> Fitxer Actual: <?php echo $line["fitxer4"]; ?></p> <p> <input name="DELFITXER4" type="submit" class="form_submit" id="DELFITXER4" value="Eliminar Fitxer de <?php echo $element; ?>" /> <input name="fitxervell4" type="hidden" id="fitxervell4" value="<?php echo $line["fitxer4"]; ?>" /> </p> <?php } else { ?> <p> Actualment no hi ha Fitxer asociat.</p> <?php } ?> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td width="12" valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td width="12" valign="top"> </td> </tr> <!-- <tr> <td valign="top" class="text_black_bold">Enllaç</td> <td valign="top"> </td> <td valign="top"><input name="link" type="text" class="form_input" id="link" value="<?php //echo $line["link"] ?>" size="64" maxlength="250" /></td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> --> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"><input name="_status" type="checkbox" id="_status" value="1" <?php if ($line["_status"]) echo "checked=\"checked\""; ?>> <?php echo ucfirst($elementtxt); ?> visible</td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <!-- <tr> <td align="center" valign="middle" class="text_black_bold"><img src="img/destacat.gif" width="16" height="16" /></td> <td valign="top"> </td> <td valign="top"><input name="_destacat" type="checkbox" id="_destacat" value="1" <?php //if ($line["_destacat"]) echo "checked=\"checked\""; ?> /> <?php //echo ucfirst($elementtxt); ?> destacada a portada</td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"> </td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> --> <tr> <td valign="top" class="text_black_bold"> </td> <td valign="top"> </td> <td valign="top"><input name="MODIFICAR" type="submit" class="form_submit" id="MODIFICAR" value="Modificar" /></td> <td align="center" valign="top"> </td> <td valign="top"> </td> </tr> <tr> <td valign="top" class="text_blue_bold"> </td> <td width="12" valign="top"> </td> <td colspan="2" valign="top"> </td> <td width="12" valign="top"> </td> </tr> </table> </form> </td> <td width="15"></td> </tr> <tr> <td height="15" colspan="3"></td> </tr> </table> </td> </tr> </table> <?php // Texto final y cierres de BBDD ?> <?php include "pie.php"; ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 5.3.8 | Генерация страницы: 0.37 |
proxy
|
phpinfo
|
Настройка