Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/statistic/keymap.phtml
<table cellpadding="0" cellspacing="7" border="0">

<tr>
	<td align="center" colspan="2">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<tr>
	<td align="center" colspan="2" class="keymap">
		<div style="float: left">
			<a href="#" style="font-size:10px ">Texte 10px</a>
			<a href="#" style="font-size:15px ">Texte 15px</a>
			<a href="#" style="font-size:20px ">Texte 20px</a>
			<a href="#" style="font-size:25px ">Texte 25px</a>
		</div>
	</td>
</tr>
<tr>
	<td align="center" colspan="2" class="keymap">
		<div style="float: left">
			<span style="color: #333333">DEFAULT</span>
			<span style="color: #787878">#787878</span>
			<span style="color: #8db91c">#8db91c</span>
			<span style="color: #b9aa01">#b9aa01</span>
			<span style="color: #289bd4">#289bd4</span>
			<span style="color: #e22e3a">#e22e3a</span>
			<span style="color: #bb90bb">#bb90bb</span>
			<span  style="color: #009249">#009249</span>
			<span style="color: #f19408">#f19408</span>
			<span style="color: #e1037a">#e1037a</span>
		</div>
	</td>
</tr>
<tr>
	<td valign="top">
		<table cellpadding="0" cellspacing="7" border="0">
			<tr>
				<td align="center" colspan="4">
					<span class="text2">CATEGORIES</span>
				</td>
			</tr>
			<tr>
				<td>CATEGORIE</td>
				<td>COULEUR</td>
				<td>TAILLE</td>
				<td>POSITION</td>
				<td style="display:none;">VUES</td>
				<td></td>
			</tr>
			<?php 
			$listMapCat = $this->listMapCat;
			$listCat = $this->listCat;
			$show = array();
			foreach($listCat as $row) {
			
			?>		
			<tr>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/statistic/keymapcatedit" method="post">
				<td class="text1">
					<?php echo $this->escape($row['NOM']);  ?>
				</td>
				<td>
					<input type="text" size="7" name="colorKey" value="<?php if (isset($listMapCat[$row['ID']]['COLOR'])) { echo $listMapCat[$row['ID']]['COLOR'];} ?>">
				</td>
				<td>
					<input type="text" size="5" name="sizeKey" value="<?php if (isset($listMapCat[$row['ID']]['SIZE'])) { echo $listMapCat[$row['ID']]['SIZE'];} ?>">
				</td>
				<td>
					<input type="text" size="5" name="positionKey" value="<?php if (isset($listMapCat[$row['ID']]['POSITION'])) { echo $listMapCat[$row['ID']]['POSITION']; } ?>">
					<input type="hidden" value="<?php echo $row['ID']; ?>" name="catId">
				</td>
				<td style="display:none;">
					<?php if (isset($listMapCat[$row['ID']]) && !empty($listMapCat[$row['ID']]['VIEW'])) { 
						 echo $listMapCat[$row['ID']]['VIEW']; 
					} ?>
				</td>
				<td>
					<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/edit.png" >
				</td>
			</form>
				<td>	
					<form action="<?php echo $this->baseUrl; ?>/backoffice/statistic/keymapshow" method="POST">
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="catIdShow">
						<input type="hidden" value="CAT" name="keyType">
						<?php if (isset($listMapCat[$row['ID']]) && !empty($listMapCat[$row['ID']]['ID']) && $listMapCat[$row['ID']]['isSHOW'] == 1) { ?>
							<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock0.png" name="showInput">
							<input type="hidden" name="showvalue" value="0">
						<?php } else { ?>
								<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock2.png" name="showInput">
								<input type="hidden" name="showvalue" value="1">
						<?php } ?>
					</form>
				</td>
			</tr>
			<?php }  ?>
		</table>
	</td>
	<td valign="top">
		<table cellpadding="0" cellspacing="7" border="0">
			<tr>
				<td align="center" colspan="4">
					<span class="text2">MARQUES</span>
				</td>
			</tr>
			<tr>
				<td>MARQUE</td>
				<td>COULEUR</td>
				<td>TAILLE</td>
				<td>POSITION</td>
				<td style="display:none;">VUES</td>
				<td></td>
			</tr>
			<?php 
			$listMapBrend = $this->listMapBrend;
			$listBrend = $this->listBrend;
			$show = array();
			foreach($listBrend as $row) {
			
			?>		
			<tr>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/statistic/keymapbrendedit" method="post">
				<td class="text1">
					<?php echo $this->escape($row['BREND']);  ?>
				</td>
				<td>
					<input type="text" size="7" name="colorKey" value="<?php if (isset($listMapBrend[$row['ID']]['COLOR'])) { echo $listMapBrend[$row['ID']]['COLOR'];} ?>">
				</td>
				<td>
					<input type="text" size="5" name="sizeKey" value="<?php if (isset($listMapBrend[$row['ID']]) && isset($listMapBrend[$row['ID']]['ID'])) { echo $listMapBrend[$row['ID']]['SIZE']; } ?>">
				</td>
				<td>
					<input type="text" size="5" name="positionKey" value="<?php if (isset($listMapBrend[$row['ID']]) && isset($listMapBrend[$row['ID']]['ID'])) { echo $listMapBrend[$row['ID']]['POSITION']; } ?>">
					<input type="hidden" value="<?php echo $row['ID']; ?>" name="brendId">
				</td>
				<td style="display:none;">
					<?php if (isset($listMapBrend[$row['ID']]) && !empty($listMapBrend[$row['ID']]['VIEW'])) { 
						 echo $listMapBrend[$row['ID']]['VIEW']; 
					} ?>
				</td>
				<td>
					<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/edit.png" >
				</td>
			
			</form>	
				<td>
					<form action="<?php echo $this->baseUrl; ?>/backoffice/statistic/keymapshow" method="POST">
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="brendIdShow">
						<input type="hidden" value="BREND" name="keyType">
						<?php if (isset($listMapBrend[$row['ID']]) && !empty($listMapBrend[$row['ID']]['ID']) && $listMapBrend[$row['ID']]['isSHOW'] == 1) { ?>
							<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock0.png" name="showInput">
							<input type="hidden" name="showvalue" value="0">
						<?php } else { ?>
								<input type="image" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock2.png" name="showInput">
								<input type="hidden" name="showvalue" value="1">
						<?php } ?>
					</form>
					
				</td>
			</tr>
			<?php }  ?>
		</table>
	</td>
</tr>

</table>