		
	<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
		<div class="clearfix"></div>
			</br>	
			<div class="col-md-4">				
				<div class="pull-left">

					<button type="submit" class="btn-app btn-success "><i class="fa fa-check"></i> Salva </button>	
				
					<?php
						if( $records[0]['nome_file_xml'] == '' && $records[0]['idpagamento'] !='0' && $pulsante_elimina =='0'){
					?>
					<div class="pull-right showcase sweet1"> 		
						<button type="button" class="btn-app btn-primary" aria-label="Show SweetAlert2 success message" ><i class="fa fa-plane"></i> Genera file XML</span></button>		 
					</div>										
					<?php
					}
					?>
					<?php
						if( $records[0]['nome_file_xml'] != '' && $pulsante_elimina =='0' ){										
					?>
					<div class="pull-right showcase sweet1_eliminaxml"> 		
						<button type="button" class="btn-app btn-danger" aria-label="Show SweetAlert2 success message" ><i class="fa fa-trash-o"></i> Elimina file XML</span></button>		 
					</div>
					<?php
					}
					?>	
				</div>
			</div>
			<div class="col-md-4">				
				<div class="pull-left">
				</div>		
			</div>
				
			<div class="col-md-4">
				<div class="pull-left">	
			</div>			
		</div>			
		<div class="clearfix"></div>	
	</div>

				
		
	<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
		<div class="panel-heading">
			<h3 class="panel-title"><?php echo tr('File Xml Generato'); ?></h3>
		</div>
		</br>	
		<div class="col-md-4">							
			<div class="pull-left">
				<?php
					$module_name_path = get_var("Percorso XML");	
					if( $records[0]['nome_file_xml'] != ''  ){
				?>
				<?php $nome_file=$records[0]['nome_file_xml'] ?>
					<a  class="btn  btn-info" target="_blank" href="<?php echo $rootdir ?>/download.php?file=<?php echo $nome_file ?>&path_xml=<?php echo $module_name_path ?>"><i class="fa fa-paperclip"></i>Scarica file XML</a>	
				<?php
					}
				?>	
			
				
			</div>
		</div>
		<div class="clearfix"></div>	
		
		<div class="panel-body">										
			<?php
				echo filelist_xml( $module_name, $id_record );					
			?>															
		</div>
	</div>
	
	<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">					
		<div class="panel-body">											
			<div class="row">
				<div class="table-responsive">
					<table class="table no-margin">
						<thead>
							<tr>					 
							  <th class='text-center'>Utente creatore del file</th>
							  <th class='text-center'>Creato il</th>
							  <th class='text-center'>N° Progressivo invio assegnato</th>	
							  <th class='text-center'>Stato invio</th>
							  <th class='text-center'>Data invio</th>							  							   
							  <th class='text-center'>Esito</th>
							  <th class='text-center'>Data esito</th>								  
							</tr>
						</thead>
						<tbody>
							<?php 
								storico_transazioni_xml($id_record);
							?>
						  </tbody>
					</table>
				</div>
			</div>
		</div>
	</div>	
			
		
	<!-- DATI -->
	<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
		<div class="panel-heading">
			<h3 class="panel-title"><?php echo tr('Dati per la Pubblica Amministrazione'); ?></h3>
		</div>

		<div class="panel-body">
			<div class="row">
				<div class="col-md-2">
					{[ "type": "text", "label": "Numero", "maxlength": 20, "name": "el_idrif", "required": 0, "class": "", "value": "$el_idrif$", "extra": "<?php echo $read_oggetti?>" ]}
                </div>
				<div class="col-md-2">
					{[ "type": "date", "label": "Data Ordine", "maxlength": 10, "name": "el_rif_data", "required": 0, "class": "text-center datepicker", "value": "$el_rif_data$", "extra": "<?php echo $read_oggetti?>" ]}
                </div>
				<div class="col-md-2">
					{[ "type": "text", "label": "Codice CUP", "maxlength": 15, "name": "el_id_codicecup", "required": 0, "class": "", "value": "$el_id_codicecup$", "extra": "<?php echo $read_oggetti?>" ]}				
                </div>
				<div class="col-md-2">
					{[ "type": "text", "label": "Codice CIG", "maxlength": 15, "name": "el_id_codicecig", "required": 0, "class": "", "value": "$el_id_codicecig$", "extra": "<?php echo $read_oggetti?>" ]}			
                </div>
				<div class="col-md-4">
					{[ "type": "textarea", "label": "Codice Commessa", "maxlength": 100, "name": "el_rif_codicecommessa", "required": 0, "class": "", "value": "$el_rif_codicecommessa$","extra": "rows='3' <?php echo $read_oggetti?>" ]}				
                </div>
			
			
			</div>
			
			<div class="row">
				<div class="col-md-2">
					{[ "type": "text", "label": "Numero Ddt ", "maxlength": 20, "name": "el_idrif_ddt1", "required": 0, "class": "", "value": "$el_idrif_ddt1$", "extra": "<?php echo $read_oggetti?>" ]}
                </div>
				<div class="col-md-2">
					{[ "type": "date", "label": "Data Ddt", "maxlength": 10, "name": "el_idrif_ddt1_data", "required": 0, "class": "text-center datepicker", "value": "$el_idrif_ddt1_data$", "extra": "<?php echo $read_oggetti?>" ]}
                </div>
			</div>
			
			<div class="row">
				<div class="col-md-6">
					{[ "type": "textarea", "label": "Causale ( max 200 )", "maxlength": 200, "name": "el_causale_1", "required": 0, "class": "", "value": "$el_causale_1$",  "extra": "rows='5' <?php echo $read_oggetti?>" ]}	
				</div>
				<div class="col-md-6">
					{[ "type": "textarea", "label": "Causale ( max 200 )", "maxlength": 200, "name": "el_causale_2", "required": 0, "class": "", "value": "$el_causale_2$",  "extra": "rows='5' <?php echo $read_oggetti?>" ]}	
				</div>
			</div>
		</div>
	</div>	
		
		
		
		
		
		
		
		