

<!-- RIGHE -->
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
	<div class="panel-heading">
		<h3 class="panel-title">Posizioni <?php echo $nome_magazzino ?> </h3>
	</div>

	<div class="panel-body">
		
		<div class="row">
			<div class="col-md-12">
				<div class="pull-left">						
					<?php
					if( $pulsante_elimina == "0"  ){
					?>	
						<a class="btn btn-sm btn-info" data-href="<?php echo $rootdir ?>/modules/documenti/add_articolo.php?iddocumento=<?php echo $id_record ?>&idmodule=<?php echo $id_module ?>&dir=<?php echo $dir ?>&filtra_art=<?php echo $filtra_art ?>" data-toggle="modal" data-title="Aggiungi articolo" data-target="#bs-popup"><i class="fa fa-plus"></i> Articolo</a>
						<a class="btn btn-sm btn-info" data-href="<?php echo $rootdir ?>/modules/documenti/add_riga.php?iddocumento=<?php echo $id_record ?>&idmodule=<?php echo $id_module ?>&dir=<?php echo $dir ?>" data-toggle="modal" data-title="Aggiungi riga" data-target="#bs-popup"><i class="fa fa-plus"></i> Riga generica</a>										
						<a class="btn btn-sm btn-info" data-href="<?php echo $rootdir ?>/modules/documenti/add_riga_g.php?iddocumento=<?php echo $id_record ?>&idmodule=<?php echo $id_module ?>&dir=<?php echo $dir ?>" data-toggle="modal" data-title="Commento" data-target="#bs-popup"><i class="fa fa-plus"></i> Commento</a>															
					<?php																		
					}				
					?>

					<?php 
					// cerco moduli bottoni aggiuntivi						
						if( $pulsante_elimina == "0"  ){
							$query_moduli_add = "SELECT *  FROM zz_modules_add_button WHERE module_dir_from='".$modules_info[$module_name]["module_dir"]."'";
							$rs_modadd = $dbo->fetchArray($query_moduli_add);
							for( $i=0; $i<sizeof($rs_modadd); $i++ ){
								if (file_exists($docroot . "/modules/" . $rs_modadd[$i]['module_dir_to'].$rs_modadd[$i]['script'])){
									include ($docroot . "/modules/" . $rs_modadd[$i]['module_dir_to'].$rs_modadd[$i]['script']);
								}
							}
						}	
					?>												
				</div>			
			</div>
		</div>
		<div class="clearfix"></div>
		<br>

		
		<!--	<th width="5%" style='text-align:center;'>Data Documento</th> -->
		
		<div class="row">
			<div class="col-md-12">
				<table class="table table-striped table-hover table-condensed table-bordered">
				<tr>
					<th width="3%">Ord</th>
					<th width="35%">Descrizione</th>
				<!--<th width="120">Magazzino</th>	 -->
					<th width="10%" style='text-align:center;'>Magazzino</th>	
				<!--<th width="120">Q.t&agrave;</th> -->
					<th  width="5%" style='text-align:center;'>Q.t&agrave;</th>
				<!--<th width="20"></th> -->
						<th width="1%"></th>
						<th width="1%"></th>
				<!--<th width="80">U.m.</th> -->
					<th width="5%">U.m.</th>
				<!--<th width="120">Costo unitario</th> -->
					<th width="8%">Costo unitario</th>
				<!--<th width="120">Iva</th> -->
					<th width="8%">Iva</th>
				<!--<th width="120">Imponibile</th> -->
					<th width="10%">Imponibile</th>
				<!--<th width="60">Funzioni</th> -->
					<th width="5%">Funzioni</th>
					<?php
					if( $abilita_transazioni != "0"  ){
					?>	
					<!--	<th width="120">T.Successive</th> -->
						<th width="5%">T.Successive</th>
					<?php																		
					}
					?>	

				</tr>

				<?php include($docroot."/modules/documenti/row-list.php"); ?>
				</table>
			</div>
		</div>
	</div>
</div>