<!-- 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)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Date 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">Nom</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">Prenom</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(prenom)%%></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">Nationalit&#233;</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="nationalite<%%RND1%%>"><%%COMBOTEXT(nationalite)%%></span></div>
			</div>
		</div>
		<div class="form-group" style="border-bottom: dotted 1px #DDD;">
			<label class="col-xs-3 control-label">N&#176; C.I.N</label>
			<div class="col-xs-9">
				<div class="form-control-static"><%%VALUE(cin)%%></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">Telephone</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">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">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">Poste</label>
			<div class="col-xs-9">
				<div class="form-control-static"><span id="poste<%%RND1%%>"><%%COMBOTEXT(poste)%%></span></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=personnels&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=personnels&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">Cv</label>
			<div class="col-xs-9">
				<div class="form-control-static"><a id="cv-link" href="link.php?t=personnels&f=cv&i=<%%VALUE(idpersonnel)%%>" 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=personnels&f=dossier&i=<%%VALUE(idpersonnel)%%>" 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">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="personnels-children"></div>
</div>

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

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

