Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. <?php while ($record=gdrcd_query($result, 'fetch')){ ?>
  2.  
  3.  
  4. <!-- Oggetto, immagine, quantità -->
  5.  
  6. <div>
  7.  
  8. <div>
  9. <div style="float:left; width:200px; heigth:200px;"><label for="<?php echo gdrcd_filter('out',$record['nome_oggetto']); ?>"><?php echo gdrcd_filter('out',$record['nome_oggetto']); ?></label>
  10. </div>
  11. <div style="width:200px; heigth:200px;">
  12. <?php if ($record['cariche']>0){
  13. echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['charges'].": ".$record['cariche']);
  14. } else { echo '&nbsp;'; } ?>
  15. </div>
  16. <div style="width:200px; heigth:200px;"><?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['pts'].": ".$record['numero']); ?>
  17. </div>
  18. </div>
  19.  
  20. <div>
  21. <input type="radio" name="invent1" id="<?php echo gdrcd_filter('out',$record['nome_oggetto']); ?>" checked>
  22. <div style="float:right; width:200px; heigth:200px;">
  23.  
  24. <div>
  25. <div>
  26. <img src="themes/<?php echo $PARAMETERS['themes']['current_theme']?>/imgs/items/<?php echo gdrcd_filter('out',$record['urlimg']); ?>" />
  27. </div>
  28. <div>
  29. <?php echo gdrcd_filter('out',$record['descrizione']); ?>
  30. </div>
  31. <?php if (($record['commento']!='') && ($_SESSION['login']!= gdrcd_filter('get',$_REQUEST['pg']))){?>
  32. <div>
  33. <?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['notes'].": ".$record['commento']); ?>
  34. </div><?php } else if ($_SESSION['login'] == gdrcd_filter('get',$_REQUEST['pg'])) {//if ?>
  35. <div>
  36. <!-- Commento -->
  37. <form action="main.php?page=scheda_oggetti"
  38. method="post">
  39. <input type="hidden"
  40. value="commenta"
  41. name="op" />
  42. <input type="hidden"
  43. value="<?php echo $record['id_oggetto']; ?>"
  44. name="id_oggetto" />
  45. <textarea type="textbox" name="commento" class="form_textarea"><?php echo $record['commento']; ?></textarea>
  46. <input type="submit"
  47. value="<?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['add_note']);?>" />
  48. <input type="hidden"
  49. value="<?php echo $_REQUEST['pg']; ?>"
  50. name="pg" />
  51. </form>
  52. </div><?php } //else if ?>
  53. </div>
  54. <!-- Comandi elenco -->
  55. <div>
  56. <?php if($_SESSION['login']==$_REQUEST['pg']){ ?>
  57. <div>
  58. <!-- Abbandona -->
  59. <form action="main.php?page=scheda_oggetti"
  60. method="post">
  61. <input type="hidden"
  62. value="abbandona"
  63. name="op" />
  64. <input type="hidden"
  65. value="<?php echo $record['numero']; ?>"
  66. name="numero" />
  67. <input type="hidden"
  68. value="<?php echo $record['id_oggetto']; ?>"
  69. name="id_oggetto" />
  70. <input type="submit"
  71. value="<?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['drop']);?>" />
  72. <input type="hidden"
  73. value="<?php echo $_REQUEST['pg']; ?>"
  74. name="pg" />
  75. </form>
  76. <?php if ($record['ubicabile']>0){ ?>
  77. <!-- Zaino -->
  78. <form action="main.php?page=scheda_equip"
  79. method="post">
  80. <input type="hidden"
  81. value="in_zaino"
  82. name="op" />
  83. <input type="hidden"
  84. value="<?php echo $record['id_oggetto']; ?>"
  85. name="id_oggetto" />
  86. <input type="submit"
  87. value="<?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['put_in']);?>" />
  88. <input type="hidden"
  89. value="<?php echo $_REQUEST['pg']; ?>"
  90. name="pg" />
  91. </form>
  92. <?php } ?>
  93. </div>
  94. <?php } else { echo "&nbsp;"; } ?>
  95. </div>
  96. </div>
  97.  
  98. </div>
  99.  
  100. </div>
  101.  
  102. <?php }//while
  103.  
  104. gdrcd_query($result, 'free');
  105.  
  106. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement