PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/areariservata/insert_datirss.php

https://code.google.com/p/bilugcms/
PHP | 82 lines | 55 code | 8 blank | 19 comment | 4 complexity | 787dc56e1921de1a1f0159f499764004 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <? /* license
  2. BilugCMS (http://www.bilug.it) - Content Management System for dynamic web sites
  3. Copyright (C) 2005-2008 Federico Villa and Alessio Loro Piana
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 2 of the License.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. For reference, contact bilugcms@vilnet.it
  14. license */ ?>
  15. <?
  16. $parola=Modifica;
  17. $errore=null;
  18. $errore=$_GET["errore"];
  19. $tipoerr=$_GET["tipoerr"];
  20. if($errore=="si")
  21. {
  22. echo "<h1><img src=\"./img/alert.png\" class=\"ico\" />$tipoerr<img src=\"./img/alert.png\" class=\"ico\" /></h1>";
  23. }
  24. $str=" SELECT ID,titolo,descrizione,copyright,image,vimage FROM datirss ";
  25. $risultato=mysql_query($str);
  26. if (mysql_num_rows($risultato)>0)
  27. {
  28. $control=mysql_fetch_row($risultato);
  29. }
  30. ?>
  31. <div class="contenitore">
  32. <form name="statiche" method="post" action="insert_datirss_query.php" enctype="multipart/form-data">
  33. <input type="hidden" name="id" value="<?=$control[0]?>"/>
  34. <!-- il valore di id lo passiamo alla pagina di action con un campo nascosto -->
  35. <h3><?=$parola?> Modulo:</h3>
  36. <div class="azzerafloat"></div>
  37. <div class="float140">Titolo:</div>
  38. <div class="float500">
  39. <input type="text" name="titolo" size="95" maxlength="200" tabindex="1" value="<?=$control[1]?>"/>
  40. </div>
  41. <div class="azzerafloat"></div>
  42. <div class="float140">Descrizione:</div>
  43. <div class="float500">
  44. <input type="text" name="descrizione" size="95" maxlength="200" tabindex="1" value="<?=$control[2]?>"/>
  45. </div>
  46. <div class="azzerafloat"></div>
  47. <div class="float140">Copyright:</div>
  48. <div class="float500">
  49. <input type="text" name="copyright" size="95" maxlength="200" tabindex="1" value="<?=$control[3]?>"/>
  50. </div>
  51. <div class="azzerafloat"></div>
  52. <div class="float140">Immagine:</div>
  53. <div class="float500">
  54. <input type="text" name="image" size="95" maxlength="200" tabindex="1" value="<?=$control[4]?>"/>
  55. </div>
  56. <div class="azzerafloat"></div>
  57. <div class="float200">
  58. </div>
  59. <div class="float500">
  60. <input type="radio" class="little" name="vimage" value="si" <? if ($control[5]=="si") echo "checked "; ?> tabindex="6"/> Visualizza Imagine
  61. <input type="radio" class="little" name="vimage" value="no" <? if ($control[5]=="no") echo "checked "; ?> tabindex="7"/> Nessuna Immagine
  62. </div>
  63. <div class="azzerafloat"></div>
  64. <input type="submit" class="medio" value="<?=$parola?>" tabindex="7"/>
  65. <input type="button" class="medio" name="Annulla" value="Annulla" onclick="javascript:window.location='area.php'" />
  66. </form>
  67. </div>