<!-- Edit this file to change the layout of the detail view print preview page -->


<div class="panel-heading"><h3 class="panel-title">
	<strong><%%DETAIL_VIEW_TITLE%%></strong>
	<div class="hidden-print pull-right">
		<div class="btn-group">
			<button type="button" id="print" onclick="window.print();" title="<%%TRANSLATION(Print)%%>" class="btn btn-primary"><i class="glyphicon glyphicon-print"></i> <%%TRANSLATION(Print)%%></button>
			<button type="submit" id="back" title="<%%TRANSLATION(Cancel Printing)%%>" class="btn btn-default"><i class="glyphicon glyphicon-remove-circle"></i> <%%TRANSLATION(Cancel Printing)%%></button>
		</div>
	</div>
	<div class="clearfix"></div>
</h3></div>

<div class="panel-body">
	<fieldset class="form-horizontal">
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Nom de l'ent&#234;te</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(nom)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Raison sociale</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(raison_sociale)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Infos banque</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(description)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Adresse</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(adresse)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">T&#233;l&#233;phone</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(telephone)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">WhatsApp</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(whatsapp)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Email</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(email)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Site web</label>
			<div class="col-xs-9">
				<div class="form-control-static"><a id="site_web-link" href="link.php?t=entete&f=site_web&i=<%%VALUE(identete)%%>" target="_blank"><%%VALUE(site_web)%%></a><script>jQuery(function() { /* */ var e_site_web = '<%%VALUE(site_web)%%>'; if(e_site_web == '' || e_site_web == '&nbsp;' || e_site_web == 'blank.gif') jQuery('#site_web-link').hide(); });</script></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">BP</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(bp)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Pied de page</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(footer_3)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Logo Marega Voyages</label>
			<div class="col-xs-9">
				<div class="form-control-static"><script>
				var logoSrc1<%%RND1%%>='<%%TRANSLATION(ImageFolder)%%><%%VALUE(logo)%%>';
				var logoSrc2<%%RND1%%>='thumbnail.php?t=entete&f=logo&i=<%%VALUE(logo)%%>&v=dv'
			</script>
			<a href="#" onclick="$('logoImg<%%RND1%%>').src=($('logoImg<%%RND1%%>').src.search(/thumbnail\.php/) != -1 && logoSrc1<%%RND1%%> != '<%%TRANSLATION(ImageFolder)%%>' ? logoSrc1<%%RND1%%> : logoSrc2<%%RND1%%>); return false;"><img id="logoImg<%%RND1%%>" src="thumbnail.php?t=entete&f=logo&i=<%%VALUE(logo)%%>&v=dv" class="img-thumbnail"></a></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Logo partenaire</label>
			<div class="col-xs-9">
				<div class="form-control-static"><script>
				var logopSrc1<%%RND1%%>='<%%TRANSLATION(ImageFolder)%%><%%VALUE(logop)%%>';
				var logopSrc2<%%RND1%%>='thumbnail.php?t=entete&f=logop&i=<%%VALUE(logop)%%>&v=dv'
			</script>
			<a href="#" onclick="$('logopImg<%%RND1%%>').src=($('logopImg<%%RND1%%>').src.search(/thumbnail\.php/) != -1 && logopSrc1<%%RND1%%> != '<%%TRANSLATION(ImageFolder)%%>' ? logopSrc1<%%RND1%%> : logopSrc2<%%RND1%%>); return false;"><img id="logopImg<%%RND1%%>" src="thumbnail.php?t=entete&f=logop&i=<%%VALUE(logop)%%>&v=dv" class="img-thumbnail"></a></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Devise</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(devise)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Signataire</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(signataire)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Observations</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(observations)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Groupe</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(groupe)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Agent</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(agent)%%></div>
			</div>
		</div>
	</fieldset>
</div>
<!-- child records -->
<div class="panel-body">
	<div id="entete-children"></div>
</div>

<script>
	$j(function() {
		/* prevent loading child records in multiple DVP */
		if($j('[id=entete-children]').length > 1) return;

		post(
			'parent-children.php', {
				ParentTable: 'entete',
				SelectedID: '<%%VALUE(identete)%%>',
				Operation: 'show-children-printable'
			},
			'entete-children',
			'disable-element',
			'loading-element',
			apply_persisting_children
		);

		$j('form').on('click', '#children-tabs button[data-target]', function() {
			$j(this).toggleClass('active');
			persist_expanded_child($j(this).attr('id'));
		});
	})
</script>

