<!-- 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">Matricule</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(matricule_client)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Date d'inscripton</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%COMBOTEXT(date_inscription)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Nom & Pr&#233;nom</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(nom_prenom)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Sexe</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%COMBOTEXT(sexe)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Date naissance</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%COMBOTEXT(date_naissance)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Age</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(age)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">NNI / Passeport</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(nni)%%></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">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">Banque</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="banque<%%RND1%%>"><%%COMBOTEXT(banque)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Compte</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(compte)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Photo</label>
			<div class="col-xs-9">
				<div class="form-control-static"><script>
				var photoSrc1<%%RND1%%>='<%%TRANSLATION(ImageFolder)%%><%%VALUE(photo)%%>';
				var photoSrc2<%%RND1%%>='thumbnail.php?t=clients&f=photo&i=<%%VALUE(photo)%%>&v=dv'
			</script>
			<a href="#" onclick="$('photoImg<%%RND1%%>').src=($('photoImg<%%RND1%%>').src.search(/thumbnail\.php/) != -1 && photoSrc1<%%RND1%%> != '<%%TRANSLATION(ImageFolder)%%>' ? photoSrc1<%%RND1%%> : photoSrc2<%%RND1%%>); return false;"><img id="photoImg<%%RND1%%>" src="thumbnail.php?t=clients&f=photo&i=<%%VALUE(photo)%%>&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">Signature</label>
			<div class="col-xs-9">
				<div class="form-control-static"><script>
				var signatureSrc1<%%RND1%%>='<%%TRANSLATION(ImageFolder)%%><%%VALUE(signature)%%>';
				var signatureSrc2<%%RND1%%>='thumbnail.php?t=clients&f=signature&i=<%%VALUE(signature)%%>&v=dv'
			</script>
			<a href="#" onclick="$('signatureImg<%%RND1%%>').src=($('signatureImg<%%RND1%%>').src.search(/thumbnail\.php/) != -1 && signatureSrc1<%%RND1%%> != '<%%TRANSLATION(ImageFolder)%%>' ? signatureSrc1<%%RND1%%> : signatureSrc2<%%RND1%%>); return false;"><img id="signatureImg<%%RND1%%>" src="thumbnail.php?t=clients&f=signature&i=<%%VALUE(signature)%%>&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">Agence</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="agence<%%RND1%%>"><%%COMBOTEXT(agence)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Dossier</label>
			<div class="col-xs-9">
				<div class="form-control-static"><a id="dossier-link" href="link.php?t=clients&f=dossier&i=<%%VALUE(matricule_client)%%>" target="_blank"><i class="glyphicon glyphicon-folder-open" title="<%%VALUE(dossier)%%>" style="font-size: x-large;"></i></a><script>jQuery(function(){ /* */ var e_dossier = '<%%VALUE(dossier)%%>'; if(e_dossier == '' || e_dossier == '&nbsp;' || e_dossier == 'blank.gif') jQuery('#dossier-link').hide(); });</script></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Personne &#224; contacter en cas d'urgence</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(urgence)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Observation</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(observation)%%></div>
			</div>
		</div>
	</fieldset>
</div>
<!-- child records -->
<div class="panel-body">
	<div id="clients-children"></div>
</div>

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

		post(
			'parent-children.php', {
				ParentTable: 'clients',
				SelectedID: '<%%VALUE(matricule_client)%%>',
				Operation: 'show-children-printable'
			},
			'clients-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>

