Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while ($record=gdrcd_query($result, 'fetch')){ ?>
- <!-- Oggetto, immagine, quantità -->
- <div>
- <div>
- <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>
- </div>
- <div style="width:200px; heigth:200px;">
- <?php if ($record['cariche']>0){
- echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['charges'].": ".$record['cariche']);
- } else { echo ' '; } ?>
- </div>
- <div style="width:200px; heigth:200px;"><?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['pts'].": ".$record['numero']); ?>
- </div>
- </div>
- <div>
- <input type="radio" name="invent1" id="<?php echo gdrcd_filter('out',$record['nome_oggetto']); ?>" checked>
- <div style="float:right; width:200px; heigth:200px;">
- <div>
- <div>
- <img src="themes/<?php echo $PARAMETERS['themes']['current_theme']?>/imgs/items/<?php echo gdrcd_filter('out',$record['urlimg']); ?>" />
- </div>
- <div>
- <?php echo gdrcd_filter('out',$record['descrizione']); ?>
- </div>
- <?php if (($record['commento']!='') && ($_SESSION['login']!= gdrcd_filter('get',$_REQUEST['pg']))){?>
- <div>
- <?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['notes'].": ".$record['commento']); ?>
- </div><?php } else if ($_SESSION['login'] == gdrcd_filter('get',$_REQUEST['pg'])) {//if ?>
- <div>
- <!-- Commento -->
- <form action="main.php?page=scheda_oggetti"
- method="post">
- <input type="hidden"
- value="commenta"
- name="op" />
- <input type="hidden"
- value="<?php echo $record['id_oggetto']; ?>"
- name="id_oggetto" />
- <textarea type="textbox" name="commento" class="form_textarea"><?php echo $record['commento']; ?></textarea>
- <input type="submit"
- value="<?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['add_note']);?>" />
- <input type="hidden"
- value="<?php echo $_REQUEST['pg']; ?>"
- name="pg" />
- </form>
- </div><?php } //else if ?>
- </div>
- <!-- Comandi elenco -->
- <div>
- <?php if($_SESSION['login']==$_REQUEST['pg']){ ?>
- <div>
- <!-- Abbandona -->
- <form action="main.php?page=scheda_oggetti"
- method="post">
- <input type="hidden"
- value="abbandona"
- name="op" />
- <input type="hidden"
- value="<?php echo $record['numero']; ?>"
- name="numero" />
- <input type="hidden"
- value="<?php echo $record['id_oggetto']; ?>"
- name="id_oggetto" />
- <input type="submit"
- value="<?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['drop']);?>" />
- <input type="hidden"
- value="<?php echo $_REQUEST['pg']; ?>"
- name="pg" />
- </form>
- <?php if ($record['ubicabile']>0){ ?>
- <!-- Zaino -->
- <form action="main.php?page=scheda_equip"
- method="post">
- <input type="hidden"
- value="in_zaino"
- name="op" />
- <input type="hidden"
- value="<?php echo $record['id_oggetto']; ?>"
- name="id_oggetto" />
- <input type="submit"
- value="<?php echo gdrcd_filter('out',$MESSAGE['interface']['sheet']['items']['list']['put_in']);?>" />
- <input type="hidden"
- value="<?php echo $_REQUEST['pg']; ?>"
- name="pg" />
- </form>
- <?php } ?>
- </div>
- <?php } else { echo " "; } ?>
- </div>
- </div>
- </div>
- </div>
- <?php }//while
- gdrcd_query($result, 'free');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement