<?php echo $header; ?>
<div id="content">
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    
    <?php if ($error_warning) { ?>
        <div class="warning"><?php echo $error_warning; ?></div>
    <?php } ?>
        
    <div class="box">
        <div class="heading">
			<h1><img src="view/image/logo_mondialrelay_mini.png" alt="" style="vertical-align:middle;height:30px;margin-top:-6px;"/> <?php echo $heading_title; ?></h1>
			<div class="buttons"><a onclick="location = '<?php echo $cancel; ?>';" class="button" style="background: none repeat scroll 0 0 #003A88;"><?php echo $button_cancel; ?></a></div>
			<div style="clear:both;"></div>
		</div>
		
		<div style="clear:both;"></div>

		<div class="content">    
			
			<div id="tabs" >
                <ul>
					<li><a href="#tab-configuration"><?php echo $txt_tab_configuration; ?></a></li>
					<li><a href="#tab-generertickets"><?php echo $txt_tab_genererTickets; ?> <small>(<?php echo count($commandes_sans_etiquette); ?> ATT.)</small></a></li>
					<li><a href="#tab-historique"><?php echo $txt_tab_historique; ?> <small>(<?php echo count($commandes); ?>)</small></a></li>
					<li><a href="#tab-information"><?php echo $txt_tab_information; ?></a></li>
				</ul>
            

				<div id="tab-configuration" class="tab-content">
					<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">             
						<input type="hidden" 
							   id="MR_actiontype" 
							   name="MR_actiontype" 
							   value="laconfig" />   
							   
						<input type="hidden" 
							   id="onglet" 
							   name="onglet" 
							   value="tab-configuration" />
										   
						<table class="form">
							<tr>
								<td><?php echo $entry_status; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="mondialrelay_status">
										<?php if ($mondialrelay_status) { ?>
											<option value="1" selected="selected"><?php echo $text_enabled; ?></option>
											<option value="0"><?php echo $text_disabled; ?></option>
										<?php } else { ?>
											<option value="1"><?php echo $text_enabled; ?></option>
											<option value="0" selected="selected"><?php echo $text_disabled; ?></option>
										<?php } ?>
									</select>
								</td>
							</tr>
							  <tr>
								<td><?php echo $entry_tax_class; ?></td>
								<td><select name="mondialrelay_tax_class_id">
									<option value="0"><?php echo $text_none; ?></option>
									<?php foreach ($tax_classes as $tax_class) { ?>
									<?php if ($tax_class['tax_class_id'] == $mondialrelay_tax_class_id) { ?>
									<option value="<?php echo $tax_class['tax_class_id']; ?>" selected="selected"><?php echo $tax_class['title']; ?></option>
									<?php } else { ?>
									<option value="<?php echo $tax_class['tax_class_id']; ?>"><?php echo $tax_class['title']; ?></option>
									<?php } ?>
									<?php } ?>
								  </select></td>
							  </tr>
							  <tr>
								<td><?php echo $entry_geo_zone; ?></td>
								<td><select name="mondialrelay_geo_zone_id">
									<option value="0"><?php echo $text_all_zones; ?></option>
									<?php foreach ($geo_zones as $geo_zone) { ?>
									<?php if ($geo_zone['geo_zone_id'] == $mondialrelay_geo_zone_id) { ?>
									<option value="<?php echo $geo_zone['geo_zone_id']; ?>" selected="selected"><?php echo $geo_zone['name']; ?></option>
									<?php } else { ?>
									<option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option>
									<?php } ?>
									<?php } ?>
								  </select></td>
							  </tr>
							<tr>
								<td><?php echo $entry_sort_order; ?> <span style="color:red;">*</span></td>
								<td><input type="text" name="mondialrelay_sort_order" value="<?php echo $mondialrelay_sort_order; ?>" size="1" /></td>
							</tr>
							<tr>
								<td><?php echo $txt_cout; ?> <span style="color:red;">*</span></td>
								<td><input type="text" name="MR_cout" value="<?php echo $MR_cout; ?>" size="2" /></td>
							</tr>
							<tr>
								<td><?php echo $text_gratuit; ?> <span style="color:red;">*</span></td>
								<td><input type="text" name="MR_est_gratuit" value="<?php echo $MR_est_gratuit; ?>" size="2" /> &euro; TTC</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_enseigne_webservice; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_enseigne_webservice" 
										   name="MR_enseigne_webservice" 
										   value="<?php echo $MR_enseigne_webservice; ?>" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_code_marque; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_code_marque" 
										   name="MR_code_marque" 
										   value="<?php echo $MR_code_marque; ?>" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_webservice_key; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_webservice_key" 
										   name="MR_webservice_key" 
										   value="<?php echo $MR_webservice_key; ?>" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_webservice_url; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_webservice_url" 
										   name="MR_webservice_url" 
										   style="width:445px;background:#D3D5D5;" 
										   value="<?php echo $MR_webservice_url; ?>" /> <small>(<?php echo $txt_non_modif; ?>)</small>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_language; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="MR_language">
										<?php if ('EN' == $MR_language) { ?>
											<option value="EN" selected="selected"> ANGLAIS </option>
										<?php } else { ?>
											<option value="EN"> ANGLAIS </option>
										<?php } ?>

										<?php if ('FR' == $MR_language) { ?>
											<option value="FR" selected="selected"> FRANCAIS </option>
										<?php } else { ?>
											<option value="FR"> FRANCAIS </option>
										<?php } ?>
									</select>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_civilite; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="MR_civilite">
										<?php if ('MR' == $MR_civilite) { ?>
											<option value="MR" selected="selected">MR</option>
										<?php } else { ?>
											<option value="MR">MR</option>
										<?php } ?>
										
										<?php if ('M.' == $MR_civilite) { ?>
											<option value="M." selected="selected">M.</option>
										<?php } else { ?>
											<option value="M.">M.</option>
										<?php } ?>
										
										<?php if ('M' == $MR_civilite) { ?>
											<option value="M" selected="selected">M</option>
										<?php } else { ?>
											<option value="M">M</option>
										<?php } ?>
										
										<?php if ('MME' == $MR_civilite) { ?>
											<option value="MME" selected="selected">MME</option>
										<?php } else { ?>
											<option value="MME">MME</option>
										<?php } ?>
									</select>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_name; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_name" 
										   name="MR_name" 
										   value="<?php echo $MR_name; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_prenom; ?> </td>
								<td>
									<input type="text" 
										   id="MR_prenom" 
										   name="MR_prenom" 
										   value="<?php echo $MR_prenom; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_rueexpe; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_rue" 
										   name="MR_rue" 
										   value="<?php echo $MR_rue; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_cpexpe; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_cpexe" 
										   name="MR_cpexe" 
										   value="<?php echo $MR_cpexe; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_villeexpe; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_villeexe" 
										   name="MR_villeexe" 
										   value="<?php echo $MR_villeexe; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_paysexpe; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="MR_country_list">
										<?php if ('FR' == $MR_country_list) { ?>
											<option value="FR" selected="selected"> France </option>
										<?php } else { ?>
											<option value="FR"> France </option>
										<?php } ?>

										<?php if ('BE' == $MR_country_list) { ?>
											<option value="BE" selected="selected"> Belgique </option>
										<?php } else { ?>
											<option value="BE"> Belgique </option>
										<?php } ?>

										<?php if ('LU' == $MR_country_list) { ?>
											<option value="LU" selected="selected"> Luxembourg </option>
										<?php } else { ?>
											<option value="LU"> Luxembourg </option>
										<?php } ?>

										<?php if ('ES' == $MR_country_list) { ?>
											<option value="ES" selected="selected"> Espagne </option>
										<?php } else { ?>
											<option value="ES"> Espagne </option>
										<?php } ?>
									</select>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_telexpe; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_telexe" 
										   name="MR_telexe" 
										   value="<?php echo $MR_telexe; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_col_mode; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="MR_dlv_mode">
										<?php if ('CCC' == $MR_col_mode) { ?>
											<option value="CCC" selected="selected">CCC : Collecte en point relais</option>
										<?php } else { ?>
											<option value="CCC">CCC : Collecte en point relais</option>
										<?php } ?>
									</select>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_dlv_mode; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="MR_dlv_mode">
										<?php if ('24R' == $MR_dlv_mode) { ?>
											<option value="24R" selected="selected">24R : Livraison en point relais</option>
										<?php } else { ?>
											<option value="24R">24R : Livraison en point relais</option>
										<?php } ?>

										<?php /*
										if ('DRI' == $MR_dlv_mode) { ?>
											<option value="DRI" selected="selected">DRI : Livraison en colis Drive</option>
										<?php } else { ?>
											<option value="DRI">DRI : Livraison en colis Drive</option>
										<?php } ?>

										<?php if ('LCC' == $MR_dlv_mode) { ?>
											<option value="LCC" selected="selected">LCC : Livraison chez le client chargeur / l'enseigne</option>
										<?php } else { ?>
											<option value="LCC">LCC : Livraison chez le client chargeur / l'enseigne</option>
										<?php } ?>

										<?php if ('LD1' == $MR_dlv_mode) { ?>
											<option value="LD1" selected="selected">LD1 : Livraison à domicile pour les commandes standards (1 personne)</option>
										<?php } else { ?>
											<option value="LD1">LD1 : Livraison à domicile pour les commandes standards (1 personne)</option>
										<?php } ?>

										<?php if ('LDS' == $MR_dlv_mode) { ?>
											<option value="LDS" selected="selected">LDS : Livraison à domicile pour les commandes lourdes ou volumineuses (2 personnes)</option>
										<?php } else { ?>
											<option value="LDS">LDS : Livraison à domicile pour les commandes lourdes ou volumineuses (2 personnes)</option>
										<?php } 
										*/?>
									</select>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_insurance; ?> <span style="color:red;">*</span></td>
								<td>
									<select name="MR_insurance">
										<?php if (1 == $MR_insurance) { ?>
											<option value="1" selected="selected"> 1 : Assurance complémentaire niveau Lv1 </option>
										<?php } else { ?>
											<option value="1"> 1 : Assurance complémentaire niveau Lv1 </option>
										<?php } ?>

										<?php if (2 == $MR_insurance) { ?>
											<option value="2" selected="selected"> 2 : Assurance complémentaire niveau Lv2 </option>
										<?php } else { ?>
											<option value="2"> 2 : Assurance complémentaire niveau Lv2 </option>
										<?php } ?>

										<?php if (3 == $MR_insurance) { ?>
											<option value="3" selected="selected"> 3 : Assurance complémentaire niveau Lv3 </option>
										<?php } else { ?>
											<option value="3"> 3 : Assurance complémentaire niveau Lv3 </option>
										<?php } ?>

										<?php if (4 == $MR_insurance) { ?>
											<option value="4" selected="selected"> 4 : Assurance complémentaire niveau Lv4 </option>
										<?php } else { ?>
											<option value="4"> 4 : Assurance complémentaire niveau Lv4 </option>
										<?php } ?>

										<?php if (5 == $MR_insurance) { ?>
											<option value="5" selected="selected"> 5 : Assurance complémentaire niveau Lv5 </option>
										<?php } else { ?>
											<option value="5"> 5 : Assurance complémentaire niveau Lv5 </option>
										<?php } ?>

										<?php if (1 > $MR_insurance) { ?>
											<option value="0" selected="selected"> 0 : Aucune assurance </option>
										<?php } else { ?>
											<option value="0"> 0 : Aucune assurance </option>
										<?php } ?>
									</select>
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_delay; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   id="MR_delay" 
										   name="MR_delay" 
										   value="<?php echo $MR_delay; ?>" 
										   style="width:190px;" />
								</td>
							</tr>
							<tr>
								<td><?php echo $txt_MR_weight_coefficient; ?> <span style="color:red;">*</span></td>
								<td>
									<input type="text" 
										   name="MR_weight_coefficient" 
										   id="MR_weight_coefficient" 
										   style="width:45px; " 
										   value="<?php echo $MR_weight_coefficient; ?>"/>
								</td>
							</tr>
						</table>
					</form>
					
					<div class="heading">
						<div class="buttons"><a onclick="$('#form').submit();" class="button" style="color:#fff;background: none repeat scroll 0 0 #003A88;"><?php echo $button_save; ?></a></div>
					</div>                
				</div>

				<div id="tab-generertickets" class="tab-content">
					<div class="heading" style="margin-bottom: 15px;">
						<div class="buttons"><a onclick="$('.form_poids').css('display', 'block');" class="button" style="color:#fff;background: none repeat scroll 0 0 #003A88;"><?php echo $btn_etiquettes; ?></a></div>
					</div>
					
					<div class="form_poids">
						Saisissez un poids par colis (sera appliqu&eacute; &agrave; chaque colis si plusieurs lignes selectionn&eacute;es) : 
						<input type="text" id="lepoidsparcolis" name="lepoidsparcolis" value="100" style="width:60px"/> grammes.
						<br/>
						<br/><a class="button" onclick="if(parseInt($('#lepoidsparcolis').val()) >= 100) { $('#MR_poids_saisi_gr').val($('#lepoidsparcolis').val());$('#form2').submit(); } else { alert('Le poids doit >= 100 grammes'); }"> Enregistrer le poids </a>
					</div>

					<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form2">                
						<input type="hidden" 
							   id="MR_actiontype" 
							   name="MR_actiontype" 
							   value="lesetiquettes" />
							   
						<input type="hidden" 
							   id="onglet" 
							   name="onglet" 
							   value="tab-generertickets" />
						
						<input type="hidden" 
							   id="MR_poids_saisi_gr" 
							   name="MR_poids_saisi_gr" 
							   value="100" />
							   
						<input type="hidden" 
							   id="Et_MR_enseigne_webservice" 
							   name="Et_MR_enseigne_webservice" 
							   value="<?php echo $MR_enseigne_webservice; ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_col_mode" 
							   name="Et_MR_col_mode" 
							   value="<?php echo $MR_col_mode; ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_dlv_mode" 
							   name="Et_MR_dlv_mode" 
							   value="<?php echo $MR_dlv_mode; ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_language" 
							   name="Et_MR_language" 
							   value="<?php echo $MR_language; ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_exp_ad1" 
							   name="Et_MR_exp_ad1" 
							   value="<?php echo strtoupper(trim($MR_civilite . ' ' . $MR_name . ' ' . $MR_prenom)); ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_exp_ad3" 
							   name="Et_MR_exp_ad3" 
							   value="<?php echo strtoupper(trim($MR_rue)); ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_exp_ville" 
							   name="Et_MR_exp_ville" 
							   value="<?php echo strtoupper(trim($MR_villeexe)); ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_exp_cp" 
							   name="Et_MR_exp_cp" 
							   value="<?php echo trim($MR_cpexe); ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_exp_tel" 
							   name="Et_MR_exp_tel" 
							   value="<?php echo trim($MR_telexe); ?>" />
							   
						<input type="hidden" 
							   id="Et_MR_exp_pays" 
							   name="Et_MR_exp_pays" 
							   value="<?php echo trim($MR_country_list); ?>" />
						
						<table class="form">
							<tr>
									<th style="text-align:left;">Cocher les lignes &agrave; traiter
									<br/><small>Tout cocher / D&eacute;cocher : <input type="checkbox" id="allcheck_uncheck" /></small></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_1; ?>"><?php echo $txt_commande_date; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_3; ?>"><?php echo $txt_commande_ID; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_2; ?>"><?php echo $txt_commande_num_point_relais; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_4; ?>"><?php echo $txt_commande_status; ?></a></th>
									<?php /*
									<th style="text-align:left;"><a href="<?php echo $sort_1_8; ?>"><?php echo $txt_commande_r3; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_6; ?>"><?php echo $txt_commande_r1; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_7; ?>"><?php echo $txt_commande_r2; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_1_9; ?>"><?php echo $txt_commande_r4; ?></a></th>
									*/?>
							</tr>
							
							<?php if ($commandes_sans_etiquette) { ?>
								<?php foreach($commandes_sans_etiquette as $commande) { ?>
									<tr>
										<td><input type="checkbox" name="ligne[]" id="ligne_<?php echo $commande['id_mr_rel_pt_order']; ?>" value="<?php echo $commande['id_mr_rel_pt_order']; ?>" class="checkbox_ss_etiq" /> <img src="<?php echo HTTPS_SERVER ; ?>view/image/pdfmr.png" alt="Cocher cette ligne" style="width:25px;"/></td>
										<td><?php echo $commande['date_creation']; ?></td>
										<td><?php echo $commande['id_order']; ?></td>
										<td><?php echo $commande['id_mr_num_point_relais']; ?></td>
										<td><?php echo $commande['status']; ?></td>
										<?php /*
										<td><?php echo $commande['date_etiquette']; ?></td>
										<td><?php echo $commande['num_expe']; ?></td>
										<td><?php echo $commande['url_pdf_etiq']; ?></td>
										<td><?php echo $commande['poids_colis']; ?></td>
										*/?>
									</tr>
								<?php } ?>
							<?php } else { ?>
								<tr><td colspan="10"><?php echo $txt_commande_no_result; ?></td></tr>
							<?php } ?>
						</table>
					</form>
					
					<div class="heading" style="margin-top: 15px;">
						<div class="buttons"><a onclick="$('.form_poids').css('display', 'block');" class="button" style="color:#fff;background: none repeat scroll 0 0 #003A88;"><?php echo $btn_etiquettes; ?></a></div>
					</div>
					
					<?php echo $onglete; ?>
				</div>

				<div id="tab-historique" class="tab-content">
					
					<div class="heading" style="margin-bottom: 15px;">
						<div class="buttons"><a onclick="$('#form_del').submit();;" class="button" style="color:#fff;background: none repeat scroll 0 0 #003A88;"><?php echo $btn_del; ?></a></div>
					</div>
					
					<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form_del">                
						<input type="hidden" 
							   id="MR_actiontype" 
							   name="MR_actiontype" 
							   value="supprlignes" />
							   
						<input type="hidden" 
							   id="onglet" 
							   name="onglet" 
							   value="tab-historique" />
					
						<table class="form" id='orders'>
							<tr>
									<th style="text-align:left;">Cocher les lignes &agrave; supprimer
										<br/><small>Tout cocher / D&eacute;cocher : <input type="checkbox" id="allcheck_uncheck2" /></small></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_1; ?>"><?php echo $txt_commande_date; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_3; ?>"><?php echo $txt_commande_ID; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_4; ?>"><?php echo $txt_commande_status; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_8; ?>"><?php echo $txt_commande_r3; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_2; ?>"><?php echo $txt_commande_num_point_relais; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_6; ?>"><?php echo $txt_commande_r1; ?></a></th>
									<th style="text-align:left;"><a href="<?php echo $sort_2_7; ?>"><?php echo $txt_commande_r2; ?></a></th>
							</tr>
							
							<?php if ($commandes) { ?>
								<?php foreach($commandes as $commande) { ?>
									<tr>
										<td><input type="checkbox" name="ligne2[]" id="ligne_<?php echo $commande['id_mr_rel_pt_order']; ?>" value="<?php echo $commande['id_mr_rel_pt_order']; ?>" class="checkbox_hist_etiq" /> <img src="/admin/view/image/delmr.png" alt="Supprimer cette ligne" style="width:15px;"/></td>
										<td><?php echo $commande['date_creation']; ?></td>
										<td><?php echo $commande['id_order']; ?></td>
										<?php 
											if($commande['status'] == 'OK') { 
												$color = '#36E9D1'; 
											} else {
												$color = '#E9AD36'; 
											}
										?>
										<td style="background:<?php echo $color; ?>;"><?php echo $commande['status']; ?></td>
										<td><?php echo $commande['date_etiquette']; ?></td>
										<td><?php echo $commande['id_mr_num_point_relais']; ?></td>
										<td><?php echo $commande['num_expe']; ?></td>
										
										<?php if ($commande['url_pdf_etiq'] != '-') { ?>
											<td><a href="<?php echo $commande['url_pdf_etiq']; ?>" title="Telecharger l'etiquette" target="_blank">T&eacute;l&eacute;charger l'&eacute;tiquette</a></td>
										<?php } else { ?>
											<td>-</td>
										<?php } ?>
									</tr>
								<?php } ?>
							<?php } else { ?>
								<tr><td colspan="9"><?php echo $txt_commande_no_result; ?></td></tr>
							<?php } ?>
						</table>
					</form>
					
					<div class="heading" style="margin-top: 15px;">
						<div class="buttons"><a onclick="$('#form_del').submit();;" class="button" style="color:#fff;background: none repeat scroll 0 0 #003A88;"><?php echo $btn_del; ?></a></div>
					</div>
				</div>
				
				<div id="tab-information" class="tab-content">
					<table class="form">
						<tr>
							<td><?php echo $txt_info_version; ?> :</td>
							<td>1.03</td>
						</tr>
						<tr>
							<td><?php echo $txt_date_version; ?> :</td>
							<td>24/06/2013 10:00:00</td>
						</tr>
						<tr>
							<td><?php echo $txt_info_auteur; ?> :</td>
							<td>OXIWIZ EURL (contact@oxiwiz.fr)</td>
						</tr>
					</table>
				</div>
            </div>
        </div>
    </div>
</div>
<?php echo $footer; ?>

<script type="text/javascript"><!--
$('#tabs').tabs();
$('#tabs').tabs('select', '#<?php echo $onglet; ?>');

$(document).ready(function() {
	$('#allcheck_uncheck').live('click', function() {
		if($(this).is(':checked')){
			$('.checkbox_ss_etiq').attr('checked', true);
		} else {
			$('.checkbox_ss_etiq').attr('checked', false);
		}
	});
	
	$('#allcheck_uncheck2').live('click', function() {
		if($(this).is(':checked')){
			$('.checkbox_hist_etiq').attr('checked', true);
		} else {
			$('.checkbox_hist_etiq').attr('checked', false);
		}
	});
});
//--></script> 