<!-- 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">PRIME</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="option_prime<%%RND1%%>"><%%COMBOTEXT(option_prime)%%></span></div>
			</div>
		</div>
		<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)%%></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">Date de 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">Matrimoniale</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%COMBOTEXT(matrimoniale)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Enfants</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(enfants)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">NNI</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">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">Courriel</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(courriel)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Boite postale</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(postale)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Date de recrutement</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%COMBOTEXT(date_recrutement)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Statut</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="statut<%%RND1%%>"><%%COMBOTEXT(statut)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Direction</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="direction<%%RND1%%>"><%%COMBOTEXT(direction)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Fonction</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="fonction<%%RND1%%>"><%%COMBOTEXT(fonction)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Service</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="service<%%RND1%%>"><%%COMBOTEXT(service)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Division</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="division<%%RND1%%>"><%%COMBOTEXT(division)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Categorie</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="categorie<%%RND1%%>"><%%COMBOTEXT(categorie)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Anciennet&#233;</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(anciennete)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Salaire</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(salaire)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Prime</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="prime<%%RND1%%>"></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">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">Curriculum vitae</label>
			<div class="col-xs-9">
				<div class="form-control-static"><a id="cv-link" href="link.php?t=dossier_individuel&f=cv&i=<%%VALUE(iddindividuel)%%>" target="_blank"><i class="glyphicon glyphicon-file" title="<%%VALUE(cv)%%>" style="font-size: x-large;"></i></a><script>jQuery(function() { /* */ var e_cv = '<%%VALUE(cv)%%>'; if(e_cv == '' || e_cv == '&nbsp;' || e_cv == 'blank.gif') jQuery('#cv-link').hide(); });</script></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=dossier_individuel&f=dossier&i=<%%VALUE(iddindividuel)%%>" 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">Contrat</label>
			<div class="col-xs-9">
				<div class="form-control-static"><a id="contrat-link" href="link.php?t=dossier_individuel&f=contrat&i=<%%VALUE(iddindividuel)%%>" target="_blank"><i class="glyphicon glyphicon-folder-open" title="<%%VALUE(contrat)%%>" style="font-size: x-large;"></i></a><script>jQuery(function() { /* */ var e_contrat = '<%%VALUE(contrat)%%>'; if(e_contrat == '' || e_contrat == '&nbsp;' || e_contrat == 'blank.gif') jQuery('#contrat-link').hide(); });</script></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=dossier_individuel&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=dossier_individuel&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">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="dossier_individuel-children"></div>
</div>

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

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

