Current File : /home/k/a/r/karenpetzb/www/items/category/views.zip
PK��G[
g�s	enter.phpnu�[���<div class="akismet-enter-api-key-box centered">
	<button class="akismet-enter-api-key-box__reveal"><?php esc_html_e( 'Manually enter an API key', 'akismet' ); ?></button>
	<div class="akismet-enter-api-key-box__form-wrapper">
		<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post">
			<?php wp_nonce_field( Akismet_Admin::NONCE ); ?>
			<input type="hidden" name="action" value="enter-key">
			<h3 class="akismet-enter-api-key-box__header" id="akismet-enter-api-key-box__header"><?php esc_html_e( 'Enter your API key', 'akismet' ); ?></h3>
			<div class="akismet-enter-api-key-box__input-wrapper">
				<input id="key" name="key" type="text" size="15" value="" placeholder="<?php esc_attr_e( 'API key', 'akismet' ); ?>" class="akismet-enter-api-key-box__key-input regular-text code" aria-labelledby="akismet-enter-api-key-box__header">
				<input type="submit" name="submit" id="submit" class="akismet-button" value="<?php esc_attr_e( 'Connect with API key', 'akismet' ); ?>">
			</div>
		</form>
	</div>
</div>
PK��G[)�Y�}}	title.phpnu�[���<div class="centered akismet-box-header">
	<h2><?php esc_html_e( 'Eliminate spam from your site', 'akismet' ); ?></h2>
</div>PK��G[�H�nlogo.phpnu�[���<?php
//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
?>
<div class="akismet-masthead__logo-container">
	<?php if ( isset( $include_logo_link ) && $include_logo_link === true ) : ?>
		<a href="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" class="akismet-masthead__logo-link">
	<?php endif; ?>
	<img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/akismet-refresh-logo@2x.png', __FILE__ ) ); ?>" srcset="<?php echo esc_url( plugins_url( '../_inc/img/akismet-refresh-logo.svg', __FILE__ ) ); ?>" alt="Akismet logo" />
	<?php if ( isset( $include_logo_link ) && $include_logo_link === true ) : ?>
		</a>
	<?php endif; ?>
</div>
PK��G[c�11	start.phpnu�[���<?php

//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.

?>
<div id="akismet-plugin-container">
	<div class="akismet-masthead">
		<div class="akismet-masthead__inside-container">
			<?php Akismet::view( 'logo' ); ?>
		</div>
	</div>
	<div class="akismet-lower">
		<?php Akismet_Admin::display_status(); ?>
		<div class="akismet-boxes">
			<?php

			if ( Akismet::predefined_api_key() ) {
				Akismet::view( 'predefined' );
			} elseif ( $akismet_user && in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub', 'missing', 'cancelled', 'suspended' ) ) ) {
				Akismet::view( 'connect-jp', compact( 'akismet_user' ) );
			} else {
				Akismet::view( 'activate' );
			}

			?>
		</div>
	</div>
</div>PK��G[���l<<
notice.phpnu�[���<?php
//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
$kses_allow_link   = array(
	'a' => array(
		'href'   => true,
		'target' => true,
	),
);
$kses_allow_strong = array( 'strong' => true );

if ( ! isset( $type ) ) {
	$type = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
}

/*
 * Some notices (plugin, spam-check, spam-check-cron-disabled, alert and usage-limit) are also shown elsewhere in wp-admin, so have different classes applied so that they match the standard WordPress notice format.
 */
?>
<?php if ( $type === 'plugin' ) : ?>
	<?php // Displayed on edit-comments.php to users who have not set up Akismet yet. ?>
	<div class="updated" id="akismet-setup-prompt">
		<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post">
			<div class="akismet-activate">
				<input type="submit" class="akismet-activate__button akismet-button" value="<?php esc_attr_e( 'Set up your Akismet account', 'akismet' ); ?>" />
				<div class="akismet-activate__description">
					<?php esc_html_e( 'Almost done! Configure Akismet and say goodbye to spam', 'akismet' ); ?>
				</div>
			</div>
		</form>
	</div>

<?php elseif ( $type === 'spam-check' ) : ?>
	<?php // This notice is only displayed on edit-comments.php. ?>
	<div class="notice notice-warning">
		<p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' ); ?></strong></p>
		<p><?php esc_html_e( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ); ?></p>
		<?php if ( ! empty( $link_text ) ) : ?>
			<p><?php echo wp_kses( $link_text, $kses_allow_link ); ?></p>
		<?php endif; ?>
	</div>

<?php elseif ( $type === 'spam-check-cron-disabled' ) : ?>
	<?php // This notice is only displayed on edit-comments.php. ?>
	<div class="notice notice-warning">
		<p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' ); ?></strong></p>
		<p><?php esc_html_e( 'WP-Cron has been disabled using the DISABLE_WP_CRON constant. Comment rechecks may not work properly.', 'akismet' ); ?></p>
	</div>

<?php elseif ( $type === 'alert' && $code === Akismet::ALERT_CODE_COMMERCIAL && $parent_view === 'config' ) : ?>
	<?php // Display a different commercial warning alert on the config page ?>
	<div class="akismet-card akismet-alert is-commercial">
		<div>
			<h3 class="akismet-alert-header"><?php esc_html_e( 'We detected commercial activity on your site', 'akismet' ); ?></h3>
			<p class="akismet-alert-info">
				<?php
					/* translators: The placeholder is a URL. */
					echo wp_kses( sprintf( __( 'Your current subscription is for <a href="%s">personal, non-commercial use</a>. Please upgrade your plan to continue using Akismet.', 'akismet' ), esc_url( 'https://akismet.com/support/getting-started/free-or-paid/' ) ), $kses_allow_link );
				?>
			</p>
			<p class="akismet-alert-info">
				<?php
					/* translators: The placeholder is a URL to the contact form. */
					echo wp_kses( sprintf( __( 'If you believe your site should not be classified as commercial, <a href="%s">please get in touch</a>.', 'akismet' ), esc_url( 'https://akismet.com/contact/?purpose=commercial' ) ), $kses_allow_link );
				?>
			</p>
		</div>
		<div class="akismet-alert-button-wrapper">
			<a href="https://akismet.com/pricing/?flow=upgrade&amp;utm_source=akismet_plugin&amp;utm_campaign=commercial_notice&amp;utm_medium=banner" class="akismet-alert-button akismet-button">
			<?php esc_html_e( 'Upgrade plan', 'akismet' ); ?>
			</a>
		</div>
	</div>

<?php elseif ( $type === 'alert' ) : ?>
<div class="<?php echo isset( $parent_view ) && $parent_view === 'config' ? 'akismet-alert is-bad' : 'error'; ?>">
	<?php /* translators: The placeholder is an error code returned by Akismet. */ ?>
	<p><strong><?php printf( esc_html__( 'Akismet error code: %s', 'akismet' ), esc_html( $code ) ); ?></strong></p>
	<p><?php echo isset( $msg ) ? esc_html( $msg ) : ''; ?></p>
	<p>
		<?php
		/* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
		printf( esc_html__( 'For more information: %s', 'akismet' ), '<a href="https://akismet.com/errors/' . esc_attr( $code ) . '">https://akismet.com/errors/' . esc_attr( $code ) . '</a>' );
		?>
	</p>
</div>

<?php elseif ( $type === 'notice' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php echo wp_kses( $notice_header, Akismet_Admin::get_notice_kses_allowed_elements() ); ?></h3>
	<p>
		<?php echo wp_kses( $notice_text, Akismet_Admin::get_notice_kses_allowed_elements() ); ?>
	</p>
</div>

<?php elseif ( $type === 'missing-functions' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'Network functions are disabled.', 'akismet' ); ?></h3>
	<p>
		<?php
		/* translators: The placeholder is a URL. */
		echo wp_kses( sprintf( __( 'Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> function.  <strong>Akismet cannot work correctly until this is fixed.</strong>  Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet' ), esc_url( 'https://akismet.com/akismet-hosting-faq/' ) ), array_merge( $kses_allow_link, $kses_allow_strong, array( 'code' => true ) ) );
		?>
	</p>
</div>

<?php elseif ( $type === 'servers-be-down' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'Your site can&#8217;t connect to the Akismet servers.', 'akismet' ); ?></h3>
	<p>
	<?php
		/* translators: The placeholder is a URL. */
		echo wp_kses( sprintf( __( 'Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet' ), esc_url( 'https://akismet.com/akismet-hosting-faq/' ) ), $kses_allow_link );
	?>
	</p>
</div>

<?php elseif ( $type === 'active-dunning' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'Please update your payment information.', 'akismet' ); ?></h3>
	<p>
		<?php
		/* translators: The placeholder is a URL. */
		echo wp_kses( sprintf( __( 'We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.', 'akismet' ), esc_url( 'https://akismet.com/account/' ) ), $kses_allow_link );
		?>
	</p>
</div>

<?php elseif ( $type === 'cancelled' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'Your Akismet plan has been cancelled.', 'akismet' ); ?></h3>
	<p>
		<?php
		/* translators: The placeholder is a URL. */
		echo wp_kses( sprintf( __( 'Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet' ), esc_url( 'https://akismet.com/account/' ) ), $kses_allow_link );
		?>
	</p>
</div>

<?php elseif ( $type === 'suspended' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'Your Akismet subscription is suspended.', 'akismet' ); ?></h3>
	<p>
		<?php
		/* translators: The placeholder is a URL. */
		echo wp_kses( sprintf( __( 'Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet' ), esc_url( 'https://akismet.com/contact/' ) ), $kses_allow_link );
		?>
	</p>
</div>

<?php elseif ( $type === 'active-notice' && $time_saved ) : ?>
<div class="akismet-alert is-neutral">
	<h3 class="akismet-alert__heading"><?php echo esc_html( $time_saved ); ?></h3>
	<p>
		<?php
		/* translators: the placeholder is a clickable URL to the Akismet account upgrade page. */
		echo wp_kses( sprintf( __( 'You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet' ), esc_url( 'https://akismet.com/pricing' ) ), $kses_allow_link );
		?>
	</p>
</div>

<?php elseif ( $type === 'missing' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'There is a problem with your API key.', 'akismet' ); ?></h3>
	<p>
		<?php
		/* translators: The placeholder is a URL to the Akismet contact form. */
		echo wp_kses( sprintf( __( 'Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet' ), esc_url( 'https://akismet.com/contact/' ) ), $kses_allow_link );
		?>
	</p>
</div>

<?php elseif ( $type === 'no-sub' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'You don&#8217;t have an Akismet plan.', 'akismet' ); ?></h3>
	<p><?php echo esc_html__( 'Your API key must have an Akismet plan before it can protect your site from spam.', 'akismet' ); ?></p>
	<p>
		<?php
		/* translators: the placeholder is the URL to the Akismet pricing page. */
		echo wp_kses( sprintf( __( 'Please <a href="%s" target="_blank">choose a plan</a> to get started with Akismet.', 'akismet' ), esc_url( 'https://akismet.com/pricing' ) ), $kses_allow_link );
		?>
	</p>
</div>

<?php elseif ( $type === 'new-key-valid' ) : ?>
	<?php
	global $wpdb;

	$check_pending_link = false;

	$at_least_one_comment_in_moderation = ! ! $wpdb->get_var( "SELECT comment_ID FROM {$wpdb->comments} WHERE comment_approved = '0' LIMIT 1" );

	if ( $at_least_one_comment_in_moderation ) {
		$check_pending_link = 'edit-comments.php?akismet_recheck=' . wp_create_nonce( 'akismet_recheck' );
	}
	?>
	<div class="akismet-alert is-good">
		<p><?php esc_html_e( 'Akismet is now protecting your site from spam.', 'akismet' ); ?></p>
		<?php if ( $check_pending_link ) : ?>
			<p>
				<?php
				echo wp_kses(
					sprintf(
						/* translators: The placeholder is a URL for checking pending comments. */
						__( 'Would you like to <a href="%s">check pending comments</a>?', 'akismet' ),
						esc_url( $check_pending_link )
					),
					$kses_allow_link
				);
				?>
			</p>
		<?php endif; ?>
	</div>

<?php elseif ( $type === 'new-key-invalid' ) : ?>
<div class="akismet-alert is-bad">
	<p><?php esc_html_e( 'The key you entered is invalid. Please double-check it.', 'akismet' ); ?></p>
</div>

<?php elseif ( $type === Akismet_Admin::NOTICE_EXISTING_KEY_INVALID ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php echo esc_html( __( 'Your API key is no longer valid.', 'akismet' ) ); ?></h3>
	<p>
		<?php
		echo wp_kses(
			sprintf(
				/* translators: The placeholder is a URL to the Akismet contact form. */
				__( 'Please enter a new key or <a href="%s" target="_blank">contact Akismet support</a>.', 'akismet' ),
				'https://akismet.com/contact/'
			),
			$kses_allow_link
		);
		?>
	</p>
</div>

<?php elseif ( $type === 'new-key-failed' ) : ?>
<div class="akismet-alert is-bad">
	<h3 class="akismet-alert__heading"><?php esc_html_e( 'The API key you entered could not be verified.', 'akismet' ); ?></h3>
	<p>
		<?php
		echo wp_kses(
			sprintf(
				/* translators: The placeholder is a URL. */
				__( 'The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet' ),
				'https://blog.akismet.com/akismet-hosting-faq/'
			),
			$kses_allow_link
		);
		?>
	</p>
</div>

<?php elseif ( $type === 'usage-limit' && isset( Akismet::$limit_notices[ $code ] ) ) : ?>
<div class="error akismet-usage-limit-alert">
	<div class="akismet-usage-limit-logo">
		<img src="<?php echo esc_url( plugins_url( '../_inc/img/logo-a-2x.png', __FILE__ ) ); ?>" alt="Akismet logo" />
	</div>
	<div class="akismet-usage-limit-text">
		<h3>
		<?php
		switch ( Akismet::$limit_notices[ $code ] ) {
			case 'FIRST_MONTH_OVER_LIMIT':
			case 'SECOND_MONTH_OVER_LIMIT':
				esc_html_e( 'Your Akismet account usage is over your plan&#8217;s limit', 'akismet' );
				break;
			case 'THIRD_MONTH_APPROACHING_LIMIT':
				esc_html_e( 'Your Akismet account usage is approaching your plan&#8217;s limit', 'akismet' );
				break;
			case 'THIRD_MONTH_OVER_LIMIT':
			case 'FOUR_PLUS_MONTHS_OVER_LIMIT':
				esc_html_e( 'Your account has been restricted', 'akismet' );
				break;
			default:
		}
		?>
		</h3>
		<p>
		<?php
		switch ( Akismet::$limit_notices[ $code ] ) {
			case 'FIRST_MONTH_OVER_LIMIT':
				echo esc_html(
					sprintf(
						/* translators: The first placeholder is a date, the second is a (formatted) number, the third is another formatted number. */
						__( 'Since %1$s, your account made %2$s API calls, compared to your plan&#8217;s limit of %3$s.', 'akismet' ),
						esc_html( gmdate( 'F' ) . ' 1' ),
						number_format( $api_calls ),
						number_format( $usage_limit )
					)
				);
				echo '&nbsp;';
				echo '<a href="https://docs.akismet.com/akismet-api-usage-limits/" target="_blank">';
				echo esc_html( __( 'Learn more about usage limits.', 'akismet' ) );
				echo '</a>';

				break;
			case 'SECOND_MONTH_OVER_LIMIT':
				echo esc_html( __( 'Your Akismet usage has been over your plan&#8217;s limit for two consecutive months. Next month, we will restrict your account after you reach the limit. Please consider upgrading your plan.', 'akismet' ) );
				echo '&nbsp;';
				echo '<a href="https://docs.akismet.com/akismet-api-usage-limits/" target="_blank">';
				echo esc_html( __( 'Learn more about usage limits.', 'akismet' ) );
				echo '</a>';

				break;
			case 'THIRD_MONTH_APPROACHING_LIMIT':
				echo esc_html( __( 'Your Akismet usage is nearing your plan&#8217;s limit for the third consecutive month. We will restrict your account after you reach the limit. Upgrade your plan so Akismet can continue blocking spam.', 'akismet' ) );
				echo '&nbsp;';
				echo '<a href="https://docs.akismet.com/akismet-api-usage-limits/" target="_blank">';
				echo esc_html( __( 'Learn more about usage limits.', 'akismet' ) );
				echo '</a>';

				break;
			case 'THIRD_MONTH_OVER_LIMIT':
			case 'FOUR_PLUS_MONTHS_OVER_LIMIT':
				echo esc_html( __( 'Your Akismet usage has been over your plan&#8217;s limit for three consecutive months. We have restricted your account for the rest of the month. Upgrade your plan so Akismet can continue blocking spam.', 'akismet' ) );
				echo '&nbsp;';
				echo '<a href="https://docs.akismet.com/akismet-api-usage-limits/" target="_blank">';
				echo esc_html( __( 'Learn more about usage limits.', 'akismet' ) );
				echo '</a>';

				break;

			default:
		}
		?>
		</p>
	</div>
	<div class="akismet-usage-limit-cta">
		<a href="<?php echo esc_attr( $upgrade_url ); ?>" class="button" target="_blank">
			<?php
			if ( isset( $upgrade_via_support ) && $upgrade_via_support ) {
				// Direct user to contact support.
				esc_html_e( 'Contact Akismet support', 'akismet' );
			} elseif ( ! empty( $upgrade_type ) && 'qty' === $upgrade_type ) {
				// If only a qty upgrade is required, show a more generic message.
				esc_html_e( 'Upgrade your subscription level', 'akismet' );
			} else {
				echo esc_html(
					sprintf(
						/* translators: The placeholder is the name of a subscription level, like "Plus" or "Enterprise" . */
						__( 'Upgrade to %s', 'akismet' ),
						$upgrade_plan
					)
				);
			}
			?>
		</a>
	</div>
</div>
<?php endif; ?>
PK��G[�=�6QQ	setup.phpnu�[���<div class="akismet-setup-instructions">
	<p><?php esc_html_e( 'Set up your Akismet account to enable spam filtering on this site.', 'akismet' ); ?></p>
	<?php
	Akismet::view(
		'get',
		array(
			'text'    => __( 'Choose an Akismet plan', 'akismet' ),
			'classes' => array( 'akismet-button', 'akismet-is-primary' ),
		)
	);
	?>
</div>
PK��G[%-<g88predefined.phpnu�[���<div class="akismet-box">
	<h2><?php esc_html_e( 'Manual Configuration', 'akismet' ); ?></h2>
	<p>
		<?php

		/* translators: %s is the wp-config.php file */
		printf( esc_html__( 'An Akismet API key has been defined in the %s file for this site.', 'akismet' ), '<code>wp-config.php</code>' );

		?>
	</p>
</div>PK��G[�ץ���connect-jp.phpnu�[���<?php

//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.

?>
<div class="akismet-box">
	<?php Akismet::view( 'title' ); ?>
	<div class="akismet-jp-connect">
		<h3><?php esc_html_e( 'Connect with Jetpack', 'akismet' ); ?></h3>
		<?php if ( in_array( $akismet_user->status, array( 'no-sub', 'missing' ) ) ) { ?>
			<p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p>
			<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank">
				<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
				<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
				<input type="hidden" name="auto-connect" value="<?php echo esc_attr( $akismet_user->ID ); ?>"/>
				<input type="hidden" name="redirect" value="plugin-signup"/>
				<input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack', 'akismet' ); ?>"/>
			</form>
			<?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?>
			<p>
				<?php

				/* translators: %s is the WordPress.com username */
				printf( esc_html( __( 'You are connected as %s.', 'akismet' ) ), '<b>' . esc_html( $akismet_user->user_login ) . '</b>' );

				?>
				<br />
				<span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span>
			</p>
		<?php } elseif ( $akismet_user->status == 'cancelled' ) { ?>
			<p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p>
			<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank">
				<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
				<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
				<input type="hidden" name="user_id" value="<?php echo esc_attr( $akismet_user->ID ); ?>"/>
				<input type="hidden" name="redirect" value="upgrade"/>
				<input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack', 'akismet' ); ?>"/>
			</form>
			<?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?>
			<p>
				<?php

				/* translators: %s is the WordPress.com email address */
				echo esc_html( sprintf( __( 'Your subscription for %s is cancelled.', 'akismet' ), $akismet_user->user_email ) );

				?>
				<br />
				<span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span>
			</p>
		<?php } elseif ( $akismet_user->status == 'suspended' ) { ?>
			<div class="akismet-right">
				<p><a href="https://akismet.com/contact" class="akismet-button akismet-is-primary"><?php esc_html_e( 'Contact Akismet support', 'akismet' ); ?></a></p>
			</div>
			<p>
				<span class="akismet-alert-text">
					<?php

					/* translators: %s is the WordPress.com email address */
					echo esc_html( sprintf( __( 'Your subscription for %s is suspended.', 'akismet' ), $akismet_user->user_email ) );

					?>
				</span>
				<?php esc_html_e( 'No worries! Get in touch and we&#8217;ll sort this out.', 'akismet' ); ?>
			</p>
		<?php } else { // ask do they want to use akismet account found using jetpack wpcom connection ?>
			<p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p>
			<form name="akismet_use_wpcom_key" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-activate" class="akismet-right">
				<input type="hidden" name="key" value="<?php echo esc_attr( $akismet_user->api_key ); ?>"/>
				<input type="hidden" name="action" value="enter-key">
				<?php wp_nonce_field( Akismet_Admin::NONCE ); ?>
				<input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack', 'akismet' ); ?>"/>
			</form>
			<?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?>
			<p>
				<?php

				/* translators: %s is the WordPress.com username */
				printf( esc_html( __( 'You are connected as %s.', 'akismet' ) ), '<b>' . esc_html( $akismet_user->user_login ) . '</b>' );

				?>
				<br />
				<span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span>
			</p>
		<?php } ?>
	</div>
	<div class="akismet-ak-connect">
		<?php Akismet::view( 'setup' ); ?>
	</div>
	<div class="centered akismet-toggles">
		<a href="#" class="toggle-jp-connect"><?php esc_html_e( 'Connect with Jetpack', 'akismet' ); ?></a>
		<a href="#" class="toggle-ak-connect"><?php esc_html_e( 'Set up a different account', 'akismet' ); ?></a>
	</div>
</div>
<br/>
<div class="akismet-box">
	<?php Akismet::view( 'enter' ); ?>
</div>
PK��G[��Vs@@	stats.phpnu�[���<div id="akismet-plugin-container">
	<div class="akismet-masthead">
		<div class="akismet-masthead__inside-container">
			<?php Akismet::view( 'logo', array( 'include_logo_link' => true ) ); ?>
			<div class="akismet-masthead__back-link-container">
				<a class="akismet-masthead__back-link" href="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"><?php esc_html_e( 'Back to settings', 'akismet' ); ?></a>
			</div>
		</div>
	</div>
	<?php /* name attribute on iframe is used as a cache-buster here to force Firefox to load the new style charts: https://bugzilla.mozilla.org/show_bug.cgi?id=356558 */ ?>
	<iframe id="stats-iframe" src="<?php echo esc_url( sprintf( 'https://tools.akismet.com/1.0/user-stats.php?blog=%s&token=%s&locale=%s&is_redecorated=1', urlencode( get_option( 'home' ) ), urlencode( Akismet::get_access_token() ), esc_attr( get_user_locale() ) ) ); ?>" name="<?php echo esc_attr( 'user-stats- ' . filemtime( __FILE__ ) ); ?>" width="100%" height="2500px" frameborder="0" title="<?php echo esc_attr__( 'Akismet detailed stats', 'akismet' ); ?>"></iframe>
</div>
PK��G[Op1,��activate.phpnu�[���<div class="akismet-box">
	<?php Akismet::view( 'title' ); ?>
	<?php Akismet::view( 'setup' ); ?>
</div>
<br/>
<div class="akismet-box">
	<?php Akismet::view( 'enter' ); ?>
</div>PK��G[���3NNcompatible-plugins.phpnu�[���<?php

/** @var array|WP_Error $compatible_plugins */
$compatible_plugins = Akismet_Compatible_Plugins::get_installed_compatible_plugins();
if ( is_array( $compatible_plugins ) ) :

	$compatible_plugin_count = count( $compatible_plugins );
	?>
	<div class="akismet-card akismet-compatible-plugins">
		<div class="akismet-section-header">
			<h2 class="akismet-section-header__label  akismet-compatible-plugins__section-header-label" aria-label="<?php esc_attr_e( 'Compatible plugins (new feature)', 'akismet' ); ?>">
				<span class="akismet-compatible-plugins__section-header-label-text"><?php esc_html_e( 'Compatible plugins', 'akismet' ); ?></span>
				<span class="akismet-new-feature"><?php esc_html_e( 'New', 'akismet' ); ?></span>
			</h2>
		</div>

		<div class="akismet-compatible-plugins__content">
			<?php

			echo '<p>';
			echo esc_html( __( 'Akismet works with other plugins to keep spam away.', 'akismet' ) );
			echo '</p>';

			echo '<p>';

			if ( 0 === $compatible_plugin_count ) {
				echo '<a class="akismet-settings__external-link" href="https://akismet.com/developers/plugins-and-libraries/">';
				echo esc_html( __( 'See supported integrations', 'akismet' ) );
				echo '</a>';
			} else {
				echo esc_html(
					_n(
						"The plugin you've installed is compatible. Follow the documentation link to get started.",
						"The plugins you've installed are compatible. Follow the documentation links to get started.",
						$compatible_plugin_count,
						'akismet'
					)
				);
			}

			echo '</p>';

			?>

			<?php if ( ! empty( $compatible_plugins ) ) : ?>
				<ul class="akismet-compatible-plugins__list" id="akismet-compatible-plugins__list">
					<?php

					foreach ( $compatible_plugins as $compatible_plugin ) :
						if ( empty( $compatible_plugin['help_url'] ) ) {
							continue;
						}

						?>
						<li class="akismet-compatible-plugins__card">
							<?php if ( strlen( $compatible_plugin['logo'] ) > 0 ) : ?>
								<?php

								$logo_alt = sprintf(
									/* translators: The placeholder is the name of a plugin, like "Jetpack" . */
									__( '%s logo', 'akismet' ),
									$compatible_plugin['name']
								);

								?>
								<img
									src="<?php echo esc_url( $compatible_plugin['logo'] ); ?>"
									alt="<?php echo esc_attr( $logo_alt ); ?>"
									class="akismet-compatible-plugins__card-logo"
									width="55"
									height="55"
								/>
							<?php endif ?>
							<div class="akismet-compatible-plugins__card-detail">
								<h3 class="akismet-compatible-plugins__card-title"><?php echo esc_html( $compatible_plugin['name'] ); ?></h3>
								<div class="akismet-compatible-plugins__docs">
									<a
										class="akismet-settings__external-link"
										href="<?php echo esc_url( $compatible_plugin['help_url'] ); ?>"
										aria-label="
											<?php

											echo esc_attr(
												sprintf(
													/* translators: The placeholder is the name of a plugin, like "Jetpack" . */
													__( 'Documentation for %s', 'akismet' ),
													$compatible_plugin['name']
												)
											);

											?>
									"><?php esc_html_e( 'View documentation', 'akismet' ); ?></a>
								</div>
							</div>
						</li>
					<?php endforeach; ?>
				</ul>

				<?php if ( $compatible_plugin_count > Akismet_Compatible_Plugins::DEFAULT_VISIBLE_PLUGIN_COUNT ) : ?>
					<button class="akismet-compatible-plugins__show-more"
						aria-expanded="false"
						aria-controls="akismet-compatible-plugins__list"
						data-label-closed="
							<?php

							/* translators: %d: number of compatible plugins, which is guaranteed to be more than 1. */
							echo esc_attr( sprintf( __( 'Show all %d plugins', 'akismet' ), $compatible_plugin_count ) );

							?>
						"
						data-label-open="<?php echo esc_attr( __( 'Show less', 'akismet' ) ); ?>">
						<?php

						/* translators: %d: number of compatible plugins, which is guaranteed to be more than 1. */
						echo esc_html( sprintf( __( 'Show all %d plugins', 'akismet' ), $compatible_plugin_count ) );

						?>
					</button>
				<?php endif; ?>

			<?php endif; ?>
		</div>
	</div>
	<?php
	endif;
PK��G[��7get.phpnu�[���<?php

//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.

$submit_classes_attr = 'akismet-button';

if ( isset( $classes ) && ( is_countable( $classes ) ? count( $classes ) : 0 ) > 0 ) {
	$submit_classes_attr = implode( ' ', $classes );
}
?>

<form name="akismet_activate" action="https://akismet.com/get/" method="POST" target="_blank">
	<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
	<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
	<input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? esc_attr( $redirect ) : 'plugin-signup'; ?>"/>
	<button type="submit" class="<?php echo esc_attr( $submit_classes_attr ); ?>" value="<?php echo esc_attr( $text ); ?>"><?php echo esc_attr( $text ) . '<span class="screen-reader-text">' . esc_html__( '(opens in a new tab)', 'akismet' ) . '</span>'; ?></button>
</form>
PK��G[��B�J<J<
config.phpnu�[���<?php

//phpcs:disable VariableAnalysis
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
$kses_allow_link_href = array(
	'a' => array(
		'href' => true,
	),
);
?>
<div id="akismet-plugin-container">
	<div class="akismet-masthead">
		<div class="akismet-masthead__inside-container">
			<?php Akismet::view( 'logo' ); ?>
		</div>
	</div>
	<div class="akismet-lower">
		<?php if ( Akismet::get_api_key() ) { ?>
			<?php Akismet_Admin::display_status(); ?>
		<?php } ?>
		<?php if ( ! empty( $notices ) ) { ?>
			<?php foreach ( $notices as $notice ) { ?>
				<?php Akismet::view( 'notice', array_merge( $notice, array( 'parent_view' => $name ) ) ); ?>
			<?php } ?>
		<?php } ?>

		<?php if ( isset( $stat_totals['all'] ) && isset( $stat_totals['6-months'] ) ) : ?>
			<div class="akismet-card">
				<div class="akismet-section-header">
					<h2 class="akismet-section-header__label">
						<span><?php esc_html_e( 'Statistics', 'akismet' ); ?></span>
					</h2>

					<div class="akismet-section-header__actions">
						<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>">
							<?php esc_html_e( 'Detailed stats', 'akismet' ); ?>
						</a>
					</div>
				</div> <!-- close akismet-section-header -->

				<div class="akismet-new-snapshot">
					<?php /* name attribute on iframe is used as a cache-buster here to force Firefox to load the new style charts: https://bugzilla.mozilla.org/show_bug.cgi?id=356558 */ ?>
					<div class="akismet-new-snapshot__chart">
						<iframe id="stats-iframe" allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 220px; overflow: hidden;" src="<?php echo esc_url( sprintf( 'https://tools.akismet.com/1.0/snapshot.php?blog=%s&token=%s&height=200&locale=%s&is_redecorated=1', rawurlencode( get_option( 'home' ) ), rawurlencode( Akismet::get_access_token() ), get_user_locale() ) ); ?>" name="<?php echo esc_attr( 'snapshot-' . filemtime( __FILE__ ) ); ?>" title="<?php echo esc_attr__( 'Akismet stats', 'akismet' ); ?>"></iframe>
					</div>

					<ul class="akismet-new-snapshot__list">
						<li class="akismet-new-snapshot__item">
							<h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'Past six months', 'akismet' ); ?></h3>
							<span class="akismet-new-snapshot__number"><?php echo number_format( $stat_totals['6-months']->spam ); ?></span>
							<span class="akismet-new-snapshot__text"><?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['6-months']->spam, 'akismet' ) ); ?></span>
						</li>
						<li class="akismet-new-snapshot__item">
							<h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'All time', 'akismet' ); ?></h3>
							<span class="akismet-new-snapshot__number"><?php echo number_format( $stat_totals['all']->spam ); ?></span>
							<span class="akismet-new-snapshot__text"><?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['all']->spam, 'akismet' ) ); ?></span>
						</li>
						<li class="akismet-new-snapshot__item">
							<h3 class="akismet-new-snapshot__header"><?php esc_html_e( 'Accuracy', 'akismet' ); ?></h3>
							<span class="akismet-new-snapshot__number"><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
							<span class="akismet-new-snapshot__text">
							<?php
							/* translators: %s: number of spam missed by Akismet */
							echo esc_html( sprintf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ) ) . ', ';
							/* translators: %s: number of false positive spam flagged by Akismet */
							echo esc_html( sprintf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ) );
							?>
							</span>
						</li>
					</ul>
				</div> <!-- close akismet-new-snapshot -->
			</div> <!-- close akismet-card -->
		<?php endif; ?>

		<?php if ( apply_filters( 'akismet_show_compatible_plugins', true ) ) : ?>
			<?php Akismet::view( 'compatible-plugins' ); ?>
		<?php endif; ?>

		<?php if ( $akismet_user ) : ?>
			<div class="akismet-card">
				<div class="akismet-section-header">
					<h2 class="akismet-section-header__label">
						<span><?php esc_html_e( 'Settings', 'akismet' ); ?></span>
					</h2>
				</div>

				<div class="inside">
					<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" autocomplete="off" method="POST" id="akismet-settings-form">

						<div class="akismet-settings">
							<?php if ( ! Akismet::predefined_api_key() ) : ?>
								<div class="akismet-settings__row">
									<h3 class="akismet-settings__row-title">
										<label class="akismet-settings__row-label" for="key"><?php esc_html_e( 'API key', 'akismet' ); ?></label>
									</h3>
									<div class="akismet-settings__row-input">
										<span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option( 'wordpress_api_key' ) ); ?>" class="<?php echo esc_attr( 'regular-text code ' . $akismet_user->status ); ?>"></span>
									</div>
								</div>
							<?php endif; ?>

							<?php
							//phpcs:ignore WordPress.Security.NonceVerification.Recommended
							if ( isset( $_GET['ssl_status'] ) ) :
								?>
								<div class="akismet-settings__row">
									<div class="akismet-settings__row-text">
										<h3 class="akismet-settings__row-title"><?php esc_html_e( 'SSL status', 'akismet' ); ?></h3>
										<div class="akismet-settings__row-description">
											<?php if ( ! wp_http_supports( array( 'ssl' ) ) ) : ?>
												<strong><?php esc_html_e( 'Disabled.', 'akismet' ); ?></strong>
												<?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?>
											<?php else : ?>
												<?php $ssl_disabled = get_option( 'akismet_ssl_disabled' ); ?>

												<?php if ( $ssl_disabled ) : ?>
													<strong><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></strong>
													<?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?>
												<?php else : ?>
													<strong><?php esc_html_e( 'Enabled.', 'akismet' ); ?></strong>
													<?php esc_html_e( 'All systems functional.', 'akismet' ); ?>
												<?php endif; ?>
											<?php endif; ?>
										</div>
									</div>
								</div>
							<?php endif; ?>

							<div class="akismet-settings__row">
								<div class="akismet-settings__row-text">
									<h3 class="akismet-settings__row-title"><?php esc_html_e( 'Comments', 'akismet' ); ?></h3>
								</div>
								<div class="akismet-settings__row-input">
									<label class="akismet-settings__row-input-label" for="akismet_show_user_comments_approved">
										<input
										name="akismet_show_user_comments_approved"
										id="akismet_show_user_comments_approved"
										value="1"
										type="checkbox"
										<?php
										// If the option isn't set, or if it's enabled ('1'), or if it was enabled a long time ago ('true'), check the checkbox.
										checked( true, ( in_array( get_option( 'akismet_show_user_comments_approved' ), array( false, '1', 'true' ), true ) ) );
										?>
										/>
										<span class="akismet-settings__row-label-text">
											<?php esc_html_e( 'Show the number of approved comments beside each comment author.', 'akismet' ); ?>
										</span>
									</label>
								</div>
							</div>

							<div class="akismet-settings__row is-radio">
								<div class="akismet-settings__row-text">
									<h3 class="akismet-settings__row-title"><?php esc_html_e( 'Spam filtering', 'akismet' ); ?></h3>
								</div>
								<div class="akismet-settings__row-input">
									<fieldset>
										<legend class="screen-reader-text">
											<span><?php esc_html_e( 'Akismet Anti-spam strictness', 'akismet' ); ?></span>
										</legend>
										<div>
											<label class="akismet-settings__row-input-label" for="akismet_strictness_1">
												<input type="radio" name="akismet_strictness" id="akismet_strictness_1" value="1" <?php checked( '1', get_option( 'akismet_strictness' ) ); ?> />
												<span class="akismet-settings__row-label-text">
													<?php esc_html_e( 'Silently discard the worst and most pervasive spam so I never see it.', 'akismet' ); ?>
												</span>
											</label>
										</div>
										<div>
											<label class="akismet-settings__row-input-label" for="akismet_strictness_0">
												<input type="radio" name="akismet_strictness" id="akismet_strictness_0" value="0" <?php checked( '0', get_option( 'akismet_strictness' ) ); ?> />
												<span class="akismet-settings__row-label-text">
													<?php esc_html_e( 'Always put spam in the Spam folder for review.', 'akismet' ); ?>
												</span>
											</label>
										</div>
									</fieldset>

									<div class="akismet-settings__row-note">
										<strong><?php esc_html_e( 'Note:', 'akismet' ); ?></strong>
										<?php
										$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );

										$spam_folder_link = sprintf(
											'<a href="%s">%s</a>',
											esc_url( admin_url( 'edit-comments.php?comment_status=spam' ) ),
											esc_html__( 'spam folder', 'akismet' )
										);

										// The _n() needs to be on one line so the i18n tooling can extract the translator comment.
										/* translators: %1$s: spam folder link, %2$d: delete interval in days */
										$delete_message = _n( 'Spam in the %1$s older than %2$d day is deleted automatically.', 'Spam in the %1$s older than %2$d days is deleted automatically.', $delete_interval, 'akismet' );

										printf(
											wp_kses( $delete_message, $kses_allow_link_href ),
											wp_kses( $spam_folder_link, $kses_allow_link_href ),
											esc_html( $delete_interval )
										);
										?>
									</div>
								</div>
							</div>

							<div class="akismet-settings__row is-radio">
								<div class="akismet-settings__row-text">
									<h3 class="akismet-settings__row-title"><?php esc_html_e( 'Privacy', 'akismet' ); ?></h3>
								</div>
								<div class="akismet-settings__row-input">
									<fieldset>
										<legend class="screen-reader-text">
											<span><?php esc_html_e( 'Akismet privacy notice', 'akismet' ); ?></span>
										</legend>
										<div>
											<label class="akismet-settings__row-input-label" for="akismet_comment_form_privacy_notice_display">
												<input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_display" value="display" <?php checked( 'display', get_option( 'akismet_comment_form_privacy_notice' ) ); ?> />
												<span class="akismet-settings__row-label-text">
													<?php esc_html_e( 'Display a privacy notice under your comment forms.', 'akismet' ); ?>
												</span>
											</label>
										</div>
										<div>
											<label class="akismet-settings__row-input-label" for="akismet_comment_form_privacy_notice_hide">
												<input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_hide" value="hide" <?php echo in_array( get_option( 'akismet_comment_form_privacy_notice' ), array( 'display', 'hide' ), true ) ? checked( 'hide', get_option( 'akismet_comment_form_privacy_notice' ), false ) : 'checked="checked"'; ?> />
												<span class="akismet-settings__row-label-text">
													<?php esc_html_e( 'Do not display privacy notice.', 'akismet' ); ?>
												</span>
											</label>
										</div>
									</fieldset>

									<div class="akismet-settings__row-note">
										<?php esc_html_e( 'To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms.', 'akismet' ); ?>
									</div>
								</div>
							</div>
						</div>

						<div class="akismet-card-actions">
							<?php if ( ! Akismet::predefined_api_key() ) : ?>
								<div id="delete-action" class="akismet-card-actions__secondary-action">
									<a class="submitdelete deletion" href="<?php echo esc_url( Akismet_Admin::get_page_url( 'delete_key' ) ); ?>"><?php esc_html_e( 'Disconnect this account', 'akismet' ); ?></a>
								</div>
							<?php endif; ?>

							<?php wp_nonce_field( Akismet_Admin::NONCE ); ?>

							<div id="publishing-action">
								<input type="hidden" name="action" value="enter-key">
								<input type="submit" name="submit" id="submit" class="akismet-button akismet-could-be-primary" value="<?php esc_attr_e( 'Save changes', 'akismet' ); ?>">
							</div>
						</div>
					</form>
				</div>
			</div>

			<?php if ( ! Akismet::predefined_api_key() ) : ?>
				<div class="akismet-card">
					<div class="akismet-section-header">
						<h2 class="akismet-section-header__label">
							<span><?php esc_html_e( 'Account', 'akismet' ); ?></span>
						</h2>
					</div>

					<div class="inside">
						<table class="akismet-account">
							<tbody>
								<tr>
									<th scope="row"><?php esc_html_e( 'Subscription type', 'akismet' ); ?></th>
									<td>
										<?php echo esc_html( $akismet_user->account_name ); ?>
									</td>
								</tr>
								<tr>
									<th scope="row"><?php esc_html_e( 'Status', 'akismet' ); ?></th>
									<td>
										<?php
										if ( 'cancelled' === $akismet_user->status ) :
											esc_html_e( 'Cancelled', 'akismet' );
										elseif ( 'suspended' === $akismet_user->status ) :
											esc_html_e( 'Suspended', 'akismet' );
										elseif ( 'missing' === $akismet_user->status ) :
											esc_html_e( 'Missing', 'akismet' );
										elseif ( 'no-sub' === $akismet_user->status ) :
											esc_html_e( 'No subscription found', 'akismet' );
										else :
											esc_html_e( 'Active', 'akismet' );
										endif;
										?>
									</td>
								</tr>
								<?php if ( $akismet_user->next_billing_date ) : ?>
								<tr>
									<th scope="row"><?php esc_html_e( 'Next billing date', 'akismet' ); ?></th>
									<td>
										<?php echo esc_html( gmdate( 'F j, Y', $akismet_user->next_billing_date ) ); ?>
									</td>
								</tr>
								<?php endif; ?>
							</tbody>
						</table>
						<div class="akismet-card-actions">
							<?php if ( $akismet_user->status === 'active' ) : ?>
								<div class="akismet-card-actions__secondary-action">
									<a href="https://akismet.com/account" class="akismet-settings__external-link" aria-label="Account overview on akismet.com"><?php esc_html_e( 'Account overview', 'akismet' ); ?></a>
								</div>
							<?php endif; ?>
							<div id="publishing-action">
								<?php
								Akismet::view(
									'get',
									array(
										'text'     => ( $akismet_user->account_type === 'free-api-key' && $akismet_user->status === 'active' ? __( 'Upgrade', 'akismet' ) : __( 'Change', 'akismet' ) ),
										'redirect' => 'upgrade',
									)
								);
								?>
							</div>
						</div>
					</div>
				</div>
			<?php endif; ?>
		<?php endif; ?>
	</div>
</div>
PKc�G[.���$scripts/annoncegallery/message.phtmlnu&1i�<div style="clear: both;">
<span class="errorText"><?php echo $this -> messageError; ?></span>
<span class="successText"><?php echo $this -> messageSuccess; ?></span> 
</div>
	PKc�G[@�~��/scripts/annoncegallery/ajaxshowallpicture.phtmlnu&1i�
<div class="table-box">
<table class="display table" id="AnnonceGalleryTable" width="100%">
	<thead>
		<tr>
			<th></th> 
			<th>Titre</th> 
			<th>Url</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listAnnonceGallery as $row)  { ?>
		<tr>
			<td>
				<?php if (!empty($row['URL'])) { 
					$urlPicture = $row['URL'];?>
					<ul class="gallerybox ">
						<li>
							<figure>
								<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
							</figure>
						</li>
					</ul>
				<?php } ?>
			</td>
			<td><?php echo $row['NOM'];?></td> 
			<td><?php echo '/'.$row['URL']; ?></td>
			<td>
				<?php if (!empty($row['URL'])) { 
					$urlPicture = $row['URL'];?>
				<div class="btn-group">
	             	<a class="btn btn-success" href="javascript:;" onclick="imageSelectedForArticle(<?php echo "'/".$urlPicture."'"; ?>, <?php echo "'/".Utils_Tool::find_thumb($urlPicture, 180)."'"; ?>);"><span class="glyphicon glyphicon-eye-open"></span> S&eacute;lectionner</a>
				</div>
				<?php } ?>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>	
	function imageSelectedForArticle(linkOriginal, linkThumb) { 
		var oldContent = tinyMCE.get('annonceContent').getContent();  
		var newsContent = oldContent.replace(/\/items\/gallery\/([0-9]+)\/([a-z\-0-9]+\.)+([a-z]+)/i, linkOriginal);    
		newsContent = newsContent.replace(/\/items\/gallery\/([0-9]+)\/([a-z\-0-9]+\_)+([0-9]+).([a-z]+)/i, linkThumb); 
		newsContent = newsContent.replace("/business/image/noimage.png", linkThumb);    
		newsContent = newsContent.replace("/business/image/noimage_big.png", linkOriginal);    
		tinyMCE.get('annonceContent').setContent(newsContent);
		$( "#pickImageFromGalleryContent" ).toggle();
	}		
	$(document).ready(function() {
		initDataTable('AnnonceGalleryTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0 }, { "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[n.��++!scripts/annoncegallery/edit.phtmlnu&1i� 
 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/edit" method="post" name="editAnnonceForm" enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceGallery['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceGallery['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Position</td>
				<td class="col-md-8"><input type="text" name="position" size="40" class="form-control"  placeholder="Position de l'image" id="position" value="<?php echo $this->populateFormAnnonceGallery['POSITION']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre non visible" id="nom" value="<?php echo $this->populateFormAnnonceGallery['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Cat�gorie</td>
				<td class="col-md-8">
					<?php $tabController = explode(':',$this->populateFormAnnonceGallery['ID_CATS']);  ?>
					<select class="form-control" size="15" name="categories[]" id="categories" multiple="multiple">
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if (in_array($row['ID'.$level], $tabController)) {echo 'selected="selected"';} ?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			
			<tr >
				<td >
					<label for="picture" >Image</label>
					<br/>
					<div class="col-md-12 text-center no-space-top">
						<?php if (!empty($this->populateFormAnnonceGallery['URL'])) { 
							$urlPicture = $this->populateFormAnnonceGallery['URL'];
						?>
						<ul class="gallerybox ">
							<li>
								<figure>
									<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
								</figure>
							</li>
						</ul>
						<?php } ?>
					</div>
				</td>
				<td>
					<input type="file" name="picture" id="picture" size="50"/>
					<br><i>Extensions : jpg, gif, png</i>
				</td>
			</tr>
			<tr >
				<td class="col-md-12" colspan="2">&nbsp;Contenu</td>
			</tr>
			<tr > 
				<td class="col-md-12" colspan="2"><input type="text" name="content_short" size="40" class="form-control"  placeholder="Titre de l'image" id="content_short" value="<?php echo $this->populateFormAnnonceGallery['CONTENT_SHORT']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-12" colspan="2"><input type="text" name="content_long" size="40" class="form-control"  placeholder="Sous-titre de l'image" id="content_long" value="<?php echo $this->populateFormAnnonceGallery['CONTENT_LONG']; ?>" /></td>
			</tr> 
			<tr>
				<td colspan="2" class="text-center">
					<input type="hidden" name="content" value="">
					<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceGallery['ID'];?>">
					<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	tinymce.init({
	  selector: 'textarea',
	  height: 500, 
	  convert_urls: false,
	  theme: 'modern',
	  skin: "lightgraygradient",
	  language: 'fr_FR',
	  plugins: [
		'advlist autolink lists link image charmap print preview hr anchor pagebreak',
		'searchreplace wordcount visualblocks visualchars code fullscreen',
		'insertdatetime media nonbreaking save table contextmenu directionality',
		'emoticons template paste textcolor colorpicker textpattern imagetools jbimages'
	  ],
	  toolbar1: 'insertfile undo redo | styleselect | bold italic forecolor backcolor emoticons | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages template | print preview media',
	  image_advtab: true,
	  relative_urls: false,
	  templates: <?php echo $this->FeatureTinymceTemplate; ?>,
	  content_css: '<?php echo $this->FeatureTinymceCss; ?>'
	 });
		
});
</script>
PKc�G[sem���!scripts/annoncegallery/list.phtmlnu&1i�
<div class="table-box">
<table class="display table" id="AnnonceGalleryTable" width="100%">
	<thead>
		<tr>
			<th></th> 
			<th>Titre</th> 
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listAnnonceGallery as $row)  { ?>
		<tr>
			<td>
				<?php if (!empty($row['URL'])) { 
					$urlPicture = $row['URL'];?>
					<ul class="gallerybox ">
						<li>
							<figure>
								<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
							</figure>
						</li>
					</ul>
				<?php } ?>
			</td>
			<td><?php echo $row['NOM'];?></td> 
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('AnnonceGalleryTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0 }, { "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[\�֏�� scripts/annoncegallery/add.phtmlnu&1i� 
 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/add" method="post" name="addAnnonceForm" enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceGallery['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceGallery['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Position</td>
				<td class="col-md-8"><input type="text" name="position" size="40" class="form-control"  placeholder="Position de l'image" id="position" value="<?php echo $this->populateFormAnnonceGallery['POSITION']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre non visible" id="nom" value="<?php echo $this->populateFormAnnonceGallery['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Cat�gorie</td>
				<td class="col-md-8">
					<?php $tabController = explode(':',$this->populateFormAnnonceGallery['ID_CATS']);  ?>
					<select class="form-control" size="15" name="categories[]" id="categories" multiple="multiple">
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if (in_array($row['ID'.$level], $tabController)) {echo 'selected="selected"';} ?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr >
				<td >
					<label for="picture" >Image</label>
					<br/>
					<div class="col-md-12 text-center no-space-top">
						<?php if (!empty($this->populateFormAnnonceGallery['URL'])) {
							$urlPicture = $this->populateFormAnnonceGallery['URL']; ?>
						<ul class="gallerybox ">
							<li>
								<figure>
									<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
								</figure>
							</li>
						</ul>
						<?php } ?>
					</div>
				</td>
				<td>
					<input type="file" name="picture" id="picture" size="50"/>
					<br><i>Extensions : jpg, gif, png</i>
				</td>
			</tr>
			<tr >
				<td class="col-md-12" colspan="2">&nbsp;Contenu</td>
			</tr>
			<tr > 
				<td class="col-md-12" colspan="2"><input type="text" name="content_short" size="40" class="form-control"  placeholder="Titre de l'image" id="content_short" value="<?php echo $this->populateFormAnnonceGallery['CONTENT_SHORT']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-12" colspan="2"><input type="text" name="content_long" size="40" class="form-control"  placeholder="Sous-titre de l'image" id="content_long" value="<?php echo $this->populateFormAnnonceGallery['CONTENT_LONG']; ?>" /></td>
			</tr> 
			<tr>
				<td colspan="2" class="text-center">
					<input type="hidden" name="content" value="">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	tinymce.init({
	  selector: 'textarea',
	  height: 500, 
	  convert_urls: false,
	  theme: 'modern',
	  skin: "lightgraygradient",
	  language: 'fr_FR',
	  plugins: [
		'advlist autolink lists link image charmap print preview hr anchor pagebreak',
		'searchreplace wordcount visualblocks visualchars code fullscreen',
		'insertdatetime media nonbreaking save table contextmenu directionality',
		'emoticons template paste textcolor colorpicker textpattern imagetools jbimages'
	  ],
	  toolbar1: 'insertfile undo redo | styleselect | bold italic forecolor backcolor emoticons | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages template | print preview media',
	  image_advtab: true,
	  relative_urls: false,
	  templates: <?php echo $this->FeatureTinymceTemplate; ?>,
	  content_css: '<?php echo $this->FeatureTinymceCss; ?>'
	 });
		
});
</script>
PKc�G[���e��scripts/index/index.phtmlnu&1i�<script type="text/javascript">var homePage = true;</script>

<!-- Fullscreen gallery start -->
<div class="slider" id="slider">
	<div id="gallery">
		<?php foreach ($this->listAllGalleries as $row) { 
			if (!empty($row['URL'])) { 			
				$info = getimagesize($row['URL']) ;
				list($width_old, $height_old) = $info;
		?>
		<img src="/business/light/img/blank.png" data-original="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" width="<?php echo $width_old; ?>" height="<?php echo $height_old; ?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>" />
		<?php } } ?>
		</div>
</div><!-- Slider div end / Fullscreen gallery end -->
<!--
<div id="fullscreen"><div id="fullscreen_icon" title="Plein �cran" class="qtip"></div></div>
<div id="play"><div id="play_icon" title="Lecture automatique" class="qtip"></div></div>
<div id="sound"><div id="sound_icon" title="Son on/off" class="qtip"></div></div>
 
<div id="desc_info"><div id="desc_info_icon" title="Description" class="qtip"></div></div>
-->
<div id="desc_cont">
	<?php foreach ($this->listAllGalleries as $row) { 
		if (!empty($row['URL'])) {
		if (!empty($row['CONTENT_SHORT']) || !empty($row['CONTENT_LONG'])) { ?>
	<div>
		<h2><?php echo $this->escape($row['CONTENT_SHORT']);?></h2>
		<p class="margin_1line"><?php echo $this->escape($row['CONTENT_LONG']);?></p>	
		<div class="desc-one-half float-left margin_1line">	
			<ul class="buy text-left">
				<li>ACHETER LES PHOTOS</li>
				<li>
					<ul>
						<li><a href="<?php echo $this->custom_link_1; ?>" title="JingoO" class="qtip"><img src="/business/light/img/icons/stock/fotolia.png" alt="JingoO" /></a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
	<?php } else { ?>
	<div></div>
	<?php  } } } ?>   
</div>
<div id="modal_shadow"></div>

<!-- Big navigation arrows -->
<div id="left"><div id="arrow_left"></div><a href="#" id="scroll_left"></a></div>
<div id="right"><div id="arrow_right"></div><a href="#" id="scroll_right"></a></div>

<!-- Thumbnails
<div id="gallery_hide"></div>
<div id="thumbnails_bg">
	<div id="mini_cont"> 
		<a class="prev" id="mini_prev" href="#"></a>
		<a class="next" id="mini_next" href="#"></a>
		<div id="thumbnails_cont">
			<div id="thumbnails"> 
			<?php foreach ($this->listAllGalleries as $row) { 
				if (!empty($row['URL'])) { ?>
				<a href="#"><img src="/business/light/img/blank.png" data-original="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 100);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/></a>
			<?php } } ?>
			</div> 
		</div> 
		<div id="bottom-line">
			<div id="author">&copy; <?php echo $this->siteName; ?></div>
		</div> 
	
	</div> 
</div> 

<div id="gallery-show"></div>
 -->
<div id="img-pattern"></div>
<!-- audio player -->
<div id="audio">
	<div id="jquery_jplayer_1" class="jp-jplayer"></div>
  <div id="jp_container_1" class="jp-audio"><div class="jp-type-single"></div></div>
</div><!-- end audio div -->
 PKc�G[��D��scripts/auth/login.phtmlnu&1i� <div class="loginwrapper whiter">
	<span class="circle"></span>
	<div class="loginone">
    	<header>
        	<a href="#"><img src="<?php echo $this->baseUrl; ?>/business/image/logo.png" alt="" /></a>
            <p>Entrez vos identifiants pour vous connecter</p> 
            <?php if ($this->messageError != null ||  $this->messageError != "") { ?>
            <div class="alert alert-danger"><?php echo $this->messageError; ?></div>
            <?php } ?>
        </header>      							
        <form action="<?php echo $this->baseUrl; ?>/backoffice/auth/login" method="post">
        	<div class="username">
        		<input type="text" class="form-control" placeholder="Votre identifiant" name="username" />
                <i class="glyphicon glyphicon-user"></i>
            </div>
            <div class="password">
            	<input type="password" class="form-control" placeholder="Votre mot de passe" name="password" />
                <i class="glyphicon glyphicon-lock"></i>
            </div>
            <div class="custom-radio-checkbox"></div> 
            <input type="submit" class="btn btn-default" value="Connexion" />
        </form>
    </div>           
</div>
		PKc�G[��(^�� scripts/fidelitypoint/list.phtmlnu&1i�
 <div class="table-box">
	<?php if ($this->populateFormAnnonce['TITRE']) { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/fidelitypoint/edit" method="post" name="editAnnonceForm" >
	<?php } else { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/fidelitypoint/add" method="post" name="addAnnonceForm" >
	<?php } ?>
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre de l'offre" name="titre" size="40" id="titre" value="<?php echo $this->populateFormAnnonce['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Points de fid�lit�</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Points de fid�lit� de l'offre" name="fidelitypoint" size="40" id="fidelitypoint" value="<?php echo $this->populateFormAnnonce['POINTFIDELITE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="1" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonce['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="0" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonce['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				<td class="col-md-8">
						<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
						<?php if (isset($this->populateFormAnnonce['CONTENT']) && !empty($this->populateFormAnnonce['CONTENT'])) { 
							 echo $this->populateFormAnnonce['CONTENT']; 
						} ?>
						</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<?php if ($this->populateFormAnnonce['TITRE']) { ?>
						<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonce['ID'];?>">
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
					<?php } else { ?>
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<?php } ?>
						
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#annonceContent');
});
</script>

 
 
 
 <div class="table-box">
<table class="display table" id="fidelitypointTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
      <th>Statut</th>
      <th>Points de fid�lit�</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listannonce as $row)  { ?>
		<tr>
			<td><?php echo $row['TITRE'];?></td>
			<td><?php if ($this->escape($row['isSHOW'])==true) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td><?php echo $row['POINTFIDELITE'];?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/fidelitypoint/edit/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/fidelitypoint/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('fidelitypointTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[�y����scripts/category/list.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 text-center"><?php echo $this->render("alert.phtml"); ?></div>
<table class="display table" id="productTable" width="100%">
	<thead>
		<tr>
			<th class="col-md-4" colspan="11"><?php echo $this->titlePage; ?></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listallcategories as $row)  { ?>
		<tr>
			<?php for ($level=0 ; $level<11; $level++) { 
				$hasStyle="";
				$hasClass="col-md-2";
			if (!((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null)) {
				$hasClass = "col-md-1";
			} ?>
			<td style="<?php echo $hasStyle; ?>" class="<?php echo $hasClass; ?>">
				<?php 
				if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
				?>
				<div class="no-space ">
					<a href="<?php echo $this->baseUrl; ?>/backoffice/category/edit/id/<?php echo $row['ID'.$level]; ?>" <?php if ($row['isACTIVE'.$level] == false) { ?> style="color: red"<?php }?>>
						<?php echo $row['NOM'.$level]; ?>
					</a>
				</div>
				<div class="no-space text-right"> 
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/category/del/id/<?php echo $row['ID'.$level]; ?>" ><span class="glyphicon glyphicon-trash"></span></button>
					<?php $show['NOM'.$level] = $row['NOM'.$level]; } ?>
				</div>
			</td>
			<?php } ?>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>
PKc�G[�ԃ�u�uscripts/category/edit.phtmlnu&1i�<div class="table-box">	
	<div class="col-md-3 text-left">
		<a class="<?php if ($this->populateForm['isACTIVE'] == false) { echo 'btn btn-danger';} else { echo 'btn btn-info'; } ?>" 
			target="_blank" 
			href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlCategory($this->populateForm['NAVNOM_URLPARENTS'], $this->populateForm['NAVNOM'], $this->populateForm['ID']); ?>">
			<i class="glyphicon glyphicon-eye-open"></i>&nbsp;<?php echo $this->populateForm['NOM']; ?>
		</a> 
	</div>
	<?php  if ($this->isSiteEbusiness) {  ?>
	<div class="col-md-6 text-right" style="margin-top:0px;">
		<form action="<?php echo $this->baseUrl; ?>/backoffice/category/editmigrate#tabs-category" method="post" >
			 <div class="col-md-6 text-right"> D�sactiver cette cat�gorie et migrer les produits vers<br />
				<small>Une redirection sera effectu�e vers la cat�gorie s�lectionn�e</small>
			</div>
			<div class="col-md-4 text-right"> 
					<select name="idcategory" id="idcategory"  class="form-control" >
						<option value="0" selected="selected">Cette cat�gorie</option> 
						<?php 
							$show = array();
							foreach($this->listallcategories as $row) { 
								for ($level=0 ; $level<11; $level++) { 
									if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
									  if ($this->populateForm['ID'] == $row['ID'.$level]) {
										break;
									  } else {
										?>
											<option value="<?php echo $this->escape($row['ID'.$level]); ?>"  >
												<?php 
												for ($i=0 ; $i<$level; $i++) { 
													echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
												}
												echo $row['NOM'.$level]; ?>
														
											</option>
											<?php 
											$show['NOM'.$level] = $row['NOM'.$level];
										}
									  } 
									} 
							} ?>
					</select> 
			</div>
			<div class="col-md-2 text-right">
				<input type="hidden" name="id" value="<?php echo $this->populateForm['ID']; ?>">
				<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Migrer</button>
			</div>
		</form>	
	</div>
	<?php } ?> 
	<div class="col-md-3 text-right">
		<form action="<?php echo $this->baseUrl; ?>/backoffice/category/editactive#tabs-category" method="post" >
					
			<input type="radio" class="bluecheckradios" name="active" id="active1" value="1" <?php if ($this->populateForm['isACTIVE'] == true) { echo 'checked="checked"';} ?>><label for="active1">&nbsp;Actif</label>
			<input type="radio" class="bluecheckradios" name="active" id="active2" value="0" <?php if ($this->populateForm['isACTIVE'] == false) { echo 'checked="checked"';} ?>><label for="active2">&nbsp;Inactif</label>
			<input type="hidden" name="id" value="<?php echo $this->populateForm['ID']; ?>">
			<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
		</form>	
	</div>
	
	<?php  if ($this->isSiteGallery) {  ?>
	<div class="col-md-3 text-right">
		<form action="<?php echo $this->baseUrl; ?>/backoffice/category/edittheme#tabs-category" method="post" >
			<div class="col-md-8 no-space-top"> 
				<select name="idtheme" id="idtheme"  class="form-control" >
					<?php  foreach($this->FeatureSiteThemeCms as $row) {  
					if ($row['ID_THEME'] != 3 && $row['ID_THEME'] != 5) {
					?>
					<option  value="<?php echo $row['ID_THEME']; ?>" <?php if ($row['ID_THEME'] == $this->populateForm['ID_THEME']) { echo 'selected="selected"';}?> >
						<?php echo $row['NOM_THEME']; ?> 
					</option>
					<?php  }} ?>
				</select>
			</div>
			<div class="col-md-4 no-space-top">
				<input type="hidden" name="id" value="<?php echo $this->populateForm['ID']; ?>">
				<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier le th�me</button>
			</div>
		</form>	
	</div>
	<?php  }  ?>

	<div class="col-md-12"><?php echo $this->render("alert_tr.phtml"); ?></div>
								
	<div class="col-md-12 no-space-side">
		<div class="tabs-section ">
			<ul class="nav nav-tabs" id="myTab">
				<li ><a href="#tabs-category" data-toggle="tab">Cat�gorie</a></li>
				<li ><a href="#tabs-referencement" data-toggle="tab">R�f�rencement</a></li>
				<li ><a href="#tabs-image" data-toggle="tab">Images</a></li>
				<?php  if ($this->isSiteGallery) {  ?>
				<li ><a href="#tabs-gallery" data-toggle="tab">Articles / Galleries</a></li>
				<?php  }  ?>
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tabs-category">
					<section class="boxpadding">
						<form action="<?php echo $this->baseUrl; ?>/backoffice/category/editcategory#tabs-category" method="post"  enctype="multipart/form-data" >
							<table class="table">
                	<?php  if ($this->isSiteGallery) {  ?>
				       	  <tr >
									  <td class="col-md-4"><label for="position">Position</label></td>
									  <td class="col-md-8"><input type="text" name="position" id="position" value="<?php echo $this->populateForm['POSITION']; ?>" class="form-control"/></td>
								  </tr> 
				        <?php  }  ?>
                  
								<tr >
									<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="nom">Nom</label></td>
									<td class="col-md-8"><input type="text" name="nom" id="nom" value="<?php echo $this->populateForm['NOM']; ?>" class="form-control"/></td>
								</tr> 
								<tr >
									<td ><label for="desc">Description</label></td>
									<td>
                                        <textarea class="form-control"  rows="10" cols="40" name="desc" id="desc"><?php echo $this->populateForm['DESCRIPTION'];?></textarea>
                                    </td>
								</tr>
                
                
                <?php if ($this->FeatureCategoryTextDescriptionShort) { ?>
								<tr >
									<td ><label for="descshort">Description courte</label></td>
									<td>
									  <textarea class="form-control"  rows="10" cols="40" name="descshort" id="descshort"><?php echo $this->populateForm['DESCRIPTIONSHORT'];?></textarea>
								  </td>
								</tr>
                <?php } else { ?>
                     <input type="hidden" name="descshort" value="" />
                <?php } ?>
                
                <?php if ($this->FeatureCategoryTextDescriptionLong) { ?>
								<tr >
									<td ><label for="desclong">Description longue</label></td>
									<td>
                                        <textarea class="form-control"  rows="10" cols="40" name="desclong" id="desclong"><?php echo $this->populateForm['DESCRIPTIONLONG'];?></textarea>
                                    </td>
								</tr>
                <?php } else { ?>
								<input type="hidden" name="desclong" value="" />
                <?php } ?>
                
                <?php if ($this->FeatureCategoryLinkRedirection) { ?>
								<tr >
									<td ><label for="urlredirect">Url de redirection</label><br /><small># = aucune action</small></td>
									<td>
										<input class="form-control" type="text" name="urlredirect" id="urlredirect" value="<?php echo $this->populateForm['URLREDIRECT'];?>"> 
                                    </td>
								</tr>
                <?php } else { ?>
								<input type="hidden" name="urlredirect" value="" />
                <?php } ?>
								<tr >
									<td ><label for="idparent">Cat�gorie parente</label></td>
									<td> 
										<select name="idparent" id="idparent"  class="form-control" >
											<option value="0">AUCUNE</option>
											<?php 
											$show = array();
											foreach($this->listallcategories as $row) { 
											 	for ($level=0 ; $level<11; $level++) { 
													if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
													?>
														<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if ($row['ID'.$level] == $this->populateForm['IDPARENT']) { echo 'selected="selected"';}?> >
															<?php 
											 				for ($i=0 ; $i<$level; $i++) { 
																echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
															}
															echo $row['NOM'.$level]; ?>
														
														</option>
														<?php 
														$show['NOM'.$level] = $row['NOM'.$level];
													}
												 } 
											} ?>
										</select> 
									</td>
								</tr>
								<tr >
									<td >
										<label for="picCat" >Image</label>
										<br/>
										<div class="col-md-12 text-center no-space-top">
											<?php if (!empty($this->populateForm['URL'])) { ?>
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$this->populateForm['URL'];?>" />
													</figure>
												</li>
											</ul>
											<?php } ?>
										</div>
									</td>
									<td>
										<input type="file" name="picCat" id="picCat" size="50"/>
										<br><i>Extensions : jpg, gif, png</i>
										
									</td>
								</tr>
                                
                                <?php if ($this->FeatureCategoryPictureSlide) { ?>
								<tr >
									<td >
										<label for="picCat" >Image du slide</label>
										<br/>
										<div class="col-md-12 text-center no-space-top">
											<?php if (!empty($this->populateForm['URL_SLIDE'])) { ?>
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$this->populateForm['URL_SLIDE'];?>" />
													</figure>
												</li>
											</ul>
											<?php } ?>
										</div>
									</td>
									<td>
										<input type="file" name="picSlideCat" id="picSlideCat" size="50"/>
										<br><i>Extensions : jpg, gif, png</i>
									</td>
								</tr>
                                <?php } ?>

								<?php  if ($this->isSiteEbusiness) {  ?>
								<tr >
									<td>
										<label for="picChoice" >Image de "Comment Choisir"</label>
										<br/>
										<?php if (isset($this->populateForm['CHOICEURL']) && !empty($this->populateForm['CHOICEURL'])) { ?>
										<div class="col-md-12 text-center no-space-top">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$this->populateForm['CHOICEURL'];?>" />
													</figure>
												</li>
											</ul>
										</div>
										<?php } ?>
									</td>
									<td>
										<input type="file" name="picChoice" id="picChoice" size="50"/>
										<br><i>Extensions : jpg, gif, png</i>
										
									</td>
								</tr> 
								<tr>
									<td nowrap="nowrap"><label for=docChoice>Document de "Comment Choisir"</label></td>
									<td>
										<select name="docChoice" id="docChoice" class="form-control">
										<option value="" selected="selected">Aucun</option>
										<?php 
											$files = glob("doc/*.pdf");
											for ($i=0; $i <sizeof($files); $i++) {				
										?>
										<option value="<?php echo $files[$i]; ?>" <?php if ($files[$i] == $this->populateForm['CHOICEDOC']) { echo 'selected="selected"';} ?> ><?php echo $files[$i]; ?></option>
										<?php } ?>
										</select> 
									</td>
								</tr> 
                                <?php } ?>
								<tr>
									<td align="center" colspan="2">	
										<input type="hidden" name="id"  value="<?php echo $this->populateForm['ID']; ?>">
										<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
									</td>
								</tr>
							</table>
						</form>
					</section>
				</div>
				
				<div class="tab-pane" id="tabs-referencement">
					<section class="boxpadding">
						<form action="<?php  echo $this->baseUrl; ?>/backoffice/category/customnavnomedit#tabs-referencement" method="post">
						<table class="table"> 
							<tr >
								<td colspan="2" ><h5>M�ta donn�es</h5></td>
							</tr> 
							<tr >
								<td class="col-md-4">
									<label for="navnom">Nom de navigation</label>
								</td>
								<td class="col-md-8">
									<input type="text" name="navnom" id="navnom" value="<?php echo $this->populateForm['NAVNOM']; ?>" class="form-control"/>
								</td>
							</tr>
							<tr >
								<td ><label for="navtitrenom">Titre de navigation</label>	<br/>
								<i><?php if (!empty($this->populateForm['NAVTITRENOM'])) { echo  strlen($this->populateForm['NAVTITRENOM'])." caract�res"; } ?></i></td> 
								<td > 
								  <input class="form-control" type="text" name="navtitrenom" id="navtitrenom" value="<?php echo $this->populateForm['NAVTITRENOM'];?>">
                </td>
							</tr>  
							<tr>
								<td><label for="navdescription">Description</label>	<br/>
                <i><?php if (!empty($this->populateForm['NAVDESCRIPTION'])) { echo  strlen($this->populateForm['NAVDESCRIPTION'])." caract�res"; } ?></i></td>
								<td>
									<input class="form-control" type="text" name="navdescription" id="navdescription" value="<?php echo $this->populateForm['NAVDESCRIPTION'];?>">
	              </td>
							</tr>  
							<tr>
								<td><label for="keywords">Mots cl�s</label></td>
								<td>
									<input class="form-control" type="text" name="keywords" id="keywords" value="<?php echo $this->populateForm['KEYWORDS'];?>">
								</td>
							</tr>
              <tr >
                <td colspan="2" >
                  <h5>Url</h5>
                </td>
              </tr>
              <tr>
                <td>
                  <label for="urlaccess">Acc�s hi�rarchique</label>
                </td>
                <td>
                  <input class="form-control" <?php if ($this->populateForm['IDPARENT'] != 0) { echo "readonly='readonly'"; } ?> type="text" name="urlaccess" id="urlaccess" value="<?php echo $this->populateForm['NAVNOM_URLPARENTS'];?>" placeholder="Pr�fix composant l'url, Ex : rubrique/sous-rubrique" >
                  </td>
              </tr>
              <tr >
								<td colspan="2" class="text-center">
									<input type="hidden" name="nom" value="<?php echo $this->populateForm['NOM'];?>">
									<input type="hidden" size="60" name="id" value="<?php echo $this->populateForm['ID'];?>">
                    <input type="hidden" size="60" name="idparent" value="<?php echo $this->populateForm['IDPARENT'];?>">
                    <button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
								</td>
							</tr> 
						</table>
						</form>
					</section>
				</div>
				
				<div class="tab-pane" id="tabs-image">
					<section class="boxpadding">
						<table class="table">  
							<tr>
								<td width="250px">
									<label for="idparent">Images</label>
								</td>
								<td >
									<?php 
										$files = glob("items/category/".$this->populateForm['ID']."/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
									<div class="col-md-3 text-center no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/category/setpicture#tabs-image" method="post">
										<div class="col-md-12 text-center">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-4 text-right">
											<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
										</div>
                                            
                                        <?php if ($this->FeatureCategoryPictureSlide) { ?>
										    <div class="col-md-8 text-right">
										        <select name="typeimage" class="form-control">
										            <option value="0" selected="selected">Normal</option>
										            <option value="1" >Slide</option>
                                                </select>
                                            </div>
                                         <?php } else { ?>
                                            <input type="hidden" value="0" name="typeimage">
                                         <?php }  ?>
										</form>	
										<div class="col-md-12 text-left">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/category/erasepicture#tabs-image" method="post" id="delPictureImage<?php echo $i;?>">
											<button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delPictureImage<?php echo $i;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
										</form>	
										</div>
									</div>
									<?php } ?>
								</td>
							</tr>
								<?php  if ($this->isSiteEbusiness) {  ?>
							<tr >
								<td >
									<label for="idparent" >Images de "Comment choisir"</label>
								</td>
								<td >
									<?php 
										$files = glob("items/category_choice/".$this->populateForm['ID']."/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
									<div class="col-md-3 text-center no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/category/setpicturechoice#tabs-image" method="post">
										<div class="col-md-12 text-center">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-6 text-left">
											<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
										</div>
										</form>	
										<div class="col-md-6 text-right">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/category/erasepicturechoice#tabs-image" method="post" id="delPictureImageChoice<?php echo $i;?>">
											<button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delPictureImageChoice<?php echo $i;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
										</form>	
										</div>
									</div>
									<?php } 
										$files = glob("items/category_choice/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
									<div class="col-md-3 text-center no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/category/setpicturechoice#tabs-image" method="post">
										<div class="col-md-12 text-center">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-12">
											<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
										</div>
										</form>	
									</div>
									
									<?php } ?>
								</td>
							</tr>
							<?php } ?>
						</table>
					</section>
				</div>
			
				<div class="tab-pane" id="tabs-gallery">
					<section class="boxpadding"> 
						<table class="display table" id="AnnonceCmsGalleryTable" width="100%">
							<tbody>
							
								<?php if(!empty($this->listAnnoncecms))  { ?> 
								<tr>
									<td colspan="4">Articles</td>
								</tr>
								<?php } 
								foreach($this->listAnnoncecms as $row)  { ?>
								<tr>
									<td></td>
									<td><?php echo $row['NOM'];?></td> 
									<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
									<td style="width:300px;">
										<div class="btn-group">
											<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/edit/id/<?php echo $row['ID']; ?>" target="_blank"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
											<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/category/deletecms/id/<?php echo $this->populateForm['ID'];?>/idarticle/<?php echo $row['ID']; ?>#tabs-gallery"><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
										</div>
									</td>
								</tr>
								<?php } ?>
								<tr >
									<td colspan="4">
										<div class="col-md-12">Galleries <span id="message-gallery"></span></div> 
										
										<div class="col-md-12">
											<div id="fine-uploader-manual-trigger"></div>
										</div>
										
									
										<?php if(!empty($this->listAnnonceGallery))  { ?> 
										<div class="col-md-12">
											<ul id="sortable-gallery">
												<?php foreach($this->listAnnonceGallery as $row)  { ?>
												<li class="col-md-12" style="list-style-type:none" data-pic-id="<?php echo $row['ID']; ?>" data-cat-id="<?php echo $this->populateForm['ID']; ?>" > 
													<?php if (!empty($row['URL'])) { 
														$urlPicture = $row['URL'];?>
													<div class="col-md-3 no-space-top">
														<ul class="gallerybox">
															<li >
																<figure>
																	<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
																</figure>
															</li>
														</ul>
													</div> 
													<?php } ?> 
													<div class="col-md-3 no-space-top"><?php echo $row['NOM'];?></div> 
													<div class="col-md-3 no-space-top"><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></div>
													<div class="col-md-3 no-space-top">
														<div class="btn-group">
															<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/edit/id/<?php echo $row['ID']; ?>" target="_blank"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
														
															<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/category/deletegallery/id/<?php echo $this->populateForm['ID'];?>/idgallery/<?php echo $row['ID']; ?>#tabs-gallery"><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
														</div>
													</div>
												</li>
												<?php } ?>
											</ul>
										</div>
										<?php } ?> 
									</td> 
								</tr>
							</tbody>
						</table> 
					</section>
				</div>
			</div>
		</div>
	</div>
</div>
<style> 
  .sortable-placeholder{ height: 1.5em; line-height: 1.2em; } 
  
        #trigger-upload {
            color: white;
            background-color: #00ABC7;
            font-size: 14px;
            padding: 7px 20px;
            background-image: none;
        }

        #fine-uploader-manual-trigger .qq-upload-button {
            margin-right: 15px;
        }

        #fine-uploader-manual-trigger .buttons {
            width: 36%;
        }

        #fine-uploader-manual-trigger .qq-uploader .qq-total-progress-bar-container {
            width: 60%;
        }
    </style>
    <link href="<?php echo $this->baseUrl; ?>/css/themes/admin/js/fileupload/fine-uploader-new.min.css" rel="stylesheet"> 
    <script src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/fileupload/fine-uploader.min.js"></script>
 
    <script type="text/template" id="qq-template-manual-trigger">
        <div class="qq-uploader-selector qq-uploader" qq-drop-area-text="Drag & Drop">
            <div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
                <div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
            </div>
            <div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
                <span class="qq-upload-drop-area-text-selector"></span>
            </div>
            <div class="buttons">
                <div class="qq-upload-button-selector qq-upload-button">
                    <div>S�lectionner</div>
                </div>
                <button type="button" id="trigger-upload" class="btn btn-primary">
                    <i class="glyphicon glyphicon-upload"></i> Upload
                </button>
            </div>
            <span class="qq-drop-processing-selector qq-drop-processing">
                <span>Upload en cours ...</span>
                <span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
            </span>
            <ul class="qq-upload-list-selector qq-upload-list" aria-live="polite" aria-relevant="additions removals">
                <li>
                    <div class="qq-progress-bar-container-selector">
                        <div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
                    </div>
                    <span class="qq-upload-spinner-selector qq-upload-spinner"></span>
                    <img class="qq-thumbnail-selector" qq-max-size="100" qq-server-scale>
                    <span class="qq-upload-file-selector qq-upload-file"></span>
                    <span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
                    <input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
                    <span class="qq-upload-size-selector qq-upload-size"></span>
                    <button type="button" class="qq-btn qq-upload-cancel-selector qq-upload-cancel">Annuler</button>
                    <button type="button" class="qq-btn qq-upload-retry-selector qq-upload-retry">R�essayer</button>
                    <button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">Supprimer</button>
                    <span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
                </li>
            </ul>

            <dialog class="qq-alert-dialog-selector">
                <div class="qq-dialog-message-selector"></div>
                <div class="qq-dialog-buttons">
                    <button type="button" class="qq-cancel-button-selector">Fermer</button>
                </div>
            </dialog>

            <dialog class="qq-confirm-dialog-selector">
                <div class="qq-dialog-message-selector"></div>
                <div class="qq-dialog-buttons">
                    <button type="button" class="qq-cancel-button-selector">Non</button>
                    <button type="button" class="qq-ok-button-selector">Oui</button>
                </div>
            </dialog>

            <dialog class="qq-prompt-dialog-selector">
                <div class="qq-dialog-message-selector"></div>
                <input type="text">
                <div class="qq-dialog-buttons">
                    <button type="button" class="qq-cancel-button-selector">Annuler</button>
                    <button type="button" class="qq-ok-button-selector">Ok</button>
                </div>
            </dialog>
		<div id="qq-dialog-error-message" class="alert alert-danger hide"></div>
        </div>
    </script>

 
	<script>
	 
	 $('#sortable-gallery').sortable({
            placeholder : "fantom",
		axis: 'y',
		update: function (event, ui) {  
		
			var data = 'position='+ui.item.index()+'&id='+ui.item.attr('data-pic-id')+'&category='+ui.item.attr('data-cat-id');
			
			 $.ajax({
				 data: data,
				 type: 'post',
				 url: '<?php echo $this->baseurl; ?>/backoffice/annoncegallery/editposition'
			 });
		}
	});

		var url = document.location.toString();
		if (url.match('#')) {
			$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
		} else {
			$('.nav-tabs a[href="#tabs-category"]').tab('show');
		}
		
	
		var manualUploader = new qq.FineUploader({
			element: document.getElementById('fine-uploader-manual-trigger'),
			template: 'qq-template-manual-trigger',
			text: {
                formatProgress: "{percent}% de {total_size}",
                failUpload: "Upload erron�",
                waitingForResponse: 'Upload en cours ...',
                paused: "Pause"
            }, 
			request: {
				endpoint: '<?php echo $this->baseUrl; ?>/backoffice/category/addmultiplegallery?idCat=<?php echo $this->populateForm['ID']; ?>'
			},
			thumbnails: {
				placeholders: {
					waitingPath: '<?php echo $this->baseUrl; ?>/css/themes/admin/js/fileupload/placeholders/waiting-generic.png',
					notAvailablePath: '<?php echo $this->baseUrl; ?>/css/themes/admin/js/fileupload/placeholders/not_available-generic.png'
				}
			},
			autoUpload: false,
			debug: false, 
            showMessage: function(message) { 
            },
		});

		qq(document.getElementById("trigger-upload")).attach("click", function() {
			manualUploader.uploadStoredFiles();
		});
	</script>PKc�G[�©see scripts/category/ajaxvalue.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<?php  echo $this->messageSuccess; ?>PKc�G[9��J
J
scripts/category/add.phtmlnu&1i� <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/category/add" method="post" name="addCategory"  enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="nom" id="nom" value="<?php echo $this->populateForm['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom de navigation</td>
				<td class="col-md-8"><input type="text" class="form-control" name="navnom" id="navnom" value="<?php echo $this->populateForm['NAVNOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Mots cl�s</td>
				<td class="col-md-8"><input type="text" class="form-control" name="keywords" id="keywords" value="<?php echo $this->populateForm['KEYWORDS']; ?>" /></td>
			</tr>
			<tr>
				<td class="col-md-4">Description</td>
				<td class="col-md-8"><input type="text" class="form-control" name="desc" id="desc" value="<?php echo $this->populateForm['DESCRIPTION']; ?>" /></td>
			</tr>
			<tr>
				<td class="col-md-4">Cat�gorie parente</td>
				<td class="col-md-8">
					<select name="idparent" id="idparent" class="form-control">
						<option value="0">AUCUNE</option>
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>">
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="col-md-4">Image</td>
				<td class="col-md-8">
					<input type="file" name="picCat" id ="picCat" size="50" >
						<br><i>Extensions : jpg, gif, png</i>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
		PKc�G[�==�wwscripts/faq/list.phtmlnu&1i�<script type="text/javascript">
$(function(){
	initRichTextBox('#faq_question', 2, 500, 150);
	initRichTextBox('#faq_reponse', 2, 500, 150);
	generateTabs($("#tabs"), 1);  
});
</script>
<div id="tabs">
	<ul>
		<li><a href="#tabs-category">Cat�gorie</a></li>
		<li><a href="#tabs-qr">Questions/Reponses</a></li> 
	</ul>
	<div id="tabs-category">
		<form action="<?php  echo $this->baseUrl; ?>/backoffice/faq/addfaqtype#tabs-category" method="post">
			<table cellpadding="0" cellspacing="10" border="0" width="800px">
				<tr>
					<td >
						<span class="errorText"><?php echo $this -> messageError; ?></span>
						<span class="successText"><?php echo $this -> messageSuccess; ?></span>
					</td>
				</tr>
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td colspan="3">
						<div class="text2">CATEGORIE</div>
					</td>
				</tr>
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td>
						Nom : <br/>
						<input type="text" size="40" name="faq_nom" >
					</td>
					<td>
						<input type="submit" value="Ajouter" >
					</td>
				</tr>
			</table>
		</form>
		
		<?php  foreach($this->faqtypes as $row) { ?>
		<form action="<?php  echo $this->baseUrl; ?>/backoffice/faq/editfaqtype" method="post">
			<table cellpadding="0" cellspacing="6" border="0" >
				<tr>
					<td>
						<input type="text" size="40" name="faq_nom" value="<?php echo $row['NOM'];?>">
					</td>
					<td >
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="faq_id">
						<input type="submit" value="Modifier">
						<?php if ($row['isACTIVE'] == 0) { ?>
							<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/faq/activefaqtype/id/<?php echo $row['ID']; ?>#tabs-category" onClick="return msgOkCancelDelete();">Activer</a>
						<?php } else { ?>
							<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/faq/unactivefaqtype/id/<?php echo $row['ID']; ?>#tabs-category" onClick="return msgOkCancelDelete();">D�sactiver</a>
						<?php } ?>
						<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/faq/delfaqtype/id/<?php echo $row['ID']; ?>#tabs-category" onClick="return msgOkCancelDelete();">Supprimer</a>
						
					</td>
				</tr>
			</table>
		</form>
		<?php } ?>
	</div>
	<div id="tabs-qr">
		<form action="<?php  echo $this->baseUrl; ?>/backoffice/faq/addfaq#tabs-qr" method="post">
			<table cellpadding="0" cellspacing="10" border="0" >
				<tr>
					<td colspan="5">
						<span class="errorText"><?php echo $this -> messageError; ?></span>
						<span class="successText"><?php echo $this -> messageSuccess; ?></span>
					</td>
				</tr>
				<tr > <td colspan="5" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td colspan="5">
						<div class="text2">AJOUTER</div>
					</td>
				</tr>
				<tr > <td colspan="5" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td>QUESTION </td>
					<td>REPONSE </td>
					<td>POSITION </td>
					<td>CATEGORIE </td>
					<td> </td>
				</tr>
				<tr>
					<td><textarea rows="5" cols="30" name="faq_question" id="faq_question" class="faq_question"></textarea></td>
					<td><textarea rows="5" cols="30" name="faq_reponse" id="faq_reponse" class="faq_reponse"></textarea></td>
					<td><input type="text" size="5" name="faq_position" ></td>
					<td>
						<select name="faq_type">
							<?php foreach($this->faqtypes as $row) { ?>
							<option value="<?php echo $row['ID']; ?>"><?php echo $row['NOM']; ?></option>
							<?php }?>
						</select>
					</td>
					<td>
						<input type="submit" value="Ajouter" >
					</td>
				</tr>
			</table>
		</form>
		
		<table cellpadding="0" cellspacing="10" border="0" width="1200px">
			<?php $lastType = ""; 
			foreach($this->faq as $row) { 
				if ($lastType != $row['IDTYPE']) {  
					$lastType = $row['IDTYPE']; ?>
			<tr > <td colspan="5" style="background:#666666; height: 1px"></td></tr>
			<tr>
				<td colspan="5">
					<div class="text2"><?php echo $row['NOMTYPE']; ?></div>
				</td>
			</tr>
			<tr > <td colspan="5" style="background:#666666; height: 1px"></td></tr>
			<?php } ?>
			<tr > 
				<td colspan="5" >
					<form action="<?php  echo $this->baseUrl; ?>/backoffice/faq/editfaq#tabs-qr" method="post">
					
					<table cellpadding="0" cellspacing="10" border="0" >
						<tr>
							<td><textarea rows="5" cols="30" name="faq_question" class="faq_question"><?php echo $row['QUESTION'];?></textarea></td>
							<td><textarea rows="5" cols="30" name="faq_reponse" class="faq_reponse"><?php echo $row['REPONSE'];?></textarea></td>
							<td colspan="3">
								<table cellpadding="0" cellspacing="10" border="0" >
									<tr>
										<td><input type="text" size="5" name="faq_position" value="<?php echo $this->escape($row['POSITION']);?>"></td>
										<td>
											<select name="faq_type">
												<?php foreach($this->faqtypes as $rowType) { ?>
												<option value="<?php echo $rowType['ID']; ?>" <?php if ($rowType['ID'] == $row['IDTYPE']) { echo "selected"; } ?>><?php echo $rowType['NOM']; ?></option>
												<?php }?>
											</select>
										</td>
									</tr>
									<tr>
										<td colspan="2" width="300px">
											<input type="hidden" value="<?php echo $row['ID']; ?>" name="faq_id">
											<span><input type="submit" value="Modifier"></span>
											<span>
											<?php if ($row['isACTIVEFAQ'] == 0) { ?>
												<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/faq/activefaq/id/<?php echo $row['ID']; ?>#tabs-qr" onClick="return msgOkCancelDelete();">Activer</a> 
											<?php } else { ?>
												<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/faq/unactivefaq/id/<?php echo $row['ID']; ?>#tabs-qr" onClick="return msgOkCancelDelete();">D�sactiver</a> 
											<?php } ?>
											</span>
											<span> <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/faq/delfaq/id/<?php echo $row['ID']; ?>#tabs-qr" onClick="return msgOkCancelDelete();">Supprimer</a></span>
											
										</td>
									</tr>
								</table>	 
							</td>
						</tr>
					</table>
					</form>
				</td>
			</tr>
					
			<?php } ?>
		</table>
	</div>
</div>
 PKc�G[���77scripts/ebp/index.phtmlnu&1i� <div class="table-box">
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-12 text-center" colspan="2"><h5>Exportation des donn�es vers EBP</h5></td>
			</tr>
			<tr >
				<td class="col-md-5">Vous pouvez importer toutes les donn�es dans EBP -> Outils -> Importation de donn�es</td>
				<td class="col-md-7">
					<div class="btn-group">
						<a href="<?php echo $this->baseUrl; ?>/backoffice/ebp/exportfournisseurs" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Fournisseurs</a>
						<a href="<?php echo $this->baseUrl; ?>/backoffice/ebp/exportclients" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Clients</a>
						<a href="<?php echo $this->baseUrl; ?>/backoffice/ebp/exportcategories" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Familles articles</a>
						<a href="<?php echo $this->baseUrl; ?>/backoffice/ebp/exportarticles" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Articles</a>
					</div>
				</td>
			</tr> 
			<tr >
				<td class="col-md-5">Vous pouvez importer les donn�es des 3 derniers mois dans EBP -> Outils -> Imports param�trables</td>
				<td class="col-md-7">
					<div class="btn-group">
						<a href="<?php echo $this->baseUrl; ?>/backoffice/ebp/exportcommandes" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Commandes (Vente)</a>
						<a href="<?php echo $this->baseUrl; ?>/backoffice/ebp/exportdevis" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Devis (Vente)</a>
					</div>
				</td>
			</tr>
			<tr >
				<td class="col-md-12 text-center" colspan="2"><h5>Importation des donn�es vers le site</h5></td>
			</tr>
			<tr >
				<td class="col-md-5">Vous pouvez exporter les donn�es via EBP -> Outils -> Exportation de donn�es</td>
				<td class="col-md-7">
					<form action="<?php echo $this->baseUrl; ?>/backoffice/ebp/importcategories" method="post" name="importCategorieForm"  enctype="multipart/form-data" >
						<div class="col-md-6 no-space-top"><input type="file" name="csvfile" id="csvfile"></div>
						<div class="col-md-6 no-space-top"><button class="btn btn-primary" type="submit" ><i class="glyphicon glyphicon-save"></i>&nbsp;Importer les Familles articles</button></div>
					</form>
				</td>
			</tr>
			<tr >
				<td class="col-md-5"></td>
				<td class="col-md-7">
					<form action="<?php echo $this->baseUrl; ?>/backoffice/ebp/importarticles" method="post" name="importArticlesForm"  enctype="multipart/form-data" >
						<div class="col-md-6 no-space-top"><input type="file" name="csvfile" id="csvfile"></div>
						<div class="col-md-6 no-space-top"><button class="btn btn-primary" type="submit" ><i class="glyphicon glyphicon-save"></i>&nbsp;Importer les Articles</button></div>
					</form>
				</td>
			</tr>
		</tbody>
	</table>
</div>
<div class="clearfix"></div>PKc�G[�ԩ�scripts/product/option.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/product/option">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?><i style="display:none">Liste de caract�ristiques d�taillant un produit</i></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Caract�ristique</td>
				<td class="col-md-8"><input type="text" class="form-control" size="60" name="nom" placeholder="Ajouter une caract�ristique de produit"></td>
			</tr>
			<tr class="nostriped">
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="optionTable" width="100%">
	<thead>
		<tr>
			<th>Caract�ristiques</th> 
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listoption as $row)  { ?>
		<tr>
			<td>
				<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/product/optionedit">
				<div class="col-md-8 no-space-top">
					<input type="text" class="form-control" size="40" name="nom" value="<?php echo $this->escape($row['NOM']);?>">
				</div>
				<div class="col-md-4 no-space-top">
					<input type="hidden" name="id" id="id" value="<?php echo $this->escape($row['ID']);?>">
					<div class="btn-group">
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
						<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/optiondel/id/<?php echo $this->escape($row['ID']);?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
					</div>
				</div>
				</form>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>
PKc�G[�©seescripts/product/ajaxvalue.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<?php  echo $this->messageSuccess; ?>PKc�G[c]�''scripts/product/search.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="/backoffice/product/search">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<tr class="nostriped">
				<td class="col-md-12 ">
					<div class="col-md-4 no-space-top"><input placeholder="Rechercher un nom, une r�f�rence, une description" class="form-control" type="text" size="60" name="search" id="search" value="<?php echo $this->populateForm['search'];?>"></div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-6  no-space-top"><input placeholder="Entre le prix minimum"  class="form-control" type="text" size="10" name="prixMin" id="prixMin" value="<?php echo $this->populateForm['prixMin'];?>"></div>
						<div class="col-md-6 no-space-top"><input placeholder="et le prix maximum" class="form-control" type="text" size="10" name="prixMax" id="prixMax" value="<?php echo $this->populateForm['prixMax'];?>"></div>
					</div>
				</td>
			</tr>
			<tr class="nostriped">
				<td class="col-md-12">
					<div class="col-md-2 no-space-top">
						<div class="col-md-12 no-space-top"><h5>Rechercher un produit actif</h5></div>
						<div class="text-center">
							<input type="radio" class="bluecheckradios" name="active" id="active1" value="0" <?php if ($this->populateForm['active'] == 0) { echo 'checked="checked"';} ?>><label for="active1">&nbsp;Actif</label>
							<input type="radio" class="bluecheckradios" name="active" id="active2" value="1" <?php if ($this->populateForm['active'] == 1) { echo 'checked="checked"';} ?>><label for="active2">&nbsp;Non actif</label>
							<input type="radio" class="bluecheckradios" name="active" id="active3" value="2" <?php if ($this->populateForm['active'] == 2) { echo 'checked="checked"';} ?>><label for="active3">&nbsp;Les deux</label>
						</div>
					</div>
					<div class="col-md-3 no-space-top">
						<div class="col-md-12 no-space-top"><h5>Rechercher un produit ayant une image</h5></div>
						<div class="text-center">
							<input type="radio" class="bluecheckradios" name="image" id="image1" value="0" <?php if ($this->populateForm['image'] == 0) { echo 'checked="checked"';} ?>><label for="image1">&nbsp;Avec</label>
							<input type="radio" class="bluecheckradios" name="image" id="image2" value="1" <?php if ($this->populateForm['image'] == 1) { echo 'checked="checked"';} ?>><label for="image2">&nbsp;Sans</label>
							<input type="radio" class="bluecheckradios" name="image" id="image3" value="2" <?php if ($this->populateForm['image'] == 2) { echo 'checked="checked"';} ?>><label for="image3">&nbsp;Les deux</label>
						</div>
					</div>
					<div class="col-md-3 no-space-top">
						<div class="col-md-12 no-space-top"><h5>Rechercher un produit en promotion</h5></div>
						<div class="text-center">
							<input type="radio" class="bluecheckradios" name="activePromo" id="activePromo1" value="0" <?php if ($this->populateForm['activePromo'] == 0) { echo 'checked="checked"';} ?>><label for="activePromo1">&nbsp;En promotion</label>
							<input type="radio" class="bluecheckradios" name="activePromo" id="activePromo2" value="1" <?php if ($this->populateForm['activePromo'] == 1) { echo 'checked="checked"';} ?>><label for="activePromo2">&nbsp;Hors promotion</label>
							<input type="radio" class="bluecheckradios" name="activePromo" id="activePromo3" value="2" <?php if ($this->populateForm['activePromo'] == 2) { echo 'checked="checked"';} ?> ><label for="activePromo3">&nbsp;Les deux</label>
						</div>
					</div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-12 no-space-top"><h5>Rechercher un produit disponible</h5></div>
						<div class="text-center">
							<input type="radio" class="bluecheckradios" value="0" name="etatstock" id="etatstock1"  <?php if ($this->populateForm['etatstock'] == 0) { echo 'checked="checked"';} ?>><label for="etatstock1">&nbsp;Disponible</label>
							<input type="radio" class="bluecheckradios" value="1" name="etatstock" id="etatstock2"  <?php if ($this->populateForm['etatstock'] == 1) { echo 'checked="checked"';} ?>><label for="etatstock2">&nbsp;En attente</label>
							<input type="radio" class="bluecheckradios" value="2" name="etatstock" id="etatstock3"  <?php if ($this->populateForm['etatstock'] == 2) { echo 'checked="checked"';} ?>><label for="etatstock3">&nbsp;Nous contacter</label>
							<input type="radio" class="bluecheckradios" value="3" name="etatstock" id="etatstock4"  <?php if ($this->populateForm['etatstock'] == 3) { echo 'checked="checked"';} ?>><label for="etatstock4">&nbsp;Tous</label>
						</div>
					</div>
				</td>
			</tr>
			<tr class="nostriped">
				<td class="col-md-12">
					<div class="col-md-6 no-space-top">
						<div class="col-md-12 no-space-top"><h5>Rechercher une caract�ristique du produit</h5></div>
						<div class="col-md-6 no-space-top">
							<select class="form-control" name="optionId" id="optionId">
								<option value="All" <?php if ($this->populateForm['optionId'] == 'All') { echo 'selected="selected"';}?> >Tous</option>
								<?php foreach($this->listoption as $row) { ?>
								<option value="<?php echo $this->escape($row['ID']); ?>" <?php if ($this->populateForm['optionId'] == $this->escape($row['ID'])) { echo 'selected="selected"';}?> > 
									<?php echo $this->escape($row['NOM']); ?>
								</option>
								<?php } ?>
							</select>
						</div>
						<div class="col-md-6 no-space-top">
							<input placeholder="Valeur de la caract�ristique"  class="form-control" type="text" size="10" name="optionValue" id="optionValue" value="<?php echo $this->populateForm['optionValue'];?>">
						</div>
					</div>
					<div class="col-md-6 no-space-top" >
						<div class="col-md-12 no-space-top"><h5>Rechercher une marque</h5></div>
						<div class="col-md-6 no-space-top">
							<select class="form-control" name="idbrend" id="idbrend">
								<option value="All"  <?php if ($this->populateForm['idbrend'] == 'All') { echo 'selected="selected"';}?>>Tous</option>
								<?php foreach($this->listbrend as $row) { ?>
								<option value="<?php echo $this->escape($row['ID']); ?>" <?php if ($this->populateForm['idbrend'] == $this->escape($row['ID'])) { echo 'selected="selected"';}?> >
									<?php echo $this->escape($row['BREND']);?>
								</option>
								<?php } ?>
							</select>
						</div>
					</div>
				</td>
			</tr>
			<tr class="nostriped">
				<td class="col-md-12"> 
					<div class="col-md-6 no-space-top">
						<div class="col-md-12 no-space-top"><h5>Rechercher une cat�gorie</h5></div>
						<div class="col-md-12 no-space-top">
							<select class="form-control" name="idcategorySearch" >
							<option value="All" <?php if ($this->populateForm['idcategorySearch'] == 'All') { echo 'selected="selected"';}?>>Tous</option>
							<?php 
							$show = array();
							foreach($this->listallcategories as $row) { 
							 	for ($level=0 ; $level<11; $level++) { 
									if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
									?>
										<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if ($this->populateForm['idcategorySearch'] == $this->escape($row['ID'.$level])) { echo 'selected="selected"';}?>>
											<?php 
							 				for ($i=0 ; $i<$level; $i++) { 
												echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
											}
											echo $this->escape($row['NOM'.$level]); ?>
										
										</option>
										<?php 
										$show['NOM'.$level] = $row['NOM'.$level];
									}
								 } 
							} ?>
							</select>
						</div>
					</div>
					<div class="col-md-6 text-center">
						<button type="submit" name="searchbtn"  class="btn btn-primary">
						  <span class="glyphicon glyphicon-search"></span> Rechercher
						</button>				
					</div>
				</td>
			</tr>
			<tr>
				<td class="col-md-12"></td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<div class="table-box">
<?php 
$listPics = $this->listproductpicture; 
?>
<table class="display table" id="productTable" width="100%">
	<thead>
		<tr>
			<th></th>
			<th>Nom</th>
			<th>Description</th>
			<th class="center">Prix</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listSearch as $row)  { ?>
		<tr>
			<td>
				<ul class="gallerybox">
                	<li>
						<figure>
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>" target="_blank"><img src="<?php if (isset($listPics[$row['ID']])) { echo '/'.$listPics[$row['ID']]; } else {echo '/items/product/default/default.png'; } ?>"></a>
						</figure>
					</li>
				</ul>
			</td>
			<td>
				<?php echo $row['NOM'];?>
			</td>
			<td>	
				<?php echo $row['DESCRIPTIONSHORT'];?>
				<?php if ($this->escape($row['isPROMO']) == 0) { ?> <br/><br/>En promo<?php } ?>
			</td>
			<td>
				<?php echo $this->escape($row['PRIX']); ?>&nbsp;&#8364;
			</td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>" target="_blank"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('productTable', [[ 1, "asc" ]], [
		                    		                { "orderable": false, "targets": 0, "width": "150px"  },
		                    		                { "orderable": false, "targets": -1, "width": "270px" },
		                    		                { "orderable": true, "targets": 1, "type": "html"},
		                    		                { "orderable": true, "targets": 2, "type": "html"},
		                    		                { "orderable": true, "targets": 3}
		                    		              ]); 	    
	});
</script>
</div>


PKc�G[��C���scripts/product/livraison.phtmlnu&1i�<table cellpadding="0" cellspacing="6" border="0" width="800px">
	<tr>
		<td >
			<span class="errorText"><?php echo $this -> messageError; ?></span>
			<span class="successText"><?php echo $this -> messageSuccess; ?></span>
		</td>
	</tr>
	<tr>
		<td>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/addlivraisontype" method="post">
			<table cellpadding="0" cellspacing="10" border="0" >
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td colspan="3">
						<div class="text2">TYPE DE LIVRAISON</div>
					</td>
				</tr>
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td>
						Nom : <br/>
						<input type="text" size="40" name="livraison_nom" >
					</td>
					<td>
						Franco : <br/>
						<input type="text" size="5" name="livraison_franco" >
					</td>
					<td>
						<input type="submit" value="Ajouter" >
					</td>
				</tr>
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
			</table>
			</form>
		</td>
	</tr>
	<tr>
		<td >
			<?php  foreach($this->livraisontypes as $row) { ?>
				<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editlivraisontype" method="post">
				
				<table cellpadding="0" cellspacing="10" border="0" >
					<tr>
						<td>
							<input type="text" size="40" name="livraison_nom" value="<?php echo $this->escape($row['NOM']);?>">
						</td>
						<td>
							<input type="text" size="5" name="livraison_franco" value="<?php echo $this->escape($row['CMDFRANCO']);?>">
						</td>
						<td>
							<input type="hidden" value="<?php echo $row['ID']; ?>" name="livraison_id">
							<input type="submit" value="Modifier">
						</td>
						<td>
							<a class="button"  href="<?php echo $this->baseUrl; ?>/backoffice/product/dellivraisontype/id/<?php echo $row['ID']; ?>" onClick="return msgOkCancelDelete();">Supprimer</a>
						</td>
					</tr>
				</table>
			</form>
			<?php } ?>
		</td>
	</tr>
	
	<tr>
		<td>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/addlivraisonpoids" method="post">
			<table cellpadding="0" cellspacing="10" border="0" >
				
				<tr > <td colspan="6" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td colspan="6">
						<div class="text2">POIDS</div>
					</td>
				</tr>
				<tr > <td colspan="6" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td width="100px">
						<input type="text" size="6" name="livraison_poids_from" >Kg
					</td>
					<td width="20px"> - > </td>
					<td width="100px">
						<input type="text" size="6" name="livraison_poids_to" >Kg
					</td>
					<td width="200px">
						<?php  foreach($this->livraisontypes as $row) { ?>
						<input type="radio" checked="checked" name="livraison_poids_type" value="<?php echo $row['ID']; ?>" ><?php echo $row['NOM'];?><br/>
						<?php } ?>
					</td>
					
					<td width="100px">
						<input type="text" size="6" name="livraison_poids_price">&euro;
					</td>
					<td  width="150px">
						<input type="submit" value="Ajouter" >	
					</td>
				</tr>
				<tr > <td colspan="6" style="background:#666666; height: 1px"></td></tr>
				
			</table>
			</form>
			<?php  foreach($this->livraisonpoids as $row) { ?>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editlivraisonpoids" method="post">
				
			<table cellpadding="0" cellspacing="10" border="0" > 
				<tr>
					<td>
						<input type="text" size="6" name="livraison_poids_from" value="<?php echo $this->escape($row['FROM']);?>">Kg
					</td>
					<td> - > </td>
					<td>
						<input type="text" size="6" name="livraison_poids_to" value="<?php echo $this->escape($row['TO']);?>">Kg
					</td>
					<td>
						<?php  foreach($this->livraisontypes as $rowType) { ?>
						<input type="radio" <?php if ($rowType['ID'] == $row['TYPE']) { echo 'checked="checked"';} ?>  name="livraison_poids_type" value="<?php echo $rowType['ID']; ?>" ><?php echo $rowType['NOM'];?><br/>
						<?php } ?>
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="livraison_poids_id">
					</td>
					<td>
						<input type="text" size="6" name="livraison_poids_price" value="<?php echo $this->escape($row['PRICE']);?>">&euro;
					</td>
					<td>
						<input type="submit" value="Modifier" >		
						<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/product/dellivraisonpoids/id/<?php echo $row['ID']; ?>" onClick="return msgOkCancelDelete();">Supprimer</a>
					
					</td>
				</tr>
			</table>
			</form>
			<?php } ?>
		</td>
	</tr>
</table>PKc�G[�)���"scripts/product/livraisoncat.phtmlnu&1i�<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/livraisoncat" method="post">
<table cellpadding="0" cellspacing="7" border="0">
<tr>
	<td align="center" colspan="5">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<tr>
	<td align="left" colspan="11">
		<input type="submit" value="Modifier">
	</td>
</tr>
<?php 
$show = array();
foreach($this->listallcategories as $row) : ?>
<tr>
	<?php for ($level=0 ; $level<11; $level++) { ?>
	<td >
		<?php 
		if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
		?>
		<input size="4" type="text" name="livraison_poids_<?php echo $row['ID'.$level]; ?>">
		<input type="hidden" name="livraison_poids_id[]" value="<?php echo $row['ID'.$level]; ?>">
		<?php } ?>
	</td>
	<td >
		<?php 
		if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
		?>
			
			<?php echo $this->escape($row['NOM'.$level]); 
			$show['NOM'.$level] = $row['NOM'.$level];
		}
		?>
	</td>
	<?php } ?>
</tr>
<?php endforeach; ?>
</table>
</form>
PKc�G[�N�oo(scripts/product/ajaxaccessoirelist.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?> 
<?php 
$index = 0;
foreach ($this->listAccessoires as $accesoire) { 
$index++; ?> 
<div class="col-md-3 text-center no-space-top">
	<div class="col-md-12 text-center">
		<ul class="gallerybox">
		  	<li>
				<?php echo $accesoire['NOM']; ?>
				<figure>
					<img alt="<?php echo $accesoire['DESIGNATION']; ?>"
							title="<?php echo $accesoire['DESIGNATION']; ?>"
							src="<?php echo $this->baseUrl.'/'.$accesoire['URL']; ?>" />
				</figure>
			</li>
		</ul>
	</div>
	<div class="btn-group">
		<a class="btn btn-danger" href="javascript:;" onclick="delProductAccessoire(<?php echo $this->currentProduct; ?>, <?php echo $accesoire['IDACCESSOIRE']; ?>)">
			<i class="glyphicon glyphicon-resize-full"></i>&nbsp;D�lier
		</a>
		<a class="btn btn-success" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $accesoire['ID']."#tabs-items"; ?>">
			<i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
		</a>
	</div>
</div>
<?php if ($index >= 4) {
	$index =0;
?>
	<div class="col-md-12 no-space"></div>
	<?php 
	}
} ?>PKc�G[�dN�$scripts/product/ajaxannexelist.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?> 
<?php 
$index = 0;
foreach ($this->listAnnexes as $product) { 
if ($this->currentProduct != $product['ID']) { 
$index++;
	?> 
<div class="col-md-3 text-center no-space-top">
	<div class="col-md-12 text-center">
		<ul class="gallerybox">
		  	<li>
					<?php echo $product['NOM']; ?>
				<figure>
					<img alt="<?php if ($product['isSHOWBREND'] == 0) {echo strtoupper($product['BREND']." - ");} echo $product['NOM']; ?>"
							title="<?php if ($product['isSHOWBREND'] == 0) {echo strtoupper($product['BREND'].' - ');} echo $product['NOM']; ?>"
							src="<?php echo $this->baseUrl.'/'.$product['URL']; ?>" />
				</figure>
			</li>
		</ul>
	</div>
	<div class="btn-group">
		<a class="btn btn-danger" href="javascript:;" onclick="delProductAnnexe(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)">
			<i class="glyphicon glyphicon-resize-full"></i>&nbsp;D�lier
		</a>
		<a class="btn btn-success" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $product['ID']."#tabs-items"; ?>">
			<i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
		</a>
	</div>
</div>
<?php } 
	if ($index >= 4) {
	$index =0;
?>
	<div class="col-md-12 no-space"></div>
	<?php 
	}
} ?>PKc�G[F��vvscripts/product/list.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="/backoffice/product/list">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="col-md-12">
					<div class="col-md-7">
						<select class="form-control" name="categorySearch" >
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if ($row['ID'.$level] == $this->searchCategory) { echo 'selected="selected"';}?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $this->escape($row['NOM'.$level]); ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
						</select>
					</div>
					<div class="col-md-2">
						<div class="custom-radio-checkbox">
							<input tabindex="1" type="checkbox" class="bluecheckradios" id="isActive" name="isActive" <?php if ($this->searchCategoryActive == "0") { echo 'checked="checked"';}?>>
							<label for="isActive">Statut : Actif</label>
						</div> 
					</div>
					<div class="col-md-1 col-md-offset-1">
						<button type="submit" name="search"  class="btn btn-primary">
						  <span class="glyphicon glyphicon-search"></span> Rechercher
						</button>				
					</div>
					<div class="col-md-12"></div>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<div class="table-box">
<?php 
$listPics = $this->listproductpicture; 
?>
<table class="display table" id="productTable" width="100%">
	<thead>
		<tr>
			<th></th>
			<th>Nom</th>
			<th>Description</th>
			<th class="center">Prix</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listproducts as $row)  { ?>
		<tr>
			<td>
				<ul class="gallerybox">
                	<li>
						<figure>
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>" ><img src="<?php if (isset($listPics[$row['ID']])) { echo '/'.$listPics[$row['ID']]; } else {echo '/items/product/default/default.png'; } ?>"></a>
						</figure>
					</li>
				</ul>
			</td>
			<td>
				<?php echo $row['NOM'];?>
			</td>
			<td>	
				<?php echo $row['DESCRIPTIONSHORT'];?>
				<?php if ($this->escape($row['isPROMO']) == 0) { ?> <br/><br/>En promo<?php } ?>
			</td>
			<td>
				<?php echo $this->escape($row['PRIX']); ?>&nbsp;&#8364;
			</td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/del/id/<?php echo $this->escape($row['ID']); ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('productTable', [[ 1, "asc" ]], [
		                    		                { "orderable": false, "targets": 0, "width": "150px"  },
		                    		                { "orderable": false, "targets": -1, "width": "270px" },
		                    		                { "orderable": true, "targets": 1, "type": "html"},
		                    		                { "orderable": true, "targets": 2, "type": "html"},
		                    		                { "orderable": true, "targets": 3}
		                    		              ]); 	    
	});
</script>
</div>PKc�G[w��J'
'
/scripts/product/ajaxaccessoireproductlist.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?> 
<div style="float: right; width: 850px;"> 
<?php 
 
foreach ($this->listProducts as $product) {
	$isAcc = false; 
	$color = "#CC0000";
	foreach ($this->listAccessoires as $productAccessoire) {
		if ($productAccessoire['ID'] == $product['ID']) {
			$color = "green";
			$isAcc = true;
			break;
		}
	}
if ($this->currentProduct != $product['ID']) { ?> 
<div class="productBoxOpt"> 
	<div class="productBoxCell"  style="border: 1px solid <?php echo $color; ?>;">
		<div class="productBoxCellTitle" style="background-color: <?php echo $color;?>;">
			<span class="link1" style="color: white; ">
				<?php if ($isAcc == true) { ?>
					<a href="javascript:;" onclick="delProductAccessoire(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)"><?php echo $product['NOM']; ?> </a>
				<?php } else { ?>
					<a href="javascript:;" onclick="addProductAccessoire(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)"><?php echo $product['NOM']; ?> </a>
				<?php } ?>
			</span> 
		</div>
		<div class="productBoxCellImg">
			<div class="productBoxCellImgOpt">
				<img alt="<?php if ($product['isSHOWBREND'] == 0) {echo strtoupper($product['BREND']." - ");} echo $product['NOM']; ?>"
				title="<?php if ($product['isSHOWBREND'] == 0) {echo strtoupper($product['BREND'].' - ');} echo $product['NOM']; ?>"
				src="<?php echo $this->baseUrl.'/'.$product['URL']; ?>" />
			</div>
		</div>
		<div class="productBoxCellDesc">
			<div style="clear: both;height: 50px" class='text4'>
				<?php echo $product['DESCSHORT']; ?>
			</div>
			<div style="clear: both;height: 30px;">
				<div style="float: left;">
					<span class='text6'><?php if ($product['isSHOWBREND'] == 0) {echo strtoupper($product['BREND']);} ?></span><br />
					<span class='text5'><?php echo $product['NBREFERENCE'].' r�f�rences'; ?></span><br />
				</div>
				<div style="float: left;">
					<?php if ($product['isPROMO'] == 0) { ?>
					<span class="productPromoImg">
						<img alt="" src="<?php echo $this->baseUrl; ?>/business/image/admin/promo.png" />
					</span>
					<?php } ?>
				</div>
				
			</div>
			<div style="clear: both;">
			<?php if ($product['isDEVISPRODUCT'] == 1) { ?>
			<span class='text6'>� partir de : </span><br />
			<span class='text7'><?php echo number_format($product['PRIX'], 2, ',', ' ').' '; ?><span class="text8">&#8364;</span></span>
			<?php } else { ?>
			<span class="text6" style="color: <?php echo $color; ?>;">Sur devis</span>
			<?php } ?>
			</div> 
		</div>
	</div>  
</div>
<?php } } ?>
</div>PKc�G[;�����scripts/product/edit.phtmlnu&1i�
<?php 
	$categoryListStringSelected = "";
	$categoryListString = "";
	
	$categoryDUP1ListStringSelected = ""; 
	$categoryDUP2ListStringSelected = ""; 
	$categoryDUP3ListStringSelected = ""; 
	
	$show = array();
	foreach($this->listallcategories as $row) { 
	 	for ($level=0 ; $level<11; $level++) { 
			if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
			 	 
				$currentID = $row['ID'.$level];
				$currentLABEL = $row['NOM'.$level];
				
				$dataResult = computeSelectOption($currentID, $this->populateForm['IDCATEGORY'],$currentLABEL , $level);
				$categoryListStringSelected .= $dataResult['selected'];
				$categoryListString .= $dataResult['unselected'];
				
				$idCategoryDup1 = "";
				if (isset($this->populateForm['IDCATEGORY_DUP1'])){
					$idCategoryDup1 = $this->populateForm['IDCATEGORY_DUP1'];
				}				
				$dataResultDUP1 = computeSelectOption($currentID, $idCategoryDup1 ,$currentLABEL , $level);
							
				$idCategoryDup2 = "";
				if (isset($this->populateForm['IDCATEGORY_DUP2'])){
					$idCategoryDup2 = $this->populateForm['IDCATEGORY_DUP2'];
				}				
				$dataResultDUP2 = computeSelectOption($currentID, $idCategoryDup2,$currentLABEL , $level);
					
				$idCategoryDup3 = "";
				if (isset($this->populateForm['IDCATEGORY_DUP3'])){
					$idCategoryDup3 = $this->populateForm['IDCATEGORY_DUP3'];
				}	
				$dataResultDUP3 = computeSelectOption($currentID, $idCategoryDup3,$currentLABEL , $level);
				
				$categoryDUP1ListStringSelected .= $dataResultDUP1['selected'];
				$categoryDUP2ListStringSelected .= $dataResultDUP2['selected'];
				$categoryDUP3ListStringSelected .= $dataResultDUP3['selected'];
				
				$show['NOM'.$level] = $row['NOM'.$level];
			}
		 } 
	} 
	
	function computeSelectOption($id, $idtotest, $label, $level) {
				$categoryListStringSelected = "";
				$categoryListString = "";
				$categoryListStringSelected .= '<option value="'; 
				$categoryListStringSelected .= (int)$id;
				$categoryListStringSelected .= '"'; 
				
				$categoryListString .= '<option value="'; 
				$categoryListString .= (int)$id;
				$categoryListString .= '"'; 
				
				if ($id == $idtotest) { 
					$categoryListStringSelected .= ' selected="selected"';
				}
				$categoryListString .= '>';
				$categoryListStringSelected .= '>';
				 
 				for ($i=0 ; $i<$level; $i++) { 
					$categoryListString .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
					$categoryListStringSelected .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
				}
				$categoryListStringSelected .= $label; 
				$categoryListStringSelected .= '</option>'; 
				$categoryListString .= $label; 
				$categoryListString .= '</option>';
				return array('selected' => $categoryListStringSelected, 'unselected' => $categoryListString);
	}
	?>
	
<div class="table-box">	
	<div class="col-md-8 text-left">
    
		<a class="<?php if ($this->isProductOutOfStock) { echo 'btn btn-warning';} elseif (!$this->isProcuctEnable) { echo 'btn btn-danger';} else { echo 'btn btn-info'; } ?>" target="_blank" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($this->populateForm['NAVNOM_URLPARENTS'], $this->populateForm['NAVNOM'], $this->populateForm['ID']); ?>">
			<i class="glyphicon glyphicon-eye-open"></i>&nbsp;<?php echo $this->populateForm['NOM']; ?>
		</a>
    <b>
    <?php if ($this->isProductOutOfStock) { 
        echo "Le produit est �puis�";
    } elseif (!$this->isProcuctEnable) { 
        echo "Le produit est d�sactiv�";
    }  ?>
    </b>
	</div>
	<div class="col-md-4 text-right">
		<button class="btn btn-danger btn-modal text-right" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/del/id/<?php echo $this->populateForm['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
	</div>
	<div class="col-md-12 no-space-side">
		<div class="tabs-section ">
			<ul class="nav nav-tabs" id="myTab">
				<li class="active"><a href="#product" data-toggle="tab">Produit</a></li>
				<li><a href="#items" data-toggle="tab">Items</a></li>
				<li><a href="#pricedeg" data-toggle="tab">Prix d�gressif</a></li>
				<li><a href="#referencement" data-toggle="tab">R�f�rencement</a></li>
				<li><a href="#accessoire" data-toggle="tab">Accessoires</a></li>
				<li><a href="#images" data-toggle="tab">Images</a></li>
				<li><a href="#docs" data-toggle="tab">Documents</a></li>
				<li><a href="#cats" data-toggle="tab">Cat�gories</a></li>
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="product">
					<section class="boxpadding">
						<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editproduct#product" method="post">
							<table class="table">
								<?php echo $this->render("alert_tr.phtml"); ?>
								<tr >
									<td class="col-md-4"><label for="active"><span <?php if ($this->populateForm['isACTIVE'] == 1) { echo 'class="errorText"';} ?>>Statut</span></label></td>
									<td class="col-md-8">
										<input type="radio" class="bluecheckradios" name="active" id="active0" value="0" <?php if ($this->populateForm['isACTIVE'] == 0) { echo 'checked="checked"';} ?>><label for="active0">&nbsp;Actif</label> 
										<input type="radio" class="bluecheckradios" name="active" id="active1" value="1" <?php if ($this->populateForm['isACTIVE'] == 1) { echo 'checked="checked"';} ?>><label for="active1">&nbsp;Inactif</label>
									</td>
								</tr>
								<tr>
									<td><i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="nom">Nom</label></td>
									<td ><input type="text" class="form-control"  size="60" name="nom" id="nom" value="<?php echo $this->populateForm['NOM'];?>"></td>
								</tr> 
								<tr>
									<td ><i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="descshort">Description courte</label></td>
									<td class="desc-panel-detail-short"><textarea class="form-control"  rows="2" cols="50" name="descshort" id="descshort"><?php echo $this->populateForm['DESCRIPTIONSHORT'];?></textarea></td>
								</tr>
								<tr>
									<td><i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="descshort">Description longue</label></td>
									<td class="desc-panel-detail"><textarea class="form-control"  rows="10" cols="40" name="desclong" id="desclong"><?php echo $this->populateForm['DESCRIPTIONLONG'];?></textarea></td>
								</tr>
								<tr>
									<td><label for="descshort">Description technique</label></td>
									<td class="desc-panel-detail"><textarea class="form-control" rows="10" cols="40" name="desctech" id="desctech"><?php echo $this->populateForm['DESCRIPTIONTECH'];?></textarea></td>
								</tr>
								<tr>
									<td><label for="descshort">Description norme</label></td>
									<td class="desc-panel-detail"><textarea class="form-control" rows="10" cols="40" name="descnorme" id="descnorme"><?php echo $this->populateForm['DESCRIPTIONNORME'];?></textarea></td>
								</tr>
								<tr>
									<td ><label for="prix">A partir de </label></td>
									<td>
										<div style="float: left;">
											<input type="checkbox" class="bluecheckradios" name="devisonproduct" id="devisonproduct" onchange="showOrHide('devisonproduct', 'productPriceLabel');" <?php if ($this->populateForm['isDEVIS'] == 0) { echo 'checked="checked"'; } ?>><label for="devisonproduct">sur devis</label>
										</div>
										<div style="float: left;margin-left: 30px" id="productPriceLabel">
											<input type="hidden" name="prix" id="prix" value="<?php echo $this->populateForm['PRIXLOWEST'];?>">
											
											<?php echo "Prix calcul� : ".$this->populateForm['PRIXLOWEST']; ?><b>&nbsp;&#8364;</b>
										</div>
									</td>
								</tr>
								<tr >
									<td><label for="datePromoProduct">Date de la Promotion (Promotion 3)</label></td>
									<td>
										<input type="text" class="form-control" readonly="readonly" name="datePromoProduct" id="datePromoProduct" value="<?php echo $this->populateForm['DATEPROMO']; ?>" maxlength="10" />
										<input type="hidden"  name="sd" id="datePromoProductField" value="<?php echo $this->populateForm['DATEPROMO']; ?>" maxlength="10" />
									
									</td>
								</tr>
								<tr >
									<td><label for="idcategory">Cat�gorie</label></td>
									<td>
									
										<select class="form-control"  name="idcategory" id="idcategory">
											<?php  echo $categoryListStringSelected;?>
										</select>
									</td>
								</tr>
								<tr>
									<td><label for="stock">Disponibilit�</label></td>
									<td>
										<select class="form-control" name="stock" id="stock">
											<option value="1" <?php if ($this->populateForm['STOCK'] == 1) { echo 'selected="selected"';} ?> >Disponible</option>
											<option value="2" <?php if ($this->populateForm['STOCK'] == 2) { echo 'selected="selected"';} ?> >Disponible sous 8 jours</option>
											<option value="3" <?php if ($this->populateForm['STOCK'] == 3) { echo 'selected="selected"';} ?> >Nous contacter</option>
											<option value="4" <?php if ($this->populateForm['STOCK'] == 4) { echo 'selected="selected"';} ?> >�puis�</option>
										</select>
									</td>
								</tr>
								<tr >
									<td><label for="idbrend">Marque</label></td>
									<td>
										<select class="form-control" name="idbrend" id="idbrend">
											<option value="0">Aucun</option>
											<?php foreach($this->listbrend as $row) { 
												?>
											<option value="<?php echo $this->escape($row['ID']); ?>" <?php if ($row['ID'] == $this->populateForm['IDBREND']) { echo 'selected="selected"';}?> >
												<?php echo $this->escape($row['BREND']); ?>
											</option>
											<?php } ?>
										</select>
										<div class="col-md-12">
											<div class="col-md-3 no-space-top">Afficher la marque ?</div>
											<div class="col-md-9 no-space-top">
												<input type="radio" class="bluecheckradios" value="0" name="showbrend" id="showbrend0" <?php if ($this->populateForm['isSHOWBREND'] == 0) { echo 'checked="checked"';} ?>><label for="showbrend0">&nbsp;Oui</label>
												<input type="radio" class="bluecheckradios" value="1" name="showbrend" id="showbrend1" <?php if ($this->populateForm['isSHOWBREND'] == 1) { echo 'checked="checked"';} ?>><label for="showbrend1">&nbsp;Non</label>
											</div>
										</div>	
									</td>
								</tr>
                <tr>
                  <td>
                    <label for="boostedhome">Mise en avant</label>
                  </td>
                  <td>
                    <input type="text" class="form-control" name="boostedhome" value="<?php echo $this->populateForm['BOOSTED_HOME'];?>" placeholder="Affichage sur la page d'accueil (0 = Annulation)" />
                  </td>
                </tr>
                <tr>
                  <td>
                    <label for="boostedhome">Meilleure vente</label>
                  </td>
                  <td>
                    <input type="text" class="form-control" name="boostedbestseller" value="<?php echo $this->populateForm['BOOSTED_BESTSELLER'];?>" placeholder="Score de meilleure vente" />
                  </td>
                </tr>
								<tr>
									<td colspan="2" class="text-center">
										<input type="hidden" name="id" id="id" value="<?php echo $this->populateForm['ID'];?>" />
										<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
									</td>
								</tr>
							</table>
						</form> 
					</section>
				</div>
				<div class="tab-pane" id="items">
					<section class="boxpadding">
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>
								<tr >
									<td><h5>Caract�ristiques</h5><i>D�tail de produits</i></td>
									<td>
										<form action="<?php echo $this->baseUrl; ?>/backoffice/product/addproductoption#items" method="post">
										<div class="col-md-12  no-space-top">
											<div class="col-md-8 no-space-top">
												<select name="idoption" id="idoption" class="form-control">
													<?php foreach($this->listoption as $row) { ?>
													<option value="<?php echo $this->escape($row['ID']); ?>" > 
														<?php echo $this->escape($row['NOM']); ?>
													</option>
													<?php } ?>
												</select>
											</div>
											<div class="col-md-4  no-space-top">	
												<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />	
												<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
											</div>	
										</div>
										</form>	
									</td>
								</tr>
								<tr >
									<td colspan="2" >
										<?php foreach($this->listproductoption as $row) { ?>
											<label><?php echo $this->escape($row['NOMOPTION']); ?></label>
											<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delproductoption/idopt/<?php echo $this->escape($row['IDOPTION']);?>/id/<?php echo $this->populateForm['ID'];?>#items" ><span class="glyphicon glyphicon-resize-full"></span> D�lier</button>
										<?php } ?>
									</td>
								</tr>
								<tr >
									<td><h5>Caract�ristique</h5><i>S�lectionnable</i></td> 
									<td>
										<?php if ($this->populateForm['ONSELECT_IDOPTION'] > 0) {  
												$optionList = $this->populateForm['ONSELECT_OPTION'];?>
												<div class="col-md-12  no-space-top">
													<div class="col-md-4  no-space-top"><?php echo $optionList->name; ?></div>
													<div class="col-md-4  no-space-top"><?php echo $optionList->valuesHTML(); ?></div>
													<div class="col-md-4  no-space-top"><button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delcaracteristiquelist/id/<?php echo $this->populateForm['ID'];?>#items" ><span class="glyphicon glyphicon-resize-full"></span> D�lier</button></div>
												</div>
												
										<?php  } else { 
										 if (isset($this->listChild) && !empty($this->listChild)) { ?>
											<form action="<?php echo $this->baseUrl; ?>/backoffice/product/addcaracteristiquelist#items" method="post">											
												<div class="col-md-12  no-space-top">
													<div class="col-md-8  no-space-top">
														<select name="idoption" class="form-control">
															<?php foreach($this->optionsbylist as $optionList) { ?>
																<option value="<?php echo $optionList->id;?>">
																	<?php 
																	$values = explode("::", $optionList->valuesString);
																	$result = "";
																	foreach ($values as $value) {
																		if (empty($result))  {
																			$result .= $value;
																		} else {
																			$result .= ", ".$value;
																		}
																	}
																	echo $optionList->name." (".$result.")";
																	?>
																</option>
															<?php } ?>
														</select>
													</div>
													<div class="col-md-4  no-space-top">
														<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
														<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
													</div>
												</div>
											</form>
										<?php }} ?>
									</td>
								</tr>
								<tr >
									<td colspan="2" >
										<form action="<?php echo $this->baseUrl; ?>/backoffice/product/addchilds#items" method="post">
											<div class="col-md-12 no-space">
												<h5>Ajouter des r�f�rences</h5>
												<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
												<div class="invoice-box">													
													<?php for ($index = 0; $index < 2; $index++) { ?>
													<input type="hidden" value="0" name="<?php echo $index."etatstock";  ?>" />
													<input type="hidden" value="0" name="<?php echo $index."poids";  ?>" />
													<input type="hidden" value="0" name="<?php echo $index."imagePromo";  ?>" />
													<div class="col-md-6 no-space-top">
														<div class="invoice-content">
															<div class="col-md-12 no-space">
																<table class="table ">
					                                                <tbody>
						                                                <tr>
						                                                    <td class="meta-head"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;D�signation</td>
						                                                    <td><input class="form-control" type="text"  name="<?php echo $index."designation";  ?>" id="<?php echo $index."designation";  ?>"  value="<?php if (isset($this->populateChild[$index.'DESIGNATION'])) { echo $this->populateChild[$index.'DESIGNATION']; } ?>" /></td>
						                                                </tr>
						                                            </tbody>
					                                            </table>
															</div>
															<div class="col-md-6 no-space">
																<table class="table table-left no-border-top">
					                                                <tbody>
						                                                <tr>
						                                                    <td class="meta-head"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;R�f�rence</td>
						                                                    <td><input class="form-control" type="text" name="<?php echo $index."reference";  ?>" id="<?php echo $index."reference";  ?>" value="<?php if (isset($this->populateChild[$index.'REFERENCE'])) { echo $this->populateChild[$index.'REFERENCE']; }?>" /></td>
						                                                </tr>
						                                                <tr>
						                                                    <td class="meta-head"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Prix</td>
						                                                    <td><input class="form-control"  type="text" name="<?php echo $index."prixNormal";  ?>" id="<?php echo $index."prixNormal";  ?>" value="<?php if (isset($this->populateChild[$index.'PRIX'])) { echo $this->populateChild[$index.'PRIX']; } ?>" /></td>
						                                                </tr>
						                                                <tr>
						                                                    <td class="meta-head">Sur devis ?</td>
						                                                    <td class="text-center"><input type="checkbox" class="bluecheckradios" name="<?php echo $index."devisprice";  ?>" id="<?php echo $index."devisprice";  ?>" /></td>
						                                                </tr>
						                                                <tr>
						                                                    <td class="meta-head">Quantit� minimum</td>
						                                                    <td><input class="form-control" type="text"  name="<?php echo $index."quantiteMin";  ?>" id = "<?php echo $index."quantiteMin";  ?>" value="<?php if (isset($this->populateChild[$index.'QUANTITYMIN'])) { echo $this->populateChild[$index.'QUANTITYMIN']; } ?>" /></td>
						                                                </tr>
						                                            </tbody>
					                                            </table>
															</div>
															<div class="col-md-6 no-space">
					                                            <table class="table table-right no-border-top">
					                                                <tbody>
																		<?php 
																		$listOption = array();
																		$i = 0;
																		foreach($this->listproductoption as $row) { 
																			$listOption[$i] = $this->escape($row['IDOPTION']);
																			$i++; ?>
						                                                <tr>
						                                                    <td class="meta-head"><?php echo $this->escape($row['NOMOPTION']); ?></td>
						                                                    <td><input class="form-control" type="text" name="<?php echo $index."option".$row['IDOPTION']; ?>" id="<?php echo $index."option".$row['IDOPTION']; ?>" value=""></td>
						                                                </tr>
																		<?php } ?>																		
						                                            </tbody>
					                                            </table>
				                                            </div>
				                                        </div>
			                                        </div>
			                                        <?php } ?>
	                                        	</div>
											</div>
											<div class="col-md-12 text-center col-margin-15">
												<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
												<input type="hidden" name="listOption"  value='<?php echo serialize($listOption);?>'>
											</div>
										</form>	
									</td>
								</tr>
								<?php if (isset($this->listChild) && !empty($this->listChild)) { ?>
								<tr>
									<td colspan="2">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/product/editchilds#items" method="post">
											<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
											<div class="col-md-12 no-space">
												<h5>Modifier les r�f�rences</h5>
												<div class="invoice-box">
													<?php  $index = 0;
													foreach($this->listChild as $row) { ?>	
													<input type="hidden" name="<?php echo $index."idchild"; ?>" id="<?php echo $index."idchild"; ?>" value="<?php echo $this->escape($row['ID']);?>">														
													<input type="hidden" value="0" name="<?php echo $index."etatstock";  ?>" />												
													<input type="hidden" value="0" name="<?php echo $index."poids";  ?>" />
																			
													<div class="col-md-6 no-space-top">
														<div class="invoice-content">
															<div class="col-md-12 no-space">
																<table class="table ">
					                          <tbody>
						                          <tr>
						                              <td class="meta-head"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;D�signation</td>
						                              <td><input class="form-control" type="text"  name="<?php echo $index."designation";  ?>"  value="<?php echo $row['DESIGNATION'];  ?>" /></td>
						                          </tr>
						                      </tbody>
					                      </table>
															</div>
															<div class="col-md-6 no-space">
																<table class="table table-left no-border-top">
					                            <tbody>
						                            <tr>
						                                <td class="meta-head"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;R�f�rence</td>
						                                <td><input class="form-control" type="text" name="<?php echo $index."reference"; ?>" id="<?php echo $index."reference"; ?>" value="<?php echo $this->escape($row['REFERENCE']);?>"></td>
						                            </tr>
						                            <tr>
						                                <td class="meta-head"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Prix</td>
						                                <td><input class="form-control" type="text" name="<?php echo $index."prixNormal"; ?>" id="<?php echo $index."prixNormal"; ?>" value="<?php echo $this->escape($row['PRIX']);?>"></td>
						                            </tr>
						                            <tr>
						                                <td class="meta-head">Sur devis ?</td>
						                                <td class="text-center"><input type="checkbox" class="bluecheckradios" name="<?php echo $index."devisprice"; ?>" id="<?php echo $index."devisprice"; ?>" <?php if ($row['isDEVIS'] == 0) { echo 'checked="checked"'; } ?> ></td>
						                            </tr>
						                            <tr>
						                                <td class="meta-head">Quantit� minimum</td>
						                                <td><input class="form-control" type="text" size="5" name="<?php echo $index."quantiteMin"; ?>" id = "<?php echo $index."quantiteMin"; ?>" value="<?php echo $this->escape($row['QUANTITYMIN']);?>" ></td>
						                            </tr>
						                            <tr>
						                                <td class="meta-head">Franco annulation</td>
						                                <td class="text-center"><input type="checkbox" class="bluecheckradios" name="<?php echo $index."francodenied"; ?>" id="<?php echo $index."francodenied"; ?>" <?php if ($row['isFRANCODENIED'] == 0) { echo 'checked="checked"'; } ?> ></td>
						                            </tr>
						                            <tr>
						                                <td class="meta-head">Image de la promo</td>
						                                <td><input class="form-control" type="text" size="2" name="<?php echo $index."imagePromo"; ?>" id = "<?php echo $index."imagePromo"; ?>" value="<?php echo $this->escape($row['IMAGEPROMO']);?>" ></td>
						                            </tr>
						                            <tr>
						                                <td class="meta-head">Points de fid�lit�</td>
						                                <td><input class="form-control" type="text" size="2" name="<?php echo $index."pointFidelite"; ?>" id = "<?php echo $index."pointFidelite"; ?>" value="<?php echo $this->escape($row['POINTFIDELITE']);?>" ></td>
						                            </tr>
						                        </tbody>
					                        </table>
															</div>
															<div class="col-md-6 no-space">
					                      <table class="table table-right no-border-top">
					                          <tbody>
									                    <?php  foreach($this->listproductoption as $option) {  ?>
						                          <tr>
						                              <td class="meta-head"><?php echo $this->escape($option['NOMOPTION']); ?></td>
						                              <td><input class="form-control" type="text" size="10" name="<?php echo $index."option".$option['IDOPTION']; ?>" id="<?php echo $index."option".$option['IDOPTION']; ?>" value="<?php if (isset($row['OPTION_VALUE_'.$option['IDOPTION']])) {echo $this->escape($row['OPTION_VALUE_'.$option['IDOPTION']]); } ?>"></td>
						                          </tr>
									                    <?php } ?>																		
						                      </tbody>
					                      </table>
				                      </div>
				                      <div class="col-md-12 text-center col-margin-15" >
				                        <button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delchild/idchild/<?php echo $this->escape($row['ID']); ?>/id/<?php echo $this->populateForm['ID'];?>#items" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
							                  <button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
		                          </div>
				                    </div>
			                    </div>
			                    <?php $index++; } ?>
		                        <div class="col-md-12 text-center" >
					                    <input type="hidden" name="listOption"  value='<?php echo serialize($listOption);?>'>
					                    <input type="hidden" name="nbRows"  value='<?php echo $index;?>'>
				                    </div>
	                      </div>
											</div>
										</form>
									</td>
								</tr>
								<?php } ?>
							</table> 
					</section>
				</div>
				<div class="tab-pane" id="pricedeg">
					<section class="boxpadding">
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>
							<tr class="nostriped"> 
								<td >
									<form action="<?php echo $this->baseUrl; ?>/backoffice/product/editchildqteprixactivation#pricedeg" method="post">
										<div class="col-md-2 no-space-top"><label for="activateItemPrix">Activer les prix d�gr�ssif</label></div>
										<div class="col-md-1 no-space-top"><input type="checkbox" class="bluecheckradios" id="activateItemPrix"  name="activateItemPrix" <?php if ($this->populateForm['isQTEPRIXACTIVE']) { echo 'checked="checked"';} ?> ></div>
										<div class="col-md-8 no-space-top text-left">
											<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
											<button class="btn btn-success" type="submit" ><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
										</div>
									</form>
								</td>
							</tr> 
							<?php if (isset($this->listChild) && !empty($this->listChild)) { ?>
							<tr class="nostriped">
								<td  >
									<form action="<?php echo $this->baseUrl; ?>/backoffice/product/addchildqteprix#pricedeg" method="post">
									<table class="table">
										<thead align="center">
											<tr>
												<th>R�f�rence</th> 
												<th >Quantit� minimum</th> 
												<th >Quantit� maximum</th>  
												<th class="text-center" >Prix</th>  
												<th>&nbsp;</th>  
											</tr>
										</thead>
										<tbody>
											<tr align="center">
												<td>
													<select class="form-control" name="item_id">
														<?php foreach($this->listChild as $row) { ?>
														<option value="<?php echo $row['ID']; ?>"><?php echo $this->escape($row['REFERENCE']);?></option>
														<?php } ?>
													</select>
												</td> 
												<td><input type="text" class="form-control" placeholder="Quantit� minimum d'achat" name="min" value="" size="5"/></td> 
												<td>
													<div class="col-md-9 no-space-top"><input type="text" class="form-control" placeholder="Quantit� maximum d'achat" name="max" value="" size="5"/></div>
													<div class="col-md-3 no-space-top"><input type="checkbox" class="bluecheckradios" name="maxend" id="maxend" /><label for="maxend">&nbsp;Et plus</label></div>
												</td>
												<td><input type="text" class="form-control" placeholder="Prix d'achat" name="prix" value="" size="5"/></td> 
												<td>
													<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
													<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
												</td> 
											</tr>
										</tbody>
									</table>
									</form>
								</td>
							</tr>
							<?php }
							if (isset($this->productChildQte) && !empty($this->productChildQte)) { ?>
							<tr class="nostriped">
								<td >
									<table class="table">
										<thead align="center">
											<tr>
												<th>R�f�rence</th> 
												<th>D�signation</th> 
												<th>De</th> 
												<th>�</th> 
												<th class="text-center">Prix</th> 
												<th>&nbsp;</th>
											</tr>
										</thead>
										<tbody>
											<?php foreach($this->productChildQte as $row) { ?>
											<tr > 
												<td >
													<span <?php if (!$row['isQTEPRIXACTIVE']) { ?>style="color:red;"<?php } ?>><?php echo $this->escape($row['REFERENCE']);?></span>
												</td>
												<td >
													<span><?php echo $row['DESIGNATION'];?></span> 
												</td> 
												<td >
													<span><?php echo $this->escape($row['MIN']);?></span> 
												</td> 
												<td  >
													<span>
													<?php if ($row['MAX'] <> 999999999) { echo $this->escape($row['MAX']); }
													else {echo "Et Plus"; } ?></span> 
												</td> 
												<td >
													<span><?php echo $this->escape($row['PRIX']);?></span> 
												</td> 
												<td  > 
													<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delchildqteprix/id/<?php echo $this->populateForm['ID'];?>/item_id/<?php echo $row['ID'];?>#pricedeg" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
												</td>
											</tr>
											<?php } ?> 
										</tbody>
									</table> 
								</td>
							</tr>
							<?php } ?>
						</table> 
					</section>
				</div>
				<div class="tab-pane" id="referencement">
					<section class="boxpadding">
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>
							<tr >
								<td><h5>M�ta donn�es</h5></td>
							</tr>
							<tr>
								<td >
									<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editnavheader#referencement" method="post">
										<input type="hidden" size="60" name="id" value="<?php echo $this->populateForm['ID'];?>">
										<table class="table">
											<tr class="nostriped">
												<td ><label for="navtitre">Titre</label>	<br/>
                          <i><?php if (!empty($this->populateForm['NAVTITRE'])) { echo  strlen($this->populateForm['NAVTITRE'])." caract�res"; } ?></i>
												</td>
												<td >
													<input placeholder="Titre de la page" class="form-control" size="70" type="text" name="navtitre" id="navtitre" value="<?php echo $this->populateForm['NAVTITRE'];?>"> 
												</td>
											</tr> 
											<tr class="nostriped">
												<td ><label for="navdesc">Description</label><br/>	
                          <i><?php if (!empty($this->populateForm['NAVDESC'])) { echo  strlen($this->populateForm['NAVDESC'])." caract�res"; } ?></i>
												</td>
												<td >
													<input placeholder="Description de la page" class="form-control" type="text" name="navdesc" id="navdesc" value="<?php echo $this->populateForm['NAVDESC'];?>" >
												</td>
											</tr> 
											<tr class="nostriped">
												<td ><label for="keywords_list">Mots cl�s</label></td>
												<td ><input placeholder="Vos mots cl�s" class="form-control"  size="40" type="text" name="keywords_list" id="keywords_list" value="<?php echo $this->populateForm['KEYWORDS'];?>">
												<i>mot cl� 1, mot cl� 2, ...</i></td>
											</tr> 								
											<tr class="nostriped">
												<td colspan="2" class="text-center" >
													<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
												</td>
											</tr> 
										</table>
									</form>
								</td>
							</tr>  
							<tr >
								<td><h5>Nom de navigation</h5></td>
							</tr>
							<tr> 
								<td >
									<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editcustomnavnom#referencement" method="post">
									<input type="hidden" size="60" name="id" value="<?php echo $this->populateForm['ID'];?>">
														
									<table  class="table">
										<tr class="nostriped">
											<td ><label for="navnom">Nom actuel</label></td> 
											<td >
											<input type="hidden" name="nom" value="<?php echo $this->populateForm['NOM'];?>">
											<input placeholder="Nom de navigation alternatif" class="form-control"  type="text" size="70" name="navnom" id="navnom" value="<?php echo $this->populateForm['NAVNOM'];?>"></td>
										</tr> 
										<tr class="nostriped">
											<td ><label for="navnom_custom1">Nom</label></td>
											<td >
												<input placeholder="Nom de navigation alternatif" class="form-control"  size="70" type="text" value="<?php echo $this->populateForm['CUSTOM_NAVNOM1'];?>" name="navnom_custom1" id="navnom_custom1" />
											</td>
										</tr> 
										<tr class="nostriped">
											<td ><label for="navnom_custom2">Nom</label></td>
											<td >
												<input placeholder="Nom de navigation alternatif" class="form-control"  size="70" type="text" value="<?php echo $this->populateForm['CUSTOM_NAVNOM2'];?>" name="navnom_custom2" id="navnom_custom2" />
											</td>
										</tr>
										<tr class="nostriped">
											<td ><label for="navnom_custom3">Nom</label></td>
											<td >
												<input placeholder="Nom de navigation alternatif" class="form-control"  size="70" type="text" value="<?php echo $this->populateForm['CUSTOM_NAVNOM3'];?>" name="navnom_custom3" id="navnom_custom3" />
											</td>
										</tr>
										<tr class="nostriped">
											<td colspan="2" class="text-center">
												<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
											</td>
										</tr> 
									</table>
									</form>
								</td> 
							</tr>
							<tr >
								<td><h5>Sitemap</h5></td>
							</tr>
							<tr class="nostriped">
								<td>  
									<pre>
									 <?php echo $this->siteMapShow; ?> 
									 </pre>
								</td>
							</tr>  
						</table>
					</section>
				</div>
				<div class="tab-pane" id="accessoire">
					<section class="boxpadding">
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>							
							<tr >
								<td><h5>Accessoires</h5></td>
							</tr>
							<tr >
								<td>
									<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/addproductaccessoire#accessoire" method="post">
									<table class="table">
										<tr  class="nostriped">
											<td class="col-md-2"><label for="reference_acc">R�f�rence</label></td>
											<td class="col-md-8">
												<input placeholder="Ajouter une r�f�rence de produit en tant qu'accessoire" class="form-control" type="text" name="reference_acc" id="reference_acc">
											</td>
											<td class="col-md-2">
												<input type="hidden" size="60" name="id" value="<?php echo $this->populateForm['ID'];?>">
												<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
											</td>
										</tr>
										<tr  class="nostriped">
											<td class="col-md-2"><label >Accessoires li�s</label></td>
											<td class="col-md-10" colspan="2"> 
												<div id="idproduitacc_success" > 
												<?php echo $this->render("/product/ajaxaccessoirelist.phtml"); ?>
												</div>
											</td>
										</tr> 
									</table>	
									</form>
								</td>
							</tr>  
														
							<tr >
								<td><h5>Les clients ayant consult� cet article ont �galement regard� ces produits</h5></td>
							</tr>
							<tr>
								<td>
									<table class="table">
										<tr  class="nostriped">
											<td class="col-md-2"><label for="idcategoryann">Cat�gorie</label></td>
											<td class="col-md-10">
												<select class="form-control" name="idcategoryann" id="idcategoryann">
													<option value="none">S�lectionner</option>
													<?php  echo $categoryListString; ?>
												</select>  
											</td>
										</tr> 
										<tr  class="nostriped">
											<td><label for="idproduitann">Produits</label></td>
											<td > 
												<div id="idcategoryann_success" ></div>	
												<div id="idcategoryann_loading" class="ajax-loading" style="display: none;">Chargement</div>
											
											</td>
										</tr> 
										<tr  class="nostriped">
											<td><label >Produits li�s</label></td>
											<td > 
												<div id="idproduitann_success" > 
												<?php echo $this->render("/product/ajaxannexelist.phtml"); ?>
												</div>
											</td>
										</tr> 
									</table>
								</td>
							</tr>
						</table>
					</section>
				</div>
				<div class="tab-pane" id="images">
					<section class="boxpadding">
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>							
							<tr >
								<td ><h5>Images</h5></td>
							</tr>
							<tr >
								<td>
									<form method="post" enctype="multipart/form-data" action="<?php echo $this->baseUrl; ?>/backoffice/product/uploadpics#images">
									<table class="table">
										<tr  class="nostriped">
											<td class="col-md-2"><label for="reference_acc">Ajouter une image</label></td>
											<td class="col-md-8">
												<input type="file" name="file" class="file" size="50"/><br/>
												<i>Extensions : jpeg, jpg, gif, png</i>
											</td>
											<td class="col-md-2">
												<input type="hidden" name="idcat" id="idcat" value="<?php echo $this->populateForm['IDCATEGORY'];?>" />
												<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
												<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
											</td>
										</tr>
									</table>
									</form>
								</td>
							</tr> 
							<tr>
								<td><h5>Images du produit</h5></td>
							</tr>
							<tr >
								<td >
									<form action="<?php echo $this->baseUrl; ?>/backoffice/product/editpicture#images" method="post">
										<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
										<table class="table">
											<tr  class="nostriped">
												<td class="text-center no-space-top"><button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button></td>
											</tr>
											<tr  class="nostriped">
												<td >
													
													<?php $i=0; 
													foreach($this->listPicture as $row) { ?>
													
													<div class="col-md-3 text-center no-space-top">
														<div class="col-md-12 text-center">
															<ul class="gallerybox">
															  	<li>
																	<figure>
																		<img src="<?php echo $this->baseUrl.'/'.$row['URL']; ?>" />
																	</figure>
																</li>
															</ul>
														</div>
														<div class="col-md-12 text-center">
																<input placeholder="Position d'affichage" class="form-control" type="text" size="2" name="position<?php echo $i; ?>" value="<?php echo $row['POSITION']; ?>">
																<input placeholder="Information sur l'image" class="form-control" type="text" size="15" name="string1_<?php echo $i; ?>" value="<?php echo $row['STRING1']; ?>">
																<input placeholder="Information sur l'image" class="form-control" type="text" size="15" name="string2_<?php echo $i; ?>" value="<?php echo $row['STRING2']; ?>">
																<input type="hidden" name="id<?php echo $i; ?>" value="<?php echo $row['ID']; ?>" >
														</div>
														<div class="btn-group">
															<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delpicture/pic/<?php echo $row['ID']; ?>/id/<?php echo $this->populateForm['ID'];?>#images" ><i class="glyphicon glyphicon-resize-full"></i>&nbsp;D�lier</button>
														</div>
													</div>
													<?php $i++; } ?>
													<input type="hidden" name="nbrImg" value="<?php echo $i; ?>" >
												</td>
											</tr>
										</table>
									</form>
								</td>
							</tr>
							<tr ><td ><h5>Images de la cat�gorie</h5></td></tr>
							<tr  class="nostriped">
								<td>
									<?php 
										$files = glob("items/product/".$this->populateForm['IDCATEGORY']."/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
									
									
									<div class="col-md-3 text-center no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/product/setpicture#images" method="post" >
										<div class="col-md-12 text-center">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-12">
											<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
										</div>
										</form>	
									</div>
									<?php } ?>
								</td>
							</tr>
							<tr ><td ><h5>Image par d�faut</h5></td></tr>
							<tr >
								<td >
									<?php 
										$files = glob("items/product/default/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
									<div class="col-md-3 text-center no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/product/setpicture#images" method="post">
										<div class="col-md-12 text-center">
											<ul class="gallerybox">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-12">
											<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
										</div>
										</form>	
									</div>
									<?php } ?>
								</td>
							</tr>
						</table>
					</section>
				</div>
				<div class="tab-pane" id="docs">
					<section class="boxpadding">
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>		
							<tr >
								<td ><h5>Document associ� au produit</h5></td>
							</tr>
							<tr >
								<td >
									<?php 
									if (isset($this->populateForm['DOCNAME']) && !empty($this->populateForm['DOCNAME'])) {
									?>
									
										<table class="table">
											<tr >
												<td >
													<a class="btn btn-primary" href="<?php echo $this->baseUrl.'/'.$this->populateForm['DOCURL']; ?>" target="_blank"><i class="glyphicon glyphicon-eye-open"></i>&nbsp;Voir le document : <?php echo $this->populateForm['DOCNAME']; ?></a>
												</td>
												<td>
													<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/deldoc/id/<?php echo $this->populateForm['ID']; ?>#docs" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
												</td>
											</tr>		
										</table>
									<?php } else { ?>
										<form method="post" enctype="multipart/form-data" action="<?php echo $this->baseUrl; ?>/backoffice/product/editdoc#docs">
										<table class="table">
											<thead>
												<tr>
													<th>Nom du lien</th>
													<th>Document</th>
													<th></th>
												</tr>
											</thead>
											<tbody>
												<tr >
													<td>
														<input type="hidden" name="docid_product" id="docid_product" value="<?php echo $this->populateForm['ID']; ?>">
														<input class="form-control" type="text" name="docname_product" id="docname_product" value="<?php echo $this->populateForm['DOCNAME'];?>">
													</td>
													<td>
														<input type="file" name="file_doc" class="file" size="50"/>
														<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
													</td>
													<td>
														<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
													</td>
												</tr>	
											</tbody>
										</table>
										</form>
									<?php  }  ?>	
								</td>
							</tr>
							
							<tr >
								<td ><h5>Document associ� aux r�f�rences</h5></td>
							</tr>
							<?php if (isset($this->listChild) && !empty($this->listChild)) { ?>
							<tr >
								<td >
									<table class="table">
										<thead>	
											<tr align="center">
												<th>R�f�rence</th>
												<th>Document</th>
											</tr>
										</thead>
										<tbody>
										<?php  foreach($this->listChild as $row) { ?>
										<tr  class="nostriped">
											<td >
												<span><?php echo $this->escape($row['REFERENCE']);?></span>
											</td>
											
											<td >
												<form method="post" enctype="multipart/form-data" action="<?php echo $this->baseUrl; ?>/backoffice/product/editftfds#docs">
													<input type="hidden" name="idchild_ftfds" id="idchild_ftfds" value="<?php echo $this->escape($row['ID']);?>">
													<input type="hidden" name="id" value="<?php echo $this->populateForm['ID'];?>" />
													
													<?php 
													$isFTFDS = false;
													foreach($this->listFTFDS as $rowFTFDS) {  
														if ($rowFTFDS['ID_CHILD'] == $row['ID']) {
													?>
														<div class="col-md-8">
															<a class="btn btn-primary" href="<?php echo $this->baseUrl.'/'.$rowFTFDS['URL']; ?>" target="_blank"><i class="glyphicon glyphicon-eye-open"></i>&nbsp;Voir le document</a>
														</div>
														<div class="col-md-4">
															<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delftfds/idchild/<?php echo $this->escape($rowFTFDS['ID_CHILD']); ?>/id/<?php echo $this->populateForm['ID'];?>#docs" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
														</div>
													<?php 
														$isFTFDS = true;
														}
													}
													if ($isFTFDS == false) { ?>
														<div class="col-md-8">
															<input type="file" name="file_ftfds" class="file" size="50"/>
														</div>
														<div class="col-md-4">
															<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
														</div>
													<?php  }  ?>
												</form>
											</td>
										</tr>	
										<?php } ?>	
										</tbody>
									</table>
								</td>
							</tr>
							<?php } ?>
						</table>
					</section>
				</div>
				<div class="tab-pane" id="cats">
					<section class="boxpadding">
						<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editproductcategories#cats" method="post">
							<input type="hidden" name="id" id="id" value="<?php echo $this->populateForm['ID'];?>" />
							<table class="table">
								<?php echo $this->render("alert_tr.phtml"); ?>		
								<tr>
									<td class="text-center">
										<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
									</td>
								</tr>
								<tr >
									<td  ><h5>Dupliquer le produit dans les cat�gories</h5></td>
								</tr>
								<tr >
									<td>
										<table class="table">
											<tr class="nostriped">
												<td><label for="idcategory_duplicat1">Cat�gorie</label></td>
												<td> 
													<select class="form-control" name="idcategory_duplicat1" id="idcategory_duplicat1">
														<option value="0">Aucun</option>
														<?php  echo $categoryDUP1ListStringSelected;?>
													</select>
												</td>
											</tr>
											<tr class="nostriped">
												<td><label for="idcategory_duplicat2">Cat�gorie</label></td>
												<td> 
													<select class="form-control" name="idcategory_duplicat2" id="idcategory_duplicat2">
														<option value="0">Aucun</option>
														<?php  echo $categoryDUP2ListStringSelected;?>
													</select>
												</td>
											</tr> 
											<tr class="nostriped">
												<td><label for="idcategory_duplicat3">Cat�gorie</label></td>
												<td> 
													<select class="form-control" name="idcategory_duplicat3" id="idcategory_duplicat3">
														<option value="0" >Aucun</option>
														<?php  echo $categoryDUP3ListStringSelected;?>
													</select>
												</td>
											</tr> 
										</table>
									</td>
								</tr> 
								<tr >
									<td colspan="2" ><h5>Dupliquer le produit dans les cat�gories subsidiaires</h5></td>
								</tr>
								<tr >
									<td>
										<table class="table">
											<tr class="nostriped">
												<td><label for="idcategory_promosolde">Cat�gorie</label></td>
												<td> 
													<select style="height:200px" class="form-control" id="idcategory_promosolde" name="idcategory_promosolde[]" multiple="multiple" >
														<option value="0">Aucun</option>
														<?php 
														$show = array();
														$productCategories = $this->productCategories;
														foreach($this->listallcategories2 as $row) { 
														 	for ($level=0 ; $level<11; $level++) { 
																if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
																?>
																	<option value="<?php echo $this->escape($row['ID'.$level]); ?>"  
																	<?php foreach ($productCategories as $currentCategory) {  
																		 if ($row['ID'.$level] == $currentCategory['ID']) { echo 'selected="selected"'; }
																		}?>  
																	>
																		<?php 
														 				for ($i=0 ; $i<$level; $i++) { 
																			echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
																		}
																		echo $this->escape($row['NOM'.$level]); ?>
																	
																	</option>
																	<?php 
																	$show['NOM'.$level] = $row['NOM'.$level];
																}
															 } 
														} ?>
													</select>
												</td>
											</tr>
										</table>
									</td>
								</tr> 
							</table>
						</form>
					</section>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript"> 
$(function(){ 
	initEditor('#descshort');
	initEditor('#desclong');
	initEditor('#desctech');
	initEditor('#descnorme');
	initTabs(window.location.hash);
	$("#idcategoryann_success").html("");
	$("#idcategoryann").bind({
		change: function() {  
			if ($(this).val() != 'none' ) {
					$("#idcategoryann_loading").css({'display' : 'block'});
					$("#idcategoryann_success").html(""); 
					 $.ajax( {
					type : "POST", 
					async : true,
					url : '/backoffice/product/ajaxproductannexelistbycat', 
					data : "idcategory="+$(this).val()+"&idproduct="+$("#id").val(),
					success : function(data) {  
						$("#idcategoryann_loading").css({'display' : 'none'});
						$("#idcategoryann_success").html(data);
					}}); 
			}  
	   } 
	});
	
	var str = "<?php echo $this->populateForm['DATEPROMO']; ?>";
	var res = str.split("-");
	$("#datePromoProduct").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#datePromoProductField",
		dateFormat: 'DD, d MM, yy'
	}).datepicker("setDate", new Date(res[0],res[1] - 1,res[2]));
});

function refreshListProduct(type) {
	if (type == 'ann') {  
		 $.ajax( {
				type : "POST", 
				async : true,
				url : '/backoffice/product/ajaxproductannexelistbycat', 
				data : "idcategory="+$("#idcategoryann option:selected").val()+"&idproduct="+$("#id").val(),
				success : function(data) {   
					$("#idcategoryann_success").html(data);
				}});
	} 
} 

function delProductAccessoire(idProduct, idAccessoire) {
	$.ajax( {
		type : "POST", 
		async : true,
		url : '/backoffice/product/ajaxdelproductaccessoire',  
		data : "idproduct="+idProduct+"&idAccessoire="+idAccessoire,
		success : function(data) {  
			$("#idproduitacc_success").html(data);   
		}});  
} 

function addProductAnnexe(idProduct, idAnnexe) {
	$.ajax( {
		type : "POST", 
		async : true,
		url : '/backoffice/product/ajaxaddproductannexe', 
		data : "idproduct="+idProduct+"&idannexe="+idAnnexe,
		success : function(data) {  
			$("#idproduitann_success").html(data);  
			refreshListProduct('ann');
		}});  
} 
function delProductAnnexe(idProduct, idAnnexe) {
	$.ajax( {
		type : "POST", 
		async : true,
		url : '/backoffice/product/ajaxdelproductannexe', 
		data : "idproduct="+idProduct+"&idannexe="+idAnnexe,
		success : function(data) {  
			$("#idproduitann_success").html(data);   
			refreshListProduct('ann');
		}});  
} 
</script>PKc�G[����	�	$scripts/product/keywordsengine.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="<?php  echo $this->baseUrl; ?>/backoffice/product/addkeywordsengine">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Mot cl�</td>
				<td class="col-md-8"><input type="text" class="form-control" size="60" name="keyword" id="keyword" placeholder="Ajouter un mot cl� pour la barre de recherche"></td>
			</tr>
			<tr class="nostriped">
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<a class="button" style="display:none" href="<?php  echo $this->baseUrl; ?>/backoffice/product/keywordsenginereset">Reset</a>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="keywordTable" width="100%">
	<thead>
		<tr>
			<th>Mot cl�</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->paginator as $row)  { ?>
		<tr >
			<td>
				<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editkeywordsengine" method="post">
				<div class="col-md-8 no-space-top">
					<input class="form-control" type="text" size="40" name="keyword" value="<?php echo $this->escape($row['KEYWORD']);?>">
				</div>
				<div class="col-md-4 no-space-top">
					<input type="hidden" value="<?php echo $row['ID']; ?>" name="keyword_id">
					<input type="hidden" value="<?php echo  $this->paginator->getCurrentPageNumber(); ?>" name="page">
					<div class="btn-group">
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
						<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/delkeywordsengine/id/<?php echo $row['ID']; ?>/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
					</div>
				</div>
				</form>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>PKc�G[@װN��+scripts/product/ajaxannexeproductlist.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?> 
<?php 
 
foreach ($this->listProducts as $product) {
	$isAcc = false; 
	$color = "#CC0000";
	foreach ($this->listAnnexes as $productAnnexe) {
		if ($productAnnexe['ID'] == $product['ID']) {
			$color = "green";
			$isAcc = true;
			break;
		}
	}
if ($this->currentProduct != $product['ID']) { ?> 

<div class="col-md-3 text-center no-space-top">
	<div class="col-md-12 text-center">
		<ul class="gallerybox">
		  	<li>
				<?php echo $product['NOM']; ?>
				<figure>
					<img alt="<?php echo $product['NOM']; ?>"
							title="<?php echo $product['NOM']; ?>"
							src="<?php echo $this->baseUrl.'/'.$product['URL']; ?>" />
				</figure>
			</li>
		</ul>
	</div>
	<div class="btn-group">
		<?php if ($isAcc == true) { ?>
			<a href="javascript:;" class="btn btn-danger" onclick="delProductAnnexe(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)"><i class="glyphicon glyphicon-resize-full"></i>&nbsp;D�lier</a>
		<?php } else { ?>
			<a href="javascript:;" class="btn btn-primary" onclick="addProductAnnexe(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</a>
		<?php } ?>
		<a class="btn btn-success" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $product['ID']."#tabs-items"; ?>">
			<i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
		</a>
	</div>
</div>
<?php } } ?>PKc�G[�7�o��"scripts/product/optionprofil.phtmlnu&1i�<table cellpadding="0" cellspacing="5" border="0"width="800px">

<tr>
	<td align="left" colspan="3">
		<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/product/optionprofil">
		<table cellpadding="0" cellspacing="0" width="500px">
			<tr>
				<td colspan="2">Ajouter un profil d'options</td>
			</tr>
			<tr>
				<td>Nom : </td>
				<td><input type="text" name="nom" id="nom" value="" size="40" ></td>
			</tr>
			<tr>
				<td>Options : </td>
				<td>
					<?php  if ($this->listoption) { ?>
					<select multiple="multiple" name="profilOptions[]" id="profilOptions">
					<?php foreach($this->listoption as $row) : ?>
					<option value="<?php echo $this->escape($row['ID']);?>" ><?php echo $this->escape($row['NOM']);?></option>
					<?php endforeach; ?>
					</select>
					<?php } ?>
				</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" name="add" value="Ajouter" /></td>
			</tr>
		</table>
		</form>
	</td>
</tr>			
<tr>
	<td colspan="3" style="background:#666666;height:1px;"></td>
</tr>
<tr>
	<td align="left" colspan="3">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<?php  if ($this->listprofils) { ?>
	<tr>
		<td valign="top" width="510px">
			<table cellpadding="0" cellspacing="0" width="500px">
				<?php foreach($this->listprofils as $row) { ?>
				<tr>
					<td><?php echo $this->escape($row['NOM']);?></td>
					<td >
						<a href="<?php echo $this->baseUrl; ?>/backoffice/product/optionprofildel/id/<?php echo $this->escape($row['ID']);?>">Supprimer</a>
					</td>
				</tr>
				<?php } ?>
			</table>
		</td>
	</tr>
<?php } ?>
</table>
PKc�G[^��1�
�
scripts/product/add.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="/backoffice/product/add">
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom</td>
				<td class="col-md-8"><input type="text" class="form-control" size="60" name="nom" id="nom" value="<?php echo $this->populateForm['NOM'];?>"></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Description courte</td>
				<td class="col-md-8"><textarea rows="2" class="form-control" cols="50" name="descshort" id="descshort"><?php echo $this->populateForm['DESCRIPTIONSHORT'];?></textarea></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Description longue</td>
				<td class="col-md-8"><textarea rows="10"  class="form-control" cols="50" name="desclong" id="desclong"><?php echo $this->populateForm['DESCRIPTIONLONG'];?></textarea></td>
			</tr>
			<tr>
				<td class="col-md-4">Statut</td>
				<td class="col-md-8">
					<input type="radio" class="bluecheckradios" name="active" id="active1" value="0" <?php if ($this->populateForm['isACTIVE'] == 0) { echo 'checked="checked"';} ?>>&nbsp;<label for="active1">Actif</label> 
					<input type="radio" class="bluecheckradios" name="active" id="active2" value="1" <?php if ($this->populateForm['isACTIVE'] == 1) { echo 'checked="checked"';} ?>>&nbsp;<label for="active2">Inactif</label>
				</td>
			</tr>
			<tr>
				<td class="col-md-4">Cat�gorie</td>
				<td class="col-md-8">
					<select name="idcategory" id="idcategory" class="form-control">
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if ($row['ID'.$level] == $this->populateForm['IDCATEGORY']) { echo 'selected="selected"';}?> >
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="col-md-4">Marque</td>
				<td class="col-md-8">
					<select name="idbrend" id="idbrend" class="form-control">
						<option value="0">Aucun</option>
						<?php foreach($this->listbrend as $row) { ?>
						<option value="<?php echo $this->escape($row['ID']); ?>" <?php if ($row['ID'] == $this->populateForm['IDBREND']) { echo 'selected="selected"';}?> >
							<?php echo $this->escape($row['BREND']); ?>
						</option>
						<?php } ?>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<input type="hidden" name="prix" id="prix" value="0.00">
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#descshort');
	initEditor('#desclong');
});
</script>PKc�G[Y�X_��scripts/pagination.phtmlnu&1i�<?php if ($this->pageCount): ?>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-top:15px;">
	<tr>
		<td width="200" style="text-align:right;">
			<span class="footer_menus" >
				<!-- Previous page link --> 
				<?php if (isset($this->previous)) { ?> 
				  <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt; <?php echo "Pr�c�dent"; ?></a> 
				<?php } ?> 
			</span>								
		</td>
		<td style="text-align:center;">
			<span class="link2">
				<!-- Numbered page links -->
				<?php foreach ($this->pagesInRange as $page) { ?> 
				  <?php if ($page != $this->current) { ?>
				    <a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> 
				  <?php  } else { ?>
				    <span ><?php echo $page; ?></span>
				  <?php } 
				   if ($this->last != $page) { echo '|';} 
				    } ?>
			</span>								
		</td>
		<td width="200">
			<span class="footer_menus">
				<!-- Next page link --> 
				<?php if (isset($this->next)) { ?> 
				  <a href="<?php echo $this->url(array('page' => $this->next)); ?>"><?php echo "Suivant" ?> &gt;</a>
				<?php } ?> 
			</span>								
		</td>
	</tr>
</table>
<?php endif; ?>PKc�G[δ�}g
g
scripts/blogcomment/edit.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogcomment/edit">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publier</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
        <tr >
          <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Pseudo</td>
          <td class="col-md-8">
            <input type="text" class="form-control" placeholder="Pseudo" name="pseudo" size="40" id="pseudo" value="<?php echo $this->populateData['pseudo']; ?>"/>
          </td>
        </tr>
			  <tr >
				  <td class="col-md-4">Sujet</td>
				  <td class="col-md-8">
					  <select name="id_subject" id="id_subject" class="form-control">
						  <?php  
						  foreach($this->listSubjects as $row) {  
								  ?>
									  <option value="<?php echo $this->escape($row['id']); ?>" <?php if ($row['id'] == $this->populateData['id_subject']) { echo 'selected="selected"';}?>>
										  <?php  echo $row['category_name'].' > '.$row['title']; ?>
									  </option>
						 <?php   } ?>
					  </select> 
          </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <input type="hidden" value="<?php echo $this->populateData['id']; ?>" name="id" />
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-plus"></span> Modifier
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>PKc�G[9���� scripts/blogcomment/search.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogcomment/search">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publi�</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Ferm�</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Contenu � rechercher" name="message" size="40" id="title" value="<?php echo $this->populateData['message']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Sujet</td>
				  <td class="col-md-8">
					  <select name="id_subject" id="id_subject" class="form-control">
						  <?php  
						  foreach($this->listSubjects as $row) {  
								  ?>
									  <option value="<?php echo $this->escape($row['id']); ?>" <?php if ($row['id'] == $this->populateData['id_subject']) { echo 'selected="selected"';}?>>
										  <?php  echo $row['category_name'].' > '.$row['title']; ?>
									
									  </option>
						 <?php   } ?>
					  </select> 
          </td>
			  </tr>
			<tr>
				<td colspan="2" class="text-center">
            <button type="submit" name="search"  class="btn btn-primary">
              <span class="glyphicon glyphicon-search"></span> Rechercher
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
</div>
<?php 
$listSearchs = $this->listSearchs; 
if (isset($listSearchs)) { 
?>

<div class="clearfix"></div>
<div class="table-box">

  <table class="display table" id="searchTable" width="100%">
    <thead>
      <tr>
        <th>Pseudo</th>
        <th>Contenu</th>
        <th>Date</th>
        <th></th>
      </tr>
    </thead>
    <tbody>

      <?php foreach($listSearchs as $row)  { ?>
      <tr>
        <td>
          <?php echo $row['pseudo'];?>
        </td>
        <td>
          <?php echo $row['message'];?>
        </td>
        <td>
          <?php $date = new Zend_Date($row['date_updated'], Zend_Date::ISO_8601); 
            echo $date->toString('dd-MM-YYYY HH:mm:ss');
          ?>
        </td>
        <td>
          <div class="btn-group">
            <a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/blogcomment/edit/id/<?php echo $this->escape($row['id']);?>" target="_blank"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
         </div>
        </td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
  <script>
    $(document).ready(function() {
    initDataTable('searchTable', [[ 3, "desc" ]], [
    { "orderable": false, "targets": -1, "width": "150px" },
    ]);
    });
  </script>
</div>
<?php  } ?>PKc�G[�K��

scripts/blogcomment/add.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogcomment/add">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publier</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
        <tr >
          <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Pseudo</td>
          <td class="col-md-8">
            <input type="text" class="form-control" placeholder="Pseudo" name="pseudo" size="40" id="pseudo" value="<?php echo $this->populateData['pseudo']; ?>"/>
          </td>
        </tr>
        
			  <tr >
				  <td class="col-md-4">Sujet</td>
				  <td class="col-md-8">
					  <select name="id_subject" id="id_subject" class="form-control">
						  <?php  
						  foreach($this->listSubjects as $row) {  
								  ?>
									  <option value="<?php echo $this->escape($row['id']); ?>" <?php if ($row['id'] == $this->populateData['id_subject']) { echo 'selected="selected"';}?>>
										  <?php  echo $row['category_name'].' > '.$row['title']; ?>
									  </option>
						 <?php   } ?>
					  </select> 
          </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-plus"></span> Ajouter
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>PKc�G[Ȗh[FFscripts/annoncefront/list.phtmlnu&1i� <div class="table-box">
	<?php if ($this->populateFormAnnonceFront['NOM']) { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/edit" method="post" name="editAnnonceForm">
	<?php } else { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/add" method="post" name="addAnnonceForm">
	<?php } ?>
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre de l'information" id="nom" value="<?php echo $this->populateFormAnnonceFront['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceFront['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceFront['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				<td class="col-md-8">
						<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
						<?php if (isset($this->populateFormAnnonceFront['CONTENT']) && !empty($this->populateFormAnnonceFront['CONTENT'])) { 
							 echo $this->populateFormAnnonceFront['CONTENT']; 
						} ?>
						</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<?php if ($this->populateFormAnnonceFront['NOM']) { ?>
						<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceFront['ID'];?>">
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
					<?php } else { ?>
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<?php } ?>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#annonceContent');
});
</script>

 <div class="table-box">
<table class="display table" id="annonceFrontTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listannoncefront as $row)  { ?>
		<tr>
			<td><?php echo $row['NOM'];?></td>
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('annonceFrontTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[�ؘ���scripts/alert_tr.phtmlnu&1i�<?php if (!empty($this->messageError) || !empty($this->messageSuccess)) { ?>
<tr>
	<td colspan="2"><?php echo $this->render("alert.phtml"); ?></td>
</tr>
<?php } ?>PKc�G[�G<���scripts/annonceleft/list.phtmlnu&1i� <div class="table-box">
	<?php if ($this->populateFormAnnonceLeft['NOM']) { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annonceleft/edit" method="post" name="editAnnonceForm" >
	<?php } else { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annonceleft/add" method="post" name="addAnnonceForm" >
	<?php } ?>
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre de la publicit�" id="nom" value="<?php echo $this->populateFormAnnonceLeft['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceLeft['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceLeft['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4">Localisation</td>
				<td class="col-md-8">
					<?php $tabController = explode(':',$this->populateFormAnnonceLeft['ID_CATS']);  ?>
					<select class="form-control" size="15" name="categories[]" id="categories" multiple="multiple">
						<option value="0" <?php if (in_array('0', $tabController)) {echo 'selected="selected"';} ?> >Toutes les cat�gories</option>
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if (in_array($row['ID'.$level], $tabController)) {echo 'selected="selected"';} ?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				<td class="col-md-8">
						<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
						<?php if (isset($this->populateFormAnnonceLeft['CONTENT']) && !empty($this->populateFormAnnonceLeft['CONTENT'])) { 
							 echo $this->populateFormAnnonceLeft['CONTENT']; 
						} ?>
						</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<?php if ($this->populateFormAnnonceLeft['NOM']) { ?>
						<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceLeft['ID'];?>">
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
					<?php } else { ?>
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<?php } ?>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#annonceContent');
});
</script>

 <div class="table-box">
<table class="display table" id="annonceLeftTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listannonceleft as $row)  { ?>
		<tr>
			<td><?php echo $row['NOM'];?></td>
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annonceleft/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annonceleft/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('annonceLeftTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[b�tP��)scripts/statistic/clickstatsproduct.phtmlnu&1i�<?php 
function  checkColorSource($source) {
	$color = "black";
      if ($source == 'Redirection : Hello Pro') {
            $color = "blue";
      } 
      return $color;
}

?>

<table cellpadding="0" cellspacing="5" border="0" width="800px">
<tr class="linkHeader" align="center">
	<th width="500px">URL</th>
	<th width="200px">SOURCE</th>
	<th width="100px">CLICKS</th>
</tr>

<?php foreach($this->listClick as $row) { ?>
<tr style="color: <?php echo checkColorSource($row['SOURCE']); ?>">
	<td align="left" ><?php echo $row['URL']; ?></td>
	<td align="left" ><?php echo $row['SOURCE']; ?></td>
	<td align="center" ><?php echo $row['NbURL']; ?></td>
</tr>
<?php } ?>
</table>


PKc�G[�]P��
�
"scripts/statistic/logdefault.phtmlnu&1i�<?php 
function  checkColorLog($level) {
	if ($level == "CRIT") {
		return "red";
	}
	if ($level == "ERR") {
		return "red";
	}
	if ($level == "INFO") {
		return "black";
	}
	if ($level == "WARN") {
		return "#cc9900";
	}
}

?> <div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<div class="col-md-12 text-center">
	Afficher par 
	<div class="btn-group">
		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/100/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >100</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/200/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >200</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/300/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >300</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logdefault/nb/500/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >500</a>
   		<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl;?>/backoffice/statistic/logdefaultclean" ><span class="glyphicon glyphicon-trash"></span> Supprimer l'historique</button>
	</div>
</div>            
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/DATE_LOG/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/LEVEL_NAME/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Type</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/CONTROLLER/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Controller</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/MESSAGE/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Message</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault/col/IP/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">IP</a></th>
		</tr> 	
	</thead>
	<tbody>
	
		<?php foreach($this->paginator as $row)  { ?>
		<tr style="color: <?php echo checkColorLog($row->LEVEL_NAME); ?>">
			<td><?php  
			$myDate = new Zend_Date(strtotime($row->DATE_LOG));
			$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			echo $myDate->toString("dd").' '.$moisComplet[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY").' '.$myDate->toString("HH").":".$myDate->toString("mm").":".$myDate->toString("ss");
			?></td>
			<td><?php echo $row->LEVEL_NAME; ?></td>
			<td><?php echo $row->CONTROLLER; ?></td>
			<td ><?php echo $row->MESSAGE ; ?></td>
			<td ><?php echo $row->IP ; ?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>

PKc�G[�J��scripts/statistic/keymap.phtmlnu&1i�<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>
PKc�G[�����!scripts/statistic/searchkey.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<div class="col-md-12 text-center">
	Afficher par 
	<div class="btn-group">
		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/100/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >100</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/200/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >200</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/300/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >300</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/searchkey/nb/500/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >500</a>
   	</div>
</div>            
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th > <a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/DATESTART/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date de d�but</a></th>
			<th ><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/DATEEND/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date de fin</a></th>
			<th >Dur�e</th>
			<th ><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/VALUE/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Recherche</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey/col/IP/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">IP</a></th>
		</tr> 	
	</thead>
	<tbody>
		<?php 
			function difheure($heuredeb,$heurefin)
			{
			   $hd=explode(":",$heuredeb);
			   $hf=explode(":",$heurefin);
			   $hd[0]=(int)($hd[0]);$hd[1]=(int)($hd[1]);$hd[2]=(int)($hd[2]);
			   $hf[0]=(int)($hf[0]);$hf[1]=(int)($hf[1]);$hf[2]=(int)($hf[2]);
			   if($hf[2]<$hd[2]){$hf[1]=$hf[1]-1;$hf[2]=$hf[2]+60;}
			   if($hf[1]<$hd[1]){$hf[0]=$hf[0]-1;$hf[1]=$hf[1]+60;}
			   if($hf[0]<$hd[0]){$hf[0]=$hf[0]+24;}
			   return (($hf[0]-$hd[0]).":".($hf[1]-$hd[1]).":".($hf[2]-$hd[2]));
			}
			
			foreach($this->paginator as $row) { ?>
			<tr>
				<td align="left"><?php  
				$myDateStart = new Zend_Date(strtotime($row->DATESTART));
				$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				$hourStart = $myDateStart->toString("HH").":".$myDateStart->toString("mm").":".$myDateStart->toString("ss");
				echo $myDateStart->toString("dd").' '.$moisComplet[(int)$myDateStart->toString('MM')].' '.$myDateStart->toString("YYYY").' '.$hourStart;
				?></td>
				<td align="center"><?php  
				$myDateEnd = new Zend_Date(strtotime($row->DATEEND));
				$hourEnd = $myDateEnd->toString("HH").":".$myDateEnd->toString("mm").":".$myDateEnd->toString("ss");
				echo $myDateEnd->toString("dd").' '.$moisComplet[(int)$myDateEnd->toString('MM')].' '.$myDateEnd->toString("YYYY").' '.$hourEnd;
				?></td>
				<td align="left" ><?php echo difheure($hourStart,$hourEnd); ?></td>
				<td align="left" ><?php echo $row->VALUE ; ?></td>
				<td align="left"><?php echo $row->IP ; ?></td>
			</tr>
			<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>PKc�G[���_�
�
 scripts/statistic/logadmin.phtmlnu&1i�<?php 
function  checkColorLog($level) {
	if ($level == "CRIT") {
		return "red";
	}
	if ($level == "ERR") {
		return "red";
	}
	if ($level == "INFO") {
		return "black";
	}
	if ($level == "WARN") {
		return "#cc9900";
	}
}

?> <div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<div class="col-md-12 text-center">
	Afficher par 
	<div class="btn-group">
		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/100/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >100</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/200/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >200</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/300/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >300</a>
   		<a class="btn btn-primary" href='<?php echo $this->baseUrl;?>/backoffice/statistic/logadmin/nb/500/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>' >500</a>
   		<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl;?>/backoffice/statistic/logadminclean" ><span class="glyphicon glyphicon-trash"></span> Supprimer l'historique</button>
	</div>
</div>            
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/DATE_LOG/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Date</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/LEVEL_NAME/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Type</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/CONTROLLER/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Controller</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/MESSAGE/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">Message</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin/col/IP/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>">IP</a></th>
		</tr> 	
	</thead>
	<tbody>
	
		<?php foreach($this->paginator as $row)  { ?>
		<tr style="color: <?php echo checkColorLog($row->LEVEL_NAME); ?>">
			<td><?php  
			$myDate = new Zend_Date(strtotime($row->DATE_LOG));
			$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			echo $myDate->toString("dd").' '.$moisComplet[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY").' '.$myDate->toString("HH").":".$myDate->toString("mm").":".$myDate->toString("ss");
			?></td>
			<td><?php echo $row->LEVEL_NAME; ?></td>
			<td><?php echo $row->CONTROLLER; ?></td>
			<td ><?php echo $row->MESSAGE ; ?></td>
			<td ><?php echo $row->IP ; ?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>

PKc�G[�]-qscripts/statistic/stats.phtmlnu&1i�<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Meilleures ventes par r�f�rence - Ann�e </h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar"></div>
				<script>
					<?php $element = $this->statsBestSellYear;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.sprintf("%.2f", $value['TOTAL']).'"'; ?>, "label2": <?php echo '"'.$value['NB_CMD'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Commande'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Meilleures ventes par r�f�rence - Mois</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar2"></div>
				<script>
					<?php $element = $this->statsBestSellMonth;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.sprintf("%.2f", $value['TOTAL']).'"'; ?>, "label2": <?php echo '"'.$value['NB_CMD'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar2',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Commande'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Les r�f�rences les plus vendus - Ann�e </h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar3"></div>
				<script>
					<?php $element = $this->statsNbProductYear;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.sprintf("%.2f", $value['TOTAL']).'"'; ?>, "label2": <?php echo '"'.$value['NB'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar3',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Quantit�'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">Les r�f�rences les plus vendus - Mois</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="displaydigonalbar4"></div>
				<script>
					<?php $element = $this->statsNbProductMonth;  ?>
					var day_data = [
						<?php 
						$separator = "";
						foreach ($element as $value) { ?>
							<?php echo $separator;?>{"period": <?php echo '"'.$value['REFERENCE'].'"'; ?>, "label1": <?php echo '"'.$value['NB'].'"'; ?>, "label2": <?php echo '"'.$value['NB_CMD'].'"'; ?>}
						<?php $separator = ",";
						} ?>
					];
					Morris.Bar({
					  element: 'displaydigonalbar4',
					  data: day_data,
					  xkey: 'period',
					  ykeys: ['label1', 'label2'],
					  labels: ['Somme', 'Commande'],
					  xLabelAngle: 0
					});
				</script>
			</div>
		</div>
	</div>
</div>


 <div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">R�partition des commandes par cat�gorie - Ann�e</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="donutchartcolor"></div>
				<script>
					Morris.Donut({
	                    element: 'donutchartcolor',
	                    data: [
						<?php  $element = $this->statsCategoryCmdYear; 
								$separator = "";
								foreach ($element as $value) { ?>
								<?php echo $separator;?> {value: <?php echo  $value['NB_CMD']; ?>, label: <?php echo '"'.$value['CAT_NOM'].'"'; ?>}
								<?php $separator = ","; } ?>
	                    ],
	                    backgroundColor: '#ccc',
	                    labelColor: '#060',
	                    colors: [
	                      '#0BA462',
	                      '#39B580',
	                      '#67C69D',
	                      '#95D7BB'
	                    ],
	                    formatter: function (x) { return x }
	                  });
				</script>
			</div>
		</div>
	</div>
</div>
 <div class="col-xs-6">
	<div class="sec-box">
		<header>
			<h2 class="heading">R�partition des commandes par cat�gorie - Mois</h2>
		</header>
		<div class="contents boxpadding">
			<div class="charts-box">
				<div id="donutchartcolor2"></div>
				<script>
					Morris.Donut({
	                    element: 'donutchartcolor2',
	                    data: [
						<?php  $element = $this->statsCategoryCmdMonth; 
								$separator = "";
								foreach ($element as $value) { ?>
								<?php echo $separator;?> {value: <?php echo  $value['NB_CMD']; ?>, label: <?php echo '"'.$value['CAT_NOM'].'"'; ?>}
								<?php $separator = ","; } ?>
	                    ],
	                    backgroundColor: '#ccc',
	                    labelColor: '#060',
	                    colors: [
	                      '#0BA462',
	                      '#39B580',
	                      '#67C69D',
	                      '#95D7BB'
	                    ],
	                    formatter: function (x) { return x }
	                  });
				</script>
			</div>
		</div>
	</div>
</div>
<div class="col-xs-12">
                            <div class="sec-box">
                                <header>
                                    <h2 class="heading">Recherche par mots cl�s - Ann�e</h2>
                                </header>
                                <div class="contents boxpadding">
                                    <div class="charts-box">
                                        <div id="formatenondate"></div>
                                        <script>
                                            var day_data = [
											<?php  $element = $this->statsKeyWordYear; 
											$separator = "";
											foreach ($element as $value) { ?>
											<?php echo $separator;?> {"elapsed": <?php echo  '"'.$value['VALUE'].'"'; ?>, "value": <?php echo $value['NB']; ?>}
											<?php $separator = ","; } ?>
                                            ];
                                            Morris.Line({
                                              element: 'formatenondate',
                                              axes: false,
                                              data: day_data,
                                              xkey: 'elapsed',
                                              ykeys: ['value'],
                                              labels: ['Recherche'],
                                              parseTime: false
                                            });
                                        </script>
                                    </div>
                                </div>
                            </div>
                        </div>PKc�G[����$scripts/statistic/clickstatsip.phtmlnu&1i�<?php 
function  checkColorSource($source) {
	$color = "black";
      if ($source == 'Redirection : Hello Pro') {
            $color = "blue";
      } 
      return $color;
}

?>
<table cellpadding="0" cellspacing="5" border="0" width="200px">
<?php foreach($this->listSource as $row) : ?>
<tr style="color: <?php echo checkColorSource($row['Source']); ?>">
	<td align="left">
		<?php echo $row['Source']; ?>
	</td>
	<td align="center" ><?php echo $row['NbSource']; ?></td>
</tr>
<?php endforeach; ?>
</table>

<table cellpadding="0" cellspacing="5" border="0" width="500px">
<tr class="linkHeader" align="center">
	<th width="150px">IP</th>
	<th width="150px">SOURCE</th>
	<th width="150px">CLICKS</th>
</tr>

<?php foreach($this->listIp as $row) { ?>
<tr style="color: <?php echo checkColorSource($row['Source']); ?>">
	<td align="center">
		<?php  echo $row['Ip']; ?>
	</td>
	<td align="center" ><?php echo $row['Source']; ?></td>
	<td align="center" ><?php echo $row['NbSource']; ?></td>
</tr>
<?php } ?>
</table>


PKc�G[�z$׆�!scripts/command/ajaxmessage.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<?php echo $this->messageSuccess; ?><?php echo $this->messageError; ?>PKc�G[��~~+scripts/command/facture_deliverytrack.phtmlnu&1i�<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php
$facture = $this->facture;
?>
Bonjour,<br /><br />
Votre commande est en cours de livraison.<br /><br />
Avec le suivi, votre colis est unique. <br />
Vous pouvez consulter le suivi de votre colis via l'adresse : <?php echo $facture['DELIVERY_TRACKINGLINK'];?><br />
Votre num�ro de colis : <?php echo $facture['DELIVERY_TRACKINGNUMBER'];?>
</body>
</html>

PKc�G[E�(�R�Rscripts/command/edit.phtmlnu&1i�
<?php
$facture = $this->facture;
$caddy = $facture['CADDY'];
?>
<script type="text/javascript"> 
$(function(){  
	$("#showallproduct_public_button").bind({
		click: function() {
			openUrls($("#showallproductcontent_public"));
		}	
	}); 
	$("#showallproduct_admin_button").bind({
		click: function() {
			openUrls($("#showallproductcontent_admin"));
		}	
	});
});

function openUrls(element) { 
	var $mainlink = element.children(); 
	$mainlink.each(function(i){	 
		window.open($(this).attr("href"), '_blank'); 
    });
}
</script>


<style>
.adminBoxCommand {
	float: left;
	width: 700px;
	margin: 10px 0 0 0;
	border: 1px solid red;
}

.bill_body {
	clear:both;
	width: 800px;
	margin: 20px auto 0 auto;
}

.bill_header {
	float: left;
	width: 800px;
}

.bill_company {
	float: left;
}

.bill_company_logo {
	margin: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}

.bill_idents {
	float: right;
	width: 550px;
}

.bill_idents_opt1 {
	float: left;
	width: 120px;
	height: 50px;
	margin: 0 0 0 10px;
}

.bill_idents_opt21 {
	float: left;
	width: 120px;
	height: 25px;
	background-color: #e7e7e7;
	margin: 0 0 0 0;
	text-align: center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt31 {
	float: left;
	width: 120px;
	height: 24px;
	margin: 1px 0 0 0;
	text-align: center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22 {
	float: left;
	width: 250px;
	height: 25px;
	background-color: #e7e7e7;
	margin: 0 0 0 0;
	text-align: center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt32 {
	float: left;
	width: 250px;
	height: 24px;
	margin: 1px 0 0 0;
	text-align: center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}

.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height: 25px;
}

.bill_text3 {
	color: #000000;
	font-size: 11px;
}

.bill_address {
	float: left;
	width: 700px;
	margin: 10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px;
	margin: 0 0 0 50px;
}

.bill_address_opt1 {
	float: left;
	width: 300px;
	height: 25px;
	background-color: #e7e7e7;
	margin: 0 0 0 0;
	text-align: center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_address_opt2 {
	float: left;
	width: 250px;
	margin: 10px 0 0 20px;
}

.bill_line {
	line-height: 25px;
}

.bill_line2 {
	line-height: 20px;
}

.bill_caddy {
	float: left;
	width: 800px;
	height: auto;
	margin: 10px 0 0 0;
}

.bill_facture {
	float: left;
	width: 800px;
}

.bill_buy {
	float: left;
	width: 500px;
}

.bill_user_paiement_box {
	width: 450px;
	margin: 5px 0 0 0;
	padding: 0 10px 10px 10px;
	border: 2px #000000 solid;
}

.bill_detail {
	float: right;
	width: 250px;
	height: 130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
}

.bill_footer {
	float: left;
	width: 800px;
	margin: 20px 0 0 0;
}

.bill_footer2 {
	float: left;
	width: 800px;
	text-align: center;
	margin: 0 0 20px 0;
}
</style>

<div class="table-box hidden-print">
<table class="table">
	<thead>
		<tr>
			<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?></th>
		</tr>
	</thead>
	<tbody>
	<?php echo $this->render("alert_tr.phtml"); ?>
		<tr>
			<td class="col-md-6">
				<div class="btn-group">
                 	<a class="btn btn-primary"
					target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $facture['USER_ID']; ?>"><span class="glyphicon glyphicon-user"></span>&nbsp;Fiche client</a>
                    <button class="btn btn-primary" id="showallproduct_public_button"><i class="glyphicon glyphicon-eye-open"></i>&nbsp;Voir tous les produits</button>
                    <button class="btn btn-primary" id="showallproduct_admin_button"><i class="glyphicon glyphicon-cog"></i>&nbsp;Configurer tous les produits</button>
                    <a class="btn btn-primary" href="#" onclick="window.print();return false;"><i class="glyphicon glyphicon-print"></i>&nbsp;Imprimer</a>
               </div>
                                        
				<div style="display: none;" id="showallproductcontent_public"><?php 
				$extracted  = array();
				foreach($caddy as $row) {
					if (!in_array($row['PRODUCTID'], $extracted)) {
						array_push($extracted, $row['PRODUCTID']); ?> <a target="_blank"
					href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVPRODUCTNOM'], $row['PRODUCTID']);  ?>"></a>
					<?php
					}
				} ?></div>
				<div style="display: none;" id="showallproductcontent_admin"><?php $extracted  = array();
				foreach($caddy as $row) {
					if (!in_array($row['PRODUCTID'], $extracted)) {
						array_push($extracted, $row['PRODUCTID']); ?> <a target="_blank"
					href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $row['PRODUCTID'];  ?>"></a>
					<?php
					}
				} ?>
				</div>
			</td>
			<td class="col-md-6">

			<div class="col-md-12 no-space-top">
			  <form action="<?php echo $this->baseUrl; ?>/backoffice/command/edit/" method="POST" name="setSTATUTForm">

			    <div class="col-md-6 no-space-top">
            <select name="statut" class="form-control">
				      <option value="1" <?php if ($facture['STATUT']==1) { echo 'selected'; }?>>Commande - En attente</option>
              <option value="4" <?php if ($facture['STATUT']==4) { echo 'selected'; }?>>Commande - En traitement</option>
				      <option value="2" <?php if ($facture['STATUT']==2) { echo 'selected'; }?>>Commande - En livraison</option>
				      <option value="3" <?php if ($facture['STATUT']==3) { echo 'selected'; }?>>Commande - Termine</option>

				      <?php if ($facture['STATUT'] != 1 && $facture['STATUT'] != 2 && $facture['STATUT'] != 3 && $facture['STATUT'] != 4) {  ?>
				      <option value="10" <?php if ($facture['STATUT']==10) { echo 'selected'; }?>>Devis - En Attente</option>
				      <option value="11" <?php if ($facture['STATUT']==11) { echo 'selected'; }?>>Devis - Termine</option>
				      <?php } ?>
			      </select>
          </div>
			    <div class="col-md-6 no-space-top">
              <input type="hidden" name="idcmd" value="<?php echo $facture['ID']; ?>" />
			        <button class="btn btn-success" type="submit"><span class="glyphicon glyphicon-edit"></span>&nbsp;Modifier</button>
			    </div>
          <?php  if ($facture['STATUT']==2 || $facture['STATUT']==3){?>
          <div class="col-md-12">
            <div class="col-md-6 no-space-top">
              <div class="col-md-6 no-space-top" style="margin-top:10px">
                Suivi de livraison :
              </div>
              <div class="col-md-6 no-space-top">
                <a href="<?php echo $this->baseUrl; ?>/backoffice/command/deliverymail/id/<?php echo $facture['ID']; ?>" class="btn btn-primary">Envoyer le mail</a>
              </div>
            </div>
            <div class="col-md-6 no-space-top">
              <div class="col-md-12 no-space-top">
                <input type="text" name="delivery_trackinglink" class="form-control" placeholder="Lien d'acc�s au suivi de livraison" value="<?php echo $facture['DELIVERY_TRACKINGLINK']; ?>" />
              </div>
              <div class="col-md-12 no-space-top">
                <input type="text" name="delivery_trackingnumber" class="form-control" placeholder="Num�ro de colis" value="<?php echo $facture['DELIVERY_TRACKINGNUMBER']; ?>" />
              </div>
            </div>
            </div>
          <?php } ?>

          <?php  if ($facture['STATUT']==4){?>
          <div class="col-md-12 ">
            <div class="col-md-8 no-space-top" style="margin-top:10px">
              Commande en cours de traitement :
            </div>
            <div class="col-md-4 no-space-top">
              <a href="<?php echo $this->baseUrl; ?>/backoffice/command/traitementmail/id/<?php echo $facture['ID']; ?>" class="btn btn-primary">Envoyer le mail</a>
            </div>
          </div>
          <?php } ?>
          
			  </form>
			</div>
			<?php if ($facture['USER_MODEPAIEMENT'] == 1) { ?>
			<div class="col-md-12">
			<div class="col-md-6 no-space-top">Statut du paiement :</div>
			<div class="col-md-6 no-space-top"><?php 
			if (!isset($facture['PAYMENT_STATUS'])) {
				echo "N/C";
			} else {
				if ($facture['PAYMENT_STATUS'] == 'Completed') {
					echo "Paiement �ffectu� - Completed";
				} else {
					echo "Paiement en attente - ".$facture['PAYMENT_STATUS'];
				}
			}
			?></div>
			</div>
			<div class="col-md-12 no-space-top">
			<div class="col-md-6 no-space-top">Transaction :</div>
			<div class="col-md-6 no-space-top"><?php 
			if (!isset($facture['TXN_ID'])) {
				echo "N/C";
			} else {
				echo $facture['TXN_ID'];
			}
			?></div>
			</div>
			<?php } ?>
			<div class="col-md-12 no-space-top">
			  <div class="col-md-6 no-space-top">Date Fin :</div>
			  <div class="col-md-6 no-space-top"><?php 
			  $mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			  $moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			  if ($facture['DATEEND'] != null && $facture['DATEEND'] != '0000-00-00 00:00:00') {
				  $myDateEnd = new Zend_Date(strtotime($facture['DATEEND']));
				  echo $myDateEnd->toString("dd").' '.$mois[(int)$myDateEnd->toString('MM')].' '.$myDateEnd->toString("YYYY");
			  } ?></div>
			</div>
			</td>
		</tr>
	</tbody>
</table>
</div>
<div class="clearfix"></div>

<div class="bill_body">
<div class="bill_header">
<div class="bill_company">
<div class="bill_company_logo"><a href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>"><img
	alt="Directement � la source de la qualit�"
	src="<?php echo $this->baseUrl; ?>/business/image/logo.png"
	style="border: none;" /></a></div>
</div>
<div class="bill_idents">
<div class="bill_idents_opt1">
<div class="bill_idents_opt21"><span class="bill_line"><?php if ($facture['STATUT'] == 1 || $facture['STATUT'] == 2 || $facture['STATUT'] == 3) { echo 'Commande N';} else {echo 'Devis N';} ?></span>
</div>
<div class="bill_idents_opt31"><span class="bill_line"><?php echo $facture['REFERENCE']; ?></span>
</div>
</div>
<div class="bill_idents_opt1">
<div class="bill_idents_opt21"><span class="bill_line"><?php echo 'Date'; ?></span>
</div>
<div class="bill_idents_opt31"><span class="bill_line"> <?php 
$myDate = new Zend_Date(strtotime($facture['DATESTART']));
echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
?> </span></div>
</div>
<div class="bill_idents_opt1">
<div class="bill_idents_opt22"><span class="bill_line"><?php echo 'Client'; ?></span>
</div>
<div class="bill_idents_opt32"><span class="bill_line link2"><?php echo $facture['USER_EMAIL']; ?></span>
</div>
</div>
</div>

<div style="float: left; width: 800px"><span class="bill_text">Compte :
<?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
<span class="bill_text">Email : <?php echo $this->serviceClient_Mail; ?></span>
</div>
</div>

<div class="bill_address">
<div class="bill_address_opt">
<div class="bill_address_opt1"><span class="bill_line">Adresse de
Facturation</span></div>
<div class="bill_address_opt2"><span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span></div>
</div>
<div class="bill_address_opt">
<div class="bill_address_opt1"><span class="bill_line">Adresse de
Livraison</span></div>
<div class="bill_address_opt2"><span class="bill_text2"><?php echo html_entity_decode($facture['LIV_RAISONSOCIAL']); ?></span><br>
<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
<span class="bill_text2"><?php echo $facture['LIV_CP'].' '.$facture['LIV_VILLE']; ?></span><br>
<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span></div>
</div>
</div>
<div class="bill_caddy">
<table style="border: 1px solid black;" cellpadding="0" cellspacing="0"
	width="100%">
	<tr align="center" style="background-color: #e7e7e7;">
		<th class="bill_line">R�f�rence</th>
		<th class="bill_line">D�signation</th>
		<th class="bill_line" style="width: 60px">Dispo.</th>
		<th class="bill_line">Quantit�</th>
		<th class="bill_line" style="text-align:center">P.U. HT</th>
		<th class="bill_line" style="display: none;">Prix Remis�</th>
		<th class="bill_line">Montant HT</th>
	</tr>
	<?php
	$index = 1;
	$i = 0;
	foreach($caddy as $row) {
		?>
	<tr>
		<td colspan="6" height="1px" style="background-color: #868686"></td>
	</tr>
	<tr align="center" height="25px">
		<td class="textTd1" width="110px"
			style="text-align: center; white-space: nowrap;"><?php echo $this->escape($row['REFERENCE']);?>
		</td>
		<td width="450px" class="link4" style="text-align: left;"><a
			target="_blank" style="color: black;"
			href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVPRODUCTNOM'], $row['PRODUCTID']); ?>"><?php echo $row['DESIGNATION'];?></a>
			<?php if (!empty($row['SELECTEDOPTION'])) {
				echo '<br/>'.$row['SELECTEDOPTION'].'<br/>';
			} ?></td>

		<td class="textTd1"><?php if ((int)$row['STOCK'] == 1) { ?> <img
			alt="Disponible" title="Disponible"
			src="<?php echo $this->baseUrl; ?>/business/image/admin/stock11.png" />
			<?php } else if ((int)$row['STOCK'] == 2) { ?> <img
			alt="Disponible sous 8 jours" title="Disponible sous 8 jours"
			src="<?php echo $this->baseUrl; ?>/business/image/admin/stock22.png" />
			<?php } else if ((int)$row['STOCK'] == 3) { ?> <img
			alt="Nous contacter" title="Nous contacter"
			src="<?php echo $this->baseUrl; ?>/business/image/admin/stock33.png" />
			<?php }?></td>
		<td class="textTd1"><?php echo $row['QUANTITY']; ?></td>
		<td class="textTd1" width="150px">
		<table border="0" cellpadding="0" cellspacing="0">
			<tr align="left">
			<?php if ($row['isDEVIS'] == 1) {
				if ($row['isPROMO'] == 0) { ?>
				<td align="right"><span> <?php echo number_format($row['PROMOPRIX'], 2, ',', ' ').' ';?><span
					style="color: #000000">&#8364;</span> </span><br>
				<span class='oldPromoPrice'> <?php echo number_format($row['PRIX'], 2, ',', ' ').' ';?>&#8364;
				</span></td>
				<td width="50px"><img
					src="<?php echo $this->baseUrl; ?>/business/image/admin/promo.png"
					alt="Ce produit est en promotion" width="50px" /></td>
					<?php } else { ?>
				<td align="left" width="100%"><span> <?php echo number_format($row['PRIX'], 2, ',', ' ').' ';?>
				<span style="color: #000000">&#8364;</span> </span></td>
				<?php }
			} else { ?>
				<td align="center" colspan="2"><span class="text12" style="color:<?php echo $this->actualDesign['color'];?>"><?php echo 'sur devis'; ?></span>
				</td>
				<?php } ?>
			</tr>
		</table>
		</td>
		<td width="120px" style="display: none;"><?php if ($row['isPROMO'] == 1 && $row['REMISEPRIX'] > 0) { ?>
		<span class="textTd1"> <?php
		if ((int)$row['REMISEPRIXTAUXP'] > 0) {
			echo number_format($row['REMISEPRIX'], 2, ',', ' ').'&nbsp;&#8364; <br>('.$this->escape($row['REMISEPRIXTAUXP']).'&nbsp;%)';
		} else {
			echo number_format($row['REMISEPRIX'], 2, ',', ' ').'&nbsp;&#8364;';
		}
		?> </span> <?php } ?></td>
		<td width="120px"><span class="textTd1" style="float: right;"> <?php if ($row['isDEVIS'] == 1) { 
			echo number_format($row['PRIXTOTAL'], 2, ',', ' ').'&nbsp;&#8364;';
		} ?> </span></td>
	</tr>
	<?php $i++; } ?>


  <?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row['NOM'].' ('.$row['NBPOINT'].' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>
</table>
</div>
<div class="bill_facture">
<div class="bill_buy"><?php switch ($facture['USER_MODEPAIEMENT_TYPE']) {
	case 1 : ?>
<div class="bill_user_paiement_box">
<div class="bill_text2" style="text-align: center">Mode de paiement :
Par ch�que</div>
<div style="margin-left: 10px">- Veuillez libeller votre ch�que �
l�ordre de <?php echo $this->siteName; ?></div>
<div style="margin-left: 10px">- Inscrivez le num�ro de votre commande
au dos de votre ch�que</div>
<div style="margin-left: 10px">- Puis envoyez votre r�glement �
l�adresse suivante :</div>
<br />
<div class="bill_text" style="text-align: center"><?php echo $this->siteName; ?></div>
<br />
<div class="bill_text" style="text-align: center"><?php echo $this->site_addresse3_title; ?></div>
<div class="bill_text" style="text-align: center"><?php echo $this->site_addresse3_address; ?></div>
<div class="bill_text" style="text-align: center"><?php echo $this->site_addresse3_cp; ?></div>
<br />
<div style="font-size: 10px; text-align: center">A noter : Les produits
sont exp�di�s � r�ception du ch�que</div>
</div>
	<?php  break;
case 2 : ?>
<div class="bill_user_paiement_box">
<div class="bill_text2" style="text-align: center">Mode de paiement :
Par virement</div>
<div>- La commande sera exp�di�e d�s le virement pr�sent sur notre
compte bancaire.</div>
<div class="bill_text">- Inscrivez votre num�ro de commande sur le
formulaire de virement</div>
<div>- Vous disposez d�un <span style="font-weight: bold;">d�lai de 15
jours</span> pour effectuer le virement sur notre compte ci-dessous
indiqu�, au d�l� de ce d�lai votre commande sera automatiquement
annul�e.</div>
<br />
<div class="bill_text">RIB : <?php echo $this->site_rib_numbers; ?></div>
<div class="bill_text">No IBAN : <?php echo $this->site_rib_iban; ?></div>
<div class="bill_text">Code BIC : <?php echo $this->site_rib_bic; ?></div>
<div class="bill_text">Nom du compte : <?php echo $this->siteName; ?></div>
<div class="bill_text">Nom et domiciliation de la banque : <?php echo $this->site_rib_bankname; ?></div>
</div>
<?php 	break;
default : ?> <span class="bill_text2"> <?php if (empty($facture['USER_MODEPAIEMENT_LABEL'])) { ?>
Mode de reglement : <?php 
switch ($facture['USER_MODEPAIEMENT']) {
	case 1 : echo " Paiement s�curis� en ligne"; break;
	case 2 : echo " Contre remboursement";break;
	case 3 : echo " Paiement diff�r� - 30 jours";break;
	case 4 : echo " Paiement diff�r� - 45 jours";break;
	case 5 : echo " Paiement diff�r� - 60 jours";break;
	case 6 : echo " A r�ception de la facture";break;
}
} else {
	echo $facture['USER_MODEPAIEMENT_LABEL'];
} ?> </span> <?php
break;
} ?></div>
<div class="bill_detail">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr align="right">
		<td class="bill_line2">Total HT</td>
		<td class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?>
		&#8364;</td>
	</tr>
	<tr align="right">
		<td class="bill_line2">Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']." ) "; } ?></td>
		<td class="bill_line2"><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?>
		&#8364;</td>
	</tr>
	<tr align="right">
		<td class="bill_line2"><?php if (isset($facture['LIV_NOM']) && !empty($facture['LIV_NOM']) ) { echo 'Livraison en '.$facture['LIV_NOM']; } else { echo 'Frais de port'; } ?></td>
		<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?>
		&#8364;</td>
	</tr>
	<tr>
		<td colspan="2" height="1px" style="background-color: #868686"></td>
	</tr>
	<tr align="right">
		<td class="bill_text2">Net HT</td>
		<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?>
		&#8364;</td>
	</tr>
	<tr align="right">
		<td class="bill_line2">Total TVA</td>
		<td class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?>
		&#8364;</td>
	</tr>
	<tr>
		<td colspan="2" height="1px" style="background-color: #868686"></td>
	</tr>
	<tr align="right">
		<td class="bill_text2">NET A PAYER TTC</td>
		<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?>
		&#8364;</td>
	</tr>
</table>
</div>
</div>


<div class="bill_footer"><span class="link18"> <input type="checkbox"
	checked="checked" disabled="disabled" /> J'ai pris connaissance des
Conditions G�n�rales de Vente et les accepte sans r�serves. </span> <br />
<br />
<span class="bill_text3"> P�nalit�s de retard (taux annuel) : 9,00% </span><br>
<span class="bill_text3"> <b>RESERVE DE PROPRIETE</b> : Nous nous
r�servons la propri�t� des marchandises jusqu'au paiement du prix par
l'acheteur. Notre droit de revendication porte aussi bien sur les
marchandises que sur leur prix si elles ont d�j� �t� revendues (Loi du
12 mai 1980). </span><br>
<br>
</div>

<div class="bill_footer2"><span class="bill_text3"> <?php echo $this->site_addresse; ?>
</span><br>
<span class="bill_text3"> <?php echo $this->site_actualshort; ?> </span>
</div>
</div>
PKc�G[ס`���scripts/command/listdevis.phtmlnu&1i�
<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<table class="display table" id="commandTable" width="100%">
	<thead>
		<tr>
			<th class="text-center">
				<form action="<?php echo $this->baseUrl; ?>/backoffice/command/archivedevis/" method="POST" id="archiveForm" >
					<div>
						<a class="btn btn-success" href="#" onclick="javascript:submitArchive();">Archiver</a>
					</div>
					<div>
						<input type="hidden" name="checkBoxValues" id="checkBoxValues" value="">
					</div>
				</form>
			</th>
			<th class="text-center">R�f�rence</th>
			<th class="no-wrap">Mode de reglement</th>
			<th class="no-wrap">Prix TTC</th>
			<th>Statut</th>
			<th class="text-center">Client</th>
			<th class="no-wrap">Date de la commande</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listcommand as $row) { ?> 
		<tr>
			<td class="text-center"><input type="checkbox"  class="bluecheckradios" name="archiveCommand" value="<?php echo $row->ID; ?>"></td>
			<td > <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row->ID; ?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row->REFERENCE);?></a></td>
			<td >
			<?php 
			switch ($row->USER_MODEPAIEMENT_TYPE) {
					case 1 : echo "Par ch�que"; break;
					case 2 : echo "Par virement"; break; 
					default :
						switch ($row->USER_MODEPAIEMENT) {
							case 1 : echo " Paiement en ligne"; break;
							case 2 : echo " Contre remboursement";break;
							case 3 : echo " Paiement diff�r� - 30 jours";break;
							case 4 : echo " Paiement diff�r� - 45 jours";break;
							case 5 : echo " Paiement diff�r� - 60 jours";break;
							case 6 : echo " A r�ception de la facture ";break;
						}
						break;
			} ?>
			</td>
			<td ><?php echo sprintf("%.2f",$this->escape($row->PRIXTOTALTTC)).'&nbsp;&#8364;';?></td>
			<td >
			<?php 
				switch ($this->escape($row->STATUT)) {
					case 1 : echo 'Commande - En attente'; break;
					case 2 : echo 'Commande - En livraison'; break;
					case 3 : echo 'Commande - Termin�e'; break;
					case 4 : echo 'Commande - En traitement'; break;
					case 10 : echo 'Devis - En attente'; break;
					case 11 : echo 'Devis - Termin�'; break;
				}
			?>
			</td>
			<td ><a class="btn btn-primary " href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row->IDUSER; ?>" ><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row->USER_NOM.' '.$row->USER_PRENOM;?></a></td>
			<td ><?php 
			$myDate = new Zend_Date(strtotime($row->DATESTART));
			$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
				
			?></td>
			
			<td  class="text-center">
				<div class="btn-group">
		        	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row->ID; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/command/deldevis/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('commandTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0}, { "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});

	function submitArchive() {
		var elms = $("input[name=archiveCommand]:checked");
		$("#checkBoxValues").val("");
	 	
		var commandeValue = "devis";
		var data = "";
		var totalCommand = 0;
		elms.each(function( index ) {
			data += $(this).val()+",";
			totalCommand++;
		});
		
		if (totalCommand > 1) {
			commandeValue = "devis";
		}

	 	if (totalCommand > 0) {
			$("#ajaxModalArchive").remove();
		 	$("#checkBoxValues").val(data);
	        var $labelHeader = "Confirmation d'archivage", $labelBody = "Vous etes sur le point d'archiver "+totalCommand+" "+commandeValue+", voulez vous continuer ? ";
	        var $modal = $('<div id="ajaxModalArchive" class="modal fade" role="dialog" aria-labelledby="myModalLabel" ><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">&times;</button><h4 class="modal-title">'+$labelHeader+'</h4></div><div class="modal-body">'+$labelBody+'</div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button><button type="button" class="btn btn-success" id="modalBtnDelete">Archiver</button></div></div></div></div>');
	        $('body').append($modal);
	        $('#ajaxModalArchive').modal({backdrop: 'static', keyboard: false});
	        $("#modalBtnDelete").on('click', function(e) {
	        	document.forms["archiveForm"].submit();
	        });
		}
	}
</script>
</div>PKc�G[����!scripts/command/listcommand.phtmlnu&1i�
<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<table class="display table" id="commandTable" width="100%">
	<thead>
		<tr>
			<th class="text-center">
				<form action="<?php echo $this->baseUrl; ?>/backoffice/command/archivecommand/" method="POST" id="archiveForm" >
					<div>
						<a class="btn btn-success" href="#" onclick="javascript:submitArchive();">Archiver</a>
					</div>
					<div>
						<input type="hidden" name="checkBoxValues" id="checkBoxValues" value="">
					</div>
				</form>
			</th>
			<th class="text-center">R�f�rence</th>
			<th class="no-wrap">Mode de reglement</th>
			<th class="no-wrap">Prix TTC</th>
			<th>Statut</th>
			<th class="text-center">Client</th>
			<th class="no-wrap">Date de la commande</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listcommand as $row) { ?> 
		<tr>
			<td class="text-center"><input type="checkbox"  class="bluecheckradios" name="archiveCommand" value="<?php echo $row->ID; ?>"></td>
			<td > <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row->ID; ?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row->REFERENCE);?></a></td>
			<td >
			<?php 
			switch ($row->USER_MODEPAIEMENT_TYPE) {
					case 1 : echo "Par ch�que"; break;
					case 2 : echo "Par virement"; break; 
					default :
						switch ($row->USER_MODEPAIEMENT) {
							case 1 : echo " Paiement en ligne"; break;
							case 2 : echo " Contre remboursement";break;
							case 3 : echo " Paiement diff�r� - 30 jours";break;
							case 4 : echo " Paiement diff�r� - 45 jours";break;
							case 5 : echo " Paiement diff�r� - 60 jours";break;
							case 6 : echo " A r�ception de la facture ";break;
						}
						break;
			} ?>
			</td>
			<td ><?php echo sprintf("%.2f",$this->escape($row->PRIXTOTALTTC)).'&nbsp;&#8364;';?></td>
			<td >
			<?php 
				switch ($this->escape($row->STATUT)) {
					case 1 : echo 'Commande - En attente'; break;
					case 2 : echo 'Commande - En livraison'; break;
					case 3 : echo 'Commande - Termin�e'; break;
					case 4 : echo 'Commande - En traitement'; break;
					case 10 : echo 'Devis - En attente'; break;
					case 11 : echo 'Devis - Termin�'; break;
				}
			?>
			</td>
			<td ><a class="btn btn-primary " href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row->IDUSER; ?>" ><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row->USER_NOM.' '.$row->USER_PRENOM;?></a></td>
			<td ><?php 
			$myDate = new Zend_Date(strtotime($row->DATESTART));
			$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
				
			?></td>
			
			<td  class="text-center">
				<div class="btn-group">
		       	 	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row->ID; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
		        	<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/command/delcommand/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('commandTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0}, { "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});

	function submitArchive() {
		var elms = $("input[name=archiveCommand]:checked");
		$("#checkBoxValues").val("");
	 	
		var commandeValue = "commande";
		var data = "";
		var totalCommand = 0;
		elms.each(function( index ) {
			data += $(this).val()+",";
			totalCommand++;
		});
		
		if (totalCommand > 1) {
			commandeValue = "commandes";
		}

	 	if (totalCommand > 0) {
			$("#ajaxModalArchive").remove();
		 	$("#checkBoxValues").val(data);
	        var $labelHeader = "Confirmation d'archivage", $labelBody = "Vous etes sur le point d'archiver "+totalCommand+" "+commandeValue+", voulez vous continuer ? ";
	        var $modal = $('<div id="ajaxModalArchive" class="modal fade" role="dialog" aria-labelledby="myModalLabel" ><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">&times;</button><h4 class="modal-title">'+$labelHeader+'</h4></div><div class="modal-body">'+$labelBody+'</div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button><button type="button" class="btn btn-success" id="modalBtnDelete">Archiver</button></div></div></div></div>');
	        $('body').append($modal);
	        $('#ajaxModalArchive').modal({backdrop: 'static', keyboard: false});
	        $("#modalBtnDelete").on('click', function(e) {
	        	document.forms["archiveForm"].submit();
	        });
		}
	}
</script>
</div>
PKc�G[j�bUUscripts/command/search.phtmlnu&1i�
<div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/command/search">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="col-md-12">
					<div class="col-md-7">
						<input type="text" value="<?php echo $this->searchValue; ?>" id="searchValue" name="searchValue" class="form-control" placeholder="Votre recherche : r�f�rence, nom, pr�nom ou email du client">
					</div>
					<div class="col-md-2">	
						<div class="custom-radio-checkbox">
							<input tabindex="1" type="checkbox" class="bluecheckradios" id="searchType" name="searchType" <?php if ($this->searchType) { echo 'checked="checked"';}?>>
							<label for="searchType">En cours de validation...</label>
						</div> 						
					</div>
					<div class="col-md-1 col-md-offset-1">
						<button type="submit" name="search"  class="btn btn-primary">
						  <span class="glyphicon glyphicon-search"></span> Rechercher
						</button>				
					</div>
					<div class="col-md-12"></div>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="commandSearchTable" width="100%">
	<thead>
		<tr>
			<th></th>
			<th class="text-center">R�f�rence</th>
			<th class="no-wrap">Prix TTC</th>
			<th>Statut</th>
			<th class="text-center">Client</th>
			<th class="no-wrap">Date de la commande</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listcommand as $row) { ?> 
		<tr>
			<td><?php if ($row['isARCHIVE'] == 0) { echo 'Archiv�'; } ?> </td>
			<td > <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row['REFERENCE']);?></a></td>
			<td ><?php echo sprintf("%.2f",$this->escape($row['PRIXTOTALTTC'])).'&nbsp;&#8364;';?></td>
			<td >
			<?php 
				switch ($this->escape($row['STATUT'])) {
					case 1 : echo 'Commande - En attente'; break;
					case 2 : echo 'Commande - En livraison'; break;
					case 3 : echo 'Commande - Termin�e'; break;
					case 4 : echo 'Commande - En traitement'; break;
					case 10 : echo 'Devis - En attente'; break;
					case 11 : echo 'Devis - Termin�'; break;
				}
			?>
			</td>
			<td ><a class="btn btn-primary " href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row['IDUSER']; ?>" ><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row['USER_NOM'].' '.$row['USER_PRENOM'];?></a></td>
			<td ><?php 
			$myDate = new Zend_Date(strtotime($row['DATESTART']));
			$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
				
			?></td>
			
			<td class="text-center">
				<div class="btn-group">
		        	<a class="btn btn-success" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
		        	<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/command/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>

<script type="text/javascript">
$(document).ready(function(){
	initCheckbox('.bluecheckradios');
	initDataTable('commandSearchTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0}, { "orderable": false, "targets": -1, "width": "270px" }]);     
	
});
</script>PKc�G[[�x��2scripts/command/facture_traitementinprogress.phtmlnu&1i�<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php
$facture = $this->facture;
?>
Bonjour,<br /><br />
Votre commande est en cours de traitement.<br /><br />
Elle sera transmise � notre plateforme logistique d�s validation de votre r�glement par notre Service Clients.<br /><br />
<b>SUIVI DE COMMANDE :</b><br /><br />
Le suivi de commande sera assur� par courriel.<br />
Vous pourrez �galement obtenir des informations en vous connectant � votre compte client.
</body>
</html>

PKc�G[F����scripts/annoncecms/edit.phtmlnu&1i� 
 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/edit" method="post" name="editAnnonceForm" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceCms['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceCms['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Position</td>
				<td class="col-md-8"><input type="text" name="position" size="40" class="form-control"  placeholder="Position de l'article" id="position" value="<?php echo $this->populateFormAnnonceCms['POSITION']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre non visible" id="nom" value="<?php echo $this->populateFormAnnonceCms['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Cat�gorie</td>
				<td class="col-md-8">
					<?php $tabController = explode(':',$this->populateFormAnnonceCms['ID_CATS']);  ?>
					<select class="form-control" size="15" name="categories[]" id="categories" multiple="multiple">
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if (in_array($row['ID'.$level], $tabController)) {echo 'selected="selected"';} ?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr >
				<td class="col-md-12" colspan="2">&nbsp;Contenu</td>
			</tr>
			<tr > 
				<td class="col-md-12" colspan="2">
					<div class="col-md-6 no-space-top" >
						<input type="text" name="content_short" size="40" class="form-control"  placeholder="Titre de l'article" id="content_short" value="<?php echo $this->populateFormAnnonceCms['CONTENT_SHORT']; ?>" />
					</div>
					<div class="col-md-6 no-space-top" >
						<input type="text" name="content_long" size="40" class="form-control"  placeholder="Sous-titre de l'article" id="content_long" value="<?php echo $this->populateFormAnnonceCms['CONTENT_LONG']; ?>" />
					</div>
				</td>
			</tr>
			<tr >
				<td class="col-md-6 text-center" colspan="2">
					<button id="pickImageFromGallery" class="btn btn-info">S�lectionner une image depuis la gallerie</button>
					<div id="pickImageFromGalleryContent" style="display:none"></div>
				</td>
			</tr>
			<tr > 
				<td class="col-md-12" colspan="2">  
					<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
					<?php if (isset($this->populateFormAnnonceCms['CONTENT']) && !empty($this->populateFormAnnonceCms['CONTENT'])) { 
						 echo $this->populateFormAnnonceCms['CONTENT']; 
					} ?>					
					</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceCms['ID'];?>">
					<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	tinymce.init({
	  selector: 'textarea',
	  height: 500, 
	  convert_urls: false,
	  theme: 'modern',
	  skin: "lightgraygradient",
	  language: 'fr_FR',
	  plugins: [
		'advlist autolink lists link image charmap print preview hr anchor pagebreak',
		'searchreplace wordcount visualblocks visualchars code fullscreen',
		'insertdatetime media nonbreaking save table contextmenu directionality',
		'emoticons template paste textcolor colorpicker textpattern imagetools jbimages'
	  ],
	  toolbar1: 'insertfile undo redo | styleselect fontselect | bold italic forecolor backcolor emoticons | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages template | print preview media',
	  image_advtab: true,
	  relative_urls: false,
	  templates: <?php echo $this->FeatureTinymceTemplate; ?>,
	  content_css: '<?php echo $this->FeatureTinymceCss; ?>',
	   font_formats: 'DEFAUT(Aref Ruqaa)=ArefRuqaaReg;'+'DEFAUT 2 (Poiret One)=PoiretOne;'+'Andale Mono=andale mono,times;'+ 'Arial=arial,helvetica,sans-serif;'+ 'Arial Black=arial black,avant garde;'+ 'Book Antiqua=book antiqua,palatino;'+ 'Comic Sans MS=comic sans ms,sans-serif;'+ 'Courier New=courier new,courier;'+ 'Georgia=georgia,palatino;'+ 'Helvetica=helvetica;'+ 'Impact=impact,chicago;'+ 'Symbol=symbol;'+ 'Tahoma=tahoma,arial,helvetica,sans-serif;'+ 'Terminal=terminal,monaco;'+ 'Times New Roman=times new roman,times;'+ 'Trebuchet MS=trebuchet ms,geneva;'+ 'Verdana=verdana,geneva;'+ 'Webdings=webdings;'+ 'Wingdings=wingdings,zapf dingbats'
	});
	$( "#pickImageFromGallery" ).click(function(){
		$( "#pickImageFromGalleryContent" ).toggle();
		if($('#pickImageFromGalleryContent').css('display') == 'block') {
			$.ajax( {
				type : "GET",
				async : true,
				url : '/backoffice/annoncegallery/ajaxshowallpicture',  
				contentType:"application/x-www-form-urlencoded; charset=iso-8859-1",
				success : function(data) {  
					$('#pickImageFromGalleryContent').html(data); 
				}});
		}
			
		return false;		
	});
});

</script>
PKc�G[e��MMscripts/annoncecms/list.phtmlnu&1i� 
 <div class="table-box">
<table class="display table" id="annoncecmsTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th> 
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listAnnoncecms as $row)  { ?>
		<tr>
			<td><?php echo $row['NOM'];?></td> 
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('annoncecmsTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[�Hj#��scripts/annoncecms/add.phtmlnu&1i� 
 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/add" method="post" name="addAnnonceForm" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceCms['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceCms['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Position</td>
				<td class="col-md-8"><input type="text" name="position" size="40" class="form-control"  placeholder="Position de l'article" id="position" value="<?php echo $this->populateFormAnnonceCms['POSITION']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre non visible" id="nom" value="<?php echo $this->populateFormAnnonceCms['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Cat�gorie</td>
				<td class="col-md-8">
					<?php $tabController = explode(':',$this->populateFormAnnonceCms['ID_CATS']);  ?>
					<select class="form-control" size="15" name="categories[]" id="categories" multiple="multiple">
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if (in_array($row['ID'.$level], $tabController)) {echo 'selected="selected"';} ?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr >
				<td class="col-md-12" colspan="2">&nbsp;Contenu</td>
			</tr>
			<tr > 
				<td class="col-md-12" colspan="2">
					<div class="col-md-6 no-space-top" >
						<input type="text" name="content_short" size="40" class="form-control"  placeholder="Titre de l'article" id="content_short" value="<?php echo $this->populateFormAnnonceCms['CONTENT_SHORT']; ?>" />
					</div>
					<div class="col-md-6 no-space-top" >
						<input type="text" name="content_long" size="40" class="form-control"  placeholder="Sous-titre de l'article" id="content_long" value="<?php echo $this->populateFormAnnonceCms['CONTENT_LONG']; ?>" />
					</div>
				</td>
			</tr> 
			<tr >
				<td class="col-md-6 text-center" colspan="2">
					<button id="pickImageFromGallery" class="btn btn-info">S�lectionner une image depuis la gallerie</button>
					<div id="pickImageFromGalleryContent" style="display:none"></div>
				</td>
			</tr>
			<tr > 
				<td class="col-md-12" colspan="2">  
					<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
					<?php if (isset($this->populateFormAnnonceCms['CONTENT']) && !empty($this->populateFormAnnonceCms['CONTENT'])) { 
						 echo $this->populateFormAnnonceCms['CONTENT']; 
					} ?>					
					</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	tinymce.init({
	  selector: 'textarea',
	  height: 500, 
	  convert_urls: false,
	  theme: 'modern',
	  skin: "lightgraygradient",
	  language: 'fr_FR',
	  plugins: [
		'advlist autolink lists link image charmap print preview hr anchor pagebreak',
		'searchreplace wordcount visualblocks visualchars code fullscreen',
		'insertdatetime media nonbreaking save table contextmenu directionality',
		'emoticons template paste textcolor colorpicker textpattern imagetools jbimages'
	  ],
	  toolbar1: 'insertfile undo redo | styleselect | bold italic forecolor backcolor emoticons | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages template | print preview media',
	  image_advtab: true,
	  relative_urls: false,
	  templates: <?php echo $this->FeatureTinymceTemplate; ?>,
	  content_css: '<?php echo $this->FeatureTinymceCss; ?>'
	 });
		
	$( "#pickImageFromGallery" ).click(function(){
		$( "#pickImageFromGalleryContent" ).toggle();
		if($('#pickImageFromGalleryContent').css('display') == 'block') {
			$.ajax( {
				type : "GET",
				async : true,
				url : '/backoffice/annoncegallery/ajaxshowallpicture',  
				contentType:"application/x-www-form-urlencoded; charset=iso-8859-1",
				success : function(data) {  
					$('#pickImageFromGalleryContent').html(data); 
				}});
		}
			
		return false;		
	});
});
</script>
PKc�G[;j���scripts/supplier/list.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th></th>
			<th>Entreprise</th>
			<th>Nom</th>
			<th>Pr�nom</th>
			<th>Email</th>
			<th>Tel</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listsupplier as $row)  { ?>
		<tr>
			<td>
				<ul class="gallerybox">
                	<li>
						<figure>
							<a href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $row['ID']; ?>"><img src="<?php if (isset($row['URL'])) { echo '/'.$this->escape($row['URL']); } else {echo '/items/product/default/default.png'; } ?>"></a>
						</figure>
					</li>
				</ul>
			</td>
			<td><?php echo $this->escape($row['COMPANY']);?></td>
			<td><?php echo $this->escape($row['NOM']);?></td>
			<td><?php echo $this->escape($row['PRENOM']);?></td>
			<td><?php echo $this->escape($row['EMAIL']);?></td>
			<td><?php echo $this->escape($row['TEL']);?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/supplier/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('supplierTable', [[ 1, "asc" ]], [
			                    		                { "orderable": false, "targets": 0},
		                    		                { "orderable": false, "targets": -1, "width": "270px" }
		                    		              ]); 	    
	});
</script>
</div>PKc�G[M"�q;+;+scripts/supplier/edit.phtmlnu&1i�
<div class="table-box">	
	<div class="col-md-12 no-space-side">
		<div class="tabs-section ">
			<ul class="nav nav-tabs" id="myTab">
				<li class="active"><a href="#tabs-supplier" data-toggle="tab">Fournisseur</a></li>
				<li><a href="#tabs-brend" data-toggle="tab">Marques</a></li>
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tabs-supplier">
					<section class 	="boxpadding">
						<?php $formSupplier = $this->populateFormSupplier; ?>
						<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit#tabs-supplier" method="post" name="editSupplierForm" enctype="multipart/form-data" >
						<table class="table">
							<?php echo $this->render("alert_tr.phtml"); ?>							
							<tr >
								<td class="col-md-4">
									<i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="company">Nom de l'entreprise</label>
								</td>
								<td class="col-md-8">
									<input type="text" class="form-control" name="company" id="company" value="<?php echo $formSupplier['COMPANY']; ?>"/>
								</td>
							</tr>
              <tr >
                <td class="col-md-4">
                  <label for="descshort">Description courte</label>
                </td>
                <td class="col-md-8">
                  <input type="text" class="form-control" name="descshort" id="descshort" value="<?php echo $formSupplier['DESCRIPTIONSHORT']; ?>"/>
                </td>
              </tr>
              <tr >
                <td class="col-md-4">
                  <label for="desclong">Description longue</label>
                </td>
                <td class="col-md-8">
                  <textarea class="form-control"  rows="10" cols="50" name="desclong" id="desclong"><?php echo $formSupplier['DESCRIPTIONLONG'];?></textarea>
                </td>
              </tr>
							<tr><td colspan="2"><h5>Responsable</h5></td></tr>
							<tr >
								<td >
									<i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="nom">Nom</label>
								</td>
								<td>
									<input type="text" class="form-control" name="nom" id="nom" value="<?php echo $formSupplier['NOM']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="prenom">Pr�nom</label>
								</td>
								<td>
									<input type="text" class="form-control" name="prenom" id="prenom" value="<?php echo $formSupplier['PRENOM']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="email">Email</label>
								</td>
								<td>
									<input type="text" class="form-control" name="email" id="email" value="<?php echo $formSupplier['EMAIL']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<label for="tel">Telephone</label>
								</td>
								<td>
									<input type="text" class="form-control" name="tel" id="tel" value="<?php echo $formSupplier['TEL']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<label for="fax">Fax</label>
								</td>
								<td>
									<input type="text" class="form-control" name="fax" id="fax" value="<?php echo $formSupplier['FAX']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<label for="address">Adresse</label>
								</td>
								<td>
									<input type="text" class="form-control" name="address" id="address" value="<?php echo $formSupplier['ADDRESSE']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<label for="cp">Code Postal</label>
								</td>
								<td>
									<input type="text" class="form-control" name="cp" id="cp" value="<?php echo $formSupplier['CP']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									<label for="ville">Ville</label>
								</td>
								<td>
									<input type="text" class="form-control" name="ville" id="ville" value="<?php echo $formSupplier['VILLE']; ?>"/>
								</td>
							</tr>
							<tr >
								<td width="200px">
									<label for="picture">Image du fournisseur</label>
									<div class="col-md-12 text-center no-space-top">
										<ul class="gallerybox ">
										  	<li>
												<figure>
													<img src="<?php echo '/'.$formSupplier['URL'];?>" />
												</figure>
											</li>
										</ul>
									</div>
								</td>
								<td>
									<input type="file" name="picture" id="picture" size="50"/>
									<br/>
									<i>Extensions : jpg, gif, png</i>
								</td>
							</tr>
							<tr>
								<td align="center" colspan="2">
									<input type="hidden" class="input4" name="id" id="id" value="<?php echo $formSupplier['ID']; ?>">
									<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
								</td>
							</tr>
						</table>
					</form> 
					</section>
				</div>
				<div class="tab-pane" id="tabs-brend">
					<section class 	="boxpadding">
						<?php  $formBrends = $this->populateFormBrend; ?>
						<table class="table" >
							<?php echo $this->render("alert_tr.phtml"); ?>
							<tr >
								<td colspan="2">
									<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/addbrend#tabs-brend" method="post" name="addBrendForm" enctype="multipart/form-data" >
										<table  class="table" >
											<tr  >
												<td><h5>Ajouter une marque</h5></td>
												<td>
													<label for="brend">Nom : </label>
												</td>
												<td>
													<label><input placeholder="Marque du fournisseur" class="form-control" type="text" name="brend" id="brend" size="20"> </label>
												</td>
												<td>
													<input type="file" name="picture" id="picture" size="50"/><br>
													<i>Extensions : jpg, gif, png</i>
												</td>
												<td>
													<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
													<input type="hidden" name="id" id="id" value="<?php echo $formSupplier['ID']; ?>" >
												</td>
											</tr>
										</table>
									</form>
								</td>
							</tr>
							<tr >
								<td colspan="2">
									<?php 
									foreach($formBrends as $brend) { 
									?>
									<div class="col-md-3 no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/editbrend#tabs-brend" method="post" name="editBrendForm" >
										<div class="col-md-12 text-center  no-space-top">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$brend['URL'];?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-12 no-space-top">
											<input class="form-control" type="text" name="brend" value="<?php echo $brend['BREND']; ?>"/>
										</div>
										<div class="col-md-12 no-space-top">
											 <select name="isshowbrendpage" class="form-control">
										            <option value="1" <?php if ($brend['IS_SHOW_BREND_PAGE'] == true) { echo 'selected="selected"';} ?>>Afficher sur la page des marques</option>
										            <option value="0" <?php if ($brend['IS_SHOW_BREND_PAGE'] == false) { echo 'selected="selected"';} ?>>Ne pas afficher sur la page des marques</option>
                                                </select>
										</div>
										<div class="col-md-6 text-right">
											<button class="btn btn-success " type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
											<input type="hidden" name="idBrend" value="<?php echo $brend['ID']; ?>" >
											<input type="hidden" name="id" value="<?php echo $formSupplier['ID']; ?>" >
										</div>
										</form>	
																				
										<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/delbrend#tabs-brend" method="post" >
										<div class="col-md-6 text-left">
											<button class="btn btn-danger" type="submit" name="edit"><span class="glyphicon glyphicon-resize-full"></span> D�lier</button>
											<input type="hidden" name="idBrend" value="<?php echo $brend['ID']; ?>" >
											<input type="hidden" name="id" value="<?php echo $formSupplier['ID']; ?>" >
										</div>
										</form>
									</div>
									<?php ; } ?>
								</td>
							</tr> 
							<tr><td colspan="2"><h5>Les images</h5></td></tr>
							<tr >
								<td ><label for="selectIdSetPicture">Modifier l'image</label></td>
								<td >
									<?php $files = glob("items/supplier/*.*"); ?>
									<div class="col-md-6 no-space-top" >
										<select class="form-control" name="selectIdSetPicture" id="selectIdSetPicture" onchange="setSupplierMarqueForPicture(<?php echo sizeof($files); ?>);">
											<option value="0">Modifier</option>
											<?php 
											foreach($formBrends as $brend) { 
											?><option value="<?php echo $brend['ID']; ?>"><?php echo 'Marque : '.$brend['BREND']; ?></option>
											<?php } ?>
										</select>
									</div>
								</td>
							</tr>
							<tr >
								<td  colspan="2">
									<?php for ($i=0; $i <sizeof($files); $i++) { ?>
									<div class="col-md-3 text-center no-space-top">
										<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/setpicture#tabs-brend" method="post" name="setPictureForm_<?php echo $i; ?>">
										<div class="col-md-12 text-center">
											<ul class="gallerybox ">
											  	<li>
													<figure>
														<img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
													</figure>
												</li>
											</ul>
										</div>
										<div class="col-md-6 text-right">
											<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="id" value="<?php echo $formSupplier['ID']; ?>" >
											<input type="hidden" name="idSelected" id="idSelected" >
										</div>
										</form>	
																				
										<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/erasepicture#tabs-brend" method="post" id="delPictureImage<?php echo $i;?>">
										<div class="col-md-6 text-left">
											<button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delPictureImage<?php echo $i;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer</button>
											<input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
											<input type="hidden" name="id" value="<?php echo $formSupplier['ID']; ?>" >
										</div>
										</form>
									</div>
									<?php } ?>
								</td>
							</tr> 
						</table>
					</section>
				</div>
			</div>
		</div>
	</div>
</div>


<script type="text/javascript">  
$(function(){  
	initTabs(window.location.hash);
    initEditor('#desclong');
});
</script>PKc�G[R;0��scripts/supplier/add.phtmlnu&1i� 
<div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/supplier/add" method="post" name="addSupplierForm"  enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Marque</td>
				<td class="col-md-8"><input type="text" class="form-control" name="brend" id="brend" value="<?php echo $this->populateFormBrend['BREND']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom de l'entreprise</td>
				<td class="col-md-8"><input type="text" class="form-control" name="company" id="company" value="<?php echo $this->populateFormSupplier['COMPANY']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="lastname" id="lastname" value="<?php echo $this->populateFormSupplier['NOM']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Pr�nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="firstname" id="firstname" value="<?php echo $this->populateFormSupplier['PRENOM']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Email</td>
				<td class="col-md-8"><input type="text" class="form-control" name="email" id="email" value="<?php echo $this->populateFormSupplier['EMAIL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">T�l�phone</td>
				<td class="col-md-8"><input type="text" class="form-control" name="tel" id="tel" value="<?php echo $this->populateFormSupplier['TEL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Fax</td>
				<td class="col-md-8"><input type="text" class="form-control" name="fax" id="fax" value="<?php echo $this->populateFormSupplier['FAX']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Adresse</td>
				<td class="col-md-8"><input type="text" class="form-control" name="address" id="address" value="<?php echo $this->populateFormSupplier['ADDRESSE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Code Postal</td>
				<td class="col-md-8"><input type="text" class="form-control" name="cp" id="cp" value="<?php echo $this->populateFormSupplier['CP']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Ville</td>
				<td class="col-md-8"><input type="text" class="form-control" name="ville" id="ville" value="<?php echo $this->populateFormSupplier['VILLE']; ?>"/></td>
			</tr>
			<tr>
				<td class="col-md-4">Image du fournisseur</td>
				<td class="col-md-8">
					<input type="file" name="picture" id ="picture" size="50" >
						<br><i>Extensions : jpg, gif, png</i>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
		PKc�G[s}@�==scripts/supplier/search.phtmlnu&1i�<table cellpadding="0" cellspacing="5" border="0" width="1200px">
<tr>
	<td align="left" colspan="9">
	
		<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/supplier/search">
			<input type="text" size="50" value="" id="searchValue" name="searchValue">
			<select id="searchType" name="searchType">
				<option value="BREND">Marque</option>
				<option value="COMPANY">Entreprise</option>
				<option value="NOM">Nom</option>
				<option value="PRENOM">Pr�nom</option>
				<option value="EMAIL">Email</option>
				<option value="ADDRESSE">Adresse</option>
				<option value="CP">Code Postal</option>
				<option value="VILLE">Ville</option>
			</select>
			<input type="submit" name="search" value="Rechercher" />
		</form>
	</td>
</tr>
<tr>
	<td align="left" colspan="9">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<?php if ($this->listsupplierCount > 0) { ?>
<tr class="linkHeader">
	<th> ENTREPRISE </th>
	<th> NOM </th>
	<th> PRENOM </th>
	<th> EMAIL </th>
	<th> TEL </th>
	<th> FAX </th>
	<th> ADRESSE </th>
	<th> CODE POSTAL </th>
	<th> VILLE </th>
	<th width="150px">&nbsp;</th>
</tr>

<?php foreach($this->listsupplier as $row) : ?>
<tr>
	<td><?php echo $this->escape($row['COMPANY']);?></td>
	<td><?php echo $this->escape($row['NOM']);?></td>
	<td><?php echo $this->escape($row['PRENOM']);?></td>
	<td><?php echo $this->escape($row['EMAIL']);?></td>
	<td><?php echo $this->escape($row['TEL']);?></td>
	<td><?php echo $this->escape($row['FAX']);?></td>
	<td><?php echo $this->escape($row['ADDRESSE']);?></td>
	<td><?php echo $this->escape($row['CP']);?></td>
	<td><?php echo $this->escape($row['VILLE']);?></td>
	<td  width="200px">
        <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['ID']); ?>">Modifier</a>
        <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/del/id/<?php echo $this->escape($row['ID']); ?>">Supprimer</a>
	</td>
</tr>
<?php endforeach; 
}
?>
</table>
PKc�G[�)��&scripts/productoptionlist/option.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/option">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?><i style="display:none">Liste de caract�ristiques disponible lors de la s�lection d'un produit</i></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Caract�ristique</td>
				<td class="col-md-8"><input type="text" class="form-control" size="60" name="name" placeholder="Ajouter une caract�ristique de produit"></td>
			</tr>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Valeurs</td>
				<td class="col-md-8"><input type="text" class="form-control" name="value" value="" size="40" placeholder="Ajouter une liste de valeurs � s�lectionner"><i>valeur 1, valeur 2, ...</i></td>
				
			</tr>
			<tr class="nostriped">
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="optionTable" width="100%">
	<thead>
		<tr>
			<th>Caract�ristiques</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listoption as $optionList)  { ?>
		<tr>
			<td >
				<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/optionedit">
				<div class="col-md-4 no-space-top">
					<input type="text" class="form-control" size="40" name="name" value="<?php echo $optionList->name;?>">
				</div>
				<div class="col-md-4 no-space-top">
					<?php $values = explode("::", $optionList->valuesString);
						$result = "";
						foreach ($values as $value) {
							if (empty($result))  {
								$result .= $value;
							} else {
								$result .= ", ".$value;
							}
						}	?>	
					<input type="text" class="form-control" size="40" name="value" value="<?php echo $result;?>">
				</div>
				
				
				<div class="col-md-4 no-space-top">
					<input type="hidden" name="id" id="id" value="<?php echo $optionList->id;?>">
					<div class="btn-group">
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
						<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/optiondel/id/<?php echo $optionList->id;?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
					</div>
				</div>
				</form>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>
PKc�G[���qqscripts/annonce/list.phtmlnu&1i�<script type="text/javascript">
$(function(){
	initRichTextBox('#annonceContent', 1, 500, 150);
});
</script>
<table cellpadding="0" cellspacing="5" border="0" width="100%">
<tr>
	<td align="left" colspan="4">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<tr>
	<td colspan="4">
		<table border="0" cellpadding="0" cellspacing="0" width="1000px">
			<tr>
				<td>
				<?php if ($this->populateFormAnnonce['TITRE']) { ?>
					<form action="<?php echo $this->baseUrl; ?>/backoffice/annonce/edit" method="post" name="editAnnonceForm" >
					<?php } else { ?>
					<form action="<?php echo $this->baseUrl; ?>/backoffice/annonce/add" method="post" name="addAnnonceForm" >
					<?php } ?>
						<table  border="0" cellpadding="0" cellspacing="10" width="850px" align="left">
							<tr >
								<td>
									Titre
								</td>
								<td>
									<input type="text" name="titre" size="40" id="titre" value="<?php echo $this->populateFormAnnonce['TITRE']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									Afficher
								</td>
								<td>
									<input type="radio" value="0" name="isshow" <?php if ($this->populateFormAnnonce['isSHOW'] == 0) { echo 'checked="checked"';} ?>>Oui</input>
									<input type="radio" value="1" name="isshow" <?php if ($this->populateFormAnnonce['isSHOW'] == 1) { echo 'checked="checked"';} ?>>Non</input><br>
			
								</td>
							</tr>
							<tr >
								<td valign="top">
									Contenu
								</td>
								<td class="desc-annonce-detail">
									<?php if ($this->populateFormAnnonce) { ?>
									<textarea  name="content" id="annonceContent" name="annonceContent"><?php echo $this->populateFormAnnonce['CONTENT']; ?></textarea>
									<?php } ?>
								
								</td>
							</tr>	
							<tr>
								<td align="center" colspan="2">
									<?php if ($this->populateFormAnnonce['TITRE']) { ?>
									<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonce['ID'];?>">
									<input type="submit" name="edit" value="Modifier" />
									<?php } else { ?>
									<input type="submit" name="add" value="Ajouter" />
									<?php } ?>
								</td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr class="linkHeader">
	<th>TITRE</th>
	<th >AFFICHAGE</th>
	<th >&nbsp;</th>
	<th >&nbsp;</th>
</tr>

<?php foreach($this->listannonce as $row) : ?>
<tr>
	<td width="300px" class="link3"><a href="<?php echo $this->baseUrl; ?>/backoffice/annonce/edit/id/<?php echo $row['ID']; ?>"><?php echo $row['TITRE'];?></a></td>
	<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Oui';} else {echo 'Non';} ?></td>
	<td colspan="2">
        <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/annonce/edit/id/<?php echo $row['ID']; ?>">Modifier</a>
    
        <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/annonce/del/id/<?php echo $row['ID']; ?>" onclick="return msgOkCancelDelete();">Supprimer</a>
	</td>
</tr>
<tr>
	<td colspan="4" style="background:#666666;height:1px;"></td>
</tr>
<?php endforeach; ?>
</table>
PKc�G[scripts/csv/export.phtmlnu&1i�PKc�G[��׷JJscripts/csv/sitemapxml.phtmlnu&1i�
 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/csv/sitemapxml" method="post">
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"> Fr�quence</td>
				<td class="col-md-8">
					<select class="form-control" name="changefreq">
						<option value="weekly" >weekly</option>
						<option value="monthly" selected="selected">monthly</option> 
					</select>
				</td>
			</tr>
			<tr>
				<td class="col-md-4">Priorit�</td>
				<td class="col-md-8">
					<select class="form-control" name="priority">
						<option value="0.8" selected="selected">0.8</option>
					</select>
				</td>
			</tr>
			<tr >
				<td class="col-md-4">Images</td>
				<td class="col-md-8">
					<select class="form-control" name="all_image">
						<option value="Y" selected="selected">Oui</option>
						<option value="N">Non</option>
					</select>
				</td>
			</tr>
			<tr >
				<td class="col-md-4">Liens de navigation de produits</td>
				<td class="col-md-8">
					<select class="form-control" name="all_navnom">
						<option value="Y">Oui</option>
						<option value="N" selected="selected">Non</option>
					</select>
				</td>
			</tr>
			<tr >
				<td class="col-md-4">V�rifier les liens</td>
				<td class="col-md-8">
					<select class="form-control" name="checklink">
						<option value="Y" >Oui</option>
						<option value="N" selected="selected">Non</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-cog"></i>&nbsp;G�n�rer le sitemap</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>PKc�G[7����scripts/prestashop/index.phtmlnu&1i�
   <div class="table-box">
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-12 text-center" colspan="2"><h5>Exportation des donn�es vers Prestashop</h5></td>
			</tr>
			<tr >
				<td class="col-md-5">Vous pouvez importer toutes les donn�es dans Prestashop -> Outils -> Importation de donn�es</td>
				<td class="col-md-7">
					<div class="btn-group">
						<a href="<?php echo $this->baseUrl; ?>/backoffice/prestashop/exportcategories" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Familles articles</a>
						<a href="<?php echo $this->baseUrl; ?>/backoffice/prestashop/exportfournisseurs" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Fournisseurs</a>
						<a href="<?php echo $this->baseUrl; ?>/backoffice/prestashop/exportclients" class="btn btn-success"><i class="glyphicon glyphicon-open"></i>&nbsp;Exporter les Clients</a>
					</div>
				</td>
			</tr>  
		</tbody>
	</table>
</div>
<div class="clearfix"></div>PKc�G[;YP=aascripts/error/error.phtmlnu&1i�
<div id="page">
	<div class="big_header"><h1 class="big_header">Page non trouv�e</h1></div>	
	<div class="submenu">
		<a href="/" class="custom_font filter">Accueil</a>
	</div>
	<div class="scroll-pane">
		<div class="page_block">
			<blockquote class="error margin_1line">
			Chez visiteur, la page que vous d�sirez visualiser n'existe pas ou plus. <br/> <br/>Veuillez <a href="/" role="button">cliquer ici</a> pour revenir � la page d'accueil, afin de rechercher ce que vous voulez
			</blockquote> 
			<div class="clear"></div>

		</div>
		<div class="page-footer">&copy; Karen Petit</div>
	</div>
</div>
PKc�G[�G�EE scripts/blogsubject/search.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogsubject/search">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publi�</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Ferm�</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
               <tr>
				  <td class="col-md-4">Cat�gorie</td>
				  <td class="col-md-8">
					  <select name="id_category" id="id_category" class="form-control">
						  <?php 
						  $show = array();
						  foreach($this->listallblogcategories as $row) { 
						 	  for ($level=0 ; $level<11; $level++) { 
								  if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
								  ?>
									  <option value="<?php echo $this->escape($row['id'.$level]); ?>" <?php if ($row['id'.$level] == $this->populateData['id_category']) { echo 'selected="selected"';}?>>
										  <?php 
						 				  for ($i=0 ; $i<$level; $i++) { 
											  echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										  }
										  echo $row['title'.$level]; ?>
									
									  </option>
									  <?php 
									  $show['title'.$level] = $row['title'.$level];
								  }
							   } 
						  } ?>
					  </select>
				  </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Titre</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre � rechercher" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <button type="submit" name="search"  class="btn btn-primary">
              <span class="glyphicon glyphicon-search"></span> Rechercher
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
</div>
<?php 
$listSearchs = $this->listallsubjects; 
if (isset($listSearchs)) { 
?>

<div class="clearfix"></div>
<div class="table-box">

  <table class="display table" id="searchTable" width="100%">
    <thead>
      <tr> 
        <th>Titre</th>
        <th>Visibilit�</th>
        <th>Etat</th>
        <th></th>
      </tr>
    </thead>
    <tbody>

      <?php foreach($listSearchs as $row)  { ?>
      <tr>
        <td>
          <?php echo $row['title'];?>
        </td>
        <td>
          <?php if ($row['is_publish']) { echo 'Publi�';} else{echo 'Non publi�';};?>
        </td>
        <td>
          <?php if ($row['is_close']) { echo 'Ferm�';} else{echo 'Ouvert';};?>
        </td>
        <td>
          <div class="btn-group">
            <a target="_blank" class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/blogsubject/edit/id/<?php echo $this->escape($row['id']);?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
          </div>
        </td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
  <script>
    $(document).ready(function() {
    initDataTable('searchTable', [[ 0, "asc" ]], [
    { "orderable": true, "targets": 0 },
    { "orderable": true, "targets": 1, "width": "150px"  },
    { "orderable": true, "targets": 2, "width": "150px"  },
    { "orderable": false, "targets": -1, "width": "200px" },
    ]);
    });
  </script>
</div>
<?php  } ?>PKc�G[��Ʒ�scripts/blogsubject/add.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogsubject/add">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publier</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Fermer</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr>
				  <td class="col-md-4">Cat�gorie</td>
				  <td class="col-md-8">
					  <select name="id_category" id="id_category" class="form-control">
						  <?php 
						  $show = array();
						  foreach($this->listallblogcategories as $row) { 
						 	  for ($level=0 ; $level<11; $level++) { 
								  if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
								  ?>
									  <option value="<?php echo $this->escape($row['id'.$level]); ?>" <?php if ($row['id'.$level] == $this->populateData['id_category']) { echo 'selected="selected"';}?>>
										  <?php 
						 				  for ($i=0 ; $i<$level; $i++) { 
											  echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										  }
										  echo $row['title'.$level]; ?>
									
									  </option>
									  <?php 
									  $show['title'.$level] = $row['title'.$level];
								  }
							   } 
						  } ?>
					  </select>
				  </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Titre secondaire</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre secondaire" name="sub_title" size="40" id="sub_title" value="<?php echo $this->populateData['sub_title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-plus"></span> Ajouter
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>PKc�G[x*�BBscripts/blogsubject/edit.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogsubject/edit">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publier</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Fermer</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr>
				  <td class="col-md-4">Cat�gorie</td>
				  <td class="col-md-8"> 
					    <select name="id_category" id="id_category" class="form-control">
						    <?php 
						    $show = array();
						    foreach($this->listallblogcategories as $row) { 
						 	    for ($level=0 ; $level<11; $level++) { 
								    if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
								    ?>
									    <option value="<?php echo $this->escape($row['id'.$level]); ?>" <?php if ($row['id'.$level] == $this->populateData['id_category']) { echo 'selected="selected"';}?>>
										    <?php 
						 				    for ($i=0 ; $i<$level; $i++) { 
											    echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										    }
										    echo $row['title'.$level]; ?>
									
									    </option>
									    <?php 
									    $show['title'.$level] = $row['title'.$level];
								    }
							     } 
						    } ?>
					    </select> 
				  </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Titre secondaire</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre secondaire" name="sub_title" size="40" id="sub_title" value="<?php echo $this->populateData['sub_title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <input type="hidden" value="<?php echo $this->populateData['id']; ?>" name="id" />
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-edit"></span> Modifier
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>PKc�G[��y1
1
scripts/category2/add.phtmlnu&1i�
 <div class="table-box">
<form action="<?php echo $this->baseUrl; ?>/backoffice/category2/add" method="post" name="addCategory"  enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="nom" id="nom" value="<?php echo $this->populateForm['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom de navigation</td>
				<td class="col-md-8"><input type="text" class="form-control" name="navnom" id="navnom" value="<?php echo $this->populateForm['NAVNOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4">Mots cl�s</td>
				<td class="col-md-8"><input type="text" class="form-control" name="keywords" id="keywords" value="<?php echo $this->populateForm['KEYWORDS']; ?>" /></td>
			</tr>
			<tr>
				<td class="col-md-4">Description</td>
				<td class="col-md-8"><input type="text" class="form-control" name="desc" id="desc" value="<?php echo $this->populateForm['DESCRIPTION']; ?>" /></td>
			</tr>
			<tr>
				<td class="col-md-4">Cat�gorie parente</td>
				<td class="col-md-8">
					<select name="idparent" id="idparent" class="form-control">
						<?php 
						$show = array();
						foreach($this->listallcategories2 as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>">
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $row['NOM'.$level]; ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="col-md-4">Image de la cat�gorie</td>
				<td class="col-md-8">
					<input type="file" name="picCat" id ="picCat" size="50" >
						<br><i>Extensions : jpg, gif, png</i>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>PKc�G[7H�F��scripts/category2/list.phtmlnu&1i�<div class="table-box">
  <div class="col-md-12 text-center">
    <?php echo $this->render("alert.phtml"); ?>
  </div>
  <table class="display table" id="productTable" width="100%">
    <thead>
      <tr>
        <th class="col-md-4" colspan="11">
          <?php echo $this->titlePage; ?>
        </th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($this->listallcategories2 as $row)  { ?>
      <tr>
        <?php for ($level=0 ; $level<11; $level++) { 
				$hasStyle="";
				$hasClass="col-md-2";
			if (!((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null)) {
				$hasClass = "col-md-1";
			} ?>
        <td style="<?php echo $hasStyle; ?>" class="<?php echo $hasClass; ?>">
          <?php 
				if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
				?>
          <div class="no-space ">
            <a href="<?php echo $this->baseUrl; ?>/backoffice/category2/edit/id/<?php echo $row['ID'.$level]; ?>" <?php if ($row['isACTIVE'.$level] == false) { ?> style="color: red"<?php }?>>
              <?php echo $row['NOM'.$level]; ?>
            </a>
          </div>
          <div class="no-space text-right">
            <?php if ($row['IDPARENT'.$level] != 0) { ?>
            <button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/category2/del/id/<?php echo $row['ID'.$level]; ?>" ><span class="glyphicon glyphicon-trash"></span>
            </button>
            <?php } ?>
            <?php $show['NOM'.$level] = $row['NOM'.$level]; } ?>
          </div>
        </td>
        <?php } ?>
      </tr>
      <?php } ?>
    </tbody>
  </table>
</div>
PKc�G[:�|�CCscripts/category2/edit.phtmlnu&1i�
<div class="table-box">
  <div class="col-md-8 text-left">
    <a class="<?php if ($this->populateForm['isACTIVE'] == false) { echo 'btn btn-danger';} else { echo 'btn btn-info'; } ?>" target="_blank" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlCategory2($this->populateForm['NAVNOM_URLPARENTS'], $this->populateForm['NAVNOM'], $this->populateForm['ID']); ?>">
      <i class="glyphicon glyphicon-eye-open"></i>&nbsp;<?php echo $this->populateForm['NOM']; ?>
    </a>
  </div>
  <div class="col-md-4 text-right">
    <form action="<?php echo $this->baseUrl; ?>/backoffice/category2/editactive#tabs-category" method="post" >

      <input type="radio" class="bluecheckradios" name="active" id="active1" value="1" <?php if ($this->populateForm['isACTIVE'] == true) { echo 'checked="checked"';} ?>><label for="active1">&nbsp;Actif</label>
      <input type="radio" class="bluecheckradios" name="active" id="active2" value="0" <?php if ($this->populateForm['isACTIVE'] == false) { echo 'checked="checked"';} ?>><label for="active2">&nbsp;Inactif</label>
      <input type="hidden" name="id" value="<?php echo $this->populateForm['ID']; ?>">
      <button class="btn btn-success" type="submit" name="edit">
        <i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
      </button>
    </form>
  </div>
  <div class="col-md-12 no-space-side">
    <div class="tabs-section ">
      <ul class="nav nav-tabs" id="myTab">
        <li class="active">
          <a href="#tabs-category" data-toggle="tab">Cat�gorie</a>
        </li>
        <li>
          <a href="#tabs-referencement" data-toggle="tab">R�f�rencement</a>
        </li>
        <li>
          <a href="#tabs-image" data-toggle="tab">Images</a>
        </li>
      </ul>
      <div class="tab-content">
        <div class="tab-pane active" id="tabs-category">
          <section class="boxpadding">
            <form action="<?php echo $this->baseUrl; ?>/backoffice/category2/editcategory#tabs-category" method="post"  enctype="multipart/form-data" >
              <table class="table">
                <?php echo $this->render("alert_tr.phtml"); ?>
                <tr >
                  <td class="col-md-4">
                    <i class="glyphicon glyphicon-asterisk"></i>&nbsp;<label for="nom">Nom</label>
                  </td>
                  <td class="col-md-8">
                    <input type="text" name="nom" id="nom" value="<?php echo $this->populateForm['NOM']; ?>" class="form-control"/>
                  </td>
                </tr>
                <tr >
                  <td >
                    <label for="desc">Description</label>
                  </td>
                  <td>
                    <input type="text"  name="desc" id="desc"  class="form-control" value="<?php echo $this->populateForm['DESCRIPTION'];?>">
                  </td>
                </tr>
                <tr >
                  <td >
                    <?php if ($this->populateForm['IDPARENT'] != 0) { ?>
                    <label for="idparent">Cat�gorie parente</label>
                    <?php } ?>
                  </td>
                  <td>
                    <?php if ($this->populateForm['IDPARENT'] != 0) { ?>
                    <select name="idparent" id="idparent"  class="form-control" >
                      <?php 
											$show = array();
											foreach($this->listallcategories2 as $row) { 
											 	for ($level=0 ; $level<11; $level++) { 
													if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
													?>
                      <option value="
                        <?php echo $this->escape($row['ID'.$level]); ?>" <?php if ($row['ID'.$level] == $this->populateForm['IDPARENT']) { echo 'selected="selected"';}?> >
                        <?php 
											 				for ($i=0 ; $i<$level; $i++) { 
																echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
															}
															echo $row['NOM'.$level]; ?>

                      </option>
                      <?php 
														$show['NOM'.$level] = $row['NOM'.$level];
													}
												 } 
											} ?>
                    </select>
                    <?php } else { ?>
                    <input type="hidden" name="idparent"  value="0">
                      <?php } ?>
                    </td>
                </tr>
                <tr >
                  <td >
                    <label for="picCat" >Image de la cat�gorie</label>
                    <br/>
                    <div class="col-md-12 text-center no-space-top">
                      <ul class="gallerybox ">
                        <li>
                          <figure>
                            <img src="<?php echo $this->baseUrl.'/'.$this->populateForm['URL'];?>" />
                          </figure>
                        </li>
                      </ul>
                    </div>
                  </td>
                  <td>
                    <input type="file" name="picCat" id="picCat" size="50"/>
                    <br>
                      <i>Extensions : jpg, gif, png</i>

                    </td>
                </tr>
                <tr >
                  <td>
                    <label for="picChoice" >Image de "Comment Choisir"</label>
                    <br/>
                    <?php if (isset($this->populateForm['CHOICEURL']) && !empty($this->populateForm['CHOICEURL'])) { ?>
                    <div class="col-md-12 text-center no-space-top">
                      <ul class="gallerybox ">
                        <li>
                          <figure>
                            <img src="<?php echo $this->baseUrl.'/'.$this->populateForm['CHOICEURL'];?>" />
                          </figure>
                        </li>
                      </ul>
                    </div>
                    <?php } ?>
                  </td>
                  <td>
                    <input type="file" name="picChoice" id="picChoice" size="50"/>
                    <br>
                      <i>Extensions : jpg, gif, png</i>

                    </td>
                </tr>
                <tr>
                  <td nowrap="nowrap">
                    <label for="docChoice">Document de "Comment Choisir"</label>
                  </td>
                  <td>
                    <select name="docChoice" id="docChoice" class="form-control">
                      <option value="" selected="selected">Aucun</option>
                      <?php 
											$files = glob("doc/*.pdf");
											for ($i=0; $i <sizeof($files); $i++) {				
										?>
                      <option value="
                        <?php echo $files[$i]; ?>" <?php if ($files[$i] == $this->populateForm['CHOICEDOC']) { echo 'selected="selected"';} ?> ><?php echo $files[$i]; ?>
                      </option>
                      <?php } ?>
                    </select>
                  </td>
                </tr>
                <tr>
                  <td align="center" colspan="2">
                    <input type="hidden" name="id"  value="<?php echo $this->populateForm['ID']; ?>">
                    <button class="btn btn-success" type="submit" name="edit">
                      <i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
                    </button>
                  </td>
                </tr>
              </table>
            </form>
          </section>
        </div>

        <div class="tab-pane" id="tabs-referencement">
          <section class="boxpadding">
            <form action="
              <?php  echo $this->baseUrl; ?>/backoffice/category2/customnavnomedit#tabs-referencement" method="post">
              <table class="table">
                <?php echo $this->render("alert_tr.phtml"); ?>
                <tr >
                  <td colspan="2" >
                    <h5>M�ta donn�es</h5>
                  </td>
                </tr>
                <tr >
                  <td class="col-md-4">
                    <label for="navnom">Nom de navigation</label>
                  </td>
                  <td class="col-md-8">
                    <input type="text" name="navnom" id="navnom" value="<?php echo $this->populateForm['NAVNOM']; ?>" class="form-control"/>
                  </td>
                </tr>
                <tr >
                  <td >
                    <label for="navtitrenom">Titre de navigation</label>
                  </td>
                  <td >
                    <input class="form-control" type="text" name="navtitrenom" id="navtitrenom" value="<?php echo $this->populateForm['NAVTITRENOM'];?>">
                  </td>
                </tr>
                <tr>
                  <td>
                    <label for="navdescription">Description</label>
                  </td>
                  <td>
                    <input class="form-control" type="text" name="navdescription" id="navdescription" value="<?php echo $this->populateForm['NAVDESCRIPTION'];?>">
                  </td>
                </tr>
                <tr>
                  <td>
                    <label for="keywords">Mots cl�s</label>
                  </td>
                  <td>
                    <input class="form-control" type="text" name="keywords" id="keywords" value="<?php echo $this->populateForm['KEYWORDS'];?>">
                  </td>
                </tr>
                <tr >
                  <td colspan="2" >
                    <h5>Url</h5>
                  </td>
                </tr>
                <tr>
                  <td>
                    <label for="urlaccess">Acc�s hi�rarchique</label>
                  </td>
                  <td>
                    <input class="form-control" <?php if ($this->populateForm['IDPARENT'] != 0) { echo "readonly='readonly'"; } ?> type="text" name="urlaccess" id="urlaccess" placeholder="Pr�fix composant l'url, Ex : rubrique/sous-rubrique" value="<?php echo $this->populateForm['NAVNOM_URLPARENTS'];?>">
                  </td>
                </tr>
                <tr >
                  <td colspan="2" class="text-center">
                    <input type="hidden" name="nom" value="<?php echo $this->populateForm['NOM'];?>">
                    <input type="hidden" size="60" name="id" value="<?php echo $this->populateForm['ID'];?>">
                      <input type="hidden" size="60" name="idparent" value="<?php echo $this->populateForm['IDPARENT'];?>">
                      <button class="btn btn-success" type="submit" name="edit">
                      <i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
                    </button>
                  </td>
                </tr>
              </table>
            </form>
          </section>
        </div>

        <div class="tab-pane" id="tabs-image">
          <section class="boxpadding">
            <table class="table">
              <?php echo $this->render("alert_tr.phtml"); ?>
              <tr>
                <td width="250px">
                  <label for="idparent">Images</label>
                </td>
                <td >
                  <?php 
										$files = glob("items/category2/".$this->populateForm['ID']."/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
                  <div class="col-md-3 text-center no-space-top">
                    <form action="
                      <?php echo $this->baseUrl; ?>/backoffice/category2/setpicture#tabs-image" method="post">
                      <div class="col-md-12 text-center">
                        <ul class="gallerybox ">
                          <li>
                            <figure>
                              <img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
                            </figure>
                          </li>
                        </ul>
                      </div>
                      <div class="col-md-6 text-right">
                        <button class="btn btn-primary" type="submit" name="edit">
                          <i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier
                        </button>
                        <input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
                        <input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
                      </div>
                    </form>
                    <div class="col-md-6 text-left">
                      <form action="
                        <?php echo $this->baseUrl; ?>/backoffice/category2/erasepicture#tabs-image" method="post" id="delPictureImage<?php echo $i;?>">
                        <button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delPictureImage"
                          <?php echo $i;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer
                        </button>
                        <input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
                        <input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
                      </form>
                    </div>
                  </div>
                  <?php } ?>
                </td>
              </tr>
              <tr >
                <td >
                  <label for="idparent" >Images de "Comment choisir"</label>
                </td>
                <td >
                  <?php 
										$files = glob("items/category_choice/".$this->populateForm['ID']."/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
                  <div class="col-md-3 text-center no-space-top">
                    <form action="
                      <?php echo $this->baseUrl; ?>/backoffice/category2/setpicturechoice#tabs-image" method="post">
                      <div class="col-md-12 text-center">
                        <ul class="gallerybox ">
                          <li>
                            <figure>
                              <img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
                            </figure>
                          </li>
                        </ul>
                      </div>
                      <div class="col-md-6 text-left">
                        <button class="btn btn-primary" type="submit" name="edit">
                          <i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier
                        </button>
                        <input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
                        <input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
                      </div>
                    </form>
                    <div class="col-md-6 text-right">
                      <form action="<?php echo $this->baseUrl; ?>/backoffice/category2/erasepicturechoice#tabs-image" method="post" id="delPictureImageChoice<?php echo $i;?>">
                        <button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delPictureImageChoice"
                          <?php echo $i;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer
                        </button>
                        <input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
                        <input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
                      </form>
                    </div>
                  </div>
                  <?php } 
										$files = glob("items/category_choice/*.*");
										for ($i=0; $i <sizeof($files); $i++) {				
									?>
                  <div class="col-md-3 text-center no-space-top">
                    <form action="<?php echo $this->baseUrl; ?>/backoffice/category2/setpicturechoice#tabs-image" method="post">
                      <div class="col-md-12 text-center">
                        <ul class="gallerybox ">
                          <li>
                            <figure>
                              <img src="<?php echo $this->baseUrl.'/'.$files[$i]; ?>" />
                            </figure>
                          </li>
                        </ul>
                      </div>
                      <div class="col-md-12">
                        <button class="btn btn-primary" type="submit" name="edit">
                          <i class="glyphicon glyphicon-resize-small"></i>&nbsp;Lier
                        </button>
                        <input type="hidden" name="picture" value="<?php echo $files[$i]; ?>" >
                        <input type="hidden" name="idCat" value="<?php echo $this->populateForm['ID']; ?>" >
                      </div>
                    </form>
                  </div>

                  <?php } ?>
                </td>
              </tr>
            </table>
          </section>
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
  $(document).ready(function() {
  initTabs(window.location.hash);
  });
</script>PKc�G[L��66!scripts/annoncecontent/list.phtmlnu&1i� <div class="table-box">
	<?php if ($this->populateFormAnnonce['TITRE']) { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent/edit" method="post" name="editAnnonceForm" >
	<?php } else { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent/add" method="post" name="addAnnonceForm" >
	<?php } ?>
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre de l'annonce" name="titre" size="40" id="titre" value="<?php echo $this->populateFormAnnonce['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonce['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonce['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				<td class="col-md-8">
						<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
						<?php if (isset($this->populateFormAnnonce['CONTENT']) && !empty($this->populateFormAnnonce['CONTENT'])) { 
							 echo $this->populateFormAnnonce['CONTENT']; 
						} ?>
						</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<?php if ($this->populateFormAnnonce['TITRE']) { ?>
						<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonce['ID'];?>">
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
					<?php } else { ?>
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<?php } ?>
						
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#annonceContent');
});
</script>

 
 
 
 <div class="table-box">
<table class="display table" id="annonceContentTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listannonce as $row)  { ?>
		<tr>
			<td><?php echo $row['TITRE'];?></td>
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent/edit/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('annonceContentTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[��-,AAscripts/alert.phtmlnu&1i�<div class="col-md-12 text-center no-space-top">
	<?php if (!empty($this->messageError)) { ?>
	<span class="alert alert-danger"><?php echo $this -> messageError; ?></span>
	<?php }
	if (!empty($this->messageSuccess)) { ?>
	<span class="alert alert-success"><?php echo $this -> messageSuccess; ?></span>
	<?php } ?>
</div>PKc�G[��;VVscripts/blogcategory/add.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogcategory/add">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publier</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Fermer</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr>
				  <td class="col-md-4">Cat�gorie parente</td>
				  <td class="col-md-8">
					  <select name="idparent" id="idparent" class="form-control">
						  <?php 
						  $show = array();
						  foreach($this->listallblogcategories as $row) { 
						 	  for ($level=0 ; $level<11; $level++) { 
								  if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
								  ?>
									  <option value="<?php echo $this->escape($row['id'.$level]); ?>">
										  <?php 
						 				  for ($i=0 ; $i<$level; $i++) { 
											  echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										  }
										  echo $row['title'.$level]; ?>
									
									  </option>
									  <?php 
									  $show['title'.$level] = $row['title'.$level];
								  }
							   } 
						  } ?>
					  </select>
				  </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Titre secondaire</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre secondaire" name="sub_title" size="40" id="sub_title" value="<?php echo $this->populateData['sub_title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-plus"></span> Ajouter
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>PKc�G[g�9//scripts/blogcategory/list.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 text-center"><?php echo $this->render("alert.phtml"); ?></div>
<table class="display table" id="productTable" width="100%">
	<thead>
		<tr>
			<th class="col-md-4" colspan="11"><?php echo $this->titlePage; ?></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listallblogcategories as $row)  { ?>
		<tr>
			<?php for ($level=0 ; $level<3; $level++) { 
				$hasStyle="";
				$hasClass="col-md-2";
			if (!((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null)) {
				$hasClass = "col-md-1";
			} ?>
			<td style="<?php echo $hasStyle; ?>" class="<?php echo $hasClass; ?>">
				<?php 
				if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
				?>
				<div class="no-space text-left">
					<a href="<?php echo $this->baseUrl; ?>/backoffice/blogcategory/edit/id/<?php echo $row['id'.$level]; ?>" <?php if ($row['is_close'.$level] == 1 || $row['is_publish'.$level] == 0 ) { ?> style="color: red"<?php }?>>
						<?php echo $row['title'.$level]; ?>
					</a>
					<?php if ($row['id_parent'.$level] != 0) { ?>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/blogcategory/del/id/<?php echo $row['id'.$level]; ?>" ><span class="glyphicon glyphicon-trash"></span></button>
					<?php } ?>
				<?php $show['title'.$level] = $row['title'.$level]; } ?>
				</div>
			</td>
			<?php } ?>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>
PKc�G[�4����scripts/blogcategory/edit.phtmlnu&1i�
<div class="table-box">
  <form method="POST" action="/backoffice/blogcategory/edit">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publier</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Fermer</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr>
				  <td class="col-md-4">Cat�gorie parente</td>
				  <td class="col-md-8">
            <?php  if ($this->populateData['id_parent'] > 0) { ?>
					    <select name="idparent" id="idparent" class="form-control">
						    <?php 
						    $show = array();
						    foreach($this->listallblogcategories as $row) { 
						 	    for ($level=0 ; $level<11; $level++) { 
								    if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
								    ?>
									    <option value="<?php echo $this->escape($row['id'.$level]); ?>" <?php if ($row['id'.$level] == $this->populateData['id_parent']) { echo 'selected="selected"';}?>>
										    <?php 
						 				    for ($i=0 ; $i<$level; $i++) { 
											    echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										    }
										    echo $row['title'.$level]; ?>
									
									    </option>
									    <?php 
									    $show['title'.$level] = $row['title'.$level];
								    }
							     } 
						    } ?>
					    </select>
            <?php } else {  ?> 
              <input type="hidden" name="idparent" value="0" />
            <?php } ?>
				  </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Titre secondaire</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre secondaire" name="sub_title" size="40" id="sub_title" value="<?php echo $this->populateData['sub_title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <input type="hidden" value="<?php echo $this->populateData['id']; ?>" name="id" />
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-edit"></span> Modifier
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>PKc�G[�I��� scripts/annoncefooter/list.phtmlnu&1i� <div class="table-box">
	<?php if ($this->populateFormAnnonceFooter['TITRE']) { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter/edit" method="post" name="editAnnonceForm" >
	<?php } else { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter/add" method="post" name="addAnnonceForm" >
	<?php } ?>
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input class="form-control" type="text" class="form-control"  placeholder="Titre de l'information"  name="titre" size="40" id="titre" value="<?php echo $this->populateFormAnnonceFooter['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceFooter['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceFooter['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4">Localisation</td>
				<td class="col-md-8">
					<div class="col-md-6 no-space-top">
						<?php $tabController = explode(';',$this->populateFormAnnonceFooter['CONT_NAME']); 
						$selectedController = array();
						for ($i=0;$i<sizeof($tabController);$i++) {
							$selectedController[$tabController[$i]] = true;
						}
						?>
							<select class="form-control" size="10" name="controllername[]"  multiple="multiple">
								<option value="index" <?php if (isset($selectedController['index'])) {echo 'selected="selected"';} ?> >Accueil</option>
								<option value="user" <?php if (isset($selectedController['user'])) {echo 'selected="selected"';} ?>>Compte</option>
								<option value="produits" <?php if (isset($selectedController['produits'])) {echo 'selected="selected"';} ?>>Produits</option>
								<option value="commande" <?php if (isset($selectedController['commande'])) {echo 'selected="selected"';} ?>>Commande</option>
								<option value="services" <?php if (isset($selectedController['services'])) {echo 'selected="selected"';} ?>>Services</option>
								<option value="produitspromotion" <?php if (isset($selectedController['produitspromotion'])) {echo 'selected="selected"';} ?>>Promotions</option>
								
							</select>
					</div>
					<div class="col-md-6 no-space-top">	
						<?php if (isset($selectedController['produits'])) { 
							$tabCategorie = explode(';',$this->populateFormAnnonceFooter['CAT_ID']); 
							$selectedCategorie = array();
							for ($i=0;$i<sizeof($tabCategorie);$i++) {
								$selectedCategorie[$tabCategorie[$i]] = true;
							}
							
							?>
							<div class="col-md-2 no-space-top">Produits</div>
							<div class="col-md-10 no-space-top">
								<select class="form-control" size="10" name="categorie[]"  multiple="multiple">
									<option value="1" <?php if (isset($selectedCategorie[1])) {echo 'selected="selected"';} ?> >Manutention, levage</option>
									<option value="2" <?php if (isset($selectedCategorie[2])) {echo 'selected="selected"';} ?> >Pr�vention de l'environnement</option>
									<option value="3" <?php if (isset($selectedCategorie[3])) {echo 'selected="selected"';} ?> >Stockage, rayonnage</option>
									<option value="4" <?php if (isset($selectedCategorie[4])) {echo 'selected="selected"';} ?> >Entretien, propret�</option>
									<option value="5" <?php if (isset($selectedCategorie[5])) {echo 'selected="selected"';} ?> >Protection, s�curit�</option>
									<option value="6" <?php if (isset($selectedCategorie[6])) {echo 'selected="selected"';} ?> >Emballage</option>
									<option value="7" <?php if (isset($selectedCategorie[7])) {echo 'selected="selected"';} ?> >Outillage</option>
									<option value="8" <?php if (isset($selectedCategorie[8])) {echo 'selected="selected"';} ?> >Mobilier d'atelier</option>
									<option value="9" <?php if (isset($selectedCategorie[9])) {echo 'selected="selected"';} ?> >Mobilier de bureau et de collectivit�</option>
								</select>
							</div>
						<?php } ?>
					</div>
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				<td class="col-md-8">
						<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
						<?php if (isset($this->populateFormAnnonceFooter['CONTENT']) && !empty($this->populateFormAnnonceFooter['CONTENT'])) { 
							 echo $this->populateFormAnnonceFooter['CONTENT']; 
						} ?>
						</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<?php if ($this->populateFormAnnonceFooter['TITRE']) { ?>
						<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceFooter['ID'];?>">
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
					<?php } else { ?>
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<?php } ?>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#annonceContent');
});
</script>

 <div class="table-box">
<table class="display table" id="annonceFooterTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listannoncefooter as $row)  { ?>
		<tr>
			<td><?php echo $row['TITRE'];?></td>
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('annonceFooterTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>
PKc�G[��4a4ascripts/user/edit.phtmlnu&1i�
<div class="table-box">	
	<div class="col-md-12 no-space-side">
		<div class="tabs-section ">
			<ul class="nav nav-tabs" id="myTab">
				<li class="active"><a href="#tabs-user" data-toggle="tab">Informations</a></li>
				<li><a href="#tabs-panier" data-toggle="tab">Panier personnalis�</a></li>
				<li><a href="#tabs-remises" data-toggle="tab">Remises en cours</a></li>
				<li><a href="#tabs-fidelitypoint" data-toggle="tab">Carte fid�lit�</a></li>
			</ul>
			<div class="tab-content">
        
				<div class="tab-pane active" id="tabs-user">
					<section class="boxpadding">
						<form action="<?php echo $this->baseUrl; ?>/backoffice/user/edituser#tabs-user" method="post">
							<table class="table">
								<?php echo $this->render("alert_tr.phtml"); ?>	
								<tr>
									<td class="col-md-4"><label for="civility">Civilit�</label></td>
									<td class="col-md-8">
										<select name="civility" id="civility" class="form-control">
											<option value="Mr" <?php if ($this->populateForm['CIVILITE'] == 'Mr') { echo 'selected'; } ?>>Monsieur</option>
											<option value="Mme" <?php if ($this->populateForm['CIVILITE'] == 'Mme') { echo 'selected'; } ?>>Madame</option>
											<option value="Mlle" <?php if ($this->populateForm['CIVILITE'] == 'Mlle') { echo 'selected'; } ?>>Mademoiselle</option>
										</select>
									</td>
								</tr>
								<tr>
									<td ><label for="numcompte">Num�ro du compte</label></td>
									<td>
										<input type="text" class="form-control" name="numcompte" id="numcompte"  value="<?php echo $this->populateForm['NUMCOMPTE']; ?>">
									</td>
								</tr>
								<tr >
									<td >
										<label for="lastname">Nom</label>
									</td>
									<td>
										<input type="text"  class="form-control"  name="lastname" id="lastname" value="<?php echo $this->populateForm['NOM']; ?>"/>
									</td>
								</tr>
								<tr >
									<td>
										<label for="firstname">Pr�nom</label>
									</td>
									<td>
										<input type="text" class="form-control" name="firstname" id="firstname" value="<?php echo $this->populateForm['PRENOM']; ?>"/>
									</td>
								</tr>
								<tr >
									<td>
										<label for="email">Email</label>
									</td>
									<td>
										<input type="text" class="form-control"  name="email" id="email" value="<?php echo $this->populateForm['EMAIL']; ?>"/>
									</td>
								</tr>
								<tr >
									<td>
										<label for="tel">T�l�phone</label>
									</td>
									<td>
										<input type="text" class="form-control"  name="tel" id="tel"  maxlength="10"  value="<?php echo $this->populateForm['TEL']; ?>"/>
									</td>
								</tr>
								<tr>
									<td><label for="fax">Fax</label></td>
									<td>
										<input type="text" class="form-control" name="fax" id="fax" maxlength="10"  value="<?php echo $this->populateForm['FAX']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="fct">Fonction : </label></td>
									<td>
										<input type="text" class="form-control" name="fct" id="fct"  value="<?php echo $this->populateForm['FONCTION']; ?>">
									</td>
								</tr>
								<tr>
									<td ><label for="raisonsocial">Raison sociale :</label></td>
									<td>
										<input type="text" class="form-control" name="raisonsocial" id="raisonsocial"  value="<?php echo $this->populateForm['RAISONSOCIAL']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="adressecomplete">Adresse</label></td>
									<td>
										<input type="text" class="form-control" name="adressecomplete" id="adressecomplete"  value="<?php echo $this->populateForm['ADRESSECOMPLETE']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="adresse">Rue</label></td>
									<td>
										<input type="text" class="form-control" name="adresse" id="adresse"  value="<?php echo $this->populateForm['ADRESSE']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="cp">Code postal</label></td>
									<td>
										<input type="text" class="form-control" name="cp" id="cp"  value="<?php echo $this->populateForm['CP']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="ville">Ville</label></td>
									<td>
										<input type="text" class="form-control" name="ville" id="ville"  value="<?php echo $this->populateForm['VILLE']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="departement">D�partement</label></td>
									<td>
										<input type="text" class="form-control" name="departement" id="departement"  value="<?php echo $this->populateForm['DEPARTEMENT']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="region">R�gion</label></td>
									<td>
										<input type="text" class="form-control" name="region" id="region"  value="<?php echo $this->populateForm['REGION']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="pays">Pays</label></td>
									<td>
										<input type="text" class="form-control" name="pays" id="pays" maxlength="10" value="<?php echo $this->populateForm['PAYS']; ?>" >
									</td>
								</tr>
								<tr>
									<td><label for="siret">SIRET</label></td>
									<td>
										<input type="text" class="form-control" name="siret" id="siret"  value="<?php echo $this->populateForm['SIRET']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="numidfisc">Num�ro d'identification fiscale</label></td>
									<td>
										<input type="text" class="form-control" name="numidfisc" id="numidfisc"  value="<?php echo $this->populateForm['NUMIDFISC']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="codeape">Code APE</label></td>
									<td>
										<input type="text" class="form-control" name="codeape" id="codeape"  value="<?php echo $this->populateForm['CODEAPE']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="sectactivite">Secteur d'activit�</label></td>
									<td>
										<input type="text" class="form-control" name="sectactivite" id="sectactivite"  value="<?php echo $this->populateForm['SECTACTIVITE']; ?>">
									</td>
								</tr>
								<tr>
									<td><label for="comm">Commentaires</label></td>
									<td>
										<textarea class="form-control" name="comm" id="comm" ><?php echo $this->populateForm['COMMENTAIRE']; ?></textarea>
									</td>
								</tr>
								<tr>
									<td><label for="cintern">Code Interne</label></td>
									<td>
										<select name="cintern" id="cintern" class="form-control">
											<option value="0">Selectionner un Code Interne</option>
											
											<?php foreach ($this->listCodeIntern as $row) { ?>
											<option value="<?php echo $row['ID']; ?>" <?php if ($row['ID'] == $this->populateForm['CODEINTERN']) { echo 'selected="selected"'; } ?> >
											<?php echo $row['CODE'].' - '.$row['LABEL']; ?>
											</option>
											<?php } ?>
										</select>
									</td>
								</tr>
								<tr>
									<td><label>Type</label></td>
									<td>
										<INPUT type=radio class="bluecheckradios" name="typeuser" id="typeuserPart" value="Particulier" <?php if ($this->populateForm['TYPE'] == 'Particulier') { echo 'checked="checked"'; } ?> ><label for="typeuserPart">&nbsp;Particulier</label>
										<INPUT type=radio class="bluecheckradios" name="typeuser" id="typeuserPro" value="Professionnel" <?php if ($this->populateForm['TYPE'] == 'Professionnel') { echo 'checked="checked"'; } ?> ><label for="typeuserPro">&nbsp;Professionnel</label>
									</td>
								</tr>
								<tr>
									<td><label>Activer "A r�ception de la facture"</label></td>
									<td>
										<INPUT type=radio class="bluecheckradios" name="isrecepfacture" id="isrecepfacture1"  value="Y" <?php if ($this->populateForm['isRECEPFACTURE'] == 'Y') { echo 'checked="checked"'; } ?> ><label for="isrecepfacture1">&nbsp;Oui</label>
										<INPUT type=radio class="bluecheckradios" name="isrecepfacture" id="isrecepfacture2" value="N" <?php if ($this->populateForm['isRECEPFACTURE'] == 'N') { echo 'checked="checked"'; } ?> ><label for="isrecepfacture2">&nbsp;Non</label>
									</td>
								</tr>
								<tr>
									<td><label>Activer "Paiement diff�r�"</label></td>
									<td>
										<INPUT type=radio class="bluecheckradios" name="iscredit" id="iscredit1" value="1" <?php if ($this->populateForm['isCREDIT'] == 1) { echo 'checked="checked"'; } ?> ><label for="iscredit1">&nbsp;Oui</label>
										<INPUT type=radio class="bluecheckradios" name="iscredit" id="iscredit2" value="0" <?php if ($this->populateForm['isCREDIT'] == 0) { echo 'checked="checked"'; } ?> ><label for="iscredit2">&nbsp;Non</label>
									</td>
								</tr>
								<tr >
									<td><label>Mode de paiement</label></td>
									<td>
										<table class="table">
											<tr class="nostriped">
												<td ><label for="modepaiement1">Paiement en ligne</label></td>
												<td>
													<input type="radio" class="bluecheckradios" id="modepaiement1" name="modepaiement" <?php if ($this->populateForm['MODEPAIEMENT'] == 1) { echo 'checked="checked"'; } ?> value="1">
												</td>
											</tr>
											<tr class="nostriped">
												<td><label for="modepaiement2">Contre remboursement</label></td>
												<td >
													<input type="radio" class="bluecheckradios" id="modepaiement2" name="modepaiement" <?php if ($this->populateForm['MODEPAIEMENT'] == 2) { echo 'checked="checked"'; } ?> value="2">
												</td>
											</tr>
											<tr class="nostriped">
												<td><label for="modepaiement3">A r�ception de la facture</label></td>
												<td >
													<input type="radio" class="bluecheckradios" id="modepaiement3" name="modepaiement" <?php if ($this->populateForm['MODEPAIEMENT'] == 6) { echo 'checked="checked"'; } ?> value="6">
												</td>
											</tr>
											<tr class="nostriped">
												<td><label>Paiement diff�r� de</label></td>
												<td>
													<table class="table">
														<tr class="nostriped">
															<td><label for="modepaiement4">30 jours</label></td>
															<td>
																<input type="radio" class="bluecheckradios" id="modepaiement4" name="modepaiement" <?php if ($this->populateForm['MODEPAIEMENT'] == 3) { echo 'checked="checked"'; } ?> value="3">
															</td>
														</tr>
														<tr class="nostriped">
															<td ><label for="modepaiement5">45 jours</label></td>
															<td>
																<input type="radio" class="bluecheckradios" id="modepaiement5" name="modepaiement" <?php if ($this->populateForm['MODEPAIEMENT'] == 4) { echo 'checked="checked"'; } ?> value="4">
															</td>
														</tr>
														<tr class="nostriped">
															<td ><label for="modepaiement6">60 jours</label></td>
															<td>
																<input type="radio" class="bluecheckradios" id="modepaiement6" name="modepaiement" <?php if ($this->populateForm['MODEPAIEMENT'] == 5) { echo 'checked="checked"'; } ?> value="5">
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td colspan="2" class="text-center">
										<input type="hidden" name="id" id="id" value="<?php echo $this->populateForm['ID']; ?>">
										<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
									</td>
								</tr>
							</table>
						</form> 
					</section>
				</div>
        
				<div class="tab-pane" id="tabs-panier">
					<section class="boxpadding">
						<?php echo $this->render("alert.phtml"); ?>	
						  <form action="<?php echo $this->baseUrl; ?>/backoffice/user/panieractiveall#tabs-panier" method="post">
							  <table  class="table">
								  <tr>
									  <td><label>Statut du panier personnalis�</label></td>
									  <td > 
										  <input type="radio" class="bluecheckradios" name="isActif" id="isActif1" value="Y" <?php if ($this->populateForm['isCADDYTYPE'] == 'Y') {echo 'checked="checked"'; } ?> /><label for="isActif1">&nbsp;Actif</label>
										  <input type="radio" class="bluecheckradios" name="isActif" id="isActif2" value="N" <?php if ($this->populateForm['isCADDYTYPE'] == 'N') {echo 'checked="checked"'; } ?>/><label for="isActif2">&nbsp;Inactif</label>
									  </td> 
									  <td >
										  <input type="hidden" name="id" id="id" value="<?php echo $this->populateForm['ID']; ?>"> 
										  <button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
									  </td>
								  </tr>
							  </table>
						  </form>   
						  <form action="<?php echo $this->baseUrl; ?>/backoffice/user/panieradd#tabs-panier" method="post">
							  <table  class="table">
								  <tr>
									  <td ><label for="reference">R�f�rence</label></td>
									  <td><input placeholder="R�f�rence du produit � remiser" type="text" name="reference" id="reference" class="form-control"></td>
									  <td> 
										  <div class="col-md-6 no-space-top">
											  <div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
											  <div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
										  </div>
										  <div class="col-md-6 no-space-top">
											  <div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
											  <div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
										  </div>
									  </td> 
									  <td>
										  <input type="hidden" name="id" id="id" value="<?php echo $this->populateForm['ID']; ?>"> 
										  <button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
									  </td>
								  </tr>
							  </table>
						  </form>   
							<?php if ($this->caddyType) { $caddyType = $this->caddyType; ?>
							<table class="table">
								<thead>
									<tr>
										<th></th>
										<th style="width:400px;">Produit</th>
										<th class="text-center">Prix</th> 
										<th class="text-center">Remise</th>  
										<th class="text-center">Statut</th>
										<th >Quantit�</th> 
										<th class="text-center">Remises</th> 
										<th ></th> 
									</tr>
								</thead>
								<tbody>
									<?php
									$index = 1; 
									foreach($caddyType->facture_lines as $row) { ?>
									<tr>
										<td>
											<?php if (isset($row->item_isAccessoire) && $row->item_isAccessoire == "N") { ?>
												<ul class="gallerybox ">
												  	<li>
														<figure>
															<a target="_blank" href="<?php echo $this->baseUrl."/backoffice/product/edit/showProduct/".$row->product_id; ?>" >
																<img src="<?php echo $this->baseUrl.'/'.$row->product_url; ?>">
															</a>
														</figure>
													</li>
												</ul>
											<?php } ?>
										</td>
										<td>
											<?php echo $row->item_designation;?><br/><br/>
											<?php echo "Ref. ".$this->escape($row->item_reference);?>
										</td> 
										<td >
											<?php  if ($row->isPromo()) { 
										 		$prix = $row->getPrixAfterRemise(); ?>
										 		<div class="text-remise">
											 		 <div class="text-remise-price" <?php if ($prix < 0) { echo 'style="color:red;"'; } ?>>
													 	<?php echo number_format($prix, 2, ',', ' ').' ';?>&#8364;
													 </div>
													 <div class="text-remise-price-old" <?php if ($prix < 0) { echo 'style="color:red;"'; } ?>>
													 	<?php echo number_format($row->item_prix, 2, ',', ' ').' ';?>&#8364;
													 </div>
										 		</div> 
												<?php } else { ?>
													<div class="text-no-remise">
														<?php echo number_format($row->item_prix, 2, ',', ' ').' ';?>&#8364;
													</div>
												<?php }  ?>
										</td>  
										<td   >
											<?php if ($this->escape($row->remise_euro) > 0 ) { echo $this->escape($row->remise_euro)."&nbsp;&#8364;"; } ?>
											<?php if ($this->escape($row->remise_pour) > 0 ) { echo $this->escape($row->remise_pour)."&nbsp;%"; } ?>
										</td> 								
										<td >
											<?php if ($row->isCaddyTypeActif()) { ?>
											<form action="<?php echo $this->baseUrl; ?>/backoffice/user/panieractive#tabs-panier" method="post">
												<input type="hidden" value="<?php echo $row->caddytype_id; ?>" name="idcaddy">
												<input type="hidden" value="<?php echo $caddyType->user_id; ?>" name="id">
												<input type="hidden" value="N" name="isActif">
												<button class="btn btn-danger" type="submit" name="edit"><i class="glyphicon glyphicon-resize-full"></i>&nbsp;D�sactiver</button>
											</form> 
											<?php } else { ?> 
											<form action="<?php echo $this->baseUrl; ?>/backoffice/user/panieractive#tabs-panier" method="post">
												<input type="hidden" value="<?php echo $row->caddytype_id; ?>" name="idcaddy">
												<input type="hidden" value="<?php echo $caddyType->user_id; ?>" name="id">
												<input type="hidden" value="Y" name="isActif">
												<button class="btn btn-primary" type="submit" name="edit"><i class="glyphicon glyphicon-resize-small"></i>&nbsp;Activer</button>
											</form> 
											<?php }?> 
										</td>
										<td class="text-center"> <?php echo $row->caddytype_qte_total; ?> </td>
										<td > 
											<form action="<?php echo $this->baseUrl; ?>/backoffice/user/panieredit#tabs-panier" method="post">
												<div class="col-md-12 no-space-top">
													<div class="col-md-4 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
													<div class="col-md-7 no-space-top"><input placeholder="Remise en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
												</div>
												<div class="col-md-12 no-space-top">
													<div class="col-md-4 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
													<div class="col-md-7 no-space-top"><input placeholder="Remise en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
												</div>
												<div class="col-md-12 no-space-top text-center">
													<input type="hidden" value="<?php echo $row->caddytype_id; ?>" name="idcaddy">
													<input type="hidden" value="<?php echo $caddyType->user_id; ?>" name="id">
													<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
												</div>
											</form>
										</td> 
										<td>
											<form action="<?php echo $this->baseUrl; ?>/backoffice/user/panierdel#tabs-panier" method="post" id="delRemisePanier<?php echo $index; ?>">
												<input type="hidden" value="<?php echo $row->caddytype_id; ?>" name="idcaddy">
												<input type="hidden" value="<?php echo $caddyType->user_id; ?>" name="id">
												<button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delRemisePanier<?php echo $index; ?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer</button>
											</form>
										</td>
									</tr>
									<?php $index++;} ?>
								</tbody>
							</table>
							<?php } ?> 
					</section>
				</div>
        
				<div class="tab-pane" id="tabs-remises">
					<section class="boxpadding">
						<?php $isOneRemise = false; ?>
						<table  class="table">
							<?php if ($this->listUser) { $isOneRemise = true; $listUser = $this->listUser; ?>
							<tr >
								<td >Remise sur les commandes</td>
								<td >
									<?php if ($this->escape($listUser['REMISEEURO']) > 0 ) { echo $this->escape($listUser['REMISEEURO'])."&nbsp;&#8364;"; } ?>
									<?php if ($this->escape($listUser['REMISEPOUR']) > 0 ) { echo $this->escape($listUser['REMISEPOUR'])."&nbsp;%"; } ?>
								</td>
							</tr>
							<?php } 
							if ($this->listUserBrend) { $isOneRemise = true; $listUserBrend = $this->listUserBrend;
								foreach($listUserBrend as $row) {  ?>
							<tr >
								<td >Pour les produits de la marque 
									<a class="btn btn-primary" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
										<?php echo $row['BREND']; ?>
									</a>
								</td>
								<td > 
									<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
									<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?>
								</td>
							</tr>
							<?php }}
							if ($this->listCinternBrend) {  $isOneRemise = true; $listCinternBrend = $this->listCinternBrend;
							foreach($listCinternBrend as $row) {
							?>
							<tr >
								<td >Pour le code interne 
									<a class="btn btn-primary" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne">
										<?php echo $row['CODEINTERN'].' - '.$row['LABELINTERN'];?>
									</a>	
									et produits de la marque 
									<a class="btn btn-primary" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
										<?php echo $row['BREND']; ?>
									</a> 
								</td>
								<td > 
									<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
									<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?>
								</td>
							</tr>
							<?php } } ?> 
							<?php if (!$isOneRemise) { ?> 
								<tr><td colspan="2">Aucune remise n'est associ�e au client</td> </tr>
							<?php } ?>
						</table> 
					</section>
				</div>

        <div class="tab-pane" id="tabs-fidelitypoint">
          <section class="boxpadding">
            <div style="padding:10px;">
                <div>Nombre de points : <?php echo $this->userfidelite['POINTFIDELITETOTAL']; ?></div>
              
              <?php if (isset($this->listcommandfidelite) && !empty($this->listcommandfidelite)) { ?>
              <div class="col-md-12">
                <table class="display table" id="commandfideliteTable" width="100%">
	                <thead>
		                <tr>
			                <th class="text-center">R�f�rence</th>
			                <th class="text-center">Client</th>
                      <th class="no-wrap text-center">Date de la commande</th>
		                </tr>
	                </thead>
	                <tbody>
		                <?php foreach($this->listcommandfidelite as $row) { ?> 
		                <tr>
			                <td class="text-center"> <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row['REFERENCE']);?></a></td>
			                <td class="text-center"><a class="btn btn-primary " href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row['IDUSER']; ?>" ><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row['USER_NOM'].' '.$row['USER_PRENOM'];?></a></td>
                      <td class="text-center"><?php 
			                $myDate = new Zend_Date(strtotime($row['DATESTART']));
			                $mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			                $moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			                echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
				
			                ?></td>
		                </tr>
		                <?php } ?>
	                </tbody>
                </table>
              </div>
              <?php } ?>
            </div>
          </section>
			  </div>
        
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
  $(function(){
  initTabs(window.location.hash);
  initDataTable('commandfideliteTable', [[ 0, "asc" ]], [{ "orderable": true, "targets": -1, "width": "270px" }]);
  });
</script>
		PKc�G[�[�t
t
scripts/user/list.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/NOM">Nom</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/PRENOM">Pr�nom</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/RAISONSOCIAL">Raison sociale</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/TYPE">Type</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/EMAIL">Email</a></th>
			<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/TEL">Tel</a></th>
			<th></th>
		</tr> 	
	</thead>
	<tbody>
	
		<?php foreach($this->paginator as $row)  { ?>
		<tr>
			<td><?php echo $row->NOM;?></td>
			<td><?php echo $row->PRENOM;?></td>
			<td><?php echo $row->RAISONSOCIAL;?></td>
			<td><?php echo $this->escape($row->TYPE);?></td>
			<td><?php echo $this->escape($row->EMAIL);?></td>
			<td><?php echo $this->escape($row->TEL);?></td>
			<td class="text-center no-space-side">
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
				  	<?php if ($this->escape($row->isBAN) == 1) { ?>
			        	<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/user/ban/id/<?php echo $row->ID; ?>/ban/0/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-ban-circle"></span> Bannir</a>
			        <?php } else { ?>
			       		<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/user/ban/id/<?php echo $row->ID; ?>/ban/1/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-ok-sign"></span> D�bannir</a>
			         <?php } ?>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/user/del/id/<?php echo $row->ID; ?>/page/<?php echo  $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>PKc�G[scripts/user/newsletter.phtmlnu&1i�PKc�G[gr�++scripts/user/guest.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th>Informations</th>
			<th>Email</th>
			<th>Action</th>
		</tr> 	
	</thead>
	<tbody>
	
		<?php foreach($this->paginator as $row)  { ?>
		<tr>
			<td><?php echo $row->INFORMATION;?></td>
			<td><?php echo $row->EMAIL;?></td>
			<td><?php echo $row->ACTION;?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>PKc�G[����00scripts/user/search.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/user/search">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-12"> 
					<div class="col-md-6 no-space-top"><input type="text" class="form-control" placeholder="Rechercher un nom, un pr�nom, un email, un t�l�phone ou une adresse" size="50" value="" id="searchValue" name="searchValue"></div>
					<div class="col-md-6 text-center no-space-top">
						<button type="submit" name="search"  class="btn btn-primary">
						  <span class="glyphicon glyphicon-search"></span> Rechercher
						</button>				
					</div>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<div class="table-box">
<table class="display table" id="userSearchTable" width="100%">
	<thead>
		<tr>
			<th>Nom</th>
			<th>Pr�nom</th>
			<th>Email</th>
			<th>Tel</th>
			<th>Adresse</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listSearch as $row)  { ?>
		<tr>
			<td><?php echo $row->NOM;?></td>
			<td><?php echo $row->PRENOM;?></td>
			<td><?php echo $row->EMAIL;?></td>
			<td><?php echo $row->TEL;?></td>
			<td><?php echo $row->ADRESSE;?></td>
			<td class="text-center no-space-side">
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('userSearchTable', [[ 0, "asc" ]], [ { "orderable": false, "targets": -1}]); 	    
	});
</script>
</div>
PKc�G[�q��yyscripts/user/codeinterne.phtmlnu&1i� <div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td>
					<div class="col-md-6 no-space-top">
						<div class="col-md-4 no-space-top"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Code</div>
						<div class="col-md-8 no-space-top"><input type="text" class="form-control" placeholder="Code interne pouvant �tre associ� au client"  name="code" id="code" value="" size="20" ></div>
					</div>					
					<div class="col-md-6 no-space-top">
						<div class="col-md-4 no-space-top"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Description</div>
						<div class="col-md-8 no-space-top"><input type="text" class="form-control" placeholder="Description du code interne" name="label" id="label" value="" size="60" ></div>
					</div>
				</td>
			</tr>
			<tr class="nostriped">
				<td class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="optionTable" width="100%">
	<thead>
		<tr>
			<th>Codes internes</th> 
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listcodeintern as $row)  { ?>
		<tr>
			<td>
				<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterneedit">
					<div class="col-md-5 no-space-top">
						<div class="col-md-4 no-space-top"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Code</div>
						<div class="col-md-8 no-space-top"><input type="text" class="form-control" size="20" name="code" id="code" value="<?php echo $this->escape($row['CODE']);?>"></div>
					</div>					
					<div class="col-md-5 no-space-top">
						<div class="col-md-4 no-space-top"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Description</div>
						<div class="col-md-8 no-space-top"><input type="text" class="form-control"  size="60" name="label" id="label" value="<?php echo $this->escape($row['LABEL']);?>"></div>
					</div>
					<div class="col-md-2 no-space-top">
						<input type="hidden" name="id" id="id" value="<?php echo $this->escape($row['ID']);?>">
						<div class="btn-group">
							<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
							<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/user/codeinternedel/id/<?php echo $this->escape($row['ID']);?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>PKc�G[�q��� scripts/productglobal/list.phtmlnu&1i�<div class="table-box">
 	<table  class="table">
 		<tr><td><h5>Augmentation g�n�rale du prix des produits</h5></td></tr>
		<?php echo $this->render("alert_tr.phtml"); ?>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/addpricecategory" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>De la cat�gorie</label></div>
						<div class="col-md-4 no-space-top">
							<select name="listcategory" class="form-control">
								<option value="none">Aucun</option>
								<option value="0">Tous</option>
								<?php 
								$show = array();
								foreach($this->listallcategories as $row) { 
								 	for ($level=0 ; $level<11; $level++) { 
										if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
										?>
											<option value="<?php echo $this->escape($row['ID'.$level]); ?>">
												<?php 
								 				for ($i=0 ; $i<$level; $i++) { 
													echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
												}
												echo $this->escape($row['NOM'.$level]); ?>
											
											</option>
											<?php 
											$show['NOM'.$level] = $row['NOM'.$level];
										}
									 } 
								} ?>
							</select>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-6 no-space-top">
								<label >Pourcentage de prix&nbsp;% </label>
							</div>
							<div class="col-md-3 no-space-top">
								<select class="form-control" name="pricesign">
									<option>+</option>
									<option>-</option>
								</select>
							</div>
							<div class="col-md-3 no-space-top">
								<input class="form-control" type="text" size="2" name="pricepour" id="pricepour" value="" maxlength="2">
							</div>
						</div>
						<div class="col-md-2 no-space-top text-center">
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/addpricebrend" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>De la marque</label></div>
						<div class="col-md-4 no-space-top">
							<select name="listbrend" class="form-control">
								<option value="none">Aucun</option>
									<?php foreach($this->listbrend as $row) { ?>
									<option value="<?php echo $this->escape($row['ID']); ?>" >
										<?php echo $this->escape($row['BREND']); ?>
									</option>
									<?php } ?>
							</select>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-6 no-space-top">
								<label >Pourcentage de prix&nbsp;% </label>
							</div>
							<div class="col-md-3 no-space-top">
								<select class="form-control" name="pricesign">
									<option>+</option>
									<option>-</option>
								</select>
							</div>
							<div class="col-md-3 no-space-top">
								<input class="form-control" type="text" size="2" name="pricepour" id="pricepour" value="" maxlength="2">
							</div>
						</div>
						<div class="col-md-2 no-space-top text-center">
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
 		<tr><td><h5>Grille de frais de livraison </h5></td></tr>
		<tr>
			<td>
			<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commandadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Frais de livraison</label></div>
						<div class="col-md-3 no-space-top">Quand le MONTANT TOTAL de la commande est inf�rieur � </div>
						<div class="col-md-4 no-space-top"><input placeholder="Montant de la commande" type="text" class="form-control" name="montantfrais" value="" /></div>
						<div class="col-md-3 no-space-top">&nbsp;&#8364;, les frais de livraison sont de </div>
					</div>
					<div class="col-md-12">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="4" name="remise" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
					
			</form>
			</td>
		</tr>
 		<tr><td><h5>Validation de la commande</h5></td></tr>
		<tr>
			<td>
			<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commandadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Commande</label></div>
						<div class="col-md-3 no-space-top">Quand le MONTANT TOTAL de la commande est inf�rieur � </div>
						<div class="col-md-4 no-space-top"><input placeholder="Montant de la commande" type="text" class="form-control" name="montantfrais" value="" /></div>
						<div class="col-md-3 no-space-top">&nbsp;&#8364;, la commande n'est pas valide </div>
					</div>
					<div class="col-md-12 no-space-top text-right">
						<input type="hidden" value="5" name="remise" />
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					</div>
					
			</form>
			</td>
		</tr>
	</table>
</div>
<div class="table-box">
	<table class="table">
 		<tr><td colspan="2"><h5>Remises effectives</h5></td></tr>
	 <?php 
		if ($this->remiseFrais) { 
			$remise = $this->remiseFrais;
			foreach($remise as $row) :
			?>
		<tr >
			<td >Si le MONTANT TOTAL de la commande est < <b><?php echo $row['MONTANTFRAISCMD'];?>&nbsp;&#8364;</b> les frais de livraison sont de 
				<b><?php if ($row['REMISEPOUR']>0) {echo $row['REMISEPOUR'].'&nbsp;%';} else {echo $row['REMISEEURO'].'&nbsp;&#8364;';} ?></b> du MONTANT TOTAL
			</td>
			<td class="text-center">
				<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commanddel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
			</td>
		</tr>
		<?php endforeach; }
		if ($this->validCommand) { 
			$validCommand = $this->validCommand;
			?>
			<tr >
				<td >Si le MONTANT TOTAL de la commande est < <b><?php echo $validCommand['MONTANTVALID'];?>&nbsp;&#8364;</b>, la commande n'est pas valide 
				</td>
				<td class="text-center">
					<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commanddel/id/<?php echo $validCommand['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</td>
			</tr>
		<?php } ?>
 </table>
</div>

<table cellpadding="0" cellspacing="5" border="0" width="100%">
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	
	
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
</table>PKc�G[�4u/��scripts/footer/add.phtmlnu&1i� <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/add" method="post" name="addFooterForm" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre du pied de page" name="titre" size="40" id="titre" value="<?php echo $this->populateFormFooter['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Lien</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Lien direct vers une autre page" name="url" size="40" id="url" value="<?php echo $this->populateFormFooter['URL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Contenu</td>
				<td class="col-md-8"><textarea rows="30" placeholder="Ou �diter un contenu" class="form-control" cols="50" name="content" id="content"><?php echo $this->populateFormFooter['CONTENT']; ?></textarea></td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#content');
});
</script>
		PKc�G[7�#�33scripts/footer/doc.phtmlnu&1i� <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/adddoc" method="post" name="addDoc"  enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Document</td>
				<td class="col-md-8"><input type="file" name="file" id ="file" size="50" ><i>Extensions : pdf</i></td>
			</tr>
			<tr class="nostriped">
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="optionTable" width="100%">
	<thead>
		<tr>
			<th>Documents</th> 
		</tr>
	</thead>
	<tbody>
		<?php 
			$files = glob("doc/*.pdf");
			$count = 0;
			for ($i=0; $i <sizeof($files); $i++) {				
		?>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/deldoc" method="post" id="delDocForm<?php echo $count;?>">
				<div class="col-md-8 no-space-top"><a href="<?php echo '/'.$files[$i]; ?>" target="_blank"><?php echo '/'.$files[$i]; ?></a></div>
				<div class="col-md-4 no-space-top">
					<input type="hidden" name="doc" value="<?php echo $files[$i]; ?>" > 
					<div class="btn-group">
						<button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delDocForm<?php echo $count;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer</button>
					</div>
				</div>
				</form>
			</td>
		</tr>
		<?php $count++; } ?>
	</tbody>
</table>
</div>PKc�G[��oscripts/footer/list.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listfooter as $row)  { ?>
		<tr>
			<td><?php echo $this->escape($row['TITRE']);?></td>
			<td class="text-center">
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/footer/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/footer/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('supplierTable', [[ 0, "asc" ]], [
		                    		                { "orderable": false, "targets": -1, "width": "300px" }
		                    		              ]); 	    
	});
</script>
</div>
PKc�G[")�1==scripts/footer/edit.phtmlnu&1i� <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/edit" method="post" name="editFooterForm" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre du pied de page" name="titre" size="40" id="titre" value="<?php echo $this->populateFormFooter['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Lien</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Lien direct vers une autre page" name="url" size="40" id="url" value="<?php echo $this->populateFormFooter['URL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Contenu</td>
				<td class="col-md-8"><textarea rows="30" placeholder="Ou �diter un contenu" class="form-control" cols="50" name="content" id="content"><?php echo $this->populateFormFooter['CONTENT']; ?></textarea></td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<input type="hidden" name="id" id="id" value="<?php echo $this->populateFormFooter['ID']; ?>" >
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#content');
});
</script>PKc�G[�G���scripts/alert_tr1.phtmlnu&1i�<?php if (!empty($this->messageError) || !empty($this->messageSuccess)) { ?>
<tr>
	<td><?php echo $this->render("alert.phtml"); ?></td>
</tr>
<?php } ?>PKc�G[�I�|&&scripts/maintenance/index.phtmlnu&1i�
<div class="col-md-12">
  <span class="errorText">
    <?php echo $this -> messageError; ?>
  </span>
  <span class="successText">
    <?php echo $this -> messageSuccess; ?>
  </span>
</div>

<div class="col-md-12">
  <h1>Cat�gorie</h1>
  <div class="col-md-3">
    <div class="col-md-8">
      Cat�gorie : Lancer le recalcule des urls (Acc�s hi�rarchique)
    </div>
    <div class="col-md-4">
      <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/generatecategoryurlaccess" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
      </a>
    </div>
  </div>
</div>

<div class="col-md-12">
  <h1>Cat�gorie subsidiaire</h1>
  <div class="col-md-3">
    <div class="col-md-8">
      Cat�gorie subsidiaire : Lancer le recalcule des urls (Acc�s hi�rarchique)
    </div>
    <div class="col-md-4">
      <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/generatecategory2urlaccess" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
      </a>
    </div>
  </div>
</div>

<div class="col-md-12">
  <h1>Produit</h1>
  <div class="col-md-3">
    <div class="col-md-8">
      Produit - R�f�rence - Designation : Nettoyage de la r�f�rence des items
    </div>
    <div class="col-md-4">
      <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/cleanproductdesignationreference" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
      </a>
    </div>
  </div>
  <div class="col-md-3">
    <div class="col-md-8">
      Produit inactif => Produit actif + Disponibilit� : Epuis�
    </div>
    <div class="col-md-4">
      <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/productchangeinactivetoepuise" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
      </a>
    </div>
  </div>
  <div class="col-md-3">
    <div class="col-md-8">
      Calcul des meilleures ventes
    </div>
    <div class="col-md-4">
      <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/productcomputebestseller" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
      </a>
    </div>
  </div>
</div>

<div class="col-md-12">
  <h1>Images</h1>
  <div class="col-md-12">
    <div class="col-md-3">
      <div class="col-md-8">
        Image de produits - Renommage des noms de type date
      </div>
      <div class="col-md-4">
        <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/cleanproductimagename" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
        </a>
      </div>
    </div>
    <div class="col-md-3">
      <div class="col-md-8">
        Image de cat�gories - Renommage des noms de type date
      </div>
      <div class="col-md-4">
        <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/cleancategoryimagename" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
        </a>
      </div>
    </div>
    <div class="col-md-3">
      <div class="col-md-8">
        Image de cat�gories subsidiaire - Renommage des noms de type date
      </div>
      <div class="col-md-4">
        <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/cleancategorysubsimagename" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
        </a>
      </div>
    </div>
    <div class="col-md-3">
      <div class="col-md-8">
        Image de fournisseur - Renommage des noms de type date
      </div>
      <div class="col-md-4">
        <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/cleansupplierimagename" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
        </a>
      </div>
    </div>
  </div>
  <div class="col-md-12">
    <div class="col-md-3">
      <div class="col-md-8">
        Redimensionnement d'images (Width : <?php echo $this->FeaturePictureResizeWidth; ?>px, Height : <?php echo $this->FeaturePictureResizeHeight; ?>px) <br />Produits - Cat�gories - Cat�gories subsidiaires - Fournisseurs
      </div>
      <div class="col-md-4">
        <a href="<?php echo $this->baseUrl; ?>/backoffice/maintenance/resizepicture" class="btn btn-success"><i class="fa fa-gear"></i>&nbsp;Lancer
        </a>
      </div>
    </div>
  </div>


  <div class="col-md-12">
    <h1>Elastic search</h1>
    <div class="col-md-3">
        <div class="col-md-8">
          Indexation Globale
        </div>
        <div class="col-md-4">
          <a href="javascript:;" class="btn btn-success" onclick="sendRequest('<?php echo $this->baseUrl; ?>/backoffice/maintenance/elasticsearchglobaleindeaxation')"><i class="fa fa-gear"></i>&nbsp;Lancer</a>
        </div>
    </div>
  </div>

  <script type="text/javascript">
    function sendRequest(urlToSend) {
        $.ajax({
            url: urlToSend, 
            type: 'GET',
            async: true,
            success: function() {
              $(".successText").html( "La requete � �t� envoy�." );
            }
        });
    }
  </script>
</div>



PKc�G[�Q��/scripts/maintenance/generatenavnomproduct.phtmlnu&1i�<div style="clear: both;">
<span class="errorText"><?php echo $this -> messageError; ?></span>
<span class="successText"><?php echo $this -> messageSuccess; ?></span>

</div>
	PKc�G[.���!scripts/maintenance/message.phtmlnu&1i�<div style="clear: both;">
<span class="errorText"><?php echo $this -> messageError; ?></span>
<span class="successText"><?php echo $this -> messageSuccess; ?></span> 
</div>
	PKc�G[���scripts/annonceright/list.phtmlnu&1i�
<div class="table-box">
  <?php if ($this->populateFormAnnonce['NOM']) { ?>
  <form action="<?php echo $this->baseUrl; ?>/backoffice/annonceright/edit" method="post" name="editAnnonceForm" >
  <?php } else { ?>
  <form action="<?php echo $this->baseUrl; ?>/backoffice/annonceright/add" method="post" name="addAnnonceForm" >
    <?php } ?>
    <table class="table">
      <thead>
        <tr>
          <th colspan="2" class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
        <tr >
          <td class="col-md-4">
            <i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre
          </td>
          <td class="col-md-8">
            <input type="text" class="form-control" placeholder="Titre de l'annonce" name="nom" size="40" id="nom" value="<?php echo $this->populateFormAnnonce['NOM']; ?>"/>
          </td>
        </tr>
        <tr >
          <td class="col-md-4">
            <i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut
          </td>
          <td class="col-md-8">
            <input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonce['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
            <input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonce['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>

          </td>
        </tr>
        <tr >
          <td class="col-md-4">
            <i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu
          </td>
          <td class="col-md-8">
            <textarea  name="content" cols="130" rows="20" id="annonceright" name="annonceright">
              <?php if (isset($this->populateFormAnnonce['CONTENT']) && !empty($this->populateFormAnnonce['CONTENT'])) { 
							 echo $this->populateFormAnnonce['CONTENT']; 
						} ?>
            </textarea>
          </td>
        </tr>
        <?php if ($this->FeatureAnnonceRightPosition) { ?>
        <tr >
          <td class="col-md-4">
            <i class="glyphicon glyphicon-asterisk"></i>&nbsp;Position
          </td>
          <td class="col-md-8">
            <input type="radio" value="0" name="position" id="position1" class="bluecheckradios"  <?php if ($this->populateFormAnnonce['POSITION'] == 0) { echo 'checked="checked"';} ?>><label for="position1">&nbsp;Avant les produits</label>
            <input type="radio" value="1" name="position" id="position2" class="bluecheckradios" <?php if ($this->populateFormAnnonce['POSITION'] == 1) { echo 'checked="checked"';} ?>><label for="position2">&nbsp;Apr�s les produits</label>
          </td>
        </tr>
       <?php } else { ?>
          <input type="hidden"  name="position" value="0"/>
        <?php }?>
        <tr>
          <td colspan="2" class="text-center">
            <?php if ($this->populateFormAnnonce['NOM']) { ?>
            <input type="hidden" name="id" value="<?php echo $this->populateFormAnnonce['ID'];?>">
            <button class="btn btn-success" type="submit" name="edit">
              <i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier
            </button>
            <?php } else { ?>
            <button class="btn btn-success" type="submit" name="add">
              <i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter
            </button>
            <?php } ?>

          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
  $(function(){
  initEditor('#annonceright');
  });
</script>




<div class="table-box">
  <table class="display table" id="annoncerightTable" width="100%">
    <thead>
      <tr>
        <th>Titre</th>
        <th>Statut</th>
        <th></th>
      </tr>
    </thead>
    <tbody>

      <?php foreach($this->listannonce as $row)  { ?>
      <tr>
        <td>
          <?php echo $row['NOM'];?>
        </td>
        <td>
          <?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?>
        </td>
        <td>
          <div class="btn-group">
            <a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annonceright/edit/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier
            </a>
            <button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annonceright/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer
            </button>
          </div>
        </td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
  <script>
    $(document).ready(function() {
    initDataTable('annoncerightTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]);
    });
  </script>
</div>
PKc�G[��*<*<scripts/promotion/product.phtmlnu&1i�<div class="table-box">
 	<table  class="table">
 		<tr><td><h5>Remises associ�es aux produits</h5></td></tr>
		<?php echo $this->render("alert_tr.phtml"); ?>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/productadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Sur un produit</label></div>
						<div class="col-md-10 no-space-top"><input type="text" placeholder=" R�f�rence du produit" class="form-control" size="10" name="reference" id="reference" value=""></div>
					</div>
					<div class="col-md-12">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="1" name="promo" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/productadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Remise sur X selon Y</label></div>
						<div class="col-md-2 no-space-top"><label>Produit achet� par le client</label></div>
						<div class="col-md-4 no-space-top"><input type="text" placeholder="Quantit� du produit" class="form-control"  size="2" name="referencebuynb" id="referencebuynb" value="" /></div>
						<div class="col-md-4 no-space-top"><input placeholder="R�f�rence du produit" type="text" class="form-control" size="10" name="referencebuy" id="referencebuy" value="" /> </div>
					</div>
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-2 no-space-top"><label>Produit remis�</label></div>
						<div class="col-md-4 no-space-top"><input type="text" class="form-control" placeholder="Quantit� du produit" size="2" name="referencepromonb" id="referencepromonb" value="" /></div>
						<div class="col-md-4 no-space-top"><input type="text" placeholder="R�f�rence du produit" class="form-control" size="10" name="referencepromo" id="referencepromo" value="" /></div>
					</div>
					<div class="col-md-12">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="2" name="promo" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
					
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/productadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Remise par date</label></div>
						<div class="col-md-2 no-space-top"><label>Date de d�but</label></div>
						<div class="col-md-3 no-space-top"> 
							<input type="text" class="form-control" readonly="readonly" name="sdPicker" id="sdPicker" value="" maxlength="10" />
							<input type="hidden"  name="sd" id="sdPickerField" value="" maxlength="10" />
						</div>
						<div class="col-md-2 no-space-top"><label>Date de fin</label></div>
						<div class="col-md-3 no-space-top">
							<input type="text" class="form-control" readonly="readonly" name="edPicker" id="edPicker" value="" maxlength="10" />
							<input type="hidden"  name="ed" id="edPickerField" value="" maxlength="10" />
						</div>
					 </div>
					<div class="col-md-12">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="3" name="promo" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/productadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Sur une cat�gorie</label></div>
						<div class="col-md-10 no-space-top">
							<select name="listcategory" class="form-control">
								<option value="0">Aucun</option>
								<?php 
								$show = array();
								foreach($this->listallcategories as $row) { 
								 	for ($level=0 ; $level<11; $level++) { 
										if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
										?>
											<option value="<?php echo $this->escape($row['ID'.$level]); ?>">
												<?php 
								 				for ($i=0 ; $i<$level; $i++) { 
													echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
												}
												echo $this->escape($row['NOM'.$level]); ?>
											
											</option>
											<?php 
											$show['NOM'.$level] = $row['NOM'.$level];
										}
									 } 
								} ?>
							</select>
						</div>
					</div>
					<div class="col-md-12">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
						<input type="hidden" value="4" name="promo" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/productadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top"><label>Sur une marque</label></div>
						<div class="col-md-10 no-space-top">
							<select name="listbrend" class="form-control">
								<option value="0">Aucun</option>
									<?php foreach($this->listbrend as $row) { ?>
									<option value="<?php echo $this->escape($row['ID']); ?>" >
										<?php echo $this->escape($row['BREND']); ?>
									</option>
									<?php } ?>
							</select>
						</div>
					</div>
					<div class="col-md-12">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
						<input type="hidden" value="5" name="promo" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
	</table>
</div>
<div class="table-box">
	<table class="table">
 		<tr><td colspan="4"><h5>Remises effectives</h5></td></tr>
 		<?php 
			if ($this->listPromo1) {
			$listPromo1 = $this->listPromo1;
			foreach($listPromo1 as $row) { ?>
			<tr >
				<td > R�f�rence <a  href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>"><?php echo $this->escape($row['REFERENCE']);?></a>
				</td>
				<td >  Produit <a  href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>"><?php echo $this->escape($row['NOM']);?></a>
				</td>
				<td  > Remise de <b>
					<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
				 </td>
				<td class="text-center">
					<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/idref/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</td>
			</tr>
			<?php } } ?>
			
			<?php 
			if ($this->listPromo2) {
			$listPromo2 = $this->listPromo2;
			foreach($listPromo2 as $row) { ?>
			<tr >
				<td > 
						Si <b><?php echo $this->escape($row['CHILDREFBUYNB']);?></b> articles de la reference : <b><?php echo $this->escape($row['CHILDREFBUY']);?></b> sont achetes
				 </td>
				<td   >
					 <b><?php echo $this->escape($row['CHILDREFPROMONB']);?></b> articles de la reference : <b><?php echo $this->escape($row['CHILDREFPROMO']);?></b> ont une remise
				 </td>
				<td  >
					<div >Remise de <b>
					<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
					</div>
				</td>
				<td class="text-center">
			<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</td>
			</tr>
			<?php } } ?>
			<?php 
			if ($this->listPromo3) {
				$listPromo3 = $this->listPromo3;
				
				foreach($listPromo3 as $row) { 
				$myDate1 = new Zend_Date(strtotime($row['DATEPROMOSTART']));
				$myDate2 = new Zend_Date(strtotime($row['DATEPROMOEND']));
					?>
				<tr >
					<td > 
							Les produits o� la date de promo est comprise entre 
					 </td>
					 <td>
							<?php 
							$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
							$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
							?>
	 						<b><?php echo $myDate1->toString("dd").' '.$mois[(int)$myDate1->toString('MM')].' '.$myDate1->toString("YYYY");?></b> et 
							<b><?php echo $myDate2->toString("dd").' '.$mois[(int)$myDate2->toString('MM')].' '.$myDate2->toString("YYYY");?></b> 
					 </td>
					<td >
						 Remise de <b>
						<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
						<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
					</td>
					<td class="text-center">
						<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
					</td>
				</tr>
			<?php }   } ?>
			
			<?php 
			if ($this->listPromo4) {
			$listPromo4 = $this->listPromo4;
			foreach($listPromo4 as $row) { ?>
			<tr >
				<td  >
					 Les produits associ�s � la cat�gorie 
				 </td>
				 <td><b><?php echo $this->escape($row['NOMCATEGORY']);?></b></td>
				<td  > Remise de <b>
					<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
				</td>
				<td class="text-center">
					<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</td>
			</tr>
			<?php }   } ?>
			 
			<?php 
			if ($this->listPromo5) {
			$listPromo5 = $this->listPromo5;
			foreach($listPromo5 as $row) { ?>
			<tr >
				<td > 
					 Les produits associ�s � la marque 
				</td>
				<td><?php echo $this->escape($row['BREND']);?> </td>
				<td  > Remise de <b>
					<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?>
					</b>
				</td>
				<td class="text-center">
					<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</td>
			</tr>
			<?php }   } ?>
 	</table>
 </div>


<script type="text/javascript"> 
$(function(){
	$("#sdPicker").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#sdPickerField",
		dateFormat: 'DD, d MM, yy'
	});

	$("#edPicker").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#edPickerField",
		dateFormat: 'DD, d MM, yy'
	});
});


</script> 
   PKc�G[?�YY%scripts/promotion/codereduction.phtmlnu&1i�<div class="table-box">
 	<table  class="table">
 		<tr><td><h5>Remises par code de r�duction</h5></td></tr>
		<?php echo $this->render("alert_tr.phtml"); ?>
		<tr>
			<td>
				<form action="<?php  echo $this->baseUrl; ?>/backoffice/promotion/addcodereductionproduit" method="post">
					<table class="table">
						<thead>
							<tr >
								<th>R�f�rence</th>
								<th>Quantit�</th>
								<th>Date d�but</th>
								<th>Date fin</th>
								<th class="text-center">&#8364;</th>
								<th class="text-center">%</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><input  class="form-control" type="text" size="10" name="codereduc_ref" ></td>
								<td><input  class="form-control" type="text" size="3" name="codereduc_nbr" ></td>
								<td >
									<input class="form-control"  type="text" readonly="readonly" name="sd2Picker" id="sd2Picker" value="" maxlength="10" />
									<input type="hidden"  name="sd2" id="sd2PickerField" value="" maxlength="10" />
								</td>
								<td >
									<input  class="form-control" type="text" readonly="readonly" name="ed2Picker" id="ed2Picker"  value="" maxlength="10" />
									<input type="hidden"  name="ed2" id="ed2PickerField" value="" maxlength="10" />
								</td>
								<td><input  class="form-control" type="text" size="5" name="codereduc_euro" value=""></td>
								<td><input  class="form-control" type="text" size="5" name="codereduc_pour" value="" maxlength="3"></td>
								<td>
								<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button></td>
							</tr>
						</tbody>
					</table>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php  echo $this->baseUrl; ?>/backoffice/promotion/addcodereductioncommande" method="post">
				<table class="table">
					<thead>
						<tr>
							<th >Minimum d'achat</th>
							<th>Date d�but</th>
							<th>Date fin</th>
							<th class="text-center">&#8364;</th>
							<th class="text-center">%</th>
							<th></th>
						</tr>
					</thead>
					<tr>
						<td ><input class="form-control" type="text" size="10" name="codereduc_cmdmin" ></td>
						<td>
							<input class="form-control" type="text" readonly="readonly" name="sd1Picker" id="sd1Picker" value="" maxlength="10" />
							<input type="hidden"  name="sd1" id="sd1PickerField" value="" maxlength="10" />
						</td>
						<td>
							<input class="form-control" type="text" readonly="readonly" name="ed1Picker" id="ed1Picker" value="" maxlength="10" />
							<input type="hidden"  name="ed1" id="ed1PickerField" value="" maxlength="10" />
						</td>
						<td><input class="form-control" type="text" size="5" name="codereduc_euro" value=""></td>
						<td><input class="form-control" type="text" size="5" name="codereduc_pour" value="" maxlength="3"></td>
						<td>
								<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button></td>
					</tr>
				</table>
				</form>
			</td>
		</tr>
	</table>
</div>

<div class="table-box">
	<table class="table">
 		<tr><td colspan="6"><h5>Remises effectives</h5></td></tr>
 		<?php 
 		$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
		$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			
 		foreach($this->listReduc as $row) { ?>
		<tr  <?php
		$isUsed = false; 
		if (isset($row['NOM']) && !empty($row['NOM']) && 
		isset($row['PRENOM']) && !empty($row['PRENOM'])&& 
		isset($row['IDUSER']) && !empty($row['IDUSER']) && $row['IDUSER'] > 0) {
			$isUsed = true;
		}?> >
			<td >
				<?php echo "CODE : ".$row['CODE']."<br/>  ".$this->escape($row['LIBELLE']); 
				if ($isUsed == true) { ?>
				<br/> 
				Utilis� par : <a href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row['IDUSER']; ?>"><?php echo $row['PRENOM']." ".$row['NOM'];?></a>
				<?php } ?>
			</td>
			<td>
				<?php $myDate1 = new Zend_Date(strtotime($row['DATESTART']));?>
 				<?php echo $myDate1->toString("dd").' '.$mois[(int)$myDate1->toString('MM')].' '.$myDate1->toString("YYYY");?>
 			</td>
			<td>
				<?php $myDate2 = new Zend_Date(strtotime($row['DATESTART']));?>
 				<?php echo $myDate2->toString("dd").' '.$mois[(int)$myDate2->toString('MM')].' '.$myDate2->toString("YYYY");?>
 			</td>
			<td  >
				<?php if ($this->escape($row['EURO']) > 0 ) { echo $this->escape($row['EURO'])."<b>&nbsp;&#8364;</b>"; } ?>
			</td>
			<td  >
				<?php if ($this->escape($row['POUR']) > 0 ) { echo $this->escape($row['POUR'])."<b>&nbsp;%</b>"; } ?>
			</td>
			<td  >
				<span >
				<?php if ($row['isACTIF'] == 1) { ?>
					<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/unactivecodereduction/id/<?php echo $row['ID']; ?>" >D�sactiver</a>
				<?php } else { ?>
					<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/activecodereduction/id/<?php echo $row['ID']; ?>" >Activer</a>
				<?php } ?>
				</span>
				<span >
				<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/delcodereduction/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</span>
			</td> 
		</tr>
		<?php } ?>
 	</table>
</div>




<script type="text/javascript"> 
$(function(){
	$("#sd2Picker").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#sd2PickerField",
		dateFormat: 'DD, d MM, yy'
	});
	$("#ed2Picker").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#ed2PickerField",
		dateFormat: 'DD, d MM, yy'
	});
	$("#sd1Picker").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#sd1PickerField",
		dateFormat: 'DD, d MM, yy'
	});
	$("#ed1Picker").datepicker({ 
		altFormat: 'yy-mm-dd', 
		altField: "#ed1PickerField",
		dateFormat: 'DD, d MM, yy'
	});
});
</script> PKc�G[�?��5�5scripts/promotion/user.phtmlnu&1i� <div class="table-box">
 	<table  class="table">
 		<tr><td><h5>Remises associ�es aux clients</h5></td></tr>
		<?php echo $this->render("alert_tr.phtml"); ?>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
					<div class="col-md-2 no-space-top"><label>Anniversaire de l'inscription</label></div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
						<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
					</div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
						<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
					</div>
					<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="1" name="remise" />
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
					<div class="col-md-2 no-space-top"><label>Si c'est la premiere commande</label></div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
						<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
					</div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
						<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
					</div>
					<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="2" name="remise" />
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique au client</label></div>
						<div class="col-md-10 no-space-top">
							<select name="iduser" class="form-control">
								<option value="0">S�lectionner un Client</option>
								<?php 
								$listAllUser = $this->listAllUser ;
								foreach($listAllUser as $row) { 
									?>
								<option value="<?php echo $this->escape($row['IDUSER']); ?>">
									<?php  echo $row['NOM']." ".$row['PRENOM'] ; ?>
								</option>
								<?php  }  ?>
							</select>	
						</div>
					</div>
					<div class="col-md-12 no-space-side">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
								<input type="hidden" value="3" name="remise" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique � un client et une marque</label></div>
						<div class="col-md-10 no-space-top">
							<div class="col-md-6 no-space-top no-space-side">
								<select name="iduser" class="form-control">
									<option value="0">S�lectionner un Client</option>
									<?php 
									$listAllUser = $this->listAllUser ;
									foreach($listAllUser as $row) { 
										?>
									<option value="<?php echo $this->escape($row['IDUSER']); ?>">
										<?php  echo $row['NOM']." ".$row['PRENOM'] ; ?>
									</option>
									<?php  }  ?>
								</select> 
							</div>
							<div class="col-md-6 no-space-top no-space-side">
								<select name="idbrend" class="form-control">
									<option value="0">S�lectionner une Marque</option>
									<?php 
									$listAllBrend = $this->listbrend ;
									foreach($listAllBrend as $row) { 
										?>
									<option value="<?php echo $this->escape($row['ID']); ?>">
										<?php  echo $row['BREND']; ?>
									</option>
									<?php  }  ?>
								</select>
							</div>
						</div>
					</div>
					<div class="col-md-12 no-space-side">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div  class="col-md-2 no-space-top text-center">
								<input type="hidden" value="4" name="remise" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique � un code interne et une marque</label></div>
						<div class="col-md-10 no-space-top">
							<div class="col-md-6 no-space-top no-space-side">
								<select name="idcintern" class="form-control">
									<option value="0">S�lectionner un Code Interne</option>
									<?php 
									$listAllCIntern = $this->listAllCIntern ;
									foreach($listAllCIntern as $row) { 
										?>
									<option value="<?php echo $this->escape($row['ID']); ?>">
										<?php  echo $row['CODE']." - ".$row['LABEL'] ; ?>
									</option>
									<?php  }  ?>
								</select> 
							</div>
							<div class="col-md-6 no-space-top no-space-side">
								<select name="idbrend" class="form-control">
									<option value="0">S�lectionner une Marque</option>
									<?php 
									$listAllBrend = $this->listbrend ;
									foreach($listAllBrend as $row) { 
										?>
									<option value="<?php echo $this->escape($row['ID']); ?>">
										<?php  echo $row['BREND']; ?>
									</option>
									<?php  }  ?>
								</select>
							</div>
						</div>
					</div>
					<div class="col-md-12 no-space-side">
						<div class="col-md-2 no-space-top"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
								<input type="hidden" value="5" name="remise" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
	</table>
</div>
 <div class="table-box">
		<table class="table">
 			<tr><td colspan="3"><h5>Remises effectives</h5></td></tr>
			<?php  
			if ($this->dateInsc) { 
				$remise = $this->dateInsc;
				?>
				<tr >
					<td >Si la date anniversaire est atteinte 
					</td>
						<td><span >Remise de <b>
							<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])."&nbsp;&#8364;"; } ?>
							<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."&nbsp;%"; } ?></b>
						</span>		</td>
					<td class="text-center">
						<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
					</td>
				</tr>
				<?php } 
					if ($this->firstCmd) { 
						$remise = $this->firstCmd;
						?>
					<tr >
						<td >Si c'est la premiere commande	
						</td>
						<td>
							<span >Remise de <b>
								<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])."&nbsp;&#8364;"; } ?>
								<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."&nbsp;%"; } ?></b>
							</span>	</td>
						<td class="text-center">
								<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
						</td>
					</tr>
					<?php } ?>
				<?php 
				if ($this->listUser) {
				$listUser = $this->listUser;
				foreach($listUser as $row) {  ?>
				<tr >
					<td > 
							<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>">
								<?php echo $row['NOM'].' '.$row['PRENOM'];?>
							</a> remise sur les commandes 
					</td>
					<td >
						<div>Remise de <b>
							<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
							<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
						</div>
					</td>
					<td class="text-center">
						<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
					</td>
				</tr>
				<?php }   } ?>
			<?php 
			if ($this->listUserBrend) {
			$listUserBrend = $this->listUserBrend;
			foreach($listUserBrend as $row) {  ?>
			<tr >
				<td >
						<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>">
							<?php echo $row['NOM'].' '.$row['PRENOM'];?>
						</a> pour les produits de la marque 
						<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
						<?php echo $row['BREND']; ?>
						</a>
				</td>
				<td  >
					<div >Remise de <b>
					<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
					</div>
				</td>
				<td class="text-center">
						<a class="btn btn-danger"  href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
				</td>
			</tr>
			<?php }   } ?>
				<?php 
				if ($this->listCinternBrend) {
				$listCinternBrend = $this->listCinternBrend;
				foreach($listCinternBrend as $row) {  ?>
				<tr >
					<td > 
							<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne">
								<?php echo $row['CODEINTERN'].' - '.$row['LABELINTERN'];?>
							</a> pour les produits de la marque 
							<a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
							<?php echo $row['BREND']; ?>
							</a> 
					</td>
					<td >
						<div >Remise de <b>
						<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
						<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
						</div>
					</td>
					<td class="text-center">
						<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
					</td>
				</tr>
				<?php }   } ?>
			</table>
</div>PKc�G[aHT^^scripts/promotion/gift.phtmlnu&1i�<table cellpadding="0" cellspacing="5" border="0" width="1000px">
	<tr>
		<td colspan="2">
			<span class="errorText"><?php echo $this -> messageError; ?></span>
			<span class="successText"><?php echo $this -> messageSuccess; ?></span>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2"><div class="text2">LES AVANTAGES</div></td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2" >
			<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftadd" method="post">
				<table  border="0" cellpadding="0" cellspacing="10" width="1000px" align="left">
					<tr >
						<td width="800px">
							Pour <input type="text" name="referencenbbuy" size="4"> article(s) achete <input type="text" name="referencebuy" > il y a <input type="text" name="referencenbgift" size="3"> article(s) offert <input type="text" name="referencegift" > 
						</td>
						<td>
							<input type="hidden" value="1" name="gift" />
							<input type="submit" name="ajouter" value="Ajouter"/>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>	
	<tr >
		<td colspan="2" >
		<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftadd" method="post">
				<table  border="0" cellpadding="0" cellspacing="10" width="1000px" align="left">
					<tr >
						<td width="400px">
							Si le MONTANT TOTAL de la commande >= <input type="text" name="montant">
						</td>
						<td width="400px">
							cet article est offert <input type="text" name="reference">
						</td>
						<td>
							<input type="hidden" value="2" name="gift" />
							<input type="submit" name="ajouter" value="Ajouter"/>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td >
			<div  class="text2">LES AVANTAGES EN COURS</div>
		
		
		</td>
		<td class="link2" style="text-align: center">
		
		<a href="" id="giftSlide1" >Article achete -> Article offert </a> | 
		<a href="" id="giftSlide2" >Selon la commande </a>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2" >
			<div id="v-giftSlide1" >
				<table cellpadding="0" cellspacing="5" border="0"  width="1000px" >
					<?php 
					if ($this->listProductGift) {
					$listProductGift = $this->listProductGift;
					foreach($listProductGift as $row) : ?>
					<tr >
						<td valign="top" >
							<b><?php echo $this->escape($row['PRODNBBUY']);?></b> Article(s) achete : <b><?php echo $this->escape($row['PRODREFBUY']);?></b>
						</td>
						<td valign="top" >
							<div class="link3" >
							 <b><?php echo $this->escape($row['PRODNBGIFT']);?></b> Article(s) offert : <b><?php echo $this->escape($row['PRODREFGIFT']);?></b>
							
							</div>
						</td>
						<td style="text-align: center">
							<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftdel/id/<?php echo $row['ID']; ?>" >Supprimer</a>
						</td>
					</tr>
					<tr><td colspan="3" style="background:#666666;height:1px;"></td></tr>
					<?php endforeach;   } ?>
				</table>

			</div>
		</td>
	</tr>
	<tr >
		<td colspan="2" >
			<div id="v-giftSlide2" >
				<table cellpadding="0" cellspacing="5" border="0"  width="1000px" >
					<?php 
					if ($this->listCmdGift) {
					$listCmdGift = $this->listCmdGift;
					foreach($listCmdGift as $row) : ?>
					<tr >
						<td valign="top" >
							Si le MONTANT TOTAL de la commande >= <b><?php echo $this->escape($row['CMDMONTANT']);?>&nbsp;&#8364;</b>
						</td>
						<td valign="top" >
							<div class="link3" >
								Article offert : 
								<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['CMDPRODREFGIFT']);?></a>
							
							</div>
						</td>
						<td style="text-align: center">
							<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftdel/id/<?php echo $row['ID']; ?>" >Supprimer</a>
						</td>
					</tr>
					<tr><td colspan="3" style="background:#666666;height:1px;"></td></tr>
					<?php endforeach;   } ?>
				</table>

			</div>
		</td>
	</tr>
</table>PKc�G[|1���
�
scripts/promotion/front.phtmlnu&1i�<table cellpadding="0" cellspacing="5" border="0" width="100%">
	<tr>
		<td colspan="2">
			<span class="errorText"><?php echo $this -> messageError; ?></span>
			<span class="successText"><?php echo $this -> messageSuccess; ?></span>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2"><div class="text2">LES PROMOTIONS DE LA PAGE D'ACCUEIL</div></td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2">
			<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/frontadd" method="post">
				<table  border="0" cellpadding="0" cellspacing="10" width="100%"  >
					<tr >
						<td width="200px">
							Afficher un produit
						</td>
						<td width="200px">
							REFERENCE : <input type="text" name="reference" id="reference" value=""/>
						</td>
						<td>
							POSITION : <input type="text" name="position" id="position" value="" maxlength="2" size="4"/>
						</td>
						<td>
							<input type="submit" name="ajouter" value="Ajouter"/>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<?php  if ($this->listFront) { ?>
	<tr>
		<td colspan="2">
			<table cellpadding="0" cellspacing="5" border="0" width="100%">
				<?php 
				$listFront = $this->listFront;
				foreach($listFront as $row) { ?>
				<tr >
					<td valign="top" >
						<div class="link3" >
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['REFERENCE']);?>
							
							</a>
						</div>
					</td>
					<td valign="top" width="300px">
						<div class="link3" >
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['NOM']);?></a>
						</div>
						<div class="text1" >
							<?php echo $row['DESCSHORT'] ;?>
						</div>
					</td>
					
					<td valign="top" >
						<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/frontedit" method="post">
					
						POSITION : <input type="text" name="position" value="<?php echo $row['POSITION']; ?>"  maxlength="2" size="4"> 
						<input type="hidden" name="promoid" value="<?php echo $row['ID']; ?>">
					 
						<input type="submit" name="edit" value="Modifier"> 
						</form>
					</td>
					<td style="text-align: center">
						<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/frontdel/id/<?php echo $row['ID']; ?>" >Supprimer</a>
					</td>
				</tr>
				<?php } ?>
			</table>
		</td>
	</tr>
	<?php } ?>
</table>PKc�G[�b�x��scripts/promotion/command.phtmlnu&1i�<div class="table-box">
 	<table  class="table">
 		<tr><td><h5>Remises associ�es aux commandes</h5></td></tr>
		<?php echo $this->render("alert_tr.phtml"); ?>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/commandadd" method="post">
					<div class="col-md-2 no-space-top"><label>Sur toute les commandes</label></div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
						<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
					</div>
					<div class="col-md-4 no-space-top">
						<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
						<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
					</div>
					<div class="col-md-2 no-space-top text-center">
							<input type="hidden" value="1" name="remise" />
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/commandadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-4 no-space-top no-space-side"><label>Quand le MONTANT TOTAL de la commande est sup�rieur � </label></div>
						<div class="col-md-8 no-space-top no-space-side"><input type="text" placeholder="Montant de la commande" name="montant" value="" class="form-control" /></div>
					</div>
					<div class="col-md-12 no-space-side">
						<div class="col-md-2"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
								<input type="hidden" value="2" name="remise" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/commandadd" method="post">
					<div class="col-md-12 no-space-top">
						<div class="col-md-3 no-space-top no-space-side"><label>Quand il y a </label></div>
						<div class="col-md-3 no-space-top no-space-side"><input type="text" placeholder="Quantit� d'articles" name="nbrreference" class="form-control" ></div>
						<div class="col-md-3 no-space-top no-space-side text-center"><label>articles de REFERENCE </label></div>
						<div class="col-md-3 no-space-top no-space-side"><input type="text" placeholder="R�f�rence du produit" name="reference" class="form-control" ></div>
					</div>
					<div class="col-md-12 no-space-side">
						<div class="col-md-2"></div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise&nbsp;&#8364;</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
						</div>
						<div class="col-md-4 no-space-top">
							<div class="col-md-3 no-space-top"><label for="remisepour">Remise&nbsp;%</label></div>
							<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
						</div>
						<div class="col-md-2 no-space-top text-center">
								<input type="hidden" value="3" name="remise" />
							<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
						</div>
					</div>
				</form>
			</td>
		</tr>
	</table>
</div>
  
<div class="table-box">
	<table class="table">
 		<tr><td colspan="3"><h5>Remises effectives</h5></td></tr>
		<?php 
		if ($this->remiseAll) { 
		$isAll = $this->remiseAll;
		?>
		<tr >
			<td >Sur toute les commandes	
			</td>
			<td>
				<span >Remise de <b>
					<?php if ($this->escape($isAll['REMISEEURO']) > 0 ) { echo $this->escape($isAll['REMISEEURO'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($isAll['REMISEPOUR']) > 0 ) { echo $this->escape($isAll['REMISEPOUR'])."&nbsp;%"; } ?></b>
				</span>	</td>
			<td class="text-center">
						<a class="btn btn-danger"  href="<?php echo $this->baseUrl; ?>/backoffice/promotion/commanddel/id/<?php echo $isAll['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
			</td>
		</tr>
		<?php } 
		if ($this->remiseMontant) { 
			$remise = $this->remiseMontant;
			?>
		<tr >
			<td >Si le MONTANT TOTAL de la commande est sup�rieur � <b><?php echo $remise['MONTANTEQUAL'];?>&nbsp;&#8364;</b> alors 
			</td>
			<td>
				<span  >Remise de <b>
					<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])."<b>&nbsp;&#8364;</b>"; } ?>
					<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."<b>&nbsp;%</b>"; } ?></b>
				</span>		
			</td>
			<td class="text-center">
						<a class="btn btn-danger"  href="<?php echo $this->baseUrl; ?>/backoffice/promotion/commanddel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
			</td>
		</tr>
		<?php }  ?>
		<tr >
			<td colspan="3" > 
					<table class="table">
						<?php  if ($this->listRemise1) { 
						$listRemise1 = $this->listRemise1;
						foreach($listRemise1 as $row) : ?>
						<tr >
							<td > 
									<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['CHILDREFERENCE']);?></a>
								 
							</td>
							<td  > 
									<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['NOM']);?></a>
								 	<?php echo $row['DESCSHORT'] ;?> 
							</td>
							<td >
								<div >Remise de <b>
								<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])."&nbsp;&#8364;"; } ?>
								<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></b>
								</div>
							</td>
							<td  >Pour
								<span  >
									<b><?php if ($this->escape($row['CHILDNBR']) > 0 ) { echo $this->escape($row['CHILDNBR']); } ?></b>
								</span>
								articles
							</td>
							<td class="text-center">
								<a class="btn btn-danger"  href="<?php echo $this->baseUrl; ?>/backoffice/promotion/commanddel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
							</td>
						</tr>
						<?php endforeach; } ?>
					</table>
			</td>
		</tr>
	</table>
</div>PKc�G[�0f�scripts/admin/edit.phtmlnu&1i� <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/edit" method="post">
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="lastname" id="lastname" value="<?php echo $this->populateForm['NOM']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Pr�nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="firstname" id="firstname" value="<?php echo $this->populateForm['PRENOM']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Email</td>
				<td class="col-md-8"><input type="text" class="form-control" name="email" id="email" value="<?php echo $this->populateForm['EMAIL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Login</td>
				<td class="col-md-8"><input type="text" class="form-control" name="login" id="login" value="<?php echo $this->populateForm['LOGIN']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Nouveau mot de passe</td>
				<td class="col-md-8"><input type="password" class="form-control" name="editpassword" id="editpassword" value=""/></td>
			</tr>
			<tr >
				<td class="col-md-4">Confirmer le nouveau mot de passe</td>
				<td class="col-md-8"><input type="password" class="form-control" name="editpassword2" id="editpassword2" value=""/></td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<input type="hidden" name="id" id="id" value="<?php echo $this->populateForm['ID']; ?>">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>PKc�G[��Q±%�%scripts/admin/list.phtmlnu&1i�<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<table class="display table" id="adminTable" width="100%">
	<thead>
		<tr>
			<th>Nom</th>
			<th>Pr�nom</th>
			<th>Email</th>
			<th>Login</th>
			<th class="text-center">R�les</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listadmins as $row)  { ?>
		<tr>
			<td><?php echo $this->escape($row->NOM);?></td>
			<td><?php echo $this->escape($row->PRENOM);?></td>
			<td><?php echo $this->escape($row->EMAIL);?></td>
			<td><?php echo $this->escape($row->LOGIN);?></td>
			<td>
			<?php  if ($this->isSiteGallery) {  ?>
			
					<div class="col-md-6 no-space-top">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isAdmin">
							<?php if ($row->isADMIN == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Administrateur</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Administrateur</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-6 no-space-top">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isCategory">
							<?php if ($row->isCATEGORY == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Cat�gorie</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Cat�gorie</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
				<?php } ?>
			
				<?php  if ($this->isSiteEbusiness) {  ?>
					<div class="col-md-3 ">                        
	                 	<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isProduct">
							<?php if ($row->isPRODUCT == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Produit</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Produit</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>	
					<div class="col-md-3">  
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isPromo">
							<?php if ($row->isPROMO == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Promotion</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Promotion</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">  
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isCommand">
							<?php if ($row->isCOMMAND == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Commande</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Commande</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isCategory">
							<?php if ($row->isCATEGORY == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Catégorie</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Catégorie</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isSupplier">
							<?php if ($row->isSUPPLIER == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Fournisseur</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Fournisseur</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">     
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isUser">
							<?php if ($row->isUSER == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Client</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Client</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isFooter">
							<?php if ($row->isFOOTER == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Pied de page</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Pied de page</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isAdmin">
							<?php if ($row->isADMIN == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Administrateur</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Administrateur</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
					</div>
					<div class="col-md-3">  	
						<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/setrole" method="POST">
							<input type="hidden" name="idadmin" value="<?php echo $this->escape($row->ID);?>">
							<input type="hidden" name="roletype" value="isStats">
							<?php if ($row->isSTATS == 1 ) {  ?>
								<button type="submit" class="btn btn-success btn-group-justified">Statistique</button>
								<input type="hidden" name="rolevalue" value="0">
							<?php } else { ?>
								<button type="submit" class="btn btn-danger btn-group-justified">Statistique</button>
								<input type="hidden" name="rolevalue" value="1">
							<?php } ?>
						</form>
                    </div>
			
				<?php } ?>
			</td>
			<td class="text-center no-space-side">
				<div class="btn-group" >
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/admin/edit/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/admin/del/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('adminTable', [[0, "asc" ]], [ { "orderable": false, "targets": -2},{ "orderable": false, "targets": -1, "width": "270px" }]); 	

		  $('.greenbutns').each(function(){
				var self = $(this),
				  label = self.next(),
				  label_text = label.text();
			
				label.remove();
				self.iCheck({
				  checkboxClass: 'icheckbox_line-green',
				  radioClass: 'iradio_line-green',
				  insert: '<div class="icheck_line-icon"></div>' + label_text
				});
			  });
	});
</script>
</div>

PKc�G[��E�scripts/admin/add.phtmlnu&1i� <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/admin/add" method="post">
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="lastname" id="lastname" value="<?php echo $this->populateForm['NOM']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Pr�nom</td>
				<td class="col-md-8"><input type="text" class="form-control" name="firstname" id="firstname" value="<?php echo $this->populateForm['PRENOM']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Email</td>
				<td class="col-md-8"><input type="text" class="form-control" name="email" id="email" value="<?php echo $this->populateForm['EMAIL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Login</td>
				<td class="col-md-8"><input type="text" class="form-control" name="addlogin" id="addlogin" value="<?php echo $this->populateForm['LOGIN']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Mot de passe</td>
				<td class="col-md-8"><input type="password" class="form-control" name="addpassword" id="addpassword" value=""/></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Confirmer le mot de passe</td>
				<td class="col-md-8"><input type="password" class="form-control" name="addpassword2" id="addpassword2" value=""/></td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
		PKc�G[I`���!layouts/headerLayoutTopMenu.phtmlnu&1i�
<?php if ($this->currentMenu == "Product") { ?>
 <li><a href="<?php echo $this->baseUrl; ?>/backoffice/product" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/search" ><i class="glyphicon glyphicon-search"></i>Recherche avanc�e</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/keywordsengine" ><i class="glyphicon glyphicon-cog"></i>Moteur de recherche</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Option") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/option" ><i class="glyphicon glyphicon-th"></i>D�tail du produit</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/option" ><i class="glyphicon glyphicon-th-list"></i>S�lectionnable</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Category") { ?>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>  
<?php } ?>
<?php if ($this->currentMenu == "CategorySubs") { ?>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category2" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category2/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li> 
<?php } ?>
<?php if ($this->currentMenu == "Command") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/listcommand" ><i class="glyphicon glyphicon-eye-open"></i>Commandes</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/listdevis" ><i class="glyphicon glyphicon-eye-open"></i>Devis</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/search" ><i class="glyphicon glyphicon-search"></i>Rechercher</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Promos") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/product" ><i class="glyphicon glyphicon-eye-open"></i>Produit</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/command" ><i class="glyphicon glyphicon-eye-open"></i>Commande</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/user" ><i class="glyphicon glyphicon-eye-open"></i>Client</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/codereduction" ><i class="glyphicon glyphicon-barcode"></i>Codes r�duction</a></li>
	<?php if ($this->useradmin['isAdmin'] == 1 ) { ?>
	<li><a href="<?php echo $this->baseUrl; ?>/backoffice/productglobal" ><i class="glyphicon glyphicon-eye-open"></i>G�n�ralit�s</a></li>		
	<?php } ?>
<?php } ?>
<?php if ($this->currentMenu == "Supplier") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/supplier" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/supplier/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "User") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/search" ><i class="glyphicon glyphicon-search"></i>Rechercher</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne" ><i class="glyphicon glyphicon-barcode"></i>Codes Internes</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/newsletter" ><i class="glyphicon glyphicon-envelope"></i>Newsletter</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/fidelitypoint/list" ><i class="glyphicon glyphicon-credit-card"></i>Carte fid�lit�</a></li>

<?php if ($this->FeatureProductSendDetail || $this->FeatureProductDocumentDownloadGuest) { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/guest" ><i class="glyphicon glyphicon-user"></i>Invit�s</a></li>
<?php } ?>
<?php } ?>
<?php if ($this->currentMenu == "Admin") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/admin" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/admin/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceContent") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceFront") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncefront" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceLeft") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annonceleft" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceRight") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annonceright" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceFooter") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Footer") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/footer" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/footer/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Logs") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin" ><i class="glyphicon glyphicon-eye-open"></i>Administration</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault" ><i class="glyphicon glyphicon-eye-open"></i>Publique</a></li> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey" ><i class="glyphicon glyphicon-eye-open"></i>Recherche des mots cl�s</a></li>
<?php } ?>
<?php if ($this->currentMenu == "BlogCategory") { ?> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/blogcategory/" ><i class="glyphicon glyphicon-eye-open"></i>Rechercher</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/blogcategory/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li> 
<?php } ?> 
<?php if ($this->currentMenu == "BlogComment") { ?> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/blogcomment/" ><i class="glyphicon glyphicon-eye-open"></i>Rechercher</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/blogcomment/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?> 
<?php if ($this->currentMenu == "BlogSubject") { ?> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/blogsubject/" ><i class="glyphicon glyphicon-eye-open"></i>Rechercher</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/blogsubject/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?> 
<?php if ($this->currentMenu == "AnnonceCms") { ?> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncecms/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?> 
<?php if ($this->currentMenu == "AnnonceGallery") { ?> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?> 






PKc�G[�9V��layouts/layout.phtmlnu&1i�<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<head itemscope itemtype="http://schema.org/WebSite"> 
	<title><?php echo $this->title; ?></title>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<meta name="description" content="<?php echo $this->metadescription; ?>" />
	<meta name="keywords" content="<?php if (isset($this->metakeywords) && !empty($this->metakeywords)) {echo $this->metakeywords;}   ?>" />	
	<link rel="icon" type="image/png" href="<?php echo $this->baseUrl; ?>/favicon.ico" /> 	 
	<meta name="google-site-verification" content="<?php echo $this->google_site_verification; ?>" />
	<meta name="Reply-to" content="<?php echo $this->serviceClient_Mail; ?>" />
	<meta name="Copyright" content="<?php echo $this->siteName; ?>" />
 
<?php 
	$product = $this->detailProduct;
  if (isset($product) && !empty($product)) {
    $url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; ?>
    <meta property="og:url" content="<?php echo $url; ?>" />
    <meta property="og:type" content="article" />
    <meta property="og:title" content="<?php echo strip_tags($this->escape($product['NOM'])); ?>" />
    <meta property="og:description" content="<?php echo strip_tags($product['DESCSHORT']); ?>" />
	
	<meta name="twitter:card" content="summary" />
    <meta name="twitter:url" content="<?php echo $url; ?>" />
	<meta name="twitter:title" content="<?php echo strip_tags($this->escape($product['NOM'])); ?>" />
	<meta name="twitter:description" content="<?php echo strip_tags($product['DESCSHORT']); ?>" />
	
    <?php if (isset($product['LISTPICS']) && isset($product['LISTPICS'][0])) { 
	$urlPic = "http://".$_SERVER["HTTP_HOST"].'/'.$product['LISTPICS'][0]['URL'];?>
    <meta property="og:image" content="<?php echo $urlPic; ?>" />
	<meta name="twitter:image" content="<?php echo $urlPic; ?>" />
<?php } }?> 

	<!-- Google Analytics -->
	<script type="text/javascript" >
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	ga('create', '<?php echo $this->google_analytics; ?>', 'auto');
	ga('send', 'pageview');
	</script>
	<!-- End Google Analytics -->
	
	<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Organization",
      "url": "<?php echo $this->baseUrl_SiteCommerceUrl; ?>",
      "logo": "<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png"
    }
    </script>
	
	
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/> 
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/css/css_ie.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/css/css.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/css/responsive.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/css/css_default.css" media="screen" />
<link rel="stylesheet" type='text/css' href='<?php echo $this->baseUrl; ?>/business/light/js/simplemodal/css/basic.css' media='screen' />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/js/superfish/css/superfish.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/js/superfish/css/superfish-vertical.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/js/fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/js/jScrollPane/style/jquery.jscrollpane.css" media="all" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/js/video-js/video-js.css" media="all" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/carouFredSel/jquery.carouFredSel-3.2.1-packed.js"></script>
<script type='text/javascript' src='<?php echo $this->baseUrl; ?>/business/light/js/debouncedresize/jquery.debouncedresize.js'></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/timer/jquery.timers.js"></script>
<script type="text/javascript" src='<?php echo $this->baseUrl; ?>/business/light/js/simplemodal/js/jquery.simplemodal.js'></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/superfish/js/hoverIntent.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/superfish/js/superfish.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/qtip/jquery.qtip-1.0.0-rc3.min.js"></script> 
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/tweetie/tweetie.js"></script>  
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/filterable/js/filterable.js" ></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/config.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/big_gallery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/jScrollPane/script/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/jScrollPane/script/jquery.mousewheel.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/video-js/video.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/jPlayer/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/TinyNav/tinynav.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/touchSwipe/jquery.touchSwipe.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/responsiveslides/responsiveslides.min.js"></script>
 
</head>
<body  id="body"> 
	<?php echo $this->render("headerLayout.phtml"); ?>

	<?php echo $this->layout()->content; ?>	
</body> 
</html>
PKc�G[ ׃�

layouts/headerLayout.phtmlnu&1i�
<div id="loader"><img src="<?php echo $this->baseUrl; ?>/business/light/img/loader2.gif" alt="Chargement du site en cours ..."/></div>

<?php  
	$currentCat = array();
	$currentCat = $this->currentCat;
	if (isset($currentCat) && !empty($currentCat['URL'])) { ?>
	<div id="background"><img src="<?php echo $this->baseUrl; ?>/<?php echo $currentCat['URL']; ?>" alt=""/></div>
<?php } ?>

<div id="logo"><a href="<?php echo $this->baseUrl; ?>/" title="<?php echo $this->siteName; ?>"><img class="logoimg" alt="Karen petit" src="<?php echo $this->baseUrl; ?>/business/light/img/logo.svg" /></a></div>

<div id="menu-show"><div id="menu-show-arrow"></div></div>
<div id="menu-hide"><div id="menu-hide-arrow"></div></div> 

<div id="menu">

<?php  
$params = array(
		'CATEGORIE_CURRENT' => 1, 
		'BASE_URL' => $this->baseUrl,
		'RESULT_MENUS' =>array(),
		'COLORS' => $this->designColors
);
if (isset($this->actualDesign) && !empty($this->actualDesign)) {
	$params['CATEGORIE_CURRENT'] = $this->actualDesign['idCategory'];
} 
function generateHTMLResponsiveMenu($data, $params) {
	$result = '';
	$counter = 0;
    $rowcount = 0;
	foreach ($data as $row) {
		if (isset($row['CATEGORIE']) && !empty($row['CATEGORIE'])) {
			$link_href = $params['BASE_URL']."/".Utils_Tool::getFormattedUrlCategory($row['CATEGORIE']['NAVNOM_URLPARENTS'], $row['CATEGORIE']['NAVNOM'], $row['CATEGORIE']['ID']);
			
			if (!empty($row['CATEGORIE']['URLREDIRECT'])) {
				$link_href = $row['CATEGORIE']['URLREDIRECT'];
			}
			
			if (isset($row['CHILDS']) && !empty($row['CHILDS'])) {
				$result .= '<li>';
				$result .= '<a href="'.$link_href.'">'.$row['CATEGORIE']['NOM'].'</a>';
				
				if ($link_href == "#") {
				$result .= '<ul>';
				$result .= generateHTMLResponsiveMenu($row['CHILDS'], $params);
				$result .= '</ul >';
				} 
			} else {
				$result .= '<li >';
				$result .= '<a  href="'.$link_href.'" >'.$row['CATEGORIE']['NOM'].'</a>';
				$result .= '</li >';
			}
		} 
	}
	return $result;
}

?>

        <?php if (isset($this->listallcategories)) { ?> 
		<ul class="sf-menu sf-vertical"> 
            <?php echo generateHTMLResponsiveMenu($this->listallcategories, $params);?>  
			<li>
				<a href="<?php echo $this->baseUrl; ?>/contact">CONTACT</a>
			</li>	
		</ul>
        <?php } ?> 
		
		<ul class="buy">
			<li>&nbsp;</li>
			<li>ESPACE CLIENT</li>
			<li>
				<ul>
					<li><a href="<?php echo $this->custom_link_1; ?>" title="JingoO" class="qtip"><img src="/business/light/img/icons/stock/fotolia.png" alt="JingoO" /></a></li>
				</ul>
			</li>
		</ul>
		<ul class="follow">
			<li>+</li>
			<li>
				<ul>
					<li><a href="<?php echo $this->link_media_facebook; ?>" title="Facebook" class="qtip"><img src="/business/light/img/icons/social/facebook.png" alt="Facebook" /></a></li>
					<li><a href="<?php echo $this->link_media_flickr; ?>" title="Printerest" class="qtip"><img src="/business/light/img/icons/social/pinterest.png" alt="Printerest" /></a></li>
					<li><a href="<?php echo $this->link_media_rss; ?>" title="500px" class="qtip"><img src="/business/light/img/icons/social/sharethis.png" alt="500px" /></a></li>
					<li><a href="<?php echo $this->custom_link_2; ?>" title="Instagram" class="qtip"><img src="/business/light/img/icons/social/instagram.png" alt="Instagram" /></a></li>
				</ul>
			</li>
		</ul> 
</div> PKc�G[��p���layouts/headerLayoutTop.phtmlnu&1i�

<header class="hidden-print">
                <!-- User Section Start -->
                <div class="user">
                    <div class="logo">
                        <a href="<?php echo $this->baseUrl; ?>/backoffice"><?php echo $this->siteName; ?></a>
                    </div>   
                    <div class="welcome">
                        <p>Bienvenue</p>
                        <h5><a href="<?php echo $this->baseUrl; ?>/backoffice"><?php echo $this->escape($this->useradmin['nom']). ' '.$this->escape($this->useradmin['prenom']).'.'; ?></a></h5>
                    </div>
                </div>
                <!-- User Section End -->
                <!-- Search Section Start -->
			<?php  if ($this->isSiteEbusiness) {  ?>
                <div class="search-box">
                	<form method="POST" action="/backoffice/product/search" id="searchbarform">
	                    <input type="text" placeholder="Rechercher un produit" name="search" id="searchbarinput" />
	                    <input type="submit" value="go" />
                    </form>
                </div>
			<?php  }  ?>
                <!-- Search Section End -->
                <!-- Header Top Navigation Start -->
                <nav class="topnav">
                    <ul id="nav1">
		 				<?php echo $this->render("headerLayoutTopMenu.phtml"); ?>
                        <li class="settings">
                        	<a href="#"><i class="glyphicon glyphicon-wrench"></i>Param�tres</a>
                            <div class="popdown popdown-right settings">
                            	<nav>
                                    <a href="http://www.web-entreprise.net/0/demander-des-informations-sur-les-produits-solutions-et-services-professionnels-de-web-entreprise" target="_blank"><i class="glyphicon glyphicon-question-sign"></i>Besoin d'aides ?</a>
                                    <a href="<?php echo $this->baseUrl; ?>/backoffice/auth/logout"><i class="glyphicon glyphicon-log-out"></i>D�connexion</a>
                                </nav>
                            </div>
                        </li>
                    </ul>
                </nav>
                <!-- Header Top Navigation End -->
                <div class="clearfix"></div>
            </header>PKc�G[��1��layouts-left/layout.phtmlnu&1i�<!DOCTYPE HTML>
<html>
<head>
<title><?php echo $this->title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="icon" type="image/png" href="<?php echo $this->baseUrl; ?>/favicon.ico" /> 
	
<!-- Themes -->
<link href="<?php echo $this->baseUrl; ?>/css/themes/admin/css/style.css" rel="stylesheet" media="screen" />
<link href="<?php echo $this->baseUrl; ?>/css/themes/admin/css/bootstrap.css" rel="stylesheet" media="all" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" media="all" />
<link href="<?php echo $this->baseUrl; ?>/js/redactor/redactor.css" rel="stylesheet" media="screen" />
<link href="<?php echo $this->baseUrl; ?>/css/themes/admin/custom.css" rel="stylesheet" media="screen" />
<link href="<?php echo $this->baseUrl; ?>/css/themes/admin/css/jquery.ui.datepicker.css" rel="stylesheet" media="screen" />
<link href="<?php echo $this->baseUrl; ?>/css/themes/admin/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" media="screen" />

<link href="<?php echo $this->baseUrl; ?>/css/default/default.css" rel="stylesheet" media="screen" />


<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.accordion.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.custom-scrollbar.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/icheck.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery-ui.custom.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.ui.datepicker.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.ui.datepicker-fr.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/selectnav.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/redactor/redactor.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/redactor/fr.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/redactor/fontcolor.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/redactor/fontfamily.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/morris-0.4.1.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/raphael-2.1.0.min.js"></script>

<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.ui.effect.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/js/jquery.ui.effect-fade.js"></script>




<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/css/themes/admin/custom.js"></script>
<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->


<!-- elRTE -->
<script src="<?php echo $this->baseUrl; ?>/js/elrte/js/elrte.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl; ?>/js/elrte/css/elrte.min.css" type="text/css" media="screen" charset="utf-8" />
<!-- elRTE translation messages -->
<script src="<?php echo $this->baseUrl; ?>/js/elrte/js/i18n/elrte.fr.js" type="text/javascript" charset="utf-8"></script>

<!-- elFINDER -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseUrl; ?>/js/elfinder/css/elfinder.min.css" />
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/elfinder/js/elfinder.min.js"></script>
<!-- elFINDER translation messages -->
<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/elfinder/js/i18n/elfinder.fr.js"></script>

<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/js/serialize/xorax_serialize.js"></script>

</head>
<body>

<?php  if($this->useradmin) { ?> 
<!-- Wrapper Start -->
<div class="wrapper" >
	<div class="structure-row">
		 <?php echo $this->render("headerLayout.phtml"); ?>
	
        <div class="right-sec" >
			 <?php echo $this->render("headerLayoutTop.phtml"); ?>
			  <div class="content-section">
                <div class="container-liquid" >
					<?php echo $this->layout()->content; ?>
				</div>
			</div>
        </div>
	</div>
</div>
<?php } else { 
	echo $this->render("../scripts/auth/login.phtml"); 
 }  ?>
</body>
</html>PKc�G[�-���&layouts-left/headerLayoutTopMenu.phtmlnu&1i�<?php if ($this->currentMenu == "Product") { ?>
 <li><a href="<?php echo $this->baseUrl; ?>/backoffice/product" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/search" ><i class="glyphicon glyphicon-search"></i>Recherche avanc�e</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/keywordsengine" ><i class="glyphicon glyphicon-cog"></i>Moteur de recherche</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Option") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/option" ><i class="glyphicon glyphicon-th"></i>D�tail du produit</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/option" ><i class="glyphicon glyphicon-th-list"></i>S�lectionnable</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Category") { ?>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>  
<?php } ?>
<?php if ($this->currentMenu == "CategorySubs") { ?>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category2" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category2/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li> 
<?php } ?>
<?php if ($this->currentMenu == "Command") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/listcommand" ><i class="glyphicon glyphicon-eye-open"></i>Commandes</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/listdevis" ><i class="glyphicon glyphicon-eye-open"></i>Devis</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/search" ><i class="glyphicon glyphicon-search"></i>Rechercher</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Promos") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/product" ><i class="glyphicon glyphicon-eye-open"></i>Produit</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/command" ><i class="glyphicon glyphicon-eye-open"></i>Commande</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/user" ><i class="glyphicon glyphicon-eye-open"></i>Client</a></li>
<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/codereduction" ><i class="glyphicon glyphicon-barcode"></i>Codes r�duction</a></li>
	<?php if ($this->useradmin['isAdmin'] == 1 ) { ?>
	<li><a href="<?php echo $this->baseUrl; ?>/backoffice/productglobal" ><i class="glyphicon glyphicon-eye-open"></i>G�n�ralit�s</a></li>		
	<?php } ?>
<?php } ?>
<?php if ($this->currentMenu == "Supplier") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/supplier" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/supplier/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "User") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/search" ><i class="glyphicon glyphicon-search"></i>Rechercher</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne" ><i class="glyphicon glyphicon-barcode"></i>Codes Internes</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/newsletter" ><i class="glyphicon glyphicon-envelope"></i>Newsletter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Admin") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/admin" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/admin/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceContent") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceFront") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncefront" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceLeft") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annonceleft" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceRight") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annonceright" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "AnnonceFooter") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Footer") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/footer" ><i class="glyphicon glyphicon-eye-open"></i>Visualiser</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/footer/add" ><i class="glyphicon glyphicon-plus"></i>Ajouter</a></li>
<?php } ?>
<?php if ($this->currentMenu == "Logs") { ?>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin" ><i class="glyphicon glyphicon-eye-open"></i>Administration</a></li>
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault" ><i class="glyphicon glyphicon-eye-open"></i>Publique</a></li> 
<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey" ><i class="glyphicon glyphicon-eye-open"></i>Recherche des mots cl�s</a></li>
<?php } ?>





PKc�G[�Y�"layouts-left/headerLayoutTop.phtmlnu&1i�
<header class="hidden-print">
                <!-- User Section Start -->
                <div class="user">
                    <div class="welcome">
                        <p>Bienvenue</p>
                        <h5><a href="<?php echo $this->baseUrl; ?>/backoffice"><?php echo $this->escape($this->useradmin['nom']). ' '.$this->escape($this->useradmin['prenom']).'.'; ?></a></h5>
                    </div>
                </div>
                <!-- User Section End -->
                <!-- Search Section Start -->
                <div class="search-box">
                	<form method="POST" action="/backoffice/product/search" id="searchbarform">
	                    <input type="text" placeholder="Rechercher un produit" name="search" id="searchbarinput" />
	                    <input type="submit" value="go" />
                    </form>
                </div>
                <!-- Search Section End -->
                <!-- Header Top Navigation Start -->
                <nav class="topnav">
                    <ul id="nav1">
		 				<?php echo $this->render("headerLayoutTopMenu.phtml"); ?>
                        <li class="settings">
                        	<a href="#"><i class="glyphicon glyphicon-wrench"></i>Param�tres</a>
                            <div class="popdown popdown-right settings">
                            	<nav>
                                    <a href="http://www.web-entreprise.net/0/demander-des-informations-sur-les-produits-solutions-et-services-professionnels-de-web-entreprise" target="_blank"><i class="glyphicon glyphicon-question-sign"></i>Besoin d'aides ?</a>
                                    <a href="<?php echo $this->baseUrl; ?>/backoffice/auth/logout"><i class="glyphicon glyphicon-log-out"></i>D�connexion</a>
                                </nav>
                            </div>
                        </li>
                    </ul>
                </nav>
                <!-- Header Top Navigation End -->
                <div class="clearfix"></div>
            </header>PKc�G[e�ې0�0layouts-left/headerLayout.phtmlnu&1i�<aside class="sidebar hidden-print">
        <div class="sidebar-in">
                <!-- Sidebar Header Start -->
                <header>
                    <!-- Logo Start -->
                    <div class="logo">
                        <a href="<?php echo $this->baseUrl; ?>/backoffice"><img src="<?php echo $this->baseUrl; ?>/business/image/logo_1.png" alt="Accueil" /></a>
                    </div>
                    <!-- Logo End -->
                    <!-- Toggle Button Start -->
                    <a href="#" class="togglemenu">&nbsp;</a>
                    <!-- Toggle Button End -->
                    <div class="clearfix"></div>
                </header>
                <!-- Sidebar Header End -->
                <!-- Sidebar Navigation Start -->
                
                <nav class="navigation">
                    <ul class="navi-acc" id="navBar">
                   	<?php if ($this->useradmin['isProduct'] == 1 ) { ?>
                        <li class="<?php if ($this->currentMenu == "Product") { echo "active"; }?>">
                       	 	<a href="#layouts" class="layouts">Produits</a>
	                        <ul <?php if ($this->currentMenu != "Product") { echo "style='display:none'"; }?>>
	                           <li><a href="<?php echo $this->baseUrl; ?>/backoffice/product" >Visualiser</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/add" >Ajouter</a></li>
								<?php if (false) { ?>
								<li style="display:none;"><a href="<?php echo $this->baseUrl; ?>/backoffice/product/livraison" >Livraison</a></li>
								<?php } ?>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/search" >Recherche avanc�e</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/keywordsengine" >Moteur de recherche</a></li>
							</ul>
	                   	</li>
                        <li class="<?php if ($this->currentMenu == "Option") { echo "active"; }?>">
	                        <a href="#layouts" class="layouts">Caract�ristiques</a>
	                        <ul <?php if ($this->currentMenu != "Option") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/product/option" >D�tail du produit</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/option" >S�lectionnable</a></li>
								<?php if (false) { ?>
								<li style="display:none"><span class="link4"><a href="<?php echo $this->baseUrl; ?>/backoffice/product/optionprofil" >Profil d'options</a></span></li>
		                    	<?php } ?>
		                    </ul>
	                   	</li>
					<?php } ?>
					<?php if ($this->useradmin['isCategory'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Category") { echo "active"; }?>">
                         	<a href="#ui-elements" class="ui-elements">Cat�gories</a>
                            <ul <?php if ($this->currentMenu != "Category") { echo "style='display:none'"; }?>>
                               <li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category" >Visualiser</a></li>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category/add" >Ajouter</a></li>  
								<?php if (false) { ?>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/product/livraisoncat" style="display:none" >Config. du poids</a></li>
								<?php } ?>
                            </ul>
                        </li>
						<li class="<?php if ($this->currentMenu == "CategorySubs") { echo "active"; }?>">
                            <a href="#ui-elements" class="ui-elements">Cat�gories subsidiaire</a>
                            <ul <?php if ($this->currentMenu != "CategorySubs") { echo "style='display:none'"; }?>>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category2" >Visualiser</a></li>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/category2/add" >Ajouter</a></li> 
                            </ul>
                        </li>
					<?php } ?>
					<?php if ($this->useradmin['isCommand'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Command") { echo "active"; }?>">
                            <a href="#forms" class="forms">Commandes & Devis</a>
                            <ul  <?php if ($this->currentMenu != "Command") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/listcommand" >Commandes</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/listdevis" >Devis</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/command/search" >Rechercher</a></li>
                            </ul>
                        </li>
					<?php } ?>
					<?php if ($this->useradmin['isPromo'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Promos") { echo "active"; }?>">
                            <a href="#forms" class="forms">Promos & Remises</a>
                            <ul <?php if ($this->currentMenu != "Promos") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/product" >Sur le produit</a></li>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/command" >Sur la commande</a></li>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/user" >Sur le client</a></li>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/promotion/codereduction" >Codes r�duction</a></li>
								<?php if ($this->useradmin['isAdmin'] == 1 ) { ?>
									<li><a href="<?php echo $this->baseUrl; ?>/backoffice/productglobal" >G�n�ralit�s</a></li>		
								<?php } ?>
                            </ul>
                        </li>
					<?php } ?>
					<?php if ($this->useradmin['isSupplier'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Supplier") { echo "active"; }?>">
                            <a href="#loginoptions" class="loginoptions">Fournisseurs</a>
                            <ul <?php if ($this->currentMenu != "Supplier") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/supplier" >Visualiser</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/supplier/add" >Ajouter</a></li>
                            </ul>
                        </li>
					<?php } ?>
					<?php if ($this->useradmin['isUser'] == 1 ) { ?>
						<li  class="<?php if ($this->currentMenu == "User") { echo "active"; }?>">
                            <a href="#loginoptions" class="loginoptions">Clients</a>
                            <ul <?php if ($this->currentMenu != "User") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list" >Visualiser</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/search" >Rechercher</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne" >Codes internes</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/user/newsletter" >Newsletter</a></li>
                            </ul>
                        </li>
					<?php } ?>
					<?php if ($this->useradmin['isAdmin'] == 1 ) { ?>
						<li  class="<?php if ($this->currentMenu == "Admin") { echo "active"; }?>">
                            <a href="#loginoptions" class="loginoptions">Administrateurs</a>
                            <ul <?php if ($this->currentMenu != "Admin") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/admin" >Visualiser</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/admin/add" >Ajouter</a></li>
                            </ul>
                        </li>
					<?php } ?> 
					<?php if ($this->useradmin['isPromo'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "AnnonceContent" || 
						$this->currentMenu == "AnnonceFront"|| 
						$this->currentMenu == "AnnonceLeft"|| 
						$this->currentMenu == "AnnonceFooter") { echo "active"; }?>">
                            <a href="#pages" class="pages">Annonces</a>
                            <ul <?php if ($this->currentMenu != "AnnonceContent" && 
						$this->currentMenu != "AnnonceFront"&& 
						$this->currentMenu != "AnnonceLeft"&& 
						$this->currentMenu != "AnnonceFooter") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncecontent" >Publicit� sur l'accueil</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncefront" >Information sur l'accueil</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/annonceleft" >Publicit� par cat�gorie</a></li>								
								<?php if (false) { ?>
								<li style="display: none;"><a href="<?php echo $this->baseUrl; ?>/backoffice/annonceright" >Bandeau Droit</a></li>
								<?php } ?>
								<li ><a href="<?php echo $this->baseUrl; ?>/backoffice/annoncefooter" >Bas de page</a></li>
                            </ul>
                        </li>
					<?php } ?>  
					<?php if ($this->useradmin['isFooter'] == 1 ) { ?>
						<li  class="<?php if ($this->currentMenu == "Footer") { echo "active"; }?>">
                            <a href="#pages" class="pages">Pied de page</a>
                            <ul  <?php if ($this->currentMenu != "Footer") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/footer" >Visualiser</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/footer/add" >Ajouter</a></li>
                            </ul>
                        </li>
					<?php } ?> 
					<?php if ($this->useradmin['isFooter'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Document") { echo "active"; }?>">
                            <a href="<?php echo $this->baseUrl; ?>/backoffice/footer/doc" class="pages">Documents</a>
                        </li>
					<?php } ?>
					<?php if ($this->useradmin['isStats'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Stats") { echo "active"; }?>">
                            <a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/stats" class="charts">Statistiques</a>
                        </li>
                    <?php }?>
					<?php if ($this->useradmin['isStats'] == 1 ) { ?>
						<li class="<?php if ($this->currentMenu == "Logs") { echo "active"; }?>">
                            <a href="#charts" class="charts">Logs</a>
                            <ul  <?php if ($this->currentMenu != "Logs") { echo "style='display:none'"; }?>>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logadmin" >Administration</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/logdefault" >Publique</a></li> 
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/statistic/searchkey" >Recherche des mots cl�s</a></li>
                            </ul>
                        </li>
						<li class="<?php if ($this->currentMenu == "Export") { echo "active"; }?>">
                            <a href="#charts" class="charts">Exports</a>
                            <ul <?php if ($this->currentMenu != "Export") { echo "style='display:none'"; }?> >
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/csv/sitemapxml" >G�n�rer le sitemap</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/csv/exporthello" >CSV -> Hello pro</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/csv/exportleguide" >CSV -> Le Guide</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/csv/exportciao" >CSV -> CIA o</a></li>
								<li><a href="<?php echo $this->baseUrl; ?>/backoffice/csv/exportkelkoo" >CSV -> Kelkoo</a></li> 
                            </ul>
                        </li>
						<li class="<?php if ($this->currentMenu == "Ebp") { echo "active"; }?>">
                            <a href="<?php echo $this->baseUrl; ?>/backoffice/ebp" class="charts">EBP</a>
                        </li>
                    <?php } ?>
                    </ul>
                    <div class="clearfix"></div>
                </nav>
                <!-- Sidebar Navigation End -->
                <!-- Shadow Start -->
                <span class="shadows"></span>
                <!-- Shadow End -->
            </div>
        </aside>PK|�G[=5_��'helpers/mail_ajaxdownloaddocument.phtmlnu&1i�<?php header('Content-Type: text/html; charset=ISO-8859-15'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
    Bonjour <?php echo $this->user_fullname; ?>,<br /><br />
Voici la fiche technique du produit trouv� sur le site <?php echo $this->site_url; ?> : <br /><br />
<?php echo $this->document_link; ?><br /><br />
Le nom du produit est : <?php echo $this->product_name; ?><br /><br />
Pour y acc�der : <br /><br />
<?php echo $this->product_url; ?><br /><br />
<?php echo $this->site_name; ?> pr�sente toute une gamme de <?php echo $this->category_name; ?>, � d�couvrir en cliquant sur le lien suivant :<br /><br />
<?php echo $this->category_url; ?><br /><br />
</body>
</html>
PK|�G[�Waע�%helpers/mail_user_to_commercial.phtmlnu&1i�<?php
$user = $this->user;
$message = $this->message;
$messageNotConnected = $this->messageNotConnected;
?>
<style type="text/css">
.text1 {
	font-family: "Arial";
	font-size: 11px;
	font-weight: bold;
	color: #000000; 
	text-decoration: none; 
	width: 100%;  
	float: left;
	margin: 5px;
	text-align: center;
}
.text2 {
	font-family: "Arial";
	font-size: 11px;
	font-weight: normal;
	color: #000000; 
	text-decoration: none; 
	width: 100%;  
	float: left;
	margin: 5px;
	text-align: center;
}
</style>
<div class="text1">DEMANDE D'INFORMATIONS</div> 
<div class="text1">Client :</div>
<div class="text2">
	<?php if (isset($user) && !empty($user)) { 
		echo $user['nom']." ".$user['prenom'].'<br/><br/>';
		echo 'Email : '.$user['email'].'<br/><br/>';
		echo 'T�l�phone : '.$user['tel']; 
	} else { 
		echo $messageNotConnected; 
	} ?>
</div>
<div class="text1">Message :</div>
<div class="text2">
	<?php echo $message;  ?>
</div>PK|�G[�&�܋�!helpers/mail_ajaxsendfriend.phtmlnu&1i�<?php header('Content-Type: text/html; charset=ISO-8859-15'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
    <?php echo $this->text_message; ?>
</body>
</html>
PK|�G[�v��\\scripts/commande/paiement.phtmlnu&1i�
<?php 
if (isset($this->verifMessage) && $this->verifMessage == 1) { ?>
<div class="col-xs-6 col-xs-offset-3 alert alert-success text-center hidden-print"  >
	Votre commande a �t� prise en compte
</div>
<div class="col-xs-12  hidden-print" style="margin-top: 20px; margin-bottom: 20px;">
	<div class="col-xs-6 text-center "><a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/">Retourner � la page d'accueil</a></div>
	<div class="col-xs-6 text-center "><a class="btn btn-default" onclick="window.print();return false;" href="<?php echo $this->baseUrl; ?>/"><span class="fa fa-print"></span> Imprimer</a></div>
</div>
<?php } else { ?>

<div class="col-xs-6 col-xs-offset-3 alert alert-danger text-center hidden-print"  >
	Votre commande n'a pas �t� prise en compte
</div>
<div class="col-xs-12" style="margin-top: 20px; margin-bottom: 20px;">
	<div class="col-xs-12 text-center"><a class="btn btn-primary hidden-print" href="<?php echo $this->baseUrl; ?>/mon-panier-validation.html">Retourner � la page de validation</a></div>
</div>		
<?php }	?>

<?php echo $this->render("/commande/facture.phtml"); ?>PK|�G[b�X�??#scripts/commande/facture_mail.phtmlnu&1i�<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<meta name="Identifier-URL" content="<?php echo $this->baseUrl_SiteCommerceUrl;?>" />
	<meta name="Reply-to" content="<?php echo $this->serviceClient_Mail;?>" />
	
	<style type="text/css">
	
img {
	border: none;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
}

body {
	font-family: "Arial";
	font-size: 12px;
	text-align: left;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

.oldPromoPrice {
	font-size: 10px;
	font-weight: normal;
	color: #5e5e59;
	text-decoration: line-through;
}
.link6 a:link,.link6 a:visited,.link6 a:active {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: bold;
	color: #787878;
	text-decoration: none;
}

.link6 a:hover {
	text-decoration: underline;
}

.textTd1 {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}
 

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	padding: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
	padding:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	padding:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	padding:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}




.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
	padding: 10px 0 0 20px;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px; 
}

.bill_buy{
	float: left;
	width:500px; 
}
 
.bill_user_paiement_box {
	width:450px;
	margin:5px 0 0 0;
	padding: 0 10px 10px 10px;
	border : 2px #000000 solid;
}

.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
	padding :10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
	padding: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
	padding: 0 0 20px 0;
}
.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>
</head>
<body>

<?php
$facture = $this->facture;
?>
<div style="clear: both;	width: 800px;	margin: 0 auto 0 auto;">
	<div style="float: clear;width: 800px;">
		<div class="bill_company">
			<div class="bill_company_logo"> 
				<a href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png" style="border: none;"/></a>
			</div>
		</div>
		<div  style="	float: right;	width: 400px;">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php if ($facture['STATUT'] == 1 || $facture['STATUT'] == 2 || $facture['STATUT'] == 3) { echo 'Facture';} else {echo 'Devis';} ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line"><?php echo $facture['REFERENCE']; ?></span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
					} catch(Zend_Exception $e) { } 
					?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div> 
		</div>
		<div style="	float: left;	width: 350px;">
			<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
			<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
			<?php } ?>
			<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
			<span class="bill_text">Email : <?php  echo $this->serviceClient_Mail;?></span>
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].' '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line"  style="text-align: center">P.U. HT</th>
				<th class="bill_line"  style="display: none;">Prix Remis�</th>
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) {
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row['REFERENCE']);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<a target="_blank"  href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVPRODUCTNOM'], $row['PRODUCTID']); ?>"><?php echo $row['DESIGNATION'];?></a>
					<?php if (!empty($row['SELECTEDOPTION'])) { 
						echo '<br/>'.$row['SELECTEDOPTION'].'<br/>';
					} ?>
				</td> 
				<td class="textTd1" > 
					<?php if ((int)$row['STOCK'] == 1) { ?>
					<img alt="Disponible" title="Disponible" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row['STOCK'] == 2) { ?>
					<img alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row['STOCK'] == 3) { ?>
					<img alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row['QUANTITY']; ?>	
				</td>
				<td class="textTd1" width="150px">
						<?php $this->currentData = $row;
						echo $this->render("../produits/ajaxshowpromoprice.phtml"); ?>
				</td>
				<td width="120px"  style="display: none;">
				<?php if ($row['isPROMO'] == 1 && $row['REMISEPRIX'] > 0) { ?>
					<span class="textTd1" >
						<?php
							if ((int)$row['REMISEPRIXTAUXP'] > 0) {
									echo number_format($row['REMISEPRIX'], 2, ',', ' ').' &#8364; <br>('.$this->escape($row['REMISEPRIXTAUXP']).' %)';
								} else {
									echo number_format($row['REMISEPRIX'], 2, ',', ' ').' &#8364;';
								}
							?>
					</span>
					<?php } ?>
				</td>
				<td width="120px">
					<span class="textTd1" style="float: right;" >
						<?php if ($row['isDEVIS'] == 1) { 
							echo number_format($row['PRIXTOTAL'], 2, ',', ' ').' &#8364;';
						} ?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>
	
  <?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row['NOM'].' ('.$row['NBPOINT'].' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>				
		</table>
	</div>
	<div class="bill_facture"> 
		<div class="bill_buy">   
				<?php switch ($facture['USER_MODEPAIEMENT_TYPE']) {
						case 1 : ?>
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par ch�que</div>
							<div style="margin-left:10px">- Veuillez libeller votre ch�que � l�ordre de <?php echo $this->siteName; ?></div>
							<div style="margin-left:10px">- Inscrivez le num�ro de votre commande au dos de votre ch�que</div>
							<div style="margin-left:10px">- Puis envoyez votre r�glement � l�adresse suivante :</div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->siteName; ?></div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_title; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_address; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_cp; ?></div>
							<br/>
							<div style="font-size:10px;text-align:center">A noter : Les produits sont exp�di�s � r�ception du ch�que</div> 
						</div> 
						<?php  break;
							case 2 : ?>  
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par virement</div>
							<div >- La commande sera exp�di�e d�s le virement pr�sent sur notre compte bancaire.</div> 
							<div class="bill_text">- Inscrivez votre num�ro de commande sur le formulaire de virement</div> 
							<div >- Vous disposez d�un <span style="font-weight: bold;">d�lai de 15 jours</span> pour effectuer le virement sur notre compte ci-dessous indiqu�, au d�l� de ce d�lai votre commande sera automatiquement annul�e.</div> 
							<br/>
							<div class="bill_text">RIB : <?php echo $this->site_rib_numbers; ?></div> 
							<div class="bill_text">No IBAN : <?php echo $this->site_rib_iban; ?></div> 
							<div class="bill_text">Code BIC : <?php echo $this->site_rib_bic; ?></div> 
							<div class="bill_text">Nom du compte : <?php echo $this->siteName; ?></div> 
							<div class="bill_text">Nom et domiciliation de la banque : <?php echo $this->site_rib_bankname; ?></div>  
						</div> 
				<?php 	break;
						default : ?>
							<span class="bill_text2">
							<?php if (empty($facture['USER_MODEPAIEMENT_LABEL'])) { ?> Mode de reglement :
							<?php 
								switch ($facture['USER_MODEPAIEMENT']) {
									case 1 : echo " Paiement s�curis� en ligne"; break;
									case 2 : echo " Contre remboursement";break;
									case 3 : echo " Paiement diff�r� - 30 jours";break;
									case 4 : echo " Paiement diff�r� - 45 jours";break;
									case 5 : echo " Paiement diff�r� - 60 jours";break;
									case 6 : echo " A r�ception de la facture";break;
								}
							} else { 
								echo $facture['USER_MODEPAIEMENT_LABEL'];
							} ?>
							</span>	 
						<?php 
						break;  
				} ?>  
		</div> 
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right"> 
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['LIV_NOM']) && !empty($facture['LIV_NOM']) ) { echo 'Livraison en '.$facture['LIV_NOM']; } else { echo 'Frais de port'; } 
						} ?>
					</td>
					
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
	
	
	<div class="bill_footer">
			<span class="link18">
				<input type="checkbox" checked="checked" disabled="disabled"/>
				J'ai pris connaissance des Conditions G�n�rales de Vente et les accepte sans r�serves.
			</span>
			<br /><br />
			<span class="bill_text3">
			P�nalit�s de retard (taux annuel) : 9,00% 
			</span><br>
			<span class="bill_text3">
			<b>RESERVE DE PROPRIETE</b> : Nous nous r�servons la propri�t� des marchandises jusqu'au paiement du prix par l'acheteur. Notre droit de revendication porte aussi bien sur les marchandises que sur leur prix si elles ont d�j� �t� revendues (Loi du 12 mai 1980). 
			</span><br><br>
	</div>
	
		<div class="bill_footer2" >
				<span class="bill_text3">
			<?php echo $this->site_addresse; ?>
			</span><br>
			<span class="bill_text3">
			<?php echo $this->site_actualshort; ?>
			</span>
		</div >
</div>


</body>
</html>
PK|�G[�s��=�=scripts/commande/facture.phtmlnu&1i�
<?php
$facture = $this->facture;
?>
<script type="text/javascript"> 
	 $(function(){
		 window.print();
	});
</script>
<style type="text/css">
.textTd1 {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}
.oldPromoPrice {
	font-size: 10px;
	font-weight: normal;
	color: #5e5e59;
	text-decoration: line-through;
}
.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}

.bill_header {
	float: clear : both;
	width: 800px;
}

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
	
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
 
.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px; 
}

.bill_buy{
	float: left;
	width:500px; 
}
 
.bill_user_paiement_box {
	width:450px;
	margin:5px 0 0 0;
	padding: 0 10px 10px 10px;
	border : 2px #000000 solid;
}

.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
}

.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>
<div class="bill_body">
	<div class="bill_header">
		<div class="bill_company">
			<div class="bill_company_logo">
        <a href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png" style="border: none;"/></a>
			</div>
		</div>
		<div class="bill_idents">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php if ($facture['STATUT'] == 1) { echo 'Commande N';} else {echo 'Devis N';} ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line"><?php echo $facture['REFERENCE']; ?></span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
		
					
					} catch(Zend_Exception $e) {
						
					} ?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div> 
		</div>
		<div style="float: left;width:800px ">
			<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
				<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
			<?php } ?>
			<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
			<span class="bill_text">Email : <?php echo $this->serviceClient_Mail; ?></span>
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].'  '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line" style="text-align:center">P.U. HT</th> 
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) {
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row->item_reference);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<?php echo $row->item_designation;?>
					<?php if (!empty($row->item_selectedOption)) { 
						echo '<br/>'.$row->item_selectedOption.'<br/>';
					} ?> 
				</td>
				<td class="textTd1" > 
					<?php if ((int)$row->item_stock == 1) { ?>
					<img alt="Disponible" title="Disponible" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row->item_stock == 2) { ?>
					<img alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row->item_stock == 3) { ?>
					<img alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row->item_qte; ?>	
				</td>
				<td class="textTd1" width="150px">
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromopricecaddy.phtml"); ?>
				</td> 
				<td width="120px">
					<span class="textTd1" style="float: right;" >
					<?php 
						if (!$row->isSurDevis()) {
							echo number_format($row->getPrixTotalHT(true), 2, ',', ' ').' &#8364;';
						}
					?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>	
			
  <?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row->fidelite_nom.' ('.$row->fidelite_nbpoint.' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>
		</table>
	</div>
	<div class="bill_facture">
		<?php if ($facture['STATUT'] == 1) { ?> 
		<div class="bill_buy">   
				<?php switch ($facture['USER_MODEPAIEMENT_TYPE']) {
						case 1 : ?>
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par ch�que</div>
							<div style="margin-left:10px">- Veuillez libeller votre ch�que � l�ordre de <?php echo $this->siteName; ?></div>
							<div style="margin-left:10px">- Inscrivez le num�ro de votre commande au dos de votre ch�que</div>
							<div style="margin-left:10px">- Puis envoyez votre r�glement � l�adresse suivante :</div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->siteName; ?></div>
							<br/>
						<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_title; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_address; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_cp; ?></div>
							<br/>
							<div style="font-size:10px;text-align:center">A noter : Les produits sont exp�di�s � r�ception du ch�que</div> 
						</div> 
						<?php  break;
							case 2 : ?>  
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par virement</div>
							<div >- La commande sera exp�di�e d�s le virement pr�sent sur notre compte bancaire.</div> 
							<div class="bill_text">- Inscrivez votre num�ro de commande sur le formulaire de virement</div> 
							<div >- Vous disposez d�un <span style="font-weight: bold;">d�lai de 15 jours</span> pour effectuer le virement sur notre compte ci-dessous indiqu�, au d�l� de ce d�lai votre commande sera automatiquement annul�e.</div> 
							<br/>
							<div class="bill_text">RIB : <?php echo $this->site_rib_numbers; ?></div> 
							<div class="bill_text">No IBAN : <?php echo $this->site_rib_iban; ?></div> 
							<div class="bill_text">Code BIC : <?php echo $this->site_rib_bic; ?></div> 
							<div class="bill_text">Nom du compte : <?php echo $this->siteName; ?></div> 
							<div class="bill_text">Nom et domiciliation de la banque : <?php echo $this->site_rib_bankname; ?></div>  
						</div> 
				<?php 	break;
						default : ?> 
							<span class="bill_text2">
							<?php if (empty($facture['USER_MODEPAIEMENT_LABEL'])) { ?> Mode de reglement :
							<?php 
								switch ($facture['USER_MODEPAIEMENT']) {
									case 1 : echo " Paiement s�curis� en ligne"; break;
									case 2 : echo " Contre remboursement";break;
									case 3 : echo " Paiement diff�r� - 30 jours";break;
									case 4 : echo " Paiement diff�r� - 45 jours";break;
									case 5 : echo " Paiement diff�r� - 60 jours";break;
									case 6 : echo " A r�ception de la facture";break;
								}
							} else { 
								echo $facture['USER_MODEPAIEMENT_LABEL'];
							} ?>
							</span>	 
						<?php 
						break;  
				} ?>  
		</div>
		<?php } ?>
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']['CODE']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right"> 
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['INFOLIV']) && !empty($facture['INFOLIV']) ) { echo 'Livraison en '.$facture['INFOLIV']['NOMLIV']; } else { echo 'Frais de port'; } 
						} ?>
					</td> 
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
	
	
	<div class="bill_footer">
			<span class="link18">
				<input type="checkbox" checked="checked" disabled="disabled"/>
				J'ai pris connaissance des Conditions G�n�rales de Vente et les accepte sans r�serves.
			</span>
			<br /><br />
			<span class="bill_text3">
			P�nalit�s de retard (taux annuel) : 9,00% 
			</span><br>
			<span class="bill_text3">
			<b>RESERVE DE PROPRIETE</b> : Nous nous r�servons la propri�t� des marchandises jusqu'au paiement du prix par l'acheteur. Notre droit de revendication porte aussi bien sur les marchandises que sur leur prix si elles ont d�j� �t� revendues (Loi du 12 mai 1980). 
			</span><br><br>
	</div>
	
		<div class="bill_footer2" >
				<span class="bill_text3">
			<?php echo $this->site_addresse; ?>
			</span><br>
			<span class="bill_text3">
			<?php echo $this->site_actualshort; ?>
			</span>
		</div >
</div>
 
<script type="text/javascript">
  
  ga('create', '<?php echo $this->google_analytics; ?>', 'auto', {'name': 'cmdTracker'});
  
  ga('cmdTracker.require', 'ecommerce');
 
  ga('cmdTracker.ecommerce:addTransaction', {
    'id': '<?php echo $facture['ID_COMMAND'];?>', 
	  'affiliation': '<?php echo $this->siteName; ?>',  
	  'revenue': '<?php echo str_replace(" ", "", number_format($facture['PRIXTOTALTTC'], 2, '.', ' ')); ?>', 
	  'shipping': '<?php echo number_format($facture['PRIXFRAISPORT'], 2, '.', ' '); ?>',  
	  'tax': '0',
    'currency': 'EUR'
	});

  <?php $caddy = $facture['CADDY'];
  foreach($caddy as $row) { 
		$unitPrice = "";
		if (!$row->isSurDevis()) {
		 	if ($row->isPromo()) { 
				$unitPrice = number_format($row->getPrixAfterRemise(), 2, '.', ' ');
			} else {
				$unitPrice = number_format($row->item_prix, 2, '.', ' ').' ';
			} 
		}
	?>
	
	ga('cmdTracker.ecommerce:addItem', {
  'id': '<?php echo $facture['ID_COMMAND'];?>',    
  'name': '<?php echo strip_tags($row->item_designation);?>',   
  'sku': '<?php echo $this->escape($row->item_reference);?>',  
  'category': '',  
  'price': '<?php echo str_replace(" ", "", $unitPrice);?>',  
  'quantity': '<?php echo $row->item_qte;?>'  
});

  <?php } ?>

  ga('cmdTracker.ecommerce:send');
</script>
PK|�G[.scripts/commande/paypalipnvalidationtest.phtmlnu&1i�PK|�G[��iAA scripts/commande/connexion.phtmlnu&1i�
<script type="text/javascript">
$(function(){
$('#addUserForm').submit(function(e) {  
    e.preventDefault();
		 $.ajax( {
			type : "POST",
			async : true,
			url : '/commande/ajaxenregistrement', 
			data : stringify($(this).serializeArray()),
      contentType:"application/x-www-form-urlencoded; charset=iso-8859-1",
			success : function(data) { 
				 if (data == "SUCCESS") {
					 window.location="/mon-panier-livraison.html";
				} else {
					$('#alertMessage').html(data);
					$('#alertMessage').show();
				} 
			}});
		});

	$('#connexionForm').submit(function() { 
		 $.ajax( {
			type : "POST",
			async : true,
			url : '/commande/ajaxconnexion', 
			data : $(this).serialize(),
			success : function(data) { 
				 if (data == "SUCCESS") {
					 window.location="/mon-panier-livraison.html";
				} else {
					$('#alertMessage').html(data);
					$('#alertMessage').show();
				}
			}});
		  return false;
		});	
	
});

</script>


<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id_over"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation"></div>
	</div>
</div>
<div id="alertMessage" style="display: none;" class="col-xs-6 col-xs-offset-3 alert alert-danger text-center"  ></div>

<?php 
$this->showSlide = 1;
echo $this->render("/user/connexion.phtml"); ?>PK|�G[)�^bbscripts/commande/devis.phtmlnu&1i�<div class="col-xs-6 col-xs-offset-3 alert alert-success text-center hidden-print"  >
	Votre devis a �t� prise en compte
</div>
<div class="col-xs-12" style="margin-top: 20px; margin-bottom: 20px;">
	<div class="col-xs-6 text-center "><a class="btn btn-primary hidden-print" href="<?php echo $this->baseUrl; ?>/">Retourner � la page d'accueil</a></div>
	<div class="col-xs-6 text-center "><a class="btn btn-default" onclick="window.print();return false;" href="<?php echo $this->baseUrl; ?>/"><span class="fa fa-print"></span> Imprimer</a></div>
</div>

<?php echo $this->render("/commande/facture.phtml"); ?>
PK|�G[*scripts/commande/paypalipnvalidation.phtmlnu&1i�PK|�G[�� scripts/commande/livraison.phtmlnu&1i�
<script type="text/javascript">
$(function(){ 
	$('#commandeLivForm').submit(function() { 
		 $.ajax( {
			type : "POST",
			async : true,
			url : '/commande/ajaxlivraison', 
			data : $(this).serialize(),
			success : function(data) { 
				 $('#cmdLivResult').html(data);
			}});
		  return false;
		});

	 $('#validLiv').bind({
	    click: function(e){ 
	 		window.location="/mon-panier-validation.html";
	    }
	});

	 var params = new Array();
	params['route'] = $('#livuser_adresse');
	params['locality'] = $('#livuser_ville');
	params['administrative_area_level_2'] = null;
	params['administrative_area_level_1'] = null;
	params['country'] = $('#livuser_pays');
	params['postal_code'] = $('#livuser_cp');
	
	initEventAddress($('#livuser_adressecomplete'), params);
	
});
</script>

<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison_over"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation"></div>
	</div>
</div>
<div class="cmdLiv">
	<div class="cmdLiv_BG1">
		<div class="textA5 titleA1">R�CAPITULATIF DE VOTRE LIVRAISON</div>
	</div>
	<div class="cmdLiv_BG2">
		<div class="col-xs-12 noPadding" style="margin-top: 10px;margin-bottom: 10px;">
		
			<div class="col-xs-6 noPadding caddy-liv-info">
				<form id="commandeLivForm" action="<?php echo $this->baseUrl; ?>/commande/ajaxlivraison/" method="post">	
			
				<div class="textA6" style="float: left;width: 100%;">
					Modifier votre adresse de Livraison
				</div>
			
				<div class="cmdField" style="margin: 10px 0 0 0">
					<div class="textA2 cmdFieldLabel">
						<?php if($this->adresseLiv['type'] == "Professionnel") { 
							echo "* Raison sociale :";
						} else {
							echo "* Pr�nom et Nom :";
						}?>
					</div>
					<div style="float: left;">
						<input type="text" class="form-control" name="livuser_raisonsocial" id="livuser_raisonsocial"  value="<?php echo $this->adresseLiv['raisonsocial']; ?>" />
					</div>
				</div>
				<input type="hidden" id="address_type" name="address_type" value="old">
					
				<div id="adresseNew"  style="display: none;">
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="messageError" id="addressError" style="clear: both;display: none;margin: 0 0 0 70px"></div>
						
						<div class="textA2 cmdFieldLabel">* Adresse :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_adressecomplete" id="livuser_adressecomplete"  value="<?php echo $this->adresseLiv['adressecomplete']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Rue :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_adresse" id="livuser_adresse"  value="<?php echo $this->adresseLiv['adresse']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Code postal :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_cp" id="livuser_cp"  value="<?php echo $this->adresseLiv['cp']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Ville :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_ville" id="livuser_ville"  value="<?php echo $this->adresseLiv['ville']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Pays :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_pays" id="livuser_pays"  value="<?php echo $this->adresseLiv['pays']; ?>" />
						</div>
					</div>
					
					<div class="cmdField" style="margin: 10px 0 0 0"> 
						<div style="float: left;">
							<span class="link7"><a href="javascript:;" onclick="swichAdresse($('#adresseNew'),$('#adresseOld'),$('#address_type'), 'old')">Je ne trouve pas mon adresse !</a></span>
						</div>
					</div>
							
				</div>
				
				<div id="adresseOld" >
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Adresse :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_adresse_old"  value="<?php echo $this->adresseLiv['adresse']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Code postal :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_cp_old"  value="<?php echo $this->adresseLiv['cp']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Ville :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_ville_old"  value="<?php echo $this->adresseLiv['ville']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Pays :</div>
						<div style="float: left;">
							<select name="livuser_pays_old" class="form-control">
								<?php 
								foreach ($this->listPays as $pays) { ?>
								<option value="<?php echo $pays['PAYS']; ?>" <?php if (strcasecmp($pays['PAYS'], "FRANCE") == 0) { echo 'selected'; } ?>><?php echo $pays['PAYS']; ?></option>
								<?php }?>
							</select>
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0;display: none;"> 
						<div style="float: left;">
							<span class="link7"><a href="javascript:;" onclick="swichAdresse($('#adresseOld'),$('#adresseNew'),$('#address_type'), 'new')">Trouver mon adresse</a></span>
						</div>
					</div>
				</div>
				</form>
			</div>
			<div class="col-xs-6 noPadding">
				<div class="textA6" style="float: left;width: 100%;">
					Adresse de Livraison 
				</div>
				<div class="col-md-8 col-md-offset-2" id="cmdLivResult">
					<?php echo $this->render("/ajax/ajaxlivraison.phtml"); ?>
				</div>
			</div>
		</div>
	
	</div>
	<div class="cmdLiv_BG3"> 
		<div class="cmdFieldSubmit">
			<input type="button" class="btn btn-primary" onclick="$('#commandeLivForm').submit();" id="editLiv" value="MODIFIER" />
		</div>
		<div class="cmdFieldSubmit2" >
			<input type="button" id="validLiv" class="btn btn-success btn-lg" value="CONTINUER"/>
		</div>
	</div>
</div>
PK|�G[��q�y"y"!scripts/commande/validation.phtmlnu&1i�

<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation_over"></div>
	</div>
</div>
<?php 
$facture = $this->facture;
?>
<div style="float: left; margin: 0 0 0 150px">
	<span class="text3" >Avant de terminer votre commande, veuillez v�rifier l'exactitude de vos donn�es. </span>
</div>

 <?php echo $this->render("/commande/factureedit.phtml"); ?>

<div class="col-xs-6 col-xs-offset-6 text-right" >
  <div class="checkbox" style="width: 360px;">
	   <label class="link18">
          <input type="checkbox" name="isCGV" id="isCGV" > J'ai pris connaissance des <a href="<?php echo $this->baseUrl; ?>/info-3/conditions-generales-vente.html" target="_blank">Conditions G�n�rales de Vente</a>
	
        </label>
	</div>
  </div>
<div class="col-xs-12 noPadding" style="margin: 20px 0 70px 0;">

	<div  class="col-sm-3 col-xs-12 text-center noPadding" > 
		<a class="btn btn-primary btn-lg caddy-link" href="<?php echo $this->baseUrl; ?>/commande/devis" onclick="return checkCheckBoxes('isCGV');" >
			FAIRE UN DEVIS
		</a> 
	</div> 
	<?php if ($facture['PRIXTOTALTTC'] > 0 && $this->isCommandValid == true) { ?>
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<a onclick="return checkCheckBoxes('isCGV');"  href="<?php echo $this->baseUrl; ?>/commande/paiement/type/1" class="btn btn-primary caddy-link"   >
				PAYER PAR CHEQUE
			</a>
		</div>
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<a onclick="return checkCheckBoxes('isCGV');" href="<?php echo $this->baseUrl; ?>/commande/paiement/type/2" class="btn btn-primary caddy-link" >
				FAIRE UN VIREMENT
			</a>
		</div>
		
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<?php 
				$modepaiement = $facture['USER_MODEPAIEMENT'];
				$isCompte = false;  
				$modepaiement_imgTexte = '';
				if ($this->user['isrecepfacture'] == "Y" || $this->user['iscredit'] == 1) {
					switch ($modepaiement) {
						case 2 : 
							$modepaiement_texte = "Payer � r�ception de la facture";
							$modepaiement_img = "/business/image/inbox.png";
							$modepaiement_imgTexte = "Payer � r�ception de la facture";
							$isCompte = true;
							break;
						case 3 : 
							$modepaiement_texte = "Paiement diff�r� - 30 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 30 jours";
							$isCompte = true;
							break;
						case 4 : 
							$modepaiement_texte = "Paiement diff�r� - 45 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 45 jours";
							$isCompte = true;
							break;
						case 5 : 
							$modepaiement_texte = "Paiement diff�r� - 60 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 60 jours";
							$isCompte = true;
							break;
						case 6 : 
							$modepaiement_texte = "A r�ception de la facture";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer a r�ception de la facture";
							$isCompte = true;
							break;
						default :
							$isCompte = false;
							break;
					} 
				}   
				if ($isCompte) { 
			?>
			<a onclick="return checkCheckBoxes('isCGV');" title="<?php echo $modepaiement_imgTexte; ?>"  href="<?php echo $this->baseUrl; ?>/commande/paiement/type/3" data-placement="bottom" class="tooltips btn btn-danger btn-lg caddy-link" >
					EN COMPTE
				</a>
				<?php } ?>
		</div>
		<div class="col-sm-3 col-xs-12 text-center noPadding" >
				<?php $myDate = new Zend_Date(strtotime($facture['DATESTART'])); ?>
				
					<form action="https://securepayments.paypal.com/acquiringweb?cmd=_hosted-payment" method="post">
						<input type="hidden" name="cmd" value="_hosted-payment">
						<input type="hidden" name="business" value="<?php echo $this->paypal_business; ?>">
						<input type="hidden" name="item_name" value="<?php echo 'Total de la commande du '.$myDate->toString('dd/MM/YYYY').' (TTC)'; ?>" /> 
						<input type="hidden" name="item_number" value="<?php echo $facture['ID_COMMAND']; ?>" />
						<input type="hidden" name="custom" value="<?php echo $facture['ID_COMMAND']; ?>" />
						<input type="hidden" name="no_shipping" value="1">
						<input type="hidden" name="no_note" value="1">
						<input type="hidden" name="return" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/commande/paiement">
						<input type="hidden" name="cancel_return" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/commande/paiement">
						<input type="hidden" name="page_style" value="PayPalPerso">
						<input type="hidden" name="currency_code" value="EUR">
						
						<input type="hidden" name="subtotal" value="<?php echo $facture['PRIXTOTALTTC']; ?>"> 
						<input class="btn btn-success btn-lg caddy-link btn-paypal-only" data-placement="top" type="submit" name="PayPal2" value="PAYER VIA PAYPAL"  onclick="return checkCheckBoxes('isCGV');" >
						
						<input type="hidden" name="first_name" value="<?php echo utf8_encode($facture['LIV_RAISONSOCIAL']); ?>">
						<input type="hidden" name="address1" value="<?php echo utf8_encode($facture['FACT_ADRESSE']); ?>">
						<input type="hidden" name="city" value="<?php echo utf8_encode($facture['FACT_VILLE']); ?>">
						<input type="hidden" name="zip" value="<?php echo utf8_encode($facture['LIV_CP']); ?>">
						<input type="hidden" name="country" value="<?php echo utf8_encode($facture['LIV_PAYS']); ?>">
						<input type="hidden" name="billing_first_name" value="<?php echo utf8_encode($facture['USER_PRENOM']); ?>">
						<input type="hidden" name="billing_last_name" value="<?php echo utf8_encode($facture['USER_NOM']); ?>">
						<input type="hidden" name="billing_address1" value="<?php echo utf8_encode($facture['FACT_ADRESSE']); ?>">
						<input type="hidden" name="billing_city" value="<?php echo utf8_encode($facture['FACT_VILLE']); ?>">
						<input type="hidden" name="billing_zip" value="<?php echo utf8_encode($facture['FACT_CP']); ?>">
						<input type="hidden" name="billing_country" value="<?php echo utf8_encode($facture['FACT_PAYS']); ?>">
					
						<!-- PERSONNALISATION -->
						<input type="hidden" name="template" value="TemplateA">
						<input type="hidden" name="bodyBgColor" value="#A2A1A1">
						<input type="hidden" name="footerTextColor" value="#000000">
						<input type="hidden" name="headerBgColor" value="#ffffff">
						<input type="hidden" name="headerHeight" value="150">
						<input type="hidden" name="logoImage" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png">
						<input type="hidden" name="orderSummaryBgColor" value="#D6D6D6">
						<input type="hidden" name="pageButtonBgColor" value="#68B777">
						<input type="hidden" name="pageButtonTextColor" value="#000000">
						
						<input type="hidden" name="pageTitleTextColor" value="#DE021B">
						<input type="hidden" name="sectionBorder" value="#DE021B">
						<input type="hidden" name="showCustomerName" value="true">
						<input type="hidden" name="showBillingAddress" value="true">
						<input type="hidden" name="showShippingAddress" value="true">
						
					</form>
			</div>
			<?php } ?>
	</div>	

	<input type="hidden" id="PRIXTOTALHT" value="<?php echo $facture['PRIXTOTALHT']; ?>">
	<input type="hidden" id="PRIXTOTALTTC" value="<?php echo $facture['PRIXTOTALTTC']; ?>">
	<input type="hidden" id="PRIXFRAISPORT" value="<?php echo $facture['PRIXFRAISPORT']; ?>">
	<input type="hidden" id="PRIXTAX" value="<?php echo $facture['PRIXTOTALTTC'] - $facture['PRIXTOTALHT'] ; ?>">
	<input type="hidden" id="REFERENCE" value="<?php echo $facture['REFERENCE']; ?>">
	<input type="hidden" id="IDUSER" value="<?php echo $facture['IDUSER']; ?>">
	<input type="hidden" id="USER_EMAIL" value="<?php echo $facture['USER_EMAIL']; ?>">
	<input type="hidden" id="USER_NOM" value="<?php echo utf8_encode($facture['USER_NOM']); ?>">
	<input type="hidden" id="USER_PRENOM" value="<?php echo utf8_encode($facture['USER_PRENOM']); ?>">
	<input type="hidden" id="LIV_VILLE" value="<?php echo utf8_encode($facture['LIV_VILLE']); ?>">
	<input type="hidden" id="LIV_PAYS" value="<?php echo utf8_encode($facture['LIV_PAYS']); ?>">
	<input type="hidden" id="USER_TYPE" value="<?php echo $facture['USER_TYPE']; ?>">
	<input type="hidden" id="USER_MODEPAIEMENT_LABEL" value="<?php echo $facture['USER_MODEPAIEMENT_LABEL']; ?>"> 
PK|�G[�Ư>�)�)"scripts/commande/factureedit.phtmlnu&1i�
<?php
$facture = $this->facture;
?>
<style type="text/css">
.oldPromoPrice,
.text12 {
font-size: 11px;
}

.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}

.bill_header {
	float: clear : both;
	width: 800px;
}

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
	margin: 20px 0 0 0 ;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
}
.bill_address_opt3 {
	float:left;
	width:300px;
	margin: 10px 0 0 0;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px;
	height:150px;
}

.bill_buy{
	float: left;
	width:350px;
	height:30px;
}

.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
}

.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>
<div class="bill_body">
	<div class="bill_header">
		<div class="bill_company">
			<div class="bill_company_logo"> 
				<a href="<?php echo $this->baseUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl; ?>/business/image/logo.png" /></a>
			</div>
			<div>
				<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
				<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
				<?php } ?>
				<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
				<span class="bill_text">Email : <?php echo $this->serviceClient_Mail; ?></span>
			</div>
		</div>
		<div class="bill_idents">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
		
					} catch(Zend_Exception $e) {
						
					} ?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div>
		
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
				</div>
			<div class="bill_address_opt3">
				<span class="text3">Pour modifier votre adresse de facturation, <span class="link4"><a href="<?php echo $this->baseUrl; ?>/mon-compte.html">cliquez ici. </a></span></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].' '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
			<div class="bill_address_opt3">
				<span class="text3">Pour modifier votre adresse de livraison, <span class="link4"><a href="<?php echo $this->baseUrl; ?>/mon-panier-livraison.html">cliquez ici. </a></span></span>
			</div> 
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line"  style="text-align: center">P.U. HT</th> 
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) { 
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row->item_reference);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<a target="_blank"  href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->product_navnom_urlparents, $row->product_navnom, $row->product_id); ?>"><?php echo $row->item_designation;?></a>
					<?php if (!empty($row->item_selectedOption)) { 
						echo '<br/>'.$row->item_selectedOption.'<br/>';
					} ?>
				</td>
				<td class="textTd1" > 
					<?php if ((int)$row->item_stock == 1) { ?>
					<img class="tooltips" alt="Disponible imm�diatement" title="Disponible imm�diatement" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row->item_stock == 2) { ?>
					<img class="tooltips" alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row->item_stock == 3) { ?>
					<img class="tooltips" alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row->item_qte; ?>	
				</td>
				<td class="textTd1" width="150px">					
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromopricecaddy.phtml"); ?>
				</td> 
				<td width="120px">
					<span class="textTd1" style="float: right;" >
					<?php 
						if (!$row->isSurDevis()) {
							echo number_format($row->getPrixTotalHT(true), 2, ',', ' ').' &#8364;';
						}
					?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>	
			<?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row->fidelite_nom.' ('.$row->fidelite_nbpoint.' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>
		</table>
	</div>
	<div class="bill_facture">
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']['CODE']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['INFOLIV']) && !empty($facture['INFOLIV']) ) { echo 'Livraison en '.$facture['INFOLIV']['NOMLIV']; } else { echo 'Frais de port'; } 
						} ?>
					</td>
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
</div>
PK|�G[scripts/contact/empty.phtmlnu&1i�PK|�G[���@scripts/contact/index.phtmlnu&1i�

<script type="text/javascript" src="<?php echo $this->baseUrl; ?>/business/light/js/validate.js"></script>

<!-- page content -->
<div id="page" style="background: transparent !important; border:0 !important;">
<div class="big_header"><h1 class="big_header">Contact</h1></div>

<div id="page_top"></div>
<div class="scroll-pane">
<div class="page_block">
<div class="column_cont">	
		<div class="two-third margin_1line contactpage">		
		<h3>Envoyer un message</h3>
		<div id="comment" class="margin_1line"></div>
			<!-- contactForm -->
			<form name="contactForm" id="contactForm" method="get" action="" class="margin_1line">
				<div class="contact"><label for="name">Nom:</label>
				<input type="text" name="name" id="name" class="required,all" />&nbsp;
				<img name="name" src="/business/light/img/blank.png" alt=""/></div>
				
				<div class="contact margin_1line"><label for="email">Email:</label>
				<input type="text" name="email" id="email" class="required,email" />&nbsp;
				<img name="email" src="/business/light/img/blank.png" alt=""/></div>
				
				<div class="contact margin_1line"><label for="message">Message:</label>
				<textarea name="message" id="message" class="required,all" rows="8" cols="10"></textarea>&nbsp;
				<img name="message" src="/business/light/img/blank.png" alt=""/></div>
				
				<div class="contact"><label for="submit">&nbsp;</label><a href="#" id="submit" class="butt custom_font  margin_3_2line">Envoyer</a></div>
			</form><!-- contacForm end -->
	</div>
	<div class="one-third contactpage">		
	<h3 class="margin_1line"><?php echo $this->custom_text_1; ?></h3>
			<h6 class="margin_1line"><?php echo $this->custom_text_2; ?></h6>
			<p class="margin_1line"><?php echo $this->custom_text_3; ?></p>
			<p class="margin_1line">
				e-mail: <?php echo $this->contact_Mail; ?><br />
				tel: 07-88-97-44-55 <br />
			</p>
	</div>	
</div><!-- column_cont div end -->

<div class="clear"></div>

</div><!-- page-block div end -->
<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>

</div>


</div>PK|�G[�e�l��$scripts/produits/ajaxaddpanier.phtmlnu&1i�<span class="messageSuccess"><?php echo $this->messageSuccess; ?></span> 
<span class="messageError"><?php echo $this->messageError; ?></span> PK|�G[@���44$scripts/produits/monpaniertype.phtmlnu&1i�

<script  type="text/javascript" >

$(function(){
	initEventsCaddyType();
});

</script>
<div class="spaceBG2" ></div> 
<div >
<?php  
$caddyTypes = $this->caddyType; 

if (empty($caddyTypes)) { ?>
<div class="col-xs-12 text-center" style="margin-top: 20px;">Il n'y a aucun article dans votre panier.</div>
<div class="col-xs-12 text-center" style="margin-top: 20px;">
		<a   data-placement="bottom" class="btn btn-default btn-lg" href="<?php if (isset($this->urlCurrentProduct) && !empty($this->urlCurrentProduct)) { echo $this->urlCurrentProduct; } else { echo $this->baseUrl.'/'; } ?>" >
			CONTINUER MES ACHATS
		</a>
</div>
<?php  } else { ?>
<div class="productAnnexeLabel caddyTypeUp">
	Retrouver les r�f�rences de vos produits
</div>

<form  id="caddyTypeCheckForm" action="<?php echo $this->baseUrl; ?>/mon-panier-type-actualiser.html" method="post">
	<div style="float: left;width: 100%;">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" height="50px" style="background-color: #e7e7e7">
				<th class="textTh1">Produit</th>
				<th class="textTh1">Dispo.</th>
				<th class="textTh1">Prix Unitaire (HT)</th> 
				<th class="textTh1">Quantit�</th>   
			</tr>
			<?php
			$index = 1;
			$i = 0;
			foreach($caddyTypes as $row) {
				?>
			<tr align="center"  height="25px"  style="background-color:<?php  if (!$row->isPromoCaddyType) { if ($index == 0) {echo '#E7E7E7'; $index=1;} else {$index=0; echo '#FFFFFF';} } else { echo "#92B901"; } ?>;">
				<td  >
					<div class="caddyProdImg" >  
						<a target="_blank" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->navnom_urlparents, $row->navnom, $row->idProduit); ?>"
							title="<?php echo $this->escape($row->designation);?>" >
							<img src="<?php echo $this->baseUrl.'/'.$row->url; ?>">
						</a>
					</div>
					<div class="caddyProdTxt" >
						<div class="link17" style="width: auto;clear:both">
							<a target="_blank" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->navnom_urlparents, $row->navnom, $row->idProduit); ?>">
								<?php echo $this->escape($row->designation);?>
							</a>
						</div>
						<div class="textA1 productDetail_ref">
							<?php echo "Ref. ".$this->escape($row->reference);?>
						</div>
					</div>
				</td> 
				<td width="70px">
					<?php if ((int)$row->stock == 1) { ?>
					<img alt="Disponible" title="Disponible" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock11.png">
					<?php } else if ((int)$row->stock == 2) { ?>
					<img alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock22.png">
					<?php } else if ((int)$row->stock == 3) { ?>
					<img alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock33.png">
					<?php }?> 
				</td>
				<td valign="top" width="150px">
						
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromopricecaddy.phtml"); ?>
				</td> 
				<td align="center">
					<div style="clear:both;width: 90px;margin: 0 auto 0 auto;">
						<input onclick="javascript:clearInput($(this), '0');" type="text" class="input3 caddyQuantity" maxlength="6" name="Quantity[]" value="<?php echo $row->qte; ?>" /> 
					</div>
					
					<input type="hidden" name="Child[]" value="<?php echo $row->idChild; ?>" /> 
					
					<input type="hidden" name="CaddyType[]" value="<?php if ($row->isPromoCaddyType) { echo $row->id; } else { echo '0'; } ?>" />  
					
					<input type="hidden" name="QuantityMin[]" value="<?php echo $row->qte_min; ?>" />  
				</td> 
			</tr>
			<?php $i++; } ?>
		</table>
	</div>
	<div  style="float: left;width: 100%;text-align: center;margin:10px;"><input class="button" type="submit" value="Ajouter"></div>
	</form>  
<?php } ?>
</div> PK|�G[C�t%
%
"scripts/produits/nosproduits.phtmlnu&1i�
<?php 
	echo $this->render("/ajax/caddyaccountright.phtml"); 
$listProducts = array();
$listProducts = $this->listAllProducts;
$color = $this->actualDesign['color'];
$listCat = array();
$listCat = $this->listCat;
 
?>
<script type="text/javascript">
$(function(){
	$('#slider-product-id').liquidSlider({
		autoHeight : true,
		minHeight : 0,
		autoSlide: true,
		autoSlideInterval : 5000,
		pauseOnHover : false,
		includeTitle : false,
		dynamicTabs : false
	});
	
    initProductPagination("#productpagination", 1, <?php echo ceil(sizeof($listProducts) / 16); ?>);
});
</script>
 
	<?php if (isset($listCat['CHOICEURL']) && !empty($listCat['CHOICEURL']) && 
				isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { ?>
	<span style="display:none;margin: 0 0 0 20px;" > 
		<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" title='Comment choisir "<?php echo $listCat['NOM']; ?>" ?' target="_blank">
			<img alt='Comment choisir "<?php echo $listCat['NOM']; ?>" ?' src="<?php echo $this->basUrl; ?>/<?php echo $listCat['CHOICEURL'];?>">
		</a>
	</span>
	<?php } ?>

<div class="col-xs-12 col-sm-10 col-sm-offset-1 text-center visible-md visible-lg">
	<div class="col-xs-12"  style="margin-top: 10px; margin-bottom: 10px;">
		<span class="product-title-tri">Trier les produits</span>
		<?php $link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory($this->currentCategory['NAVNOM_URLPARENTS'], $this->currentCategory['NAVNOM'], $this->currentCategory['ID']); ?>
		<a href="<?php echo $link."?tri=5";?>" class="btn btn-default">Meilleures ventes</a> 
    <a  href="<?php echo $link."?tri=1";?>" class="btn btn-default">Prix croissant</a>
		<a  href="<?php echo $link."?tri=2";?>" class="btn btn-default">Prix d�croissant</a>
		<a  href="<?php echo $link."?tri=3";?>" class="btn btn-default">Nom croissant</a>
		<a  href="<?php echo $link."?tri=4";?>" class="btn btn-default">Nom d�croissant</a>
	</div>  
</div>
<?php 
$paginationPage = 1;
$count = 0;
if (!empty($listProducts)) { 
	foreach ($listProducts as $row) {
		if ($count > 15) {
			$count = 0;
			$paginationPage++;
		}
		$this->currentData = $row;
		$this->currentPaginationPage = $paginationPage;
		$count++;
		echo $this->render("/produits/ajaxshowproductbox.phtml");	
	}
}?>

<div class="col-xs-10 col-xs-offset-1 text-center">
	<div id="productpagination"></div>    
</div>

<?php if (isset($listCat['DESCRIPTIONLONG']) && !empty($listCat['DESCRIPTIONLONG'])) { ?>
<div class="col-xs-12 noPadding" style="margin: 0 0 10px 0;">
    <?php echo $listCat['DESCRIPTIONLONG']; ?>
</div>
<?php } ?>PK|�G[ACEQ��+scripts/produits/ajaxdownloaddocument.phtmlnu&1i�
<?php header('Content-Type: text/html; charset=ISO-8859-15'); ?>
 
<?php if (!$this->isSuccess) { ?>

<?php
	$product = $this->detailProduct;
    if (isset($product) && !empty($product)) { 
?>	

    <form id="dialog-form-doc" enctype="multipart/form-data"  class="white-popup-block mfp-hide form-horizontal" action="<?php echo $this->baseUrl.'/produits/ajaxdownloaddocument'; ?>" method="post">
	    <script type="text/javascript">
            $(function() {
                initDetailProductDialogSendDoc();
            });
        </script>
        <span class="indexBox4_title2">Fiche technique � t�l�charger</span>
	    <fieldset style="border:0;">
		    <p>Pour recevoir par mail notre fiche technique, veuillez renseigner le formulaire ci-dessous.</p>
		     
			    <div class="form-group">
				    <label for="civility_doc" class="col-sm-2 control-label">Civilit�</label>
                    <div class="col-sm-10">
                        <label class="radio-inline">
                          <input type="radio" name="civility_doc" value="M." checked="checked"> M.
                        </label>
                        <label class="radio-inline">
                          <input type="radio" name="civility_doc" value="Mme"> Mme
                        </label>
                        <label class="radio-inline">
                          <input type="radio" name="civility_doc" value="Mlle"> Mlle
                        </label>
			        </div>
			    </div>
			     <div class="form-group">
				    <label for="name_doc" class="col-sm-2 control-label">Nom</label>
                     <div class="col-sm-10">
				        <input id="name_doc" name="name_doc" type="text" placeholder="Nom" class="form-control" required="">
			        </div>
			    </div>
			     <div class="form-group">
				    <label for="firstname_doc" class="col-sm-2 control-label">Pr�nom</label>
                     <div class="col-sm-10">
				        <input id="firstname_doc" name="firstname_doc" type="text" placeholder="Pr�nom" class="form-control" required="">
			        </div>
			    </div>
			     <div class="form-group">
				    <label for="email_doc" class="col-sm-2 control-label">Email</label>
                     <div class="col-sm-10">
				        <input id="email_doc" name="email_doc" type="email" placeholder="exemple@domaine.com" class="form-control" required="">
			        </div>
			    </div>
			    <div class="form-group">
                    <div class="col-sm-12 text-center">
                        <input type="submit" class="btn btn-default" value="Recevoir par mail" /> 
                        <input type="hidden" name="product_id_doc" value="<?php echo $product['ID']; ?>" /> 
                     </div> 
			    </div> 
	    </fieldset>
    </form>
<?php } else { ?>
<div class="white-popup-block-medium">
    <div class="text-center">
        <input type="button" class="btn btn-danger" value="Fermer" onclick="$.magnificPopup.close();" /> 
    </div> 
</div> 
<?php } 
} else { ?>
<div class="white-popup-block-medium">
    <div class="text-center">
        <?php echo $this->message ;?><br /><br />
    </div> 
    <div class="text-center">
        <input type="button" class="btn btn-danger" value="Fermer" onclick="$.magnificPopup.close();" /> 
    </div> 
</div> 
<?php }  ?>PK|�G[�f���.scripts/produits/ajaxshowpromopricecaddy.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1');

if ($this->currentData) {
	$currentData = $this->currentData;
	if (!$currentData->isSurDevis()) {
		 if ($currentData->isPromo()) { ?>
				<div class="productDetail_priceBox" <?php if ($currentData->getPrixAfterRemise() > 999) { echo 'style="width:165px;"'; } ?>>   
		 		<div class="productDetail_promoImag hidden-print" >
					<img class="tooltips" data-placement="bottom" src="<?php echo $this->baseUrl; ?>/business/image/promo.png" alt="Ce produit est en promotion" title="Ce produit est en promotion" >
				</div>
		 		<div class="productDetail_price" >
			 		 <div class="text12" >
					 	<?php echo number_format($currentData->getPrixAfterRemise(), 2, ',', ' ').' ';?>
					 	<span style="color: #000000">&#8364;</span> 
					 </div>
					 <div>
					 	<span class='oldPromoPrice'> <?php echo number_format($currentData->item_prix, 2, ',', ' ').' ';?>&#8364;</span>
					 </div>
		 		</div> 
			</div>
			
		<?php } else { ?>
				<div class="text12" >
					<?php echo number_format($currentData->item_prix, 2, ',', ' ').' ';?>
					<span style="color: #000000">&#8364;</span>
				</div> 
		<?php } 
	} else { ?>
			<div  class="text12">
				<span>sur devis</span>
			</div> 
	<?php }} ?>PK|�G[�4=j"j" scripts/produits/categorie.phtmlnu&1i�<?php  
	$currentCat = array();
	$currentCat = $this->currentCat; 
?> 

<?php if (isset($currentCat['ID_THEME']) && $currentCat['ID_THEME'] == 2) {
	
	echo $this->render("/index/index.phtml");
	
} else { ?>

	<div id="page">

	<?php   
		if (isset($currentCat['NOM']) && !empty($currentCat['NOM'])) { ?>
		<div class="big_header"><h1 class="big_header"><?php echo $currentCat['NOM'];  ?></h1></div>
	<?php } 

	$isGallerie = isset($currentCat['ID_THEME']) && !empty($currentCat['ID_THEME']) && isset($this->listAllGalleries) && !empty($this->listAllGalleries);
	$isGallerieSlide = $isGallerie && $currentCat['ID_THEME'] == 6;
	$isArticles = isset($this->listAllArticles) && !empty($this->listAllArticles);// && !$isGallerieSlide;
	
	$subsCategory = $this->currentCatSubs['SUBS'];
	if (sizeof($subsCategory) > 0) { 
	 ?> 
        <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/style.css"/> 
		 <div id="page_top"></div> 
		<div class="scroll-pane">
			<div class="page_block" >   
				<div class="gamma-container " id="gamma-container" >

					<ul class="gamma-gallery">

					<?php
					$isLeft = true; 
					foreach ($subsCategory as $row) { 
							$title = $this->escape($row['NOM']);
							$description = $this->escape($row['DESCRIPTION']);  
							$link_href = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
							
						?>
						<li > 
							<div style="float:left;width:100%;padding:30px 0 30px 0">
								<div style="float:<?php if ($isLeft) { echo "left"; } else {echo "right"; }?>">
									<?php if (!empty($row['URL'])) {  ?> 
										<a href="<?php echo $link_href;?>" alt="<?php echo $title;?>" /> 
											 <img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" alt="<?php echo $this->escape($row['NOM']);?>"/> 
										</a>   
									<?php } else { ?> 
										<a href="<?php echo $link_href;?>" alt="<?php echo $title;?>" />   <?php echo $title;?> </a>   
									<?php }  ?> 
								</div>
								<div style="float:<?php if ($isLeft) { echo "left"; } else {echo "right"; }?>; <?php if ($isLeft) {  echo "margin:0 0 0 30px"; } else {echo "margin:0 30px 0 0";}?> ; width: 350px; text-align: justify;    text-justify: inter-word;">
									<?php if (!empty($row['URL'])) {  ?> 
									<div style="clear:both">
										<a style="float:<?php if ($isLeft) { echo "left"; } else {echo "right"; }?>;" href="<?php echo $link_href;?>" alt="<?php echo $title;?>" />
											<?php echo $title;?>
										</a>
									</div><br /><br />
									<?php }  ?> 
									<a href="<?php echo $link_href;?>" alt="<?php echo $title;?>" style="text-decoration:none;color:#4F4F4F"/><p ><?php echo $description;?> </p>   </a>
								</div>
							</div>
						</li>
					<?php 
					$isLeft = !$isLeft; 
						}  ?> 
					
					</ul>

					<div class="gamma-overlay"></div> 
				</div>   
			</div> <!-- page_block -->
			<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
		</div> <!-- scroll-pane --> 	
	<?php 
	} else {
		if ($isArticles) { ?>

				<div class="submenu">
				<?php foreach ($this->listAllArticles as $row) { 
					if (!empty($row['CONTENT_SHORT'])) { ?>
					<a href="#article-<?php echo $row['ID'];  ?>" class="custom_font filter"><?php echo $row['CONTENT_SHORT'];  ?></a>
				<?php }
				} ?>
				</div>
				<div class="scroll-pane">
					<div class="page_block">

						<?php foreach ($this->listAllArticles as $row) { ?>
						<div id="article-<?php echo $row['ID'];  ?>">
							<?php echo $row['CONTENT']; ?>
						</div>
						<?php } ?>
						<div class="clear"></div>
					<?php if (!$isGallerie) { ?>
					</div> <!-- page_block -->
					<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
				</div> <!-- scroll-pane -->
				<?php } ?>
		<?php } 
		
		if ($isGallerie) { ?>

		<?php 
			$currentTheme = (int)$currentCat['ID_THEME'];
			$currentWithThumb = 0;
			if (isset($this->FeatureSiteThemeCms) && !empty($this->FeatureSiteThemeCms)) { 
				foreach ($this->FeatureSiteThemeCms as $row) { 
					if ($row['ID_THEME'] == $currentTheme && isset($row['WIDTH_THUMB']) && $row['WIDTH_THUMB'] > 0) {
						$currentWithThumb = $row['WIDTH_THUMB'];
						break;
					}
				} 
			}
			
			switch ($currentTheme) { 
				case 3: 
				case 4: 
				case 5:
				?>
				
			<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/style.css"/>
			<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/modernizr.custom.70736.js"></script>
			<noscript><link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/noJS.css"/></noscript>
			<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/jquery.masonry.min.js"></script>
			<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/js-url.min.js"></script>
			<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/jquerypp.custom.js"></script>
			<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/gamma.js"></script>
			
			
				<div id="page_top"></div>
				<?php if (!$isArticles) { ?>
				<div class="scroll-pane">
					<div class="page_block" >  
				<?php } ?>
						<div class="gamma-container gamma-loading" id="gamma-container">

							<ul class="gamma-gallery">

							<?php foreach ($this->listAllGalleries as $row) { 
								if (!empty($row['URL'])) { 
									$title = $this->escape($row['NOM']);
									$description = $this->escape($row['CONTENT_SHORT']);
									if (!empty($row['CONTENT_LONG'])) {
										if (!empty($description)) {
											$description .= " - ";
										}
										$description .= $this->escape($row['CONTENT_LONG']);
									}
								?>
								<li>
									<div data-alt="<?php echo $description;?>" data-description="<h3><?php echo $this->escape($row['CONTENT_SHORT']); ?></h3>" data-max-width="1800" data-max-height="1350">
										<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" data-min-width="700"></div>
										<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 641);?>" data-min-width="600"></div>
										<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 295);?>" data-min-width="300"></div> 
										<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 180);?>" data-min-width="140"></div>
										<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 100);?>"></div> 
										<noscript>
											<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 100);?>" alt="<?php echo $description;?>"/>
										</noscript>
									</div>
								</li>
							<?php } } ?> 
							
							</ul>

							<div class="gamma-overlay"></div> 
						</div>  
				<?php if (!$isArticles) { ?>
					</div> <!-- page_block -->
					<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
				</div> <!-- scroll-pane -->
				<?php } ?>
			
					 
				<script type="text/javascript">
					
					$(function() {  
					
						var GammaSettings = { 
								viewport : [ {
									width : 600,
									columns : 3
								}, { 
									width : 0,
									columns : 2
								} ],
								overlayAnimated : false, 
						};

						Gamma.init( GammaSettings, fncallback );
		  
						function fncallback() { 

							var element = $('.scroll-pane').jScrollPane(); 
							var api = element.data('jsp');  
							api.reinitialise();
							
						}
					});

				</script>	

				<?php
					break;
				case 6:?>
				<div id="page_top"></div>
				<?php if (!$isArticles) { ?>
				<div class="scroll-pane">
					<div class="page_block">
				<?php } ?>
					<div class="col-md-12">
						<p class="margin_1line">&nbsp;</p>
						<p class="margin_1line margin_bottom_1line"><?php echo $currentCat['DESCRIPTION']; ?></p>
						<div class="responsiveslides-div" style="width:641px; height: 404px;">
							<ul class="rslides">
							<?php foreach ($this->listAllGalleries as $row) { 
								if (!empty($row['URL'])) { ?>
								<li><img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" /></li>
							<?php } } ?>  
							</ul>
						</div>	
						
					</div>
				<?php if (!$isArticles) { ?>
					</div> <!-- page_block -->
					<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
				</div> <!-- scroll-pane -->
				<?php } ?>
					<?php
					break;
			}
		}
		if ($isArticles && $isGallerie) { ?>
				</div> <!-- page_block -->
			<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
		</div> <!-- scroll-pane -->
		<?php }
	}	 ?>
	
	</div>
<?php } ?>
		PK|�G[ޔZ�7T7Tscripts/produits/detail.phtmlnu&1i�

<?php
	$product = $this->detailProduct;
	$userNamespace = new Zend_Session_Namespace($this->session_variable);
	$myCaddy = $userNamespace->myObjectCaddy;
	$nbOption = 3;

    $auth = Zend_Auth::getInstance();
	$auth->setStorage(new Zend_Auth_Storage_Session($this->session_storage));
	$storage = $auth->getStorage()->read(); 

?>	

<?php if (Utils_Tool::isMobile()) { ?>
	  <?php echo $this->render("/produits/detailmobile.phtml"); ?>
<?php } else { ?>

<?php if ($this->prefixPromoClass == "eco-") { ?>
<style type="text/css">

html, body {
	background: url('/business/image/eco-bg1.jpg') no-repeat top center;
	background-color: #21530d;
	-webkit-background-size: cover; 
    -moz-background-size: cover;   
    -o-background-size: cover;   
    background-size: cover;  
}
.wrapBgContent-l,
.wrapBgContent-r {
	background:none;
}
.wrapBgContent-1 {
  -webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
          box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
}

.wrapBgContent-2 {
  -webkit-box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
          box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
}

</style>
<?php } ?>
 
<div >
    
	<?php echo $this->render("/produits/ajaxdownloaddocument.phtml"); ?>
	<?php echo $this->render("/produits/ajaxsendfriend.phtml"); ?>
</div>

<div class="col-xs-12 prod-detail-box" itemscope itemtype="http://schema.org/Product">
	<div class="col-xs-12 prod-detail-title-box noPadding">
		<?php 
		$colTitle = "col-xs-12";
		if (!empty($product['DOCNAME']) && !empty($product['DOCURL'])) { 
			$colTitle = "col-xs-10";
		} ?> 
			
		<div class="<?php echo $colTitle?> noPadding">
			<h1 class="prod-detail-title "  itemprop="name">
				<?php echo $this->escape($product['NOM']); ?>
			</h1>
		</div>

        <?php  if (!empty($product['DOCNAME']) && !empty($product['DOCURL'])) { 
            if (($auth->hasIdentity() && isset($storage['user'])) || !$this->FeatureProductDocumentDownloadGuest) { ?>
			    <div class="col-xs-2 noPadding">
				    <div style="float: left;" class=" hidden-xs hidden-sm">			
					    <div class="prod-detail-document" style="width: 100px;">					
						    <a href="<?php echo $this->baseUrl.'/'.$this->escape($product['DOCURL']); ?>" target="_blank">
							    <span > 
								    <?php echo $this->escape($product['DOCNAME']); ?>
							    </span>
						    </a>
					    </div>
				    </div>
				    <div class="prod-detail-document prod-detail-document-pic">
					    <a style="line-height: 50px;" class="tooltips" data-placement="bottom" title="<?php echo $this->escape($product['DOCNAME']); ?>" href="<?php echo $this->baseUrl.'/'.$this->escape($product['DOCURL']); ?>" target="_blank">
						    <img src="<?php echo $this->baseUrl; ?>/business/image/icon-pdf.png" alt="<?php echo $this->escape($product['DOCNAME']); ?>">	
					    </a>
				    </div>
			    </div>
		    <?php } else if ($this->FeatureProductDocumentDownloadGuest) { ?>
                <div class="col-xs-2 noPadding">
				    <div style="float: left;" class=" hidden-xs hidden-sm">			
					    <div class="prod-detail-document" style="width: 100px;">					
						    <a href="#dialog-form-doc" class="popup-with-form-doc" >
							    <span > 
								    <?php echo $this->escape($product['DOCNAME']); ?>
							    </span>
						    </a>
					    </div>
				    </div>
				    <div class="prod-detail-document prod-detail-document-pic">
					    <a style="line-height: 50px;" class="tooltips popup-with-form-doc"  data-placement="bottom" title="<?php echo $this->escape($product['DOCNAME']); ?>" href="#dialog-form-doc" >
						    <img src="<?php echo $this->baseUrl; ?>/business/image/icon-pdf.png" alt="<?php echo $this->escape($product['DOCNAME']); ?>">	
					    </a>
				    </div>
			    </div>
        <?php } } ?> 
	</div>
	<div class="col-xs-12 noPadding prod-detail-mid-box">
		<div class="col-md-6 col-xs-12 prod-detail-pics-box noPadding">
			<div class="pikachoose" >
				<ul id="pikame" class="jcarousel-skin-pika">
				<?php    foreach ($product['LISTPICS'] as $pic) { ?>
					<li><a data-fancybox-group="prodpicdetail" href="<?php echo $this->baseUrl.'/'.$pic['URL']; ?>" title="<?php echo $this->escape($pic['STRING1'].' '.$pic['STRING2']) ; ?>"><img itemprop="image" src="<?php echo $this->baseUrl.'/'.$pic['URL']; ?>" style="height: 300px"/></a><span><?php if (!empty($pic['STRING1'])) {  
										echo $pic['STRING1'].'<br/>';
									} if (!empty($pic['STRING2'])) {  
										echo $pic['STRING2'] ;
									} ?></span></li>
				<?php } ?>
				</ul>
			</div>
		</div>
		<div class="col-md-6 col-xs-12 noPadding prod-detail-info-box"  >		
			<div class="col-xs-12 prod-detail-info-box-content">
				<input type="hidden" id="isEcoDurable" value="<?php echo $this->prefixPromoClass;?>">
				<div>
  					<a href="#1" class="btn btn-tab-link <?php if(empty($this->prefixPromoClass)) { echo "btn-danger"; } else { echo "btn-success";} ?> btn-tab-default-active" data-liquidslider-ref="prod-info-slider-id">Description</a>
					<?php 
					$count = 2;
					if (!empty($product['DESCTECH'])) { ?>
 					<a href="<?php echo '#'.$count; ?>" class="btn btn-tab-link btn-tab-default-link" data-liquidslider-ref="prod-info-slider-id">Informations techniques</a>
					<?php $count++;} 
					if (!empty($product['DESCNORME'])) { ?>
					<a href="<?php echo '#'.$count; ?>" class="btn btn-tab-link btn-tab-default-link" data-liquidslider-ref="prod-info-slider-id">Normes</a>
					
						<?php } ?>
				</div>
			
				<div class="liquid-slider liquid-slider-product-info" id="prod-info-slider-id">				
				     <div>
	      				<?php echo $product['DESCLONG']; ?>
	      			</div>      			
						<?php if (!empty($product['DESCTECH'])) { ?>
						  <div>
		      				<?php echo $product['DESCTECH']; ?>
		      			</div>
						<?php } if (!empty($product['DESCNORME'])) { ?>
						  <div>
			      				<?php echo $product['DESCNORME']; ?>
			      			</div>
						<?php } ?>
						
				</div>
			</div>
			
			<div class="prod-detail-price"  itemprop="offers" itemscope itemtype="http://schema.org/Offer">
					<?php if ($product['isDEVISPRODUCT'] == 1) { ?>
          <meta itemprop="priceCurrency" content="EUR" />
          <meta itemprop="price" content="<?php echo number_format($product['PRIXLOWEST'], 2, ',', ' '); ?>" /> 
					<div class="productPriceDetailBox" >
						<span class="<?php echo $this->prefixPromoClass; ?>productPriceTitle" style="float: right;" >� partir de</span><br />
						<span class="<?php echo $this->prefixPromoClass; ?>productPriceDetail" ><?php echo number_format($product['PRIXLOWEST'], 2, ',', ' ').' '; ?> &#8364;</span>
						<span class="<?php echo $this->prefixPromoClass; ?>productPriceDetailHT"  style="float: right;" > HT</span>
					</div>
					<?php } else { ?>
					<div class="productPriceDetailBox">
						<span  class="<?php echo $this->prefixPromoClass; ?>productPriceTitle" style="margin-left: 10px; margin-top: 5px">Sur devis</span>
					</div>
					<?php } ?>
			</div>
      
		 	<div class="col-xs-12 " >
				<?php if (!empty($product['STOCK']) && !empty($product['STOCK']) && !$this->isProductOutOfStock) { ?>
				<div class="<?php echo $this->prefixPromoClass; ?>prod-detail-liv-title">D�lais de livraison
					<?php if ((int)$product['STOCK'] == 1) { ?>
					<img class="tooltips" alt="Disponible imm�diatement" title="Disponible imm�diatement" src="<?php echo $this->baseUrl; ?>/business/image/stock111.png">
					<?php } else if ((int)$product['STOCK'] == 2) { ?>
					<img class="tooltips" alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl; ?>/business/image/stock222.png">
					<?php } else if ((int)$product['STOCK'] == 3) { ?>
					<img class="tooltips" alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl; ?>/business/image/stock333.png">
					<?php }?> 
				</div>
				<?php } ?>
			</div>
		</div> 
	</div>
	
		
			<div class="col-xs-12 noPadding" style="margin-bottom: 5px;">	
				<div  class="col-sm-6 col-xs-12 noPadding "> 
					<?php if ($this->escape($product['BRENDURL']) && $product['isSHOWBREND'] == 0) {?>
           <meta itemprop="brand" content="<?php echo $this->escape($product['BREND']); ?>" />

					<img class="prod-detail-brend tooltips" title="<?php echo $this->escape($product['BREND']); ?>" src="<?php echo $this->baseUrl.'/'.$product['BRENDURL']; ?>" alt="<?php echo $product['BREND']; ?>" title="<?php echo $product['BREND']; ?>" />
					<?php } ?> 
					<?php if ($product['isQTEPRIXACTIVE']) { ?>
					<img class="tooltips" data-placement="right" alt="D�couvrez nos prix d�gressif" title="D�couvrez nos prix d�gressif" src="<?php echo $this->baseUrl; ?>/business/image/degressif2.png">
					<?php } ?>
				</div>
				<div  class="col-sm-6 col-xs-12">
          <?php $url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; ?>
          <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>" class="btn btn-facebook"><i class="fa fa-facebook"></i></a>
          <a target="_blank" href="https://plus.google.com/share?url=<?php echo $url; ?>" class="btn btn-google-plus"><i class="fa fa-google-plus"></i></a>
          <a target="_blank" href="https://twitter.com/home?status=<?php echo $url; ?>" class="btn btn-twitter"><i class="fa fa-twitter"></i></a>
          <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo utf8_encode($this->escape($product['NOM'])); ?>&summary=<?php echo utf8_encode($this->escape($product['DESCSHORT'])); ?>&source=<?php echo $this->baseUrl_SiteCommerceUrl; ?>" class="btn btn-linkedin"><i class="fa fa-linkedin"></i></a>
        
         <?php  if ($this->FeatureProductSendDetail) { ?>
            <a href="#dialog-form-send-friend" class="btn btn-default popup-with-form-send-friend"><i class="fa fa-envelope"></i> Conseillez cet article</a>
         <?php  } ?>
          
        </div> 
			
			</div>

  <form id="productAddForm" action="<?php echo $this->baseUrl; ?>/produits/ajaxaddpanier/<?php echo $product['NAVNOM']; ?>/p/<?php echo $product['ID']; ?>" method="post">
    
    <div class="col-xs-12 noPadding prod-detail-buy text-right">
      <?php if (!$this->isProductOutOfStock) { ?> 
          <div class=" col-xs-12 noPadding">
            <div id="detailAddInfo" style="display:none" class="detailAddInfoContent"></div>
          </div>
          <button type="submit" class="btn btn-success btn-lg">
            <img id="prod-detail-add-btn" src="<?php echo $this->baseUrl; ?>/business/image/add-caddy.png" class="glyphicon-caddy" /> AJOUTER AU PANIER
          </button>
      <?php } else { ?>
        <span class="btn btn-success btn-lg">Le produit est �puis�</span>
      <?php } ?>
    </div>

  <div class="col-xs-12 noPadding">

			<div class="col-xs-12 noPadding">
				<input type="hidden" name="idProd" id="idProd" value="<?php echo $this->escape($product['ID']); ?>" />
          <h2 class="prod-detail-desc"  itemprop="description">
            <b>Descriptif : </b>
            <?php echo strip_tags($product['DESCSHORT']); ?>
          </h2>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="prod-detail-ref-table">
					<thead>
					<tr >
						<th class="textTh1" style="text-align: center;" >Produit</th>
							
						<?php for($i=0 ; $i < $nbOption; $i++) { 
						if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION']) ) {
							?>
						<th  class="textTh1 productDetail_option" > 
							<?php echo $this->escape($product['LISTOPTION'][$i]['NOMOPTION']); ?>
						</th>
						<?php }
						} ?>
						<?php  if ($product['ONSELECT_IDOPTION'] > 0  && !empty($product['ONSELECT_OPTION'])) { ?>
						<th  class="textTh1 productDetail_option" > 	
						 	<?php $currentOption = $product['ONSELECT_OPTION'];
								echo $currentOption->name;
							 ?>
						</th>
						<?php } ?>
						<th  class="textTh1" style="text-align: center;" width="130px" nowrap="nowrap">Prix Unitaire (HT)</th>
            <?php if (!$this->isProductOutOfStock) { ?>
						<th  class="textTh1 hidden-print" id="qteTableHeader" width="100px" style="text-align: center">Quantit�</th>
            <?php } ?>
					</tr>
					</thead>
					<tbody>
					<?php 
					$index = 1;
					$count = 0; 
					if (sizeof($product['LISTCHILD']) > 0) { 
						foreach($product['LISTCHILD'] as $child) {  ?>
						<tr align="center" class="<?php if ($index == 0) {echo 'trStripOdd'; $index=1;} else {$index=0; echo 'trStripEven';} ?>" >
																
							<td>
								<?php 
									$isFTFDS = false;
									if ($this->listFTFDS) {
									foreach($this->listFTFDS as $rowFTFDS) { 
										if ($rowFTFDS['ID_CHILD'] == $child['ID']) { ?>
									<div class="prod-detail-document" style="float: left;margin: 10px;" >
                                      <?php  if (($auth->hasIdentity() && isset($storage['user'])) || !$this->FeatureProductDocumentDownloadGuest) { ?>
			        					<a class="tooltips" data-placement="bottom" title="Voir la fiche technique et donn�es de s�curit�" href="<?php echo $this->baseUrl.'/'.$rowFTFDS['URL']; ?>" target="_blank">
											<img src="<?php echo $this->baseUrl; ?>/business/image/icon-pdf.png" alt="Voir la fiche technique et donn�es de s�curit�">	
										</a>
                                      <?php  } else if ($this->FeatureProductDocumentDownloadGuest) { ?>
										<a class="tooltips popup-with-form-doc" data-placement="bottom" title="Voir la fiche technique et donn�es de s�curit�" href="#dialog-form-doc" >
											<img src="<?php echo $this->baseUrl; ?>/business/image/icon-pdf.png" alt="Voir la fiche technique et donn�es de s�curit�">	
										</a>
                                      <?php  } ?>
                                         
                                         
									</div>
									<?php }}} ?>
									
									<div style="float: left;">
										<div class="textA1" style="width: auto;"> 
											<?php echo $child['DESIGNATION'];?>
										</div>
										<div class="textA1 productDetail_ref" >
											<div style="float: left;margin: 5px 0 5px 0">
												<?php echo "Ref. ".$this->escape($child['REFERENCE']); ?>
											</div>
											<?php if ($child['isQTEPRIXACTIVE'] && $child['QTEPRIXITEM'] > 0) { ?>
											<div style="float: right;margin: 0 10px 5px 0">
												<a class="btn <?php if(empty($this->prefixPromoClass)) { echo "btn-danger"; } else { echo "btn-success";} ?> tooltips showModalPrice" data-placement="right" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($product['NAVNOM_URLPARENTS'], $product['NAVNOM'], $product['ID']); ?>" title="Nos prix d�gressif" id="item-<?php echo $child['ID']; ?>-<?php echo $child['QTEPRIXITEM'];?>">
													Prix d�gressif
												</a>
							 				</div>
											<?php } ?>
										</div>
									</div>
							</td>
							<?php for($i=0 ; $i < $nbOption; $i++) { 
							if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION'])) { ?>
							<td class="textTd1 ">
								<?php 
								 if (isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) {echo $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']); } 
								?> 
							</td>
							<?php } } ?>
							
							<?php  if ($product['ONSELECT_IDOPTION'] > 0  && !empty($product['ONSELECT_OPTION'])) { ?>
							<td  class="textTh1" > 	
							 	<select name="selectedOption_<?php echo $count; ?>" class="selectedOption form-control">
									<?php 
									$optionsList = $product['ONSELECT_OPTION'];
									foreach($optionsList->values as $currentOption) {  ?>
									<option value="<?php echo $currentOption; ?>">
										<?php echo $currentOption; ?> 
									</option>
									<?php } ?>
								</select> 
							</td>
							<?php } ?>
							
							
							<td align="center" >
							<?php $this->currentData = $child;
								echo $this->render("/produits/ajaxshowpromoprice.phtml"); ?>
							</td>
              <?php if (!$this->isProductOutOfStock) { ?>
							<td class="textTd1  hidden-print" >
								<div class="col-md-8 col-md-offset-2 noPadding">
								<?php  
									if (isset($myCaddy->items))  {
										$myValue = $myCaddy->getQuantity($child['ID']);
									}
								
									?>
									<input onclick="clearById('quantity_<?php echo $this->escape($child['ID']); ?>', '0')" type="text" class="form-control text-center" maxlength="5" name="quantity_<?php echo $this->escape($child['ID']); ?>" id="quantity_<?php echo $this->escape($child['ID']); ?>" value="<?php echo $myValue; ?>" />
									<input type="hidden" name="idChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['ID']); ?>" />
									<input type="hidden" name="qtyMinChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['QUANTITYMIN']); ?>" />
									<input type="hidden" name="isAccessoire_<?php echo $count; ?>" value="N" >
								</div>
							</td>
              <?php } ?>
						</tr>
						<?php $count++; } }
						
						
						
						if (sizeof($product['PRODUCT_ACCESSOIRE']) > 0) {  
					foreach ($product['PRODUCT_ACCESSOIRE']  as $child ) { ?>
					<tr align="center" class="<?php if ($index == 0) {echo 'trStripOdd'; $index=1;} else {$index=0; echo 'trStripEven';} ?>"  >
																
							<td>
									<div style="float: left;">
										<div class="textA1" style="width: auto;"> 
											<?php echo $child['DESIGNATION'];?>
										</div>
										<div class="textA1 productDetail_ref" >
											<div style="float: left;margin: 5px 0 5px 0">
												<?php echo "Ref. ".$this->escape($child['REFERENCE']); ?>
											</div>
											<?php if ($child['isQTEPRIXACTIVE'] && $child['QTEPRIXITEM'] > 0) { ?>
											<div style="float: right;margin: 0 10px 5px 0">
												<a class="btn <?php if(empty($this->prefixPromoClass)) { echo "btn-danger"; } else { echo "btn-success";} ?> tooltips showModalPrice" data-placement="right" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($product['NAVNOM_URLPARENTS'], $product['NAVNOM'], $product['ID']);?>" title="Nos prix d�gressif" id="item-<?php echo $child['ID']; ?>-<?php echo $child['QTEPRIXITEM'];?>">
													Prix d�gressif
												</a>
							 				</div>
											<?php } ?>
										</div>
									</div>
							</td>
							<?php for($i=0 ; $i < $nbOption; $i++) { 
							if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION'])) { ?>
							<td class="textTd1">
								<?php 
								 if (isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) {echo $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']); } 
								?> 
							</td>
							<?php } } ?>
							
							<?php  if ($product['ONSELECT_IDOPTION'] > 0  && !empty($product['ONSELECT_OPTION'])) { ?>
							<td  class="textTh1" > 	
							 	<select name="selectedOption_<?php echo $count; ?>" class="selectedOption form-control">
									<?php 
									$optionsList = $product['ONSELECT_OPTION'];
									foreach($optionsList->values as $currentOption) {  ?>
									<option value="<?php echo $currentOption; ?>">
										<?php echo $currentOption; ?> 
									</option>
									<?php } ?>
								</select> 
							</td>
							<?php } ?>
							
							<td align="center" >
							<?php $this->currentData = $child;
								echo $this->render("/produits/ajaxshowpromoprice.phtml"); ?>
							</td>
            <?php if (!$this->isProductOutOfStock) { ?>
							<td class="textTd1  hidden-print" >
								<div class="col-md-8 col-md-offset-2 noPadding">
								<?php  
									if (isset($myCaddy->items))  {
										$myValue = $myCaddy->getQuantity($child['ID']);
									}
								
									?>
									<input onclick="clearById('quantity_<?php echo $this->escape($child['ID']); ?>', '0')" type="text" class="form-control text-center" maxlength="5" name="quantity_<?php echo $this->escape($child['ID']); ?>" id="quantity_<?php echo $this->escape($child['ID']); ?>" value="<?php echo $myValue; ?>" />
									<input type="hidden" name="idChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['ID']); ?>" />
									<input type="hidden" name="qtyMinChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['QUANTITYMIN']); ?>" />
									<input type="hidden" name="isAccessoire_<?php echo $count; ?>" value="Y" >
								</div>
							</td>
            <?php } ?>
						</tr>
					<?php $count++; }}  ?>
					</tbody>
				</table>
				<input type="hidden" name="nbr" value="<?php echo $count; ?>" />
			</div>
			<div class="col-xs-12 noPadding">
			
				<div class="<?php echo $this->prefixPromoClass; ?>prod-detail-caracs col-sm-6 col-xs-12">
					<a class="showModalDetail tooltips" data-placement="bottom" data-nbrchilds="<?php echo $count;?>" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($product['NAVNOM_URLPARENTS'], $product['NAVNOM'], $product['ID']);?>" title="Voir toutes les caract�ristiques - <?php echo $this->escape($product['NOM']); ?>">Voir toutes les caract�ristiques</a>
				</div>
				
				
				<div id="productAddFormLog"> </div>
			</div>
  </div>
  </form>
</div>

	<?php echo $this->render("/produits/ajaxannexelist.phtml"); ?>
<script type="text/javascript">
$(function(){
	initEventDetail(); 
}); 
</script> 
<?php } ?>

			PK|�G[��'',scripts/produits/ajaxshowchildqteprice.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1');
$productQte = $this->detailProductQte; 
if (isset($productQte) && !empty($productQte)) {  
?>  
<link href="<?php echo $this->baseUrl; ?>/business/css/default-bootstrap.css" rel="stylesheet">
    <link href="<?php echo $this->baseUrl; ?>/business/css/default.css" rel="stylesheet">
<style>
html, body {
background-color: white;
}
</style>
<table cellpadding="0" cellspacing="0"   class="prod-detail-ref-table"> 
	<thead>
		<tr align="center"  >
			<th colspan="2"  >Quantit�</th>  
			<th  >Prix unitaire &#8364;</th>  
		</tr> 
		<tr align="center" class="headerQtePrice">
			<th width="70px"   >De</th> 
			<th width="70px"   >�</th> 
			<th width="120px" >HT</th>  
		</tr> 
	</thead>
	<tbody>
	<?php 
		$index = 1;
		foreach($productQte as $row) { ?>
	<tr  class=" <?php if ($index == 0) {echo 'trStripOdd'; $index=1;} else {$index=0; echo 'trStripEven';} ?>" style="height:30px">    
		<td align="center" >
			<span><?php echo $this->escape($row['MIN']);?></span> 
		</td> 
		<td align="center"  >
			<span>
			<?php if ($row['MAX'] <> 999999999) { echo $this->escape($row['MAX']); }
			else {echo "Et Plus"; } ?></span> 
		</td> 
		<td  align="center"  >
			<div class="text12" >
				<?php echo number_format($row['PRIX'], 2, ',', ' ').' ';?>
				<span style="color: #000000">&#8364;</span>
			</div> 
		</td>  
	</tr>
	<?php } ?>
	</tbody>
</table> 
<?php } else { ?>
<div style="clear: both;text-align: center;vertical-align:middle;">Aucun prix d�gressif n'est disponible pour cet article.</div>
<?php } ?>PK|�G[���N
N
(scripts/produits/ajaxshowallchilds.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1');
$product = $this->detailProduct; 
if (isset($product) && !empty($product)) { 
$nbOption = sizeof($product['LISTOPTION']);
?> 
<link href="<?php echo $this->baseUrl; ?>/business/css/default-bootstrap.css" rel="stylesheet">
    <link href="<?php echo $this->baseUrl; ?>/business/css/default.css" rel="stylesheet">
    <style>
html, body {
background-color: white;
}
</style>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="prod-detail-ref-table">
	<thead>
	<tr > 
		<th >Produit</th>
			
		<?php for($i=0 ; $i<$nbOption; $i++) { 
		if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION']) ) {
			?>
		<th  class=" productDetail_option" style="padding: 10px"> 
			<?php echo $this->escape($product['LISTOPTION'][$i]['NOMOPTION']); ?>
		</th>
		<?php }
		} ?>
	</tr>
	</thead>
	<tbody>
	<?php 
	$index = 1;
	$count = 0;
	foreach($product['LISTCHILD'] as $child) { 
		
		?>
	<tr align="center" class="<?php if ($index == 0) {echo 'trStripOdd'; $index=1;} else {$index=0; echo 'trStripEven';} ?>" >
			<td valign="top" >	
			<div class="textA1" style="width: auto;clear:both"> 
				<?php echo $child['DESIGNATION'];?>
			</div>
			<div class="textA1 productDetail_ref" >
				<?php echo "Ref. ".$this->escape($child['REFERENCE']);?>
			</div>
		</td>
		<?php for($i=0 ; $i<$nbOption; $i++) { 
		if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION'])) { ?>
		<td class="textTd1" >
		
			<?php if ($product['ONSELECT_IDOPTION'] > 0 ) {
					if (($product['LISTOPTION'][$i]['IDOPTION'] == $product['ONSELECT_IDOPTION']) && isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) { ?>
				 	<?php 
					$optionsForChild = explode(";", $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']));;
					foreach($optionsForChild as $currentOption) {  
						echo $this->escape($currentOption)."<br/><br/>"; 
					} ?> 
			<?php } else {
				if (isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) {echo $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']); } 
				} 
			} else {
				 if (isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) {echo $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']); } 
			} ?> 
		</td>
		<?php } } ?> 
	</tr>
	<?php $count++; } ?>	
	 
	<?php  
	foreach ($product['PRODUCT_ACCESSOIRE']  as $childAccessoire ) {  
		?>
	<tr align="center" class="<?php if ($index == 0) {echo 'trStripOdd'; $index=1;} else {$index=0; echo 'trStripEven';} ?>"  >
						 
		<td valign="top" >	
			<div class="textA1" style="width: auto;clear:both"><?php echo $childAccessoire['DESIGNATION'];?></div>

			<div class="textA1 productDetail_ref">
				<?php echo "Ref. ".$this->escape($childAccessoire['REFERENCE']);?>
			</div>
		</td>
		<?php for($i=0 ; $i<$nbOption; $i++) { 
		if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION'])) { ?>
		<td class="textTd1">
			<?php if (isset($childAccessoire['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) {echo $this->escape($childAccessoire['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']); } ?>
		</td>
		<?php } } ?> 
	</tr>
	<?php $count++; }  ?>
	</tbody>
</table>
<?php } ?>PK|�G[�v�oo scripts/produits/monpanier.phtmlnu&1i�

<script  type="text/javascript" >

$(function(){
	initEventsCaddy();
});

</script>
<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier_over"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation"></div>
	</div>
</div>
<div id="caddyArea">
<?php echo $this->render("/ajax/ajaxcaddy.phtml"); ?>

</div>PK|�G[����$$%scripts/produits/ajaxannexelist.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>


<?php if (isset($this->listAnnexes) && !empty($this->listAnnexes)) { ?>
<div
	class="col-xs-12 hidden-print <?php echo $this->prefixPromoClass; ?>footer-content-divider"></div>
<div class="col-xs-12 noPadding prod-detail-annexe-box">
<div class="col-xs-12 noPadding">
<div class="productAnnexeLabel" style="color : <?php if(empty($this->prefixPromoClass)) { echo $this->actualDesign['color']; } else { echo "#000";} ?>;">
<h3>Les clients ayant consult� cet article ont �galement regard� ces produits</h3></div>
</div>
<?php
//$color = "none";
$color = $this->actualDesign['color'];
foreach ($this->listAnnexes as $product) {
	$this->currentData = $product;
	echo $this->render("/produits/ajaxshowproductbox.phtml");
}  ?></div>
<?php } ?>PK|�G[ܺP��
�
%scripts/produits/ajaxsendfriend.phtmlnu&1i�
 <?php header('Content-Type: text/html; charset=ISO-8859-15'); ?>

<?php if (!$this->isSuccess) { ?>
<?php
	$product = $this->detailProduct;
?>	

    <form id="dialog-form-send-friend" class="white-popup-block-medium mfp-hide form-horizontal" action="<?php echo $this->baseUrl.'/produits/ajaxsendfriend'; ?>" method="post">
	    <script type="text/javascript">
            $(function() {
                initDetailProductDialogSendFriend();
            });
        </script>
        <span class="indexBox4_title2">Conseillez cet article</span>
	    <fieldset style="border:0;">
		    <p>Pour partager cet article, veuillez renseigner le formulaire ci-dessous.</p>
		    
            <?php 
	        $auth = Zend_Auth::getInstance();
	        $auth->setStorage(new Zend_Auth_Storage_Session($this->session_storage));
	        $storage = $auth->getStorage()->read();  
            $currentName = "";
		    if ($auth->hasIdentity() && isset($storage['user'])) {
             $currentName = $storage['user']['prenom'].' '.$storage['user']['nom'];
            }
            ?>
             <div class="form-group">
				<label for="name_friend" class="col-sm-3 control-label">Nom de l'exp�diteur</label>
                 <div class="col-sm-9">
				    <input id="name_friend" name="name_friend" type="text" value="<?php echo $currentName; ?>" placeholder="Nom de l'exp�diteur" class="form-control" required="">
			   </div>
			</div>
			<div class="form-group">
				<label for="email_friend" class="col-sm-3 control-label" >Email de destination</label>
				<div class="col-sm-9">
                     <input id="email_friend" name="email_friend" type="email" placeholder="exemple@domaine.com" class="form-control" required="">
			     </div>
			</div>
             <div class="form-group">
				    <label for="message_friend" class="col-sm-3 control-label">Votre message</label>
                  <div class="col-sm-9">
                    <?php 
                     $linkProd = Utils_Tool::getFormattedUrlProduct($product['NAVNOM_URLPARENTS'], $product['NAVNOM'], $product['ID']);
	                 $linkCat = Utils_Tool::getFormattedUrlCategory($product['NAVNOM_URLPARENTS'], $product['CATNAVNOM'], $product['IDCATEGORY']);
                    
                    ?>
                    <textarea id="message_friend" name="message_friend" class="form-control" rows="10" cols="70">Bonjour,
                      
Voici un produit int�ressant trouv� sur le site <?php echo $this->baseUrl_SiteCommerceUrl; ?> : 

Le nom du produit est : <?php echo $this->escape($product['NOM']); ?>


Pour y acc�der : 

<?php echo $this->baseUrl_SiteCommerceUrl."/".$linkProd; ?>


<?php echo $this->siteName; ?> pr�sente toute une gamme de <?php echo $product['CATNOM'] ?>, � d�couvrir en cliquant sur le lien suivant :

<?php echo $this->baseUrl_SiteCommerceUrl."/".$linkCat; ?>
                    </textarea>
			    </div>
			</div>
			<div class="form-group">
                <div class="col-sm-12 text-center">
                    <input type="submit" class="btn btn-default" value="Envoyer le mail" /> 
                    <input type="hidden" name="product_id_friend" value="<?php echo $product['ID']; ?>" /> 
                    </div> 
			</div> 
	    </fieldset>
    </form>

<?php } else { ?>
<div class="white-popup-block-medium">
    <div class="text-center">
        <?php echo $this->message ;?><br /><br />
    </div> 
    <div class="text-center">
        <input type="button" class="btn btn-danger" value="Fermer" onclick="$.magnificPopup.close();" /> 
    </div> 
</div> 
<?php } ?>PK|�G[��>��&scripts/produits/categorie_gamma.phtmlnu&1i�<?xml version="1.0" encoding="Windows-1252"?>

<?php  
	$currentCat = array();
	$currentCat = $this->currentCat;
?> 

<?php if (isset($currentCat['ID_THEME']) && $currentCat['ID_THEME'] == 2) {
	
	echo $this->render("/index/index.phtml");
	
} else { ?>

	<div id="page">

	<?php   
		if (isset($currentCat['NOM']) && !empty($currentCat['NOM'])) { ?>
		<div class="big_header"><h1 class="big_header"><?php echo $currentCat['NOM'];  ?></h1></div>
	<?php } 

	if (isset($currentCat['ID_THEME']) && !empty($currentCat['ID_THEME']) && isset($this->listAllGalleries) && !empty($this->listAllGalleries)) { ?>

	<?php
		$currentTheme = (int)$currentCat['ID_THEME'];
		$currentWithThumb = 0;
		if (isset($this->FeatureSiteThemeCms) && !empty($this->FeatureSiteThemeCms)) { 
			foreach ($this->FeatureSiteThemeCms as $row) { 
				if ($row['ID_THEME'] == $currentTheme && isset($row['WIDTH_THUMB']) && $row['WIDTH_THUMB'] > 0) {
					$currentWithThumb = $row['WIDTH_THUMB'];
					break;
				}
			} 
		}
		
		switch ($currentTheme) { 
			case 3: 
			case 4: 
			case 5:
			?>
			
        <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/style.css"/>
		
        <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/stylesite.css"/>
		<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/modernizr.custom.70736.js"></script>
		<noscript><link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl; ?>/business/light/gamma/css/noJS.css"/></noscript>
		<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/jquery.masonry.min.js"></script>
		<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/js-url.min.js"></script>
		<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/jquerypp.custom.js"></script>
		<script src="<?php echo $this->baseUrl; ?>/business/light/gamma/js/gamma.js"></script>
		
		
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<div class="gamma-container gamma-loading" id="gamma-container">

						<ul class="gamma-gallery">

						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
							<li>
								<div data-alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>" data-max-width="1800" data-max-height="1350">
									<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 641);?>" data-min-width="700"></div>
									<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 295);?>" data-min-width="300"></div>
									<div data-src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>"></div>
									<noscript>
										<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
									</noscript>
								</div>
							</li>
						<?php } } ?>
						</ul>

					<div class="gamma-overlay"></div> 
				</div>
			</div>
			

		<script type="text/javascript">
			
			$(function() {

				var GammaSettings = { 
						viewport : [ {
							width : 600,
							columns : 3
						}, { 
							width : 0,
							columns : 2
						} ]
				};

				Gamma.init( GammaSettings, fncallback );
  
				function fncallback() {  }

			});

		</script>	
		
			<?php
				break;
			case 6:?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<p class="margin_1line">&nbsp;</p>
					<p class="margin_1line margin_bottom_1line"><?php echo $currentCat['DESCRIPTION']; ?></p>
					<div class="responsiveslides-div" style="width:641px; height: 404px;">
						<ul class="rslides">
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
							<li><img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" /></li>
						<?php } } ?>  
						</ul>
					</div>	
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>		
				<?php
				break;
		}
	} else if (isset($this->listAllArticles) && !empty($this->listAllArticles)) { ?>

			<div class="submenu">
			<?php foreach ($this->listAllArticles as $row) { 
				if (!empty($row['CONTENT_SHORT'])) { ?>
				<a href="#article-<?php echo $row['ID'];  ?>" class="custom_font filter"><?php echo $row['CONTENT_SHORT'];  ?></a>
			<?php }
			} ?>
			</div>
			<div class="scroll-pane">
				<div class="page_block">

					<?php foreach ($this->listAllArticles as $row) { ?>
					<div id="article-<?php echo $row['ID'];  ?>">
						<?php echo $row['CONTENT']; ?>
					</div>
					<?php } ?>
					<div class="clear"></div>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>

	<?php } ?>
	</div>
<?php } ?>
		PK|�G[�ceRR!scripts/produits/ajaxfacets.phtmlnu&1i�

<?php  
  $listFacets = $this->listSearchFacets;  
  $facetPosition = 0;
if (!empty($listFacets) && !empty($listFacets)) {?>
  <form action="<?php echo $this->baseUrl; ?>/produits/recherche" method="post" id="searchfacet">
    <input type="hidden" value="<?php echo $this->searchKey; ?>>" name="key" />
    <div class="facet-main" id="facet-main">
	    <?php foreach ($listFacets as $row) { 
       $facetPosition++;
        if (isset($row->Values->ProductFacetValue)) { 
          $displayUl = "none";
          if ($facetPosition < 4 || $row->IsSelected) {
            $displayUl="block";
          }
        ?>
        <div class="facet-content">
          <div class="facet-name"><?php echo $row->Name; ?></div>
          <ul style="display:<?php echo $displayUl; ?>">
	        <?php
          
            $facetValue = array();
            if (!is_array($row->Values->ProductFacetValue)) { 
                array_push($facetValue, $row->Values->ProductFacetValue); 
            } else {
                $facetValue = $row->Values->ProductFacetValue;
            }
            
            $count = 1; 
            foreach ($facetValue as $rowValue) { 
              $idFacet =  $row->Id."_".$count;
            ?>
              <li>
                <input type="checkbox" name="facet_<?php echo $idFacet;  ?>" 
                id="facet_<?php echo $idFacet; ?>" 
                onclick="selectCurrentFacetSubmit()" 
                value="<?php echo $rowValue->Value; ?>" 
                <?php if ($rowValue->IsSelected) { echo "checked"; } ?> /> 
                <a href="javascript:;" class="facet-value-link" onclick="selectCurrentFacet('facet_<?php echo $idFacet; ?>');"><?php echo $rowValue->Value; ?></a> 
              </li>
            <?php $count++; } ?>
          
          </ul>
        </div>
      <?php }
      } ?>
    </div>
  </form>
<?php } ?> PK|�G[�q�� scripts/produits/catalogue.phtmlnu&1i�Catalogue ou ConnexionPK|�G[
����.scripts/produits/categorie_default_theme.phtmlnu&1i�<?xml version="1.0" encoding="Windows-1252"?>


<?php  
	$currentCat = array();
	$currentCat = $this->currentCat;
?> 

<?php if (isset($currentCat['ID_THEME']) && $currentCat['ID_THEME'] == 2) {
	
	echo $this->render("/index/index.phtml");
	
} else { ?>

	<div id="page">

	<?php   
		if (isset($currentCat['NOM']) && !empty($currentCat['NOM'])) { ?>
		<div class="big_header"><h1 class="big_header"><?php echo $currentCat['NOM'];  ?></h1></div>
	<?php } 

	if (isset($currentCat['ID_THEME']) && !empty($currentCat['ID_THEME']) && isset($this->listAllGalleries) && !empty($this->listAllGalleries)) { ?>

	<?php
		$currentTheme = (int)$currentCat['ID_THEME'];
		$currentWithThumb = 0;
		if (isset($this->FeatureSiteThemeCms) && !empty($this->FeatureSiteThemeCms)) { 
			foreach ($this->FeatureSiteThemeCms as $row) { 
				if ($row['ID_THEME'] == $currentTheme && isset($row['WIDTH_THUMB']) && $row['WIDTH_THUMB'] > 0) {
					$currentWithThumb = $row['WIDTH_THUMB'];
					break;
				}
			} 
		}
		
		switch ($currentTheme) { 
			case 3:
			?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<ul class="portfolio2c margin_1line" id="portfolio-list">	
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
						<li class="category2 category3">
							<div class="item">
								<img style="width:310px;" src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
								<a class="gallery_group" rel="gallery_group" href="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" title="<?php echo $this->escape($row['CONTENT_LONG']);?>">
								</a>
								<div class="details">
									<div class="mblogfooter2 custom_font"><p><?php echo $this->escape($row['CONTENT_SHORT']);?></p></div>
								</div>				
							</div>
						</li>
						<?php } } ?>
					</ul>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>
			<?php
				break;
			case 4:
			?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<ul class="portfolio3c margin_1line" id="portfolio-list">	
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
						<li class="category2 category3">
							<div class="item">
								<img style="width:200px;" src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
								<a class="gallery_group" rel="gallery_group" href="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" title="<?php echo $this->escape($row['CONTENT_LONG']);?>">
								</a>
								<div class="details">
									<div class="mblogfooter2 custom_font"><p><?php echo $this->escape($row['CONTENT_SHORT']);?></p></div>
								</div>				
							</div>
						</li>
						<?php } } ?>
					</ul>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>
			<?php
				break;
			case 5:
			?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<ul class="portfolio4c margin_1line" id="portfolio-list">	
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
						<li class="category2 category3">
							<div class="item">
								<img style="width:142px;" src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" alt="<?php echo $this->escape($row['CONTENT_SHORT']);?>"/>
								<a class="gallery_group" rel="gallery_group" href="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], 0);?>" title="<?php echo $this->escape($row['CONTENT_LONG']);?>">
								</a>
								<div class="details">
									<div class="mblogfooter2 custom_font"><p><?php echo $this->escape($row['CONTENT_SHORT']);?></p></div>
								</div>				
							</div>
						</li>
						<?php } } ?>
					</ul>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>
			<?php
				break;
			case 6:?>
			<div id="page_top"></div>
			<div class="scroll-pane">
				<div class="page_block">
					<p class="margin_1line">&nbsp;</p>
					<p class="margin_1line margin_bottom_1line"><?php echo $currentCat['DESCRIPTION']; ?></p>
					<div class="responsiveslides-div" style="width:641px; height: 404px;">
						<ul class="rslides">
						<?php foreach ($this->listAllGalleries as $row) { 
							if (!empty($row['URL'])) { ?>
							<li><img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($row['URL'], $currentWithThumb);?>" /></li>
						<?php } } ?>  
						</ul>
					</div>	
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>		
				<?php
				break;
		}
	} else if (isset($this->listAllArticles) && !empty($this->listAllArticles)) { ?>

			<div class="submenu">
			<?php foreach ($this->listAllArticles as $row) { 
				if (!empty($row['CONTENT_SHORT'])) { ?>
				<a href="#article-<?php echo $row['ID'];  ?>" class="custom_font filter"><?php echo $row['CONTENT_SHORT'];  ?></a>
			<?php }
			} ?>
			</div>
			<div class="scroll-pane">
				<div class="page_block">

					<?php foreach ($this->listAllArticles as $row) { ?>
					<div id="article-<?php echo $row['ID'];  ?>">
						<?php echo $row['CONTENT']; ?>
					</div>
					<?php } ?>
					<div class="clear"></div>
				</div>
				<div class="page-footer">&copy; <?php echo $this->siteName; ?></div>
			</div>

	<?php } ?>
	</div>
<?php } ?>
		PK|�G[8Tlq��)scripts/produits/ajaxshowpromoprice.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1');

if ($this->currentData) {
	$currentData = $this->currentData;
if ($currentData['isDEVIS'] == 1) { 
			if ($currentData['isPROMO'] == 0) { ?> 
			<div class="productDetail_priceBox" <?php if ($currentData['PROMOPRIX'] > 999) { echo 'style="width:165px;"'; } ?>>   
		 		<div class="productDetail_promoImag hidden-print" >
					<img class="tooltips" data-placement="bottom" src="<?php echo $this->baseUrl; ?>/business/image/promo.png" alt="Ce produit est en promotion" title="Ce produit est en promotion" >
				</div>
		 		<div class="productDetail_price" >
			 		 <div class="text12" >
					 	<?php echo number_format($currentData['PROMOPRIX'], 2, ',', ' ').' ';?>
					 	<span style="color: #000000">&#8364;</span> 
					 </div>
					 <div>
					 	<span class='oldPromoPrice'> <?php echo number_format($currentData['PRIX'], 2, ',', ' ').' ';?>&#8364;</span>
					 </div>
		 		</div> 
			</div>
		<?php } else { ?> 
				<div class="text12" >
					<?php echo number_format($currentData['PRIX'], 2, ',', ' ').' ';?>
					<span style="color: #000000">&#8364;</span>
				</div> 
		<?php } 
	 } else { ?> 
			<div  class="text12">
				<span>sur devis</span>
			</div> 
	<?php }} ?>PK|�G[x��'scripts/produits/nosmarquesdetail.phtmlnu&1i�
<?php $brend = $this->brends; ?>
<div class="page-header">
  <div class="col-xs-6 col-md-3">
    <a href="#" class="thumbnail">
      <img src="<?php echo $this->baseUrl."/".$brend["URL"]; ?>" alt="<?php echo $brend["BREND"]; ?>" />
    </a>
  </div>
  <h1><?php echo $brend["BREND"]; ?><small><?php echo $brend["DESCRIPTIONSHORT"]; ?></small></h1>
  <p><?php echo $brend["DESCRIPTIONLONG"]; ?></p>
</div>PK|�G[��9\\ scripts/produits/recherche.phtmlnu&1i�

<div id="productContainer" class="col-md-12 noPadding">

<?php 
$listProducts = array();
$listProducts = $this->listSearchPages;
$listCat = array();
$listCat = $this->listCat;

echo $this->render("/produits/ajaxfacets.phtml");
?>

<div class="col-md-12 prod-detail-title-box noPadding" id="prod-search-title">
	<h1 class="prod-detail-title ">
		<?php if (sizeof($listProducts) == 0) { 
			if (strlen($this->searchKey) > 0) { ?>
			<span >Votre recherche de "<span ><?php echo $this->searchKey; ?></span>" n'a retourn�e aucun r�sultats </span>
			<?php } else { ?>
			<span >Votre recherche n'a retourn�e aucun r�sultats </span>
			<?php }
		} else { ?>
			<span>R�SULTATS DE LA RECHERCHE : "<span ><?php echo $this->searchKey; ?></span>"</span>
		<?php } ?>
	</h1>
</div>


  <div id="productContents">
    <?php
  if (!empty($listProducts)) { 
	  foreach ($listProducts as $row) {
		  $this->currentData = $row;
		  echo $this->render("/produits/ajaxshowproductbox.phtml");
	  } 
  } 
  ?>
  </div>

  <script type="text/javascript">
  $(document).ready(function() {
    initSearch();
    });
  </script>

</div>
PK|�G[~$��4�4#scripts/produits/detailmobile.phtmlnu&1i�
<?php
$product = $this->detailProduct;
$userNamespace = new Zend_Session_Namespace($this->session_variable);
$myCaddy = $userNamespace->myObjectCaddy;
$nbOption = 3;
?>
 <style>
   .productPriceDetailBox {
    position:relative;
   }
 </style>

  <div class="col-xs-12 prod-detail-box noPadding">
    <div class="col-xs-12 prod-detail-title-box noPadding"> 
      <div class="noPadding">
        <h1 class="prod-detail-title "><?php echo $this->escape($product['NOM']); ?></h1>
      </div>
    </div>
    
    <div class="col-xs-12 noPadding">
      <div class='prod-detailimg-mobile-content'>
          <div class='prod-detailimg-mobile-main' style='<?php $width = 300 * sizeof($product['LISTPICS']); echo 'width:'.$width.'px';  ?>'>
            <ul >
              <?php    foreach ($product['LISTPICS'] as $pic) { ?>
	                <li class='prod-detailimg-mobile-content-li'>
                      <div class="col-xs-12">
                        <?php if (!empty($pic['STRING1'])) {  
			                    echo $pic['STRING1'].'<br/>';
		                    } if (!empty($pic['STRING2'])) {
			                    echo $pic['STRING2'] ;
		                    } ?>
                      </div>
                      <div class="col-xs-12 prod-detailimg-mobile noPadding">
                        <center><a href="<?php echo $this->baseUrl.'/'.$pic['URL']; ?>" title="<?php echo $this->escape($pic['STRING1'].' '.$pic['STRING2']) ; ?>">
                          <img src="<?php echo $this->baseUrl.'/'.$pic['URL']; ?>" alt="<?php echo $this->escape($pic['STRING1']) ; ?>" />
                        </a></center>
                      </div>
                  </li>
		            <?php } ?>
            </ul>
          </div>
      </div>
      
      <div  class="col-xs-12">
          <?php $url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; ?>
          <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>" class="btn btn-facebook"><i class="fa fa-facebook"></i></a>
          <a target="_blank" href="https://plus.google.com/share?url=<?php echo $url; ?>" class="btn btn-google-plus"><i class="fa fa-google-plus"></i></a>
          <a target="_blank" href="https://twitter.com/home?status=<?php echo $url; ?>" class="btn btn-twitter"><i class="fa fa-twitter"></i></a>
          <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url; ?>&title=<?php echo utf8_encode($this->escape($product['NOM'])); ?>&summary=<?php echo utf8_encode($this->escape($product['DESCSHORT'])); ?>&source=<?php echo $this->baseUrl_SiteCommerceUrl; ?>" class="btn btn-linkedin"><i class="fa fa-linkedin"></i></a>
        
          <?php  if ($this->FeatureProductSendDetail) { ?>
            <a href="#dialog-form-send-friend" class="btn btn-default popup-with-form-send-friend"><i class="fa fa-envelope"></i> Conseillez cet article</a>
          <?php  } ?>
      </div>
  </div>
  
    
  <div class="col-xs-12 prod-detail-title ">Nos R�f�rences</div>
    
  <div class="col-xs-12">
      <form id="productAddForm" action="<?php echo $this->baseUrl; ?>/produits/ajaxaddpanier/<?php echo $product['NAVNOM']; ?>/p/<?php echo $product['ID']; ?>" method="post">
        <input type="hidden" name="idProd" id="idProd" value="<?php echo $this->escape($product['ID']); ?>" />
          <?php
	        $index = 1;
	        $count = 0;
	        if (sizeof($product['LISTCHILD']) > 0) {
		        foreach($product['LISTCHILD'] as $child) {  
						    if (isset($child['DESIGNATION']) && !empty($child['DESIGNATION'])) { ?>
			    <div class="col-xs-12"><?php echo $child['DESIGNATION'];?> ( Ref. <?php echo $this->escape($child['REFERENCE']); ?> )</div>
          
          <?php for($i=0 ; $i<$nbOption; $i++) {
				    if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION']) && isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) { ?>
			      <div class="col-xs-12 noPadding" style="margin-top:10px;">
              <div class="col-xs-6 noPadding"><b><?php echo $this->escape($product['LISTOPTION'][$i]['NOMOPTION']); ?> : </b></div>
              <div class="col-xs-6 noPadding">
                <?php echo $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']);  ?>
              </div>
            </div>
			    <?php } } ?>
          
          
			    <?php  if ($product['ONSELECT_IDOPTION'] > 0  && !empty($product['ONSELECT_OPTION'])) { ?>
			    <div class="col-xs-12 noPadding"  style="margin-top:10px;">
            <div class="col-xs-6 noPadding"><b><?php  $optionsList = $product['ONSELECT_OPTION']; echo $optionsList->name; ?> : </b></div>
            <div class="col-xs-6 noPadding">
              <select name="selectedOption_<?php echo $count; ?>" class="selectedOption form-control">
				        <?php
				            foreach($optionsList->values as $currentOption) {  ?>
				            <option value="<?php echo $currentOption; ?>"><?php echo $currentOption; ?></option>
				        <?php } ?>
			        </select>
             </div>
          </div>
			    <?php } ?>
          
          <div class="col-xs-12 noPadding"  style="margin-top:10px;">
            <?php if (!$this->isProductOutOfStock) { ?>
			        <div class="col-xs-6 noPadding">
                <div class="col-xs-6 noPadding"><b>Quantit� : </b></div>
                <div class="col-xs-6 noPadding">
                    <?php  if (isset($myCaddy->items))  { $myValue = $myCaddy->getQuantity($child['ID']); } ?> 
                  <input onclick="clearById('quantity_<?php echo $this->escape($child['ID']); ?>', '0')"
				          type="text" class="form-control text-center" maxlength="5" name="quantity_<?php echo $this->escape($child['ID']); ?>"
				          id="quantity_<?php echo $this->escape($child['ID']); ?>" value="<?php echo $myValue; ?>" /> 
                  <input type="hidden" name="idChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['ID']); ?>" /> 
                  <input type="hidden" name="qtyMinChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['QUANTITYMIN']); ?>" /> 
                  <input type="hidden" name="isAccessoire_<?php echo $count; ?>" value="N">
                </div>
              </div>
            <?php } ?>
            <div>
              <?php $this->currentData = $child; echo $this->render("/produits/ajaxshowpromoprice.phtml"); ?>
            </div>
          </div>
          
          <div class="col-xs-12 noPadding">
            <div class="col-xs-12 noPadding">
              <?php if (!$this->isProductOutOfStock) { ?>
                <div class="col-xs-12 noPadding text-center">
                  <button type="submit" class="btn btn-success btn-lg">
                    <img id="prod-detail-add-btn" src="<?php echo $this->baseUrl; ?>/business/image/add-caddy.png" class="glyphicon-caddy" /> AJOUTER AU PANIER
                  </button> 
                </div> 
              <?php } else { ?>
                <span class="btn btn-success btn-lg">Le produit est �puis�</span>
              <?php } ?>
            </div>
          </div>
		  <?php $count++; } } } ?>
    
    <?php
	        if (sizeof($product['PRODUCT_ACCESSOIRE']) > 0) {
		        foreach($product['PRODUCT_ACCESSOIRE'] as $child) {  
						    if (isset($child['DESIGNATION']) && !empty($child['DESIGNATION'])) { ?>
			    <div class="col-xs-12"><?php echo $child['DESIGNATION'];?> ( Ref. <?php echo $this->escape($child['REFERENCE']); ?> )</div>
          
          <?php for($i=0 ; $i<$nbOption; $i++) {
				    if (isset($product['LISTOPTION'][$i]) && isset($product['LISTOPTION'][$i]['NOMOPTION']) && isset($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']])) { ?>
			      <div class="col-xs-12 noPadding" style="margin-top:10px;">
              <div class="col-xs-6 noPadding"><b><?php echo $this->escape($product['LISTOPTION'][$i]['NOMOPTION']); ?> : </b></div>
              <div class="col-xs-6 noPadding">
                <?php echo $this->escape($child['OPTION_VALUES'][$product['LISTOPTION'][$i]['IDOPTION']]['OPTIONVALUE']);  ?>
              </div>
            </div>
			    <?php } } ?>
          
          
			    <?php  if ($product['ONSELECT_IDOPTION'] > 0  && !empty($product['ONSELECT_OPTION'])) { ?>
			    <div class="col-xs-12 noPadding"  style="margin-top:10px;">
            <div class="col-xs-6 noPadding"><b><?php  $optionsList = $product['ONSELECT_OPTION']; echo $optionsList->name; ?> : </b></div>
            <div class="col-xs-6 noPadding">
              <select name="selectedOption_<?php echo $count; ?>" class="selectedOption form-control">
				        <?php
				            foreach($optionsList->values as $currentOption) {  ?>
				            <option value="<?php echo $currentOption; ?>"><?php echo $currentOption; ?></option>
				        <?php } ?>
			        </select>
             </div>
          </div>
			    <?php } ?>
          
          <div class="col-xs-12 noPadding"  style="margin-top:10px;">
            <?php if (!$this->isProductOutOfStock) { ?>
			        <div class="col-xs-6 noPadding">
                <div class="col-xs-6 noPadding"><b>Quantit� : </b></div>
                <div class="col-xs-6 noPadding">
                    <?php  if (isset($myCaddy->items))  { $myValue = $myCaddy->getQuantity($child['ID']); } ?> 
                  <input onclick="clearById('quantity_<?php echo $this->escape($child['ID']); ?>', '0')"
				          type="text" class="form-control text-center" maxlength="5" name="quantity_<?php echo $this->escape($child['ID']); ?>"
				          id="quantity_<?php echo $this->escape($child['ID']); ?>" value="<?php echo $myValue; ?>" /> 
                  <input type="hidden" name="idChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['ID']); ?>" /> 
                  <input type="hidden" name="qtyMinChild_<?php echo $count; ?>" value="<?php echo $this->escape($child['QUANTITYMIN']); ?>" /> 
                  <input type="hidden" name="isAccessoire_<?php echo $count; ?>" value="Y">
                </div>
              </div>
            <?php } ?>
            <div>
              <?php $this->currentData = $child; echo $this->render("/produits/ajaxshowpromoprice.phtml"); ?>
            </div>
          </div>
          
          <div class="col-xs-12 noPadding">
            <div class="col-xs-12 noPadding">
              <?php if (!$this->isProductOutOfStock) { ?>
                <div class="col-xs-12 noPadding text-center">
                  <button type="submit" class="btn btn-success btn-lg">
                    <img id="prod-detail-add-btn" src="<?php echo $this->baseUrl; ?>/business/image/add-caddy.png" class="glyphicon-caddy" /> AJOUTER AU PANIER
                  </button> 
                </div> 
              <?php } else { ?>
                <span class="btn btn-success btn-lg">Le produit est �puis�</span>
              <?php } ?>
            </div>
          </div>
		  <?php $count++; } } } ?>
          
      <input type="hidden" name="nbr" value="<?php echo $count; ?>" />
      <div id="productAddFormLog"></div>
    </form>
  </div> 
    
  <div class="col-xs-12 noPadding"> 
      <div class="col-xs-12">
        <?php if ($this->escape($product['BRENDURL']) && $product['isSHOWBREND'] == 0) {?>
          <img class="prod-detail-brend tooltips" title="<?php echo $this->escape($product['BREND']); ?>"
	          src="<?php echo $this->baseUrl.'/'.$product['BRENDURL']; ?>"
	          alt="<?php echo $product['BREND']; ?>"
	          title="<?php echo $product['BREND']; ?>" /> 
        <?php } 
        if ($product['isQTEPRIXACTIVE']) { ?>
          <img class="tooltips" data-placement="right"
	          alt="D�couvrez nos prix d�gressif" title="D�couvrez nos prix d�gressif"
	          src="<?php echo $this->baseUrl; ?>/business/image/header/degressif2.png">
	      <?php } ?>
        <div class="prod-detail-price">
          <?php if ($product['isDEVISPRODUCT'] == 1) { ?>
            <div class="productPriceDetailBox"><span class="productPriceTitle" style="float: right;">� partir de</span><br />
              <span class="productPriceDetail"><?php echo number_format($product['PRIXLOWEST'], 2, ',', ' ').' '; ?> &#8364;</span> <span class="productPriceDetailHT" style="float: right;"> HT</span></div>
	        <?php } else { ?>
            <div class="productPriceDetailBox"><span class="productPriceTitle" style="margin-left: 10px; margin-top: 5px">Sur devis</span></div>
	        <?php } ?>
        </div>
      
        <h2 class="prod-detail-desc"><?php echo strip_tags($product['DESCSHORT']); ?></h2>
      </div> 
      <?php if (!empty($product['DESCLONG'])) { ?>
      <div class="col-xs-12 prod-detail-title ">Description</div>
      <div class="col-xs-12"> 
          <?php echo $product['DESCLONG']; ?>
      </div>
      <?php } ?>
      <?php if (!empty($product['DESCTECH'])) { ?>
      <div class="col-xs-12 prod-detail-title ">Informations techniques</div>
      <div class="col-xs-12"> 
          <?php echo $product['DESCTECH']; ?>
      </div>
      <?php } ?>
      <?php if (!empty($product['DESCNORME'])) { ?>
      <div class="col-xs-12 prod-detail-title ">Normes</div>
      <div class="col-xs-12"> 
          <?php echo $product['DESCNORME']; ?>
      </div>
      <?php } ?>
  </div>
  <script type="text/javascript">
  $(function(){
	  initEventDetail(); 
  }); 
  </script> PK|�G[�J����)scripts/produits/ajaxshowproductbox.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1');

$prefixClass = $this->prefixPromoClass;

if ($this->currentData) {
	$row = $this->currentData;
	$paginationPage = "";
	if (!empty($this->currentPaginationPage)) {
		$paginationPage = "prod-pagination prod-pagination-".$this->currentPaginationPage;
	}
	$link = "";
	if(isset($row['PRODUCT_URL'])) {
		$link = $this->baseUrl."/".$row['PRODUCT_URL'];
	} else if (isset($row['NAVNOM'])) {
		$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
	} else if (isset($row['PRODNAVNOM'])){
		$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['PRODNAVNOM'], $row['ID']);
	}
		$name = $this->escape($row['NOM']);
		$desc = $row['DESCSHORT'];
		$nametitle = $name;
		$brendurl= '';
		if ($row['isSHOWBREND'] == 0) {
			$nametitle =  strtoupper($row['BREND'].' - ').$name;
			$brendurl = $row['BRENDURL'];
		} 
		$nametitle = $this->escape($nametitle);

		$filter = new Zend_Filter();
		$filter	->addFilter(new Zend_Filter_StripTags())
		->addFilter(new Zend_Filter_StringTrim());
		$descFiltered = $filter->filter($desc);
	?>	
 
 <div class="col-md-3 col-sm-4 col-xs-12 categorieBoxContent  <?php echo $paginationPage; ?>">
		<div class="productBox text-center">
			<div class="col-xs-12 productHeader noPadding">
				<?php  if ($row['isSHOWBREND'] == 0) { ?>
					<img src="<?php echo '/'.$this->escape($row['BRENDURL']); ?>" alt="<?php echo $nametitle; ?>"/>
				<?php } ?>
				<?php if ($row['isPROMO'] == 0) { ?>
					<div >
						<img class="tooltips" data-placement="top" alt="Ce produit est en promotion" title="Ce produit est en promotion" src="<?php echo $this->baseUrl; ?>/business/image/promo.png" />
					</div>
				<?php } else if ($row['isPRIXDEGRESSIF']) { ?>
					<div>
						<img alt="Les prix sont d�gressifs" src="<?php echo $this->baseUrl; ?>/business/image/prixdeg.png" />
					</div>
				<?php } ?>
			
				<?php if ($row['isDEVISPRODUCT'] == 1) { ?>
					<div class="productPriceBox">
						<span class="<?php echo $prefixClass; ?>productPriceTitle" >� partir de</span><br />
						<span class="<?php echo $prefixClass; ?>productPrice" ><?php echo number_format($row['PRIXLOWEST'], 2, ',', ' ').' '; ?> &#8364;</span>
						<span class="<?php echo $prefixClass; ?>productPriceHT">HT</span>
					</div>
				<?php } else { ?>
					<div class="productPriceBox">
						<span  class="productPrice" style="margin-left: 10px; margin-top: 5px">Sur devis</span>
					</div>
				<?php } ?>
			</div>
			<div class="col-xs-12 noPadding">
				<center><a title="<?php echo $descFiltered;?>" class="tooltips" data-placement="bottom" href="<?php echo $link;?>" >
					<span class="categorieBoxImg">
						<img src="<?php echo '/'.$this->escape($row['URL']); ?>" alt="<?php echo $nametitle; ?>"/>
					</span>
				</a></center>
			</div>
			<div class="col-xs-12 noPadding  text-left">
				<div class="productBoxTitleContent">
					<a class="productBoxTitle"  href="<?php echo $link;?>" >
						<?php echo $name; ?>
					</a>
				</div>
			</div>
			<div class="col-xs-12 productBoxDesc text-left">
				<?php echo $desc; ?>
			</div>
			<div class="col-xs-12 productBoxTitleSubContent">
				<a class="col-xs-12 <?php echo $prefixClass; ?>productBoxTitleGo tooltips" data-placement="bottom" title="<?php echo $nametitle;?>" href="<?php echo $link;?>" >
					Voir la fiche produit
					<?php 
						$filter = new Zend_Filter();
						$filter	->addFilter(new Zend_Filter_StripTags())
						->addFilter(new Zend_Filter_StringTrim());
					?>
					<img src="/business/image/<?php echo $prefixClass; ?>category-icon.png" alt="<?php echo $descFiltered; ?>"  style="margin-left: 15px;">
				</a>	
			</div>
		</div>
	</div>

<?php } ?>PK|�G[f�	33!scripts/produits/nosmarques.phtmlnu&1i�
<div>
  <div class="col-xs-12 prod-detail-title-box noPadding">
      <h1 class="prod-detail-title ">
        Nos marques
      </h1>
  </div>
  
  <?php
  foreach ($this->brends as $row) { 
  $link = $this->baseUrl."/nos-marques/".Utils_Tool::generateNavigationString($row['BREND'])."-".$row['IDBREND'].".html";
  ?>
  <div class="col-md-3 col-sm-4 col-xs-6 categorieBoxContent nolink">
    <a href="<?php echo $link; ?>">
    <div class="productBox text-center">
      <div class="col-xs-10 col-xs-offset-1 noPadding">
          <span class="categorieBoxImg">
            <img src="<?php echo $this->baseUrl; ?>/<?php echo $this->escape($row['URL']); ?>" alt="<?php echo $row['BREND']; ?>"/>
          </span>
      </div>
      <div class="col-xs-12 noPadding  text-left">
        <div class="productBoxTitleContent">
            <?php echo $row['BREND']; ?>
        </div>
      </div>
      <div class="col-xs-12 productBoxDesc text-left" style="height:auto">
        <?php echo $row['DESCRIPTIONSHORT']; ?>
      </div>
    </div>
    </a>
  </div>
  <?php } ?>
</div>PK|�G[��Lpp*scripts/produits/ajaxshowallproducts.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>  
<?php if (isset($this->listAllProducts) && !empty($this->listAllProducts)) { 
	 //$color = "none";
	 $color = $this->actualDesign['color']; 
		foreach ($this->listAllProducts as $row) { 
			$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['PRODNAVNOM'], $row['ID']);
			$desc = $this->escape($row['DESCSHORT']);
			$name = $this->escape($row['NOM']);
		?>  
	 <div class="col-md-3 categorieBoxContent">
		<div class="categorieBox text-center">
			<div class="col-md-10 col-md-offset-1 noPadding">
				<a class="tooltips" data-placement="bottom" title="<?php echo $desc;?>" href="<?php echo $link;?>" >
					<span class="categorieBoxImg">
						<img src="<?php echo '/'.$this->escape($row['URL']); ?>" alt="<?php echo $name; ?>"/>
					</span>
				</a>
			</div>
			<div class="col-md-12 noPadding categorieBoxTitleContent">
				<a class="categorieBoxTitle tooltips" data-placement="bottom" title="<?php echo $desc;?>" href="<?php echo $link;?>" >
					<?php echo $name; ?>
				</a>
			</div>
		</div>
	</div>
<?php } }?>		
	 PK|�G[ց�4scripts/services/faq.phtmlnu&1i�<!--[if IE]>
<style type="text/css">
.textA16, .textA15 {
  filter: glow(color=#ffffff,strength=1);
}
.linkA16, .linkA15 {
  filter: glow(color=#ffffff,strength=1);
}
</style>
<![endif]-->
<div class="spaceBG2" style="clear: both;"></div>
<div class="faq_container">
	<div class="faq_container1">
		<div class="faq_containerType">
			<div class="linkA16" style="clear:both;margin: 5px 0 0 10px; text-align:left;"><a href="<?php echo $this->baseUrl; ?>/services/faq/" title="Foire aux questions">FAQ</a></div>
			<div class="linkA15" style="clear:both;margin: 0 0 0 10px; text-align:left;"><a href="<?php echo $this->baseUrl; ?>/services/faq/" title="Foire aux questions">La solution <br/>� vos questions</a></div>
		</div>
			<?php $i = 0; foreach($this->faqType as $row) { ?>
				<div class="faq_typeLink"><div class="linkA4" style="margin: 5px 0 0 0;"><a href="javascript:;" onclick="javascript:showFAQ('<?php echo $row['ID']; ?>');"><?php echo $row['NOM'];?></a></div></div>
			<?php } ?>
	</div>
	<div class="faq_container2">
	<?php $lastType = ""; 
		foreach($this->faqs as $row) { 
		if ($lastType != $row['IDTYPE']) { $lastType = $row['IDTYPE'];?>
			<div class="faq_type faq_typeV_<?php echo $row['IDTYPE']; ?> textA14" >
				<span><?php echo $row['NOMTYPE'];?></span>
			</div>
		<?php } ?>
		<div class="faq_content faq_contentV_<?php echo $row['IDTYPE']; ?>" >
			<div class="faq_contentOpt">
				<div class="textA4" style="float: left;width: 30px;">Q :</div>
				<div class="textA3" style="float: left;width: 470px"><?php echo $row['QUESTION'];?></div>
			</div>
			<div class="faq_contentOpt">
				<div class="textA4" style="float: left;width: 30px;">R :</div>
				<div class="textA3" style="float: left;width: 470px;"><?php echo $row['REPONSE'];?></div>
			</div>
		</div>
		<?php } ?>
	</div>
</div>PK|�G[0��''"scripts/services/information.phtmlnu&1i�<?php $service = $this->service; ?>
<div class="col-xs-12 indexBox3_title" style="margin-top: 10px;"><?php echo $service['TITRE']; ?></div>
<div class="col-md-12" style="padding-top: 10px; padding-bottom: 10px;border: 1px solid #ccc;margin-top: 10px;">
	<?php echo $service['CONTENT']; ?>
</div>PK|�G[t�Gddscripts/ajax/ajaxvalue.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<?php echo $this->messageSuccess; ?>PK|�G[��`` scripts/ajax/ajaxlivraison.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<?php 
$marginTop = 30;
if (isset($this->messageSuccess) && !empty($this->messageSuccess)) {?>
<div class="alert alert-success  text-center"><?php echo $this->messageSuccess; ?></div>
<?php $marginTop = 0; } 
 if (isset($this->messageError) && !empty($this->messageError)) { ?>
<div class="alert alert-danger  text-center"><?php echo $this->messageError; ?></div>
<?php $marginTop = 0; }?>

<div class="cmdLivResultOpt textA7" style="margin: <?php echo $marginTop.'px'; ?> 0 0 10px;"><?php echo $this->adresseLiv['raisonsocial']; ?></div>
<div class="cmdLivResultOpt"><?php echo $this->adresseLiv['adresse']; ?></div>
<div class="cmdLivResultOpt"><?php echo $this->adresseLiv['cp']." ".$this->adresseLiv['ville'];  ?></div>
<div class="cmdLivResultOpt"><?php echo $this->adresseLiv['pays']; ?></div>
PK|�G[a]���scripts/ajax/ajaxaccount.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>

<?php 
	$auth = Zend_Auth::getInstance();
	$auth->setStorage(new Zend_Auth_Storage_Session($this->session_storage));
	$storage = $auth->getStorage()->read(); 

if (isset($this->messageError) && !empty($this->messageError)) { ?> 
<script type="text/javascript"> 
	 $(function(){
		 $('#leftUserMessage').css({'display':'block'}).html('<?php echo $this->messageError; ?>');
	});
</script>
<?php }
 
 if ($auth->hasIdentity() && isset($storage['user'])) { ?>
<div class="leftUserDeconnecte" >
	<a href="javascript:;" id ="accountLeftLogout" title="Pour vous déconnecter" class="tooltips" data-placement="top"><img src="<?php echo $this->baseUrl; ?>/business/image/deconnexion.png" /></a>
	
</div>
<div class="leftUserContent"> 
	<div class="leftUserFormText" <?php if ($auth->hasIdentity() && isset($storage['user'])) {  echo 'style="display: block"';  } else {  echo 'style="display: none"'; } ?>>
		Bonjour,<br/>
		<span id="ajaxNameUser" ><?php 
			if ($auth->hasIdentity() && isset($storage['user'])) {
				echo $storage['user']['prenom'].' '.$storage['user']['nom']; 
			 }?>	
		</span>
	</div> 
</div>
<div class="leftUserAccountBtn">
	<a href="<?php echo $this->baseUrl; ?>/mon-compte.html" title="Accéder à votre espace"><img alt="" style="margin: 0; padding: 0" src="<?php echo $this->baseUrl; ?>/image/header/my_space.png" /></a>
</div>
<?php } else { ?>
<div class="leftUserTitleForm"><span class="link_shadow18_r" ><a href="javascript:;" onclick="javascript:sendUserLeftConnect();" title="Me connecter à mon compte">Mon Compte</a></span></div>
<div class="leftUserContent leftUserFormText" >
	<div class="leftUserForm">
		<form id="connexionFormLeft" method="post" >	  
			<div class="leftUserFormInput">
				<input type="text" name="connexionleft_login" id="connexionleft_login" value="Identifiant" onfocus="clearById('connexionleft_login',new Array('Identifiant'));"/>
			</div>
			<div class="leftUserFormInput">
				<input type="password" name="connexionleft_mdp" id="connexionleft_mdp" value="Mot de passe" onfocus="clearById('connexionleft_mdp',new Array('Mot de passe'));"/>
			</div>
		</form>
	</div>  
</div>
<?php } ?> 
			PK|�G[W���n3n3scripts/ajax/ajaxcaddy.phtmlnu&1i�
<?php header('Content-type: text/html; charset=iso-8859-1');  
$myFacture = $this->myFacture;  
if (isset($myFacture) && $myFacture->getNbArticles() == 0) { ?>
<div class="col-xs-12 text-center" style="margin-top: 20px;">Il n'y a aucun article dans votre panier.</div>
<div class="col-xs-12 text-center" style="margin-top: 20px;">
		<a   data-placement="bottom" class="btn btn-default btn-lg" href="<?php if (isset($this->urlCurrentProduct) && !empty($this->urlCurrentProduct)) { echo $this->urlCurrentProduct; } else { echo $this->baseUrl.'/'; } ?>" >
			CONTINUER MES ACHATS
		</a>
</div>
<?php  } else { ?>
<div class="col-xs-12">

<form id="caddyCheckForm" action="<?php echo $this->baseUrl; ?>/produits/ajaxcheckcaddy/" method="post">
	<div style="float: left;width: 100%;">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" class="prod-detail-ref-table">
			<thead>
			<tr align="center" height="50px" style="background-color: #e7e7e7">
				<th class="text-center" style="width: 55%">Produit</th>
				<th class="text-center" style="width: 10%">Dispo.</th>
				<th class="text-center" style="width: 15%">Prix Unitaire (HT)</th> 
				<th class="text-center"  style="width: 10%">Quantit�</th>
				<th class="text-center" style="width: 10%">Prix Total</th>
			</tr>
			</thead>
			<tbody>
			<?php
			$index = 1;
			$i = 0;
			$caddyType_first = true; 
			$isHaveItems = false;
			foreach($myFacture->facture_lines as $row) { 
				if (!$isHaveItems && !$row->isCaddyTypeActif()) { $isHaveItems = true;}
				if (($caddyType_first && $row->isCaddyTypeActif()) && $isHaveItems) { $caddyType_first = false;?>
					<tr>
						<td colspan="5"><div  style="background-color: red;clear:both;width: 500px; height: 1px;margin: 5px auto 5px auto;"></div></td>
					</tr>
				<?php } ?>
			<tr align="center"  height="25px"  style="background-color:<?php if ($index == 0) {echo '#E7E7E7'; $index=1;} else {$index=0; echo '#FFFFFF';} ?>;">
				<td width="400px">
					<div class="caddyProdImg" > 
						<?php if (isset($row->item_isAccessoire) && $row->item_isAccessoire == "N") { ?>
							<a href="<?php echo $this->baseUrl; ?>/<?php Utils_Tool::getFormattedUrlProduct($row->product_navnom_urlparents, $row->product_navnom, $row->product_id); ?>"
								>
								<img src="<?php echo $this->baseUrl.'/'.$row->product_url; ?>">
							</a>
						<?php } ?>
					</div>
					<div class="caddyProdTxt" >
						<div class="link17" style="width: auto;clear:both">
							<a href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->product_navnom_urlparents, $row->product_navnom, $row->product_id); ?>">
								<?php echo $row->item_designation;?>
							</a>
						</div>
						<div class="textA1 productDetail_ref">
							<div class="productDetail_ref_label">
								<?php echo "Ref. ".$this->escape($row->item_reference); ?>
							</div>
							<div class="productDetail_ref_selected">
								<?php 
								 if (!empty($row->item_selectedOption) && !empty($row->item_optionsByList)) { 
								  $optionsByList = $row->item_optionsByList;
								 	?>
								 	<select name="selectedOption[]" class="selectedOption form-control">
										<?php foreach($optionsByList->values as $currentOption) {  ?>
										<option value="<?php echo $currentOption; ?>" <?php if ($row->item_selectedOption == $currentOption) { echo 'selected="selected"'; } ?> >
											<?php echo $currentOption; ?> 
										</option>
										<?php } ?>
									</select>   
									<input type="hidden" name="selectedOptionName[]" value="<?php echo $optionsByList->name; ?>" /> 
								<?php } else { ?> 
								<input type="hidden" name="selectedOption[]" value="" /> 
								<input type="hidden" name="selectedOptionName[]" value="" /> 
								<?php } ?>
							</div>
						</div>
					</div>
				</td> 
				<td >
					<?php if ((int)$row->item_stock == 1) { ?>
					<img class="tooltips" alt="Disponible imm�diatement" title="Disponible imm�diatement" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock11.png" class="tooltips">
					<?php } else if ((int)$row->item_stock == 2) { ?>
					<imgclass="tooltips" alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock22.png" class="tooltips" >
					<?php } else if ((int)$row->item_stock == 3) { ?>
					<img class="tooltips" alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock33.png" class="tooltips">
					<?php }?> 
				
				</td>
				<td valign="middle">
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromopricecaddy.phtml"); ?>
				</td>
				<td valign="middle" align="center">
					<div style="clear:both;width: 90px">
						<div class="col-xs-8 noPadding">
							<input type="text" class="form-control text-center caddyQuantity" maxlength="6" name="Quantity[]" id="Quantity_<?php echo $row->item_id.'_'.$i; ?>" value="<?php echo $row->item_qte; ?>" /> 
						</div>
						<div class="col-xs-4 noPadding">
							<a href="javascript:;" onclick="caddyDeleteByModify($(this), '<?php echo $row->item_id.'_'.$i; ?>')">
								<img alt="Supprimer" class="tooltips" data-placement="right"  title="Supprimer" src="<?php echo $this->baseUrl; ?>/business/image/admin/suppcaddy.png">
							</a>
						</div>
					</div>
					
					<input type="hidden" name="Child[]" value="<?php echo $row->item_id; ?>" /> 
					<input type="hidden" name="QuantityMin[]"  value="<?php echo $row->item_qte_min; ?>" />
					<input type="hidden" name="Accessoire[]" value="<?php echo $row->item_isAccessoire; ?>" /> 
					<input type="hidden" name="CaddyType[]" value="<?php echo $row->caddytype_id; ?>" /> 
				</td>
				<td width="120px" valign="middle">
					<div class="textPriceBox" style="margin: 10px 0 0 0; " >
						<span>
						<?php if (!$row->isSurDevis()) { echo number_format($row->getPrixTotalHT(true), 2, ',', ' ').' &#8364;'; }	 ?>
						</span>
					</div>
				</td>
			</tr>
			<?php $i++; } ?>
			<?php foreach($myFacture->facture_fidelite_lines as $row) { 
		  if ($row->isFideliteGift()) {  ?>
    <tr>
      <td colspan="3">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row->fidelite_nom.' ('.$row->fidelite_nbpoint.' points)'; ?>
        </div>
      </td>
      <td style="text-align:right">
          <a href="<?php echo $this->baseUrl; ?>/user/deletecaddyfidelitypoint/id/<?php echo $row->fidelite_id; ?>" >
            <img alt="Supprimer" class="tooltips" data-placement="right" title="Supprimer" src="<?php echo $this->baseUrl; ?>/business/image/admin/suppcaddy.png">
          </a>
      </td>
      <td></td>
    </tr>
    <?php }  } ?>
			</tbody>
		</table>
	</div>
</form>
</div>
	<div class="col-xs-12" >
		<div class="col-sm-6 col-xs-12">
		<?php if (!isset($this->isCommandValid)) { ?>
			<div class="textA4" style="clear: both;margin: 20px 0 0 0;">
				Vous b�n�ficiez d'un code de r�duction ?
			</div>
			
			<div id="labelCodeReduc" class="caddyLabelReduc">
				<?php if (isset($this->messageSuccessReduc)) { 
					 if ($this->messageSuccessReduc == "OK") { ?>
					 	<span class="messageSuccess"><?php echo $this->messageMessReduc ?></span>
					 <?php } else { ?>
					 	<span class="messageError"><?php echo $this->messageMessReduc; ?></span>
					<?php }
				} ?>
			</div>
			<div style="clear: both;text-align: center;width: 100%">
				<div class="textA2" style="float: left;margin: 15px 0 0 30px">Saisissez-le ici : </div>
				<div style="float: left; margin: 10px 0 0 10px"><input class="form-control" type="text" name="caddyCodeReduc" id="caddyCodeReduc"></div>
				<div style="float: left;margin: 0 0 0 10px">
					<?php if (isset($myFacture->code_reduction) && !empty($myFacture->code_reduction)) { ?>
					<input type="image" id="submitCodeReduc" src="<?php echo $this->baseUrl; ?>/business/image/admin/btnok.png" >
					<?php } else { ?>
					<input type="image" id="submitCodeReduc" src="<?php echo $this->baseUrl; ?>/business/image/admin/btnnon.png" >
					<?php } ?>
				</div>
			</div>
		<?php }  ?>
	    </div>
		<div class="col-sm-6 col-xs-12" style="padding-right: 0;">
			<div style="float: right;">
				<div class="caddyPrice1 textA3" >Total HR / HT</div>
				<div class="caddyPrice2" >
					<div class="textPriceBox">
						<span><?php echo number_format($myFacture->total_HT_HR, 2, ',', ' '); ?> &#8364;</span>
					</div> 
				</div>
			</div>
			<div style="float: right;">
				<div class="caddyPrice1 textA3" style="color: #1d7f0d; ">Remises sp�cifiques <?php if (isset($myFacture->code_reduction) && !empty($myFacture->code_reduction) ) { echo " ( ".$myFacture->code_reduction['CODE']." ) "; } ?></div>
				<div class="caddyPrice2" >
					<div class="textPriceBox" >
						<span><?php echo number_format($myFacture->getPrixRemise(), 2, ',', ' ') ; ?> &#8364;</span>
					</div>
				</div>
			</div>
			<div style="float: right;">
				<div class="caddyPrice1 textA3" >
					Frais de port
				</div>
				<div class="caddyPrice3" >
					<div class="textPriceBox">
						<span id="showLivraison" > <?php echo number_format($myFacture->total_frais_port, 2, ',', ' '); ?> &#8364;</span>
					</div>
				</div>
			</div>
			
			<div style="float: right;">
				<div class="caddyPrice1 textA3" style="color: #ff0000; height: 31px">TOTAL HT</div>
				<div class="caddyPrice2 textA3" style="color: #ff0000; height: 31px;padding: 5px 0 5px 0; ">
					<div class="textPriceBoxHT" >
						<span id="showTotalHT"><?php echo number_format($myFacture->total_HT_FP, 2, ',', ' '); ?> &#8364;</span>
					</div>
				</div>
			</div>
		</div>
		</div>
	<?php  if (isset($this->isCommandValid)) { ?>
	<div class="col-xs-6 col-xs-offset-3 alert alert-danger text-center" style="margin-bottom: 0px;" >
		<?php echo $this->isCommandValid;  ?>
	</div>
	<?php }
	if (isset($this->resteFrancoLiv)) { ?>
	<div class="col-xs-6 col-xs-offset-3 alert alert-danger text-center" style="margin-bottom: 0px;" >
		<?php   echo $this->resteFrancoLiv; ?>
	</div>
	<?php } ?>
	<div id="caddyCheckFormLog" class="col-xs-12"  style="min-height: 72px;"> </div>
	<div class="col-xs-12"  style="margin-bottom: 40px;">
		<div class="col-md-3 col-sm-6 text-center">
			<input type="button" style="margin-top: 5px; margin-bottom: 5px" class="btn btn-default btn-block" data-placement="bottom" value="CALCULER MON PANIER" id="caddySubmitValid" />
		</div>
		<div class="col-md-3 col-sm-6 text-center">
			<a style="margin-top: 5px; margin-bottom: 5px"  data-placement="bottom" class="btn btn-default btn-block" href="<?php if (isset($this->urlCurrentProduct) && !empty($this->urlCurrentProduct)) { echo $this->urlCurrentProduct; } else { echo $this->baseUrl.'/'; } ?>" >
				CONTINUER MES ACHATS
			</a>
			
		</div> 
		<div class="col-md-3 col-sm-6 text-center">
			<a title="Pour r�aliser un devis"  data-placement="bottom" class="tooltips btn btn-primary btn-lg btn-block caddy-link" href="<?php echo $this->baseUrl; ?>/mon-panier-livraison.html"  >
				DEVIS
			</a>
		</div>
		<?php if (!isset($this->isCommandValid)) { ?>
		<div class="col-md-3 col-sm-6 text-center">
			<a title="Pour passer une commande"  data-placement="bottom" class="tooltips btn btn-success btn-lg btn-block caddy-link" href="<?php echo $this->baseUrl; ?>/mon-panier-livraison.html" >
				COMMANDER
			</a>
		</div>
		<?php } ?>
	</div>


<?php } ?>


<?php if ($this->isCarteFideliteEnable && isset($this->myCaddyFideliteAvailable)) { ?>
<div class="col-xs-12" style="padding-bottom:150px;">
  <h3>Carte de fid�lit�  <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/mon-compte.html#cartefidelite" ><span class="fa fa-user"></span> MES POINTS<?php if (isset($this->myUserFideliteInfo)) {echo ' : '.$this->myUserFideliteInfo['POINTFIDELITETOTAL']; }?></a></h3><hr/>
 	     
  <?php
    foreach($this->myCaddyFideliteAvailable as $row)  { ?>
        <div class="col-md-12">
          <h4><?php echo $row['TITRE'];?> : <?php echo $row['POINTFIDELITE'];?> points</h4>
        </div>
        <div class="col-md-12" style="padding:10px">
          <div class="col-md-10">
            <?php echo $row['CONTENT'];?>
          </div> 
          <div class="col-md-2">
            <a class="btn btn-success"  href="<?php echo $this->baseUrl; ?>/user/addcaddyfidelitypoint/id/<?php echo $row['ID']; ?>" ><span class="fa fa-plus-circle"></span> AJOUTER AU PANIER</a>
		      </div>
        </div>
  <?php }?>
  <?php
    foreach($this->myCaddyFideliteAllExceptCurrents as $row)  { ?>
        <div class="col-md-12">
          <h4><?php echo $row['TITRE'];?> : <?php echo $row['POINTFIDELITE'];?> points</h4>
        </div>
        <div class="col-md-12" style="padding:10px">
          <div class="col-md-10">
            <?php echo $row['CONTENT'];?>
          </div> 
          <div class="col-md-2">
            <a class="btn btn-success" disabled="disabled" href="<?php echo $this->baseUrl; ?>/user/addcaddyfidelitypoint/id/<?php echo $row['ID']; ?>" ><span class="fa fa-plus-circle"></span> AJOUTER AU PANIER</a>
		      </div>
        </div>
  <?php }?>
</div>
<?php } ?>PK|�G[m�Qixx+scripts/ajax/caddyaccountrightnoslide.phtmlnu&1i�
<style type="text/css">
    .text-title-slide-red {
        color: #bd2f2c; 
        font-weight:bold;
        font-size: 15px;
    }
    .text-title-slide-gray  {
        color: #5B595A;
    }
    .text-title-slide-gray a:link, .text-title-slide-gray a:visited, .text-title-slide-gray a:active   {
        color: #5B595A;
        text-decoration:underline;
        font-weight:bold;
        font-size: 15px;
    }
    .text-title-slide-gray a:hover {
        color: #5B595A;
        text-decoration:underline;
    }
    .box-right-title-slide-right {
        border: 1px solid #cccccc;
        border-left:none;
    }
    .box-right-border-mid {
        border-top:none;
        border-bottom:none;
    }
    .box-right-vertical-align {
        height:90px;
        text-align:center;
        display: table-cell;
        vertical-align: middle;
        width:250px;
    }
</style>
 

<?php  
  $listProducts = array();
  $listProducts = $this->listAllProductsBestSeller;
  if (!empty($listProducts)) {   ?>
<div class="col-md-3 col-xs-12  noPadding">
  <div class="col-xs-12 noPadding box-bottom-command-title">Meilleures ventes</div>
  <ul>
    <?php  
        $count = 0;
        foreach ($listProducts as $row) {  
          if ($count < 4) {
            if ($row['BOOSTED_BESTSELLER'] > 0) { 
            
	            $nametitle = $this->escape($row['NOM']);
	            $link = "";
	            if (isset($row['NAVNOM'])) {
		            $link = $this->baseUrl."/".Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
	            } else if (isset($row['PRODNAVNOM'])){
		            $link = $this->baseUrl."/".Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['PRODNAVNOM'], $row['ID']);
	            }
  ?>
		         <li>
               <a  href="<?php echo $link;?>" >
               <div class="col-xs-6 noPadding">
                 <div  class="col-xs-12 noPadding">
                   <?php  if ($row['isDEVISPRODUCT'] == 1) { ?>
				              <div class="productPriceBox">
					              <span class="productPriceTitle">� partir de</span><br />
					              <span class="productPrice" style="font-size:15px"><?php echo number_format($row['PRIXLOWEST'], 2, ',', ' ').' '; ?>&nbsp;&#8364;</span>&nbsp;<span class="productPriceHT">HT</span>
				              </div>
			              <?php } else { ?>
				              <div class="productPriceBox"><span class="productPrice" style="margin-left: 10px; margin-top: 5px">Sur devis</span></div>
			              <?php } ?>
                 </div>
                 <div  class="col-xs-12 noPadding productBoxImgPreviewContent">
                   <center>
                      <div class="productBoxImgPreview">
                        <img src="<?php echo '/'.$this->escape($row['URL']); ?>" alt="<?php echo $nametitle; ?>" />
                       </div>
                   </center>
                 </div>
               </div>
               </a>
             </li>
    <?php $count++;
            }
          } else {
              break;
          }
        }
      ?>
  </ul>
</div>
<?php  
} else { ?>


<div class="col-md-3 col-xs-12 indexBoxContent" >
    <div class="col-xs-12 text-title-slide-gray box-right-title-slide-right noPadding">
      <a href="<?php echo $this->baseUrl; ?>/blog.html"><img src="/business/image/blog.png" width="250" /></a>
    </div>
    <div class="col-xs-12 text-title-slide-gray box-right-title-slide-right box-right-border-mid" >
        <div class="box-right-vertical-align">
             <a href="mailto:<?php echo $this->serviceClient_Mail;?>?subject=<?php echo 'DEMANDE DE DEVIS EXPRESS';?>&body=Bonjour, " >DEMANDE DE DEVIS EXPRESS</a>
        </div>
    </div>
    <div class="col-xs-12 text-title-slide-gray box-right-title-slide-right text-center noPadding" style="max-height:98px; height:98px;">
		<div class="indexBox4_title1" style="margin: 3px 0 0 0">PAIEMENT <span class="indexBox4_title2">S�CURIS�</span></div>
        <div class="indexBox4_title4" style="margin:6px 0 6px 0">
            <a class="tooltips" placement="bottom" title="" href="/info-14/paiement-securise-et-conditions-de-reglement.html" data-original-title="Paiement s�curis� et conditions de r�glement"></a><a href="http://www.afidistribution.com/info-2/paiement-securise.html" title="" class="tooltips" data-original-title="Paiement s�curis� et conditions de r�glement">
                <img src="/business/image/cardicons.png" alt="Paiement s�curis�" style="height: 30px; vertical-align: middle;" />
            </a>
        </div>
        <div class="indexBox4_title3" style="margin: 0 0 0 0">En partenariat avec la Banque Populaire</div>
    </div>
</div>

<?php } ?>
	PK|�G["Yɋ��$scripts/ajax/caddyaccountright.phtmlnu&1i�	<script type="text/javascript"> 
	 $(function(){
		 initEventUserConnectAccountSlide();
	});
</script>
<style type="text/css">
     
        .index-big-box-img {
        display: table-cell;
        vertical-align: middle;
        text-align: right;
        height: 278px;
        width: 764px;
        padding : 0 0 0 0;
        margin : 0 0 0 0;
    }

        .index-big-box-img img {
            max-height: 275px;
            /*max-width: 763px;*/
            padding: 0 0 0 0;
            margin: 0 0 0 0;
        }  

    .slide-category-box-text {
        text-shadow: 1px 1px #fff;
        font-size: 14px;
        line-height: 21px;
        max-width : 650px;
    }

    .slide-category-box-title {
        padding: 15px 15px 15px 15px;
    }

    .slide-category-box-title h1 {
        font-weight: normal;
        font-size: 21px;
        text-transform: uppercase;
        font-weight : bold;
        margin : 0 0 0 0;
        padding: 0 0 0 0;
    }
    .slide-category-box-picture {
        position: absolute;
        bottom: 0;
    }

    .slide-category-box-content {
        position: absolute;
        top: 50px;
        min-width:760px;
    }
      .slide-category-box-content div {
          background-color: rgba(255,255,255,0.8);
          float: left;
          min-width:760px;
      }
    .slide-category-box-bot {
        padding: 5px 15px 5px 15px;
    }

    .slide-category-box-mid {
        padding: 5px 15px 5px 15px;
    }
    .slide-clear {
        clear:both;
    }
</style>
<div class="col-md-12 visible-md visible-lg sliderPanelTop noPadding ">
	<div class="col-md-9 col-xs-12  indexBigBox noPadding">		
		<?php  if ($this->listads) {		?>		
		<div class="liquid-slider liquid-slider-ads" id="slider-category-id">	
		<?php } else { ?>		
		<div class="liquid-slider liquid-slider-ads" >		
		<?php }  
						if ($this->listCat) {
							$listCat = array();
							$listCat = $this->listCat; ?>
			<div class="col-xs-12 index-big-box noPadding" style="overflow: hidden;overflow-y: hidden; ">
				<div class="col-xs-12 noPadding slide-category-box-picture" >
                    
					<div class="index-big-box-img" >
                        <?php if (isset($listCat['URL_SLIDE']) && !empty($listCat['URL_SLIDE'])) { ?>
						    <img src="<?php echo $this->baseUrl."/".$this->escape($listCat['URL_SLIDE']); ?>" class="tooltips" title="<?php echo $this->escape($listCat['NOM']); ?>">
					    <?php } else if (isset($listCat['URL']) && !empty($listCat['URL'])) { ?>		
		                    <img src="<?php echo $this->baseUrl."/".$this->escape($listCat['URL']); ?>" class="tooltips" title="<?php echo $this->escape($listCat['NOM']); ?>">
					    <?php } ?>
                    </div>
				</div>
				<div class="col-xs-12 noPadding slide-category-box-content">
                    <div class="slide-category-box-title">
                            <h1><?php echo $listCat['NOM']; ?></h1>
                    </div>
                        <?php 
						if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { ?>
                    <div class="slide-clear"></div>
                    <div class="noPadding ">
					    <div class="col-xs-12 index-big-box-title3 text-left slide-category-box-mid" style="background-color : transparent;">
						    <a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							    <span class="col-xs-12 text-left">Comment choisir le bon produit ?</span>
						    </a>
					    </div>
                    </div>
					    <?php } ?>
                    <div class="slide-clear"></div>
                    <div  class="noPadding text-left slide-category-box-bot"><p class="slide-category-box-text"><?php echo $listCat['DESCRIPTION']; ?></p></div>
				</div>
			</div>
		<?php } 
		 if ($this->listads) {
					$listAnnonce = $this->listads;
					foreach ($listAnnonce as $row) {  ?> 
						<div class="col-xs-12 noPadding"><?php echo $row['CONTENT'];?></div>
			<?php }} ?>
		</div>		
	</div>
	<?php echo $this->render("/ajax/caddyaccountrightnoslide.phtml");?>
</div>
	PK|�G[rH����scripts/ajax/ajaxmessage.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<div class="col-xs-6 col-xs-offset-3">
<?php if (isset($this->messageSuccess) && !empty($this->messageSuccess)) {?>
<div class="alert alert-success  text-center"><?php echo $this->messageSuccess; ?></div>
<?php } 
      if (isset($this->messageError) && !empty($this->messageError)) { ?>
<div class="alert alert-danger  text-center"><?php echo $this->messageError; ?></div>
<?php }?>
</div>PK|�G[l�z��+scripts/produitspromotion/nosproduits.phtmlnu&1i�
<?php
$prefixClass = $this->prefixPromoClass;
if ($prefixClass == "eco-") { ?>
<style type="text/css">
  .footer-content-divider{
  background: url('/business/image/eco-line.png') repeat-x top left;
  height: 15px;
  margin: 10px 0 0 0;
  }
  html, body {
  background: url('/business/image/eco-bg.jpg') no-repeat top center;
  background-color: #21530d;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  }
  .wrapBgContent-l,
  .wrapBgContent-r {
  background:none;
  }
  .wrapBgContent-1 {
  -webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
  }

  .wrapBgContent-2 {
  -webkit-box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
  box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
  }

</style>
<?php } ?>
<script  type="text/javascript" >

$(function(){
	initEventsPromotionCats();
});

</script>
<?php

$listProducts = array();
$listProducts = $this->listAllProducts;
$listCat = array();
$listCat = $this->listCat;
?>
 
<div class="hidden-xs col-md-12 sliderPanelTop noPadding">
	<div class="col-md-9 col-xs-12  indexBigBox">		
		<?php
			$colPromo = "col-xs-12";
			 if ($prefixClass == "eco-") { ?>
			<div class="col-xs-12 index-big-box noPadding <?php echo $prefixClass; ?>bg" style="overflow: hidden;overflow-y: hidden; ">
				<div class="<?php echo $prefixClass; ?>title1">D�couvrer notre</div>
				<div class="<?php echo $prefixClass; ?>title2">Gamme</div>
				<div class="<?php echo $prefixClass; ?>title3">D�veloppement Durable</div>
				<?php 
						if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { 
						$colPromo = "col-xs-7";?>
					<div class="col-xs-5 <?php echo $prefixClass; ?>choicedoc text-right noPadding">
						<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							<span class="col-xs-12 text-center">Comment choisir le bon produit ?</span>						
						</a>
					</div>
					<?php } ?>
				<?php if ($listCat['ID'] != 3) { ?>
				<div class="<?php echo $colPromo;?> <?php echo $prefixClass; ?>title4"><?php echo $listCat['NOM']; ?></div>
				<?php } ?>
			</div>
		<?php }
		if ($prefixClass == "") { ?>
			<div class="col-xs-12 index-big-box noPadding promo-bg" style="overflow: hidden;overflow-y: hidden; ">
				<?php 
					if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { 
					?>
					<div class="col-xs-5 promo-choicedoc text-right noPadding">
						<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							<span class="col-xs-12 text-center">Comment choisir le bon produit ?</span>						
						</a>
					</div>
					<?php } ?>
			</div>
		<?php } ?>
	</div>
	
	<?php echo $this->render("/ajax/caddyaccountrightnoslide.phtml"); ?>
</div>

<?php if ($prefixClass == "") { ?>
<div class="col-xs-12 indexBox3_title" style="margin-top: 10px;margin-bottom: 10px">
  <h1 class="eco-title-h1">
    <?php echo $listCat['NOM']; ?>
  </h1>
</div>
<?php } ?>

<div class="col-xs-12 noPadding">
<?php if (!empty($listProducts)) {  
foreach ($listProducts as $row) {
		$this->currentData = $row;
		echo $this->render("/produits/ajaxshowproductbox.phtml");	
	}
}
	?>	  
</div>PK|�G[�Z
(��)scripts/produitspromotion/categorie.phtmlnu&1i�
<script  type="text/javascript" >

$(function(){
	initEventsPromotionCats();
});

</script>
<?php
$listCat = array();
$listCat = $this->listCat;

$prefixClass = $this->prefixPromoClass;
?>

<?php if ($prefixClass == "eco-") { ?>
<style type="text/css">
.footer-content-divider{
	background: url('/business/image/eco-line.png') repeat-x top left;
	 height: 15px;
	 margin: 10px 0 0 0;
}
<?php if ($listCat['IDPARENT'] == 0) { ?>
  html, body {
  background: url('/business/image/eco-bg2.jpg') no-repeat top center;
  background-color: #21530d;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  }
  <?php } else { ?>
  html, body {
  background: url('/business/image/eco-bg1.jpg') no-repeat top center;
  background-color: #21530d;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  }
  <?php } ?>
.wrapBgContent-l,
.wrapBgContent-r {
	background:none;
}
.wrapBgContent-1 {
  -webkit-box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
          box-shadow: 0px 0px 30px rgba(0, 0, 0, 1);
}

.wrapBgContent-2 {
  -webkit-box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
          box-shadow: 0px 20px 30px rgba(0, 0, 0, 1);
}

</style>
<?php } ?>

<div class="hidden-xs col-md-12 sliderPanelTop noPadding">
	<div class="col-md-9 col-xs-12  indexBigBox">		
		<?php
			$colPromo = "col-xs-12";
			 if ($prefixClass == "eco-") { ?>
			<div class="col-xs-12 index-big-box noPadding <?php echo $prefixClass; ?>bg" style="overflow: hidden;overflow-y: hidden; ">
				<div class="<?php echo $prefixClass; ?>title1">D�couvrer notre</div>
				<div class="<?php echo $prefixClass; ?>title2">Gamme</div>
				<div class="<?php echo $prefixClass; ?>title3">D�veloppement Durable</div>
				<?php 
						if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { 
						$colPromo = "col-xs-7";?>
					<div class="col-xs-5 <?php echo $prefixClass; ?>choicedoc text-right noPadding">
						<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							<span class="col-xs-12 text-center">Comment choisir le bon produit ?</span>						
						</a>
					</div>
					<?php } ?>
				<?php if ($listCat['ID'] != 3) { ?>
				<div class="<?php echo $colPromo;?> <?php echo $prefixClass; ?>title4"><?php echo $listCat['NOM']; ?></div>
				<?php } ?>
			</div>
		<?php }
		if ($prefixClass == "") { ?>
			<div class="col-xs-12 index-big-box noPadding promo-bg" style="overflow: hidden;overflow-y: hidden; ">
				<?php 
					if (isset($listCat['CHOICEDOC']) && !empty($listCat['CHOICEDOC'])) { 
					?>
					<div class="col-xs-5 promo-choicedoc text-right noPadding">
						<a href="<?php echo $this->baseUrl; ?>/<?php echo $listCat['CHOICEDOC'];?>" target="_blank">
							<span class="col-xs-12 text-center">Comment choisir le bon produit ?</span>						
						</a>
					</div>
					<?php } ?>
			</div>
		<?php } ?>
	</div>
	
	<?php echo $this->render("/ajax/caddyaccountrightnoslide.phtml"); ?>
</div>

<?php if ($prefixClass == "") { ?>
<div class="col-xs-12 indexBox3_title" style="margin-top: 10px;margin-bottom: 10px">
  <h1 class="eco-title-h1">
    <?php echo $listCat['NOM']; ?>
  </h1>
</div>
<?php } ?>

<div class="col-xs-12 noPadding">
	<?php 
	$i = 0;
	$filter = new Zend_Filter_StringToUpper();
	if (!empty($listCat['SUBS'])) {
		
	foreach ($listCat['SUBS'] as $row) {
		$nbProducts = $row['NBPRODUCT'];
		$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory2($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
    
		$desc = $this->escape($row['DESCRIPTION']);
		$name = $this->escape($row['NOM']);
		$filter = new Zend_Filter();
		$filter	->addFilter(new Zend_Filter_StripTags())
		->addFilter(new Zend_Filter_StringTrim());
		$descFiltered = $filter->filter($desc);
		?>
		<div class="col-md-3 col-sm-4 col-xs-12 categorieBoxContent">
			<div class="categorieBox text-center">
				<?php if ($prefixClass == "eco-") { ?>
					<div class="eco-tree"></div>
				<?php } ?>
				<div class="col-xs-10 col-xs-offset-1 noPadding">
					<center><a class="tooltips" data-placement="bottom" title="<?php echo $descFiltered;?>" href="<?php echo $link;?>" >
						<span class="categorieBoxImg">
							<img src="<?php echo '/'.$this->escape($row['URL']); ?>" alt="<?php echo $name; ?>"/>
						</span>
					</a></center>
				</div>
				<div class="col-xs-12 <?php echo $prefixClass; ?>categorieBoxTitleContent" >
					<div>
						<a class="<?php echo $prefixClass; ?>categorieBoxTitle" href="<?php echo $link;?>" >
							<?php echo $name; ?>
						</a>
					</div>
				</div>
				<div class="col-xs-12 categorieBoxTitleSubContent">
					<a class="<?php echo $prefixClass; ?>categorieBoxTitle2 tooltips" data-placement="bottom" title="<?php echo $descFiltered;?>" href="<?php echo $link;?>">
						<?php if ($nbProducts > 1) { ?>
						Voir les <?php echo $nbProducts;?> mod�les disponibles
						<?php } else if ($nbProducts == 1) { ?>
						Voir le mod�le disponible
						<?php } else if ($nbProducts == 0) { ?>
						Voir la gamme
						<?php } 
						?>
						<img src="/business/image/<?php echo $prefixClass; ?>category-icon.png" alt="<?php echo $descFiltered; ?>" style="margin-left: 10px;">
					</a>			
				</div>
			</div>
		</div>
	<?php } 
	}
	?>
</div>PK|�G[��Pk/	/	 scripts/user/ajaxlistdevis.phtmlnu&1i�<?php header('Content-type: text/html; charset=iso-8859-1'); 
 
	$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
	$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
if (!empty($this->messageError) || !empty($this->messageSuccess)) { ?>
<div class="userAccount_MessageDevis"> 
	<span class="messageError2" ><?php echo $this->messageError; ?></span>
	<span class="messageSuccess2" ><?php echo $this->messageSuccess; ?></span>
</div>
<?php } ?>
<div class="userAccount_Panel">	
<table class="user-cmd-table" cellpadding="0" cellspacing="0">
	<thead>
	<tr>
		<th class="col-xs-2">Date du devis</th> 
		<th class="col-xs-2">R�f�rence</th> 
		<th class="col-xs-2">Statut</th> 
		<th class="col-xs-2">Prix TTC</th>
		<th style="width: 300px;"></th>
	</tr>
	</thead>
	<tbody>
	<?php 
		$myCommands = $this->myDevis;  
		if (sizeof($myCommands) > 0) {
			foreach ($myCommands as $command) {
			$myDate = new Zend_Date(strtotime($command['DATESTART']));
	?>
	<tr align="center">
		<td ><?php 
		echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
		?></td>
		<td ><?php echo $command['REFERENCE']; ?></td>
		<td>
		<?php 
			switch ($this->escape($command['STATUT'])) { 
				case 10 : echo 'En cours'; break;
				case 11 : echo 'Termin�'; break;
			}
		?>
		</td>
		<td class="text-right">
			<span style="margin-right:10px;">
			<?php echo number_format($command['PRIXTOTALTTC'], 2, ',', ' ').' &#8364;'; ?>  
			</span>
		</td>
		<td >
				<a target="_blank"  href="<?php echo $this->baseUrl; ?>/user/commande/ref/<?php echo $command['REFERENCE']; ?>" title="Voir le d�tail du devis" class="tooltips btn btn-primary" data-placement="left">
					<i class="fa fa-search"></i> VISUALISER
				</a> 
				<a href="javascript:;" onclick="javascript:retrieveCommandToCaddy('<?php echo $command['REFERENCE']; ?>');"  title="Mettre le devis dans mon panier" class="tooltips btn btn-success" data-placement="left" >
					<span class="fa fa-plus-circle"></span> AJOUTER AU PANIER
				</a>
		</td>
	</tr>
	<?php 
			}		
	} else { ?>
	<tr>
		<td colspan="5" align="center" class="text3" height="50px">Aucun devis</td>
	</tr>
	<?php } ?>
	</tbody>
</table>
</div>PK|�G[DZ�mTKTKscripts/user/connexion.phtmlnu&1i�

<script type="text/javascript">
  $(function(){
  var currentUrl = document.location.href;
  var currentUrlAncre = currentUrl.split('#');
  if (currentUrlAncre.length > 1) {
  $('#current_con_ancre').attr('value', currentUrlAncre[1]);
  $('#current_save_ancre').attr('value', currentUrlAncre[1]);
  }
  });
</script>
<?php if ($this->showSlide == 1) {
	$showslide = 1;
} else {
	$showslide = 2;
}
?>
<script type="text/javascript">
  $(function(){
  initEventConnexion(<?php echo $showslide; ?>);

  var params = new Array();
  params['route'] = $('#adduser_adresse');
  params['locality'] = $('#adduser_ville');
  params['administrative_area_level_2'] = $('#adduser_departement');
  params['administrative_area_level_1'] = $('#adduser_region');
  params['country'] = $('#adduser_pays');
  params['postal_code'] = $('#adduser_cp');

  initEventAddress($('#adduser_adressecomplete'), params);
  });
</script>

<div class="col-xs-12 text-center caddy-header-box"
	style="margin-bottom: 10px; margin-top: 10px;">
  <span
	class="user-con-title col-xs-6 col-xs-offset-3  ">
    Identifiez-vous ! <img
	src="<?php echo $this->baseUrl; ?>/business/image/lock.png"
    alt="Identifiez-vous !" />
  </span>
</div>
<div class="col-xs-12" style="margin-bottom: 10px; margin-top: 10px;">
  <div class="col-xs-6 noPadding text-center">
    <a href="javascript:;"
	id="connexion1" class="btn btn-primary btn-lg">J'ai d�j� command�</a>
  </div>
  <div class="col-xs-6 noPadding text-center">
    <a href="javascript:;"
	id="connexion2" class="btn btn-danger btn-lg">Je suis un nouveau client</a>
  </div>
</div>

<div id="v-connexion1">
  <div class="col-xs-6 col-xs-offset-3 col-border-default">
    <form class="form-horizontal" role="form" name="connexionForm"
      id="connexionForm"
      action="<?php echo $this->baseUrl; ?>/connectez-vous.html"
      method="post">

      <div class="form-group">
        <div class="col-sm-12 text-center">
          <span class="messageError2">
            <?php echo $this->messageErrorConnect; ?>
          </span>
        </div>
      </div>

      <div class="form-group">
        <label for="connexion_login"
	class="col-sm-4 noPadding control-label">Identifiant (Email)</label>
        <div class="col-sm-8">
          <input type="text" class="form-control"
	name="connexion_login" id="connexion_login"
	value="<?php echo $this->populateFormConnect['LOGIN']; ?>" /> <input
	type="hidden" name="current_con_ancre" id="current_con_ancre"
	value="<?php if (isset($this->current_con_ancre)) {echo $this->current_con_ancre; } ?>" />
        </div>
      </div>

      <div class="form-group">
        <label for="connexion_mdp"
	class="col-sm-4  noPadding control-label">Mot de passe</label>
        <div class="col-sm-8">
          <input type="password" class="form-control"
	name="connexion_mdp" id="connexion_mdp" />
        </div>
      </div>
      <div class="form-group text-center">
        <input type="submit"
	class="btn btn-primary" value="ME CONNECTER" />
      </div>

    </form>
  </div>
  <div class="col-xs-6 col-xs-offset-3 col-border-default">
    <span
	class="text3">
      Pour r�cup�rer votre mot de passe veuillez indiquer
      l'adresse e-mail avec laquelle vous vous �tes inscrit.
    </span>

    <form class="form-horizontal" role="form" name="passwordForgetForm"
      id="passwordForgetForm"
      action="<?php echo $this->baseUrl; ?>/retrouver-mon-mot-de-passe.html"
      method="post">

      <div class="form-group">
        <div class="col-sm-12 text-center">
          <span class="messageError2">
            <?php echo $this->messageErrorPass; ?>
          </span>
          <span class="messageSuccess2">
            <?php echo $this->messageSuccessPass; ?>
          </span>
        </div>
      </div>

      <div class="form-group">
        <label for="emailpassword"
	class="col-sm-4 noPadding control-label">Votre e-mail</label>
        <div class="col-sm-8">
          <input type="email" class="form-control"
	name="emailpassword" id="emailpassword" />
        </div>
      </div>
      <div class="form-group text-center">
        <input type="submit"
	class="btn btn-primary" value="RECUPERER MON MOT DE PASSE" />
      </div>
    </form>
  </div>

</div>

<div id="v-connexion2">
  <form name="addUserForm" id="addUserForm" class="form-horizontal"
    role="form"
    action="<?php echo $this->baseUrl; ?>/enregistrez-vous.html"
    method="post">

    <div class="form-group">
      <div class="col-sm-12 text-center">
        <span class="messageError2">
          <?php echo $this->messageErrorAddUser; ?>
        </span>
      </div>
    </div>

    <div class="col-xs-6 col-xs-offset-3 col-border-default">
      <div class="form-group ">
        <div class="col-xs-12 text-center">
          <span class="text6">
            Vos Identifiants
          </span>
        </div>
      </div>

      <div class="form-group">
        <label for="adduser_login"
	class="col-sm-4 noPadding control-label">* Identifiant (Email)</label>
        <div class="col-sm-8">
          <input type="email" class="form-control"
	name="adduser_login" id="adduser_login"
	value="<?php echo $this->populateFormAdd['LOGIN']; ?>" /> <input
	type="hidden" name="current_save_ancre" id="current_save_ancre"
	value="<?php if (isset($this->current_save_ancre)) {echo $this->current_save_ancre; } ?>" />
          <span class="text3">(4 caract�res minimum)</span>
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-4  noPadding control-label">
          *
          Mot de passe
        </label>
        <div class="col-sm-8">
          <input type="password" class="form-control"
	name="adduser_mdp" id="adduser_mdp" />
          <span class="text3">
            (4
            caract�res minimum)
          </span>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-4  noPadding control-label">
          *
          Confirmation du mot de passe
        </label>
        <div class="col-sm-8">
          <input type="password" class="form-control"
	name="adduser_mdp2" id="adduser_mdp2" />
          <span class="text3">
            (4
            caract�res minimum)
          </span>
        </div>
      </div>
    </div>

    <div class="col-sm-12 col-border-default">
      <div class="col-sm-6 ">
        <div class="form-group">
          <div class="col-xs-12 text-center">
            <span class="text6">Vos coordonn�es </span>
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-4  noPadding control-label">
            *
            Civilit�
          </label>
          <div class="col-sm-8">
            <select class="form-control"
	name="adduser_civility" id="adduser_civility">
              <option value="Mr"
                <?php if ($this->populateFormAdd['CIVILITE'] == 'Mr') { echo 'selected'; } ?>>Monsieur
              </option>
              <option value="Mme"
                <?php if ($this->populateFormAdd['CIVILITE'] == 'Mme') { echo 'selected'; } ?>>Madame
              </option>
              <option value="Mlle"
                <?php if ($this->populateFormAdd['CIVILITE'] == 'Mlle') { echo 'selected'; } ?>>Mademoiselle
              </option>
            </select>
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-4  noPadding control-label">
            *
            Nom
          </label>
          <div class="col-sm-8">
            <input type="text" class="form-control"
	name="adduser_nom" id="adduser_nom"
	value="<?php echo $this->populateFormAdd['NOM']; ?>" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-4  noPadding control-label">
            *
            Pr�nom
          </label>
          <div class="col-sm-8">
            <input type="text" class="form-control"
	name="adduser_prenom" id="adduser_prenom"
	value="<?php echo $this->populateFormAdd['PRENOM']; ?>" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-4  noPadding control-label">Fonction</label>
          <div class="col-sm-8">
            <input type="text" class="form-control"
	name="adduser_fct" id="adduser_fct"
	value="<?php echo $this->populateFormAdd['FONCTION']; ?>" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-4  noPadding control-label">
            *
            T�l�phone
          </label>
          <div class="col-sm-8">
            <input type="text" class="form-control"
	name="adduser_tel" id="adduser_tel" maxlength="10"
	value="<?php echo $this->populateFormAdd['TEL']; ?>" /> <span
	class="text3">(Exemple : 0810120007)</span>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-4  noPadding control-label">
            Fax
          </label>
          <div class="col-sm-8">
            <input type="text" class="form-control"
	name="adduser_fax" id="adduser_fax" maxlength="10"
	value="<?php echo $this->populateFormAdd['FAX']; ?>" /> <span
	class="text3">(Exemple : 0810120007)</span> <input type="hidden"
	id="address_type" name="address_type" value="old">
          </div>
        </div>

      </div>
      <div class="col-sm-6">
        <div class="form-group">
          <div class="col-xs-12 text-center">
            <span class="text6">Votre adresse </span>
          </div>
        </div>
        <div class="col-sm-12 text-center messageError" id="addressError"
          style="clear: both; display: none;"></div>

        <div id="adresseNew" style="display: none;">
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">
              *
              Adresse
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_adressecomplete" id="adduser_adressecomplete"
	value="<?php echo $this->populateFormAdd['ADRESSECOMPLETE']; ?>" />
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">* Rue</label>
            <div class="col-sm-8">
              <input type="text" style="border: none;"
	readonly="readonly" class="form-control" name="adduser_adresse"
	id="adduser_adresse"
	value="<?php echo $this->populateFormAdd['ADRESSE']; ?>" /> <input
	type="hidden" name="adduser_departement" id="adduser_departement"
	value="<?php echo $this->populateFormAdd['DEPARTEMENT']; ?>" /> <input
	type="hidden" name="adduser_region" id="adduser_region"
	value="<?php echo $this->populateFormAdd['REGION']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">
              * Code postal
            </label>
            <div class="col-sm-8">
              <input readonly="readonly" style="border: none;"
	type="text" class="form-control" name="adduser_cp" id="adduser_cp"
	value="<?php echo $this->populateFormAdd['CP']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">* Ville</label>
            <div class="col-sm-8">
              <input readonly="readonly" style="border: none;"
	type="text" class="form-control" name="adduser_ville"
	id="adduser_ville"
	value="<?php echo $this->populateFormAdd['VILLE']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">* Pays</label>
            <div class="col-sm-8">
              <input readonly="readonly" style="border: none;"
	type="text" class="form-control" name="adduser_pays" id="adduser_pays"
	value="<?php echo $this->populateFormAdd['PAYS']; ?>" />
            </div>
          </div>
          <div class="form-group text-right">
            <span class="link7">
              <a
	href="javascript:;"
	onclick="swichAdresse($('#adresseNew'),$('#adresseOld'),$('#address_type'), 'old')">
                Je
                ne trouve pas mon adresse !
              </a>
            </span>
          </div>
        </div>

        <div id="adresseOld">
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">
              *
              Adresse
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_adresse_old"
	value="<?php echo $this->populateFormAdd['ADRESSE']; ?>" />
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">
              * Code postal
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_cp_old"
	value="<?php echo $this->populateFormAdd['CP']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">* Ville</label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_ville_old"
	value="<?php echo $this->populateFormAdd['VILLE']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-4  noPadding control-label">* Pays</label>
            <div class="col-sm-8">
              <select class="form-control"
	name="adduser_pays_old">
                <?php
	foreach ($this->listPays as $pays) { ?>
                <option value="
                  <?php echo $pays['PAYS']; ?>"
                  <?php if (strcasecmp($this->populateFormAdd['PAYS'], $pays['PAYS']) == 0) { echo 'selected'; } else if ($pays['PAYS'] == "FRANCE") { echo 'selected'; } ?>><?php echo $pays['PAYS']; ?>
                </option>
                <?php }?>
              </select>
            </div>
          </div>
          <div class="form-group text-right">
            <span class="link7">
              <a
	href="javascript:;"
	onclick="swichAdresse($('#adresseOld'),$('#adresseNew'),$('#address_type'), 'new')">
                Trouver
                mon adresse
              </a>
            </span>
          </div>
        </div>

      </div>
    </div>


    <div class="col-sm-12  col-border-default">
      <div class="form-group">
        <label class="col-sm-3 noPadding control-label">
          *
          Vous �tes ?
        </label>
        <div class="col-sm-8">
          <label class="checkbox-inline">
            <INPUT type="radio"
	name="adduser_typeuser" id="adduser_typeuserPart" value="Particulier"
	<?php if ($this->populateFormAdd['TYPE'] == 'Particulier') { echo 'checked="checked"'; } ?>>Particulier
          </label>
          <label class="checkbox-inline">
            <INPUT type="radio"
	name="adduser_typeuser" id="adduser_typeuserPro" value="Professionnel"
	<?php if ($this->populateFormAdd['TYPE'] == 'Professionnel') { echo 'checked="checked"'; } ?>>Professionnel
          </label>
        </div>
      </div>
      <div class="col-sm-12" id="v-UserInfo">
        <div class="col-xs-7 col-xs-offset-2  col-border-default"
          style="margin-bottom: 10px;">
          <div class="form-group">
            <div class="col-sm-12 text-center">
              <span class="text6">
                Informations
                compl�mentaire
              </span>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3  noPadding control-label">
              *
              Raison sociale
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_raisonsocial" id="adduser_raisonsocial"
	value="<?php echo $this->populateFormAdd['RAISONSOCIAL']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3  noPadding control-label">
              *
              Num�ro SIRET
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_siret" id="adduser_siret"
	value="<?php echo $this->populateFormAdd['SIRET']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3  noPadding control-label">
              *
              Num�ro T.V.A. Intra Communautaire
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_numidfisc" id="adduser_numidfisc"
	value="<?php echo $this->populateFormAdd['NUMIDFISC']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3  noPadding control-label">
              *
              Code A.P.E.
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_codeape" id="adduser_codeape"
	value="<?php echo $this->populateFormAdd['CODEAPE']; ?>" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3  noPadding control-label">
              Secteur
              d'activit�
            </label>
            <div class="col-sm-8">
              <input type="text" class="form-control"
	name="adduser_sectactivite" id="adduser_sectactivite"
	value="<?php echo $this->populateFormAdd['SECTACTIVITE']; ?>" />
            </div>
          </div>
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-4  noPadding control-label">Commentaires</label>
        <div class="col-sm-8">
          <textarea class="form-control" name="adduser_comm"
	id="adduser_comm">
            <?php echo $this->populateFormAdd['COMMENTAIRE']; ?>
          </textarea>
        </div>
      </div>
    </div>



    <div class="col-sm-12">
      <label class="checkbox-inline text-right">
        <input
	type="checkbox" name="adduser_newsletter" id="adduser_newsletter"
	<?php //if (!empty($this->populateFormAdd['newsletter'])) { echo 'checked'; } ?>
        checked="checked" /> Oui, je souhaite m'abonner � la newsletter afin
        d'�tre inform� des promotions exclusives et de l'actualit� de <?php echo $this->siteName; ?>.
      </label>
    </div>

    <div class="col-sm-12 text-center"
      style="margin-bottom: 20px; margin-top: 20px;">
      <input
	id="submitSaveConnexion" class="btn btn-success btn-lg" type="submit"
	value="CREER MON COMPTE" />
    </div>
    <div class="col-sm-12">
      <span class="text3 text-left">
        * Champs
        obligatoires
      </span>
      <br />
      <span class="text3" style="font-style: italic">
        Ces informations sont
        n�cessaires au traitement de votre commande et � la gestion de nos
        relations commerciales. Conform�ment � la Loi Informatique et Libert� du
        6 janvier 1978, vous disposez d'un droit d'acc�s, de rectification et
        d'opposition aux informations vous concernant. Vous pouvez demander � ne
        pas recevoir nos offres en cliquant sur le lien de d�sinscription
        pr�sent sur toutes les newsletters envoy�es par <?php echo $this->siteName; ?>.
      </span>
    </div>

  </form>
</div>
PK|�G[��RYoo"scripts/user/ajaxlistcommand.phtmlnu&1i�
<?php 
	$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
	$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
?> 
<table class="user-cmd-table" cellpadding="0" cellspacing="0" >
	<thead>
			<tr align="center"  >
				<th class="col-xs-2">Date de la commande</th> 
				<th class="col-xs-2">R�f�rence</th> 
				<th class="col-xs-2">Statut</th> 
				<th class="col-xs-2">Prix TTC</th>
				<th style="width: 300px;"></th> 
			</tr>
		</thead>
		<tbody>
			<?php 
				$myCommands = $this->myCommands; 
			
				if (sizeof($myCommands) > 0) {
					foreach ($myCommands as $command) {
					$myDate = new Zend_Date(strtotime($command['DATESTART']));
			?>
			<tr align="center" >
				<td><?php 
				echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
				?></td>
				<td ><?php echo $command['REFERENCE']; ?></td>
				<td>
				<?php 
					switch ($this->escape($command['STATUT'])) {
						case 1 : echo 'En cours'; break;
						case 2 : echo 'En livraison'; break;
						case 3 : echo 'Termin�e'; break; 
					}
				?>
				</td>
				<td align="right" >
					<span style="margin-right:10px;">
					<?php echo number_format($command['PRIXTOTALTTC'], 2, ',', ' ').' &#8364;'; ?>
					</span>
				</td>
				<td >
						<a target="_blank" href="<?php echo $this->baseUrl; ?>/user/commande/ref/<?php echo $command['REFERENCE']; ?>" title="Voir le d�tail de la commande" class="tooltips btn btn-primary" data-placement="left">
							<i class="fa fa-search"></i> VISUALISER
						</a> 
						<a href="javascript:;" onclick="javascript:retrieveCommandToCaddy('<?php echo $command['REFERENCE']; ?>');" title="Mettre la commande dans mon panier" class="tooltips btn btn-success" data-placement="left">
							<span class="fa fa-plus-circle"></span> AJOUTER AU PANIER
						</a>
				</td>
			</tr>
			<?php 
					}		
			} else { ?>
			<tr>
				<td colspan="5" align="center" class="text3" height="50px">Aucune commande</td>
			</tr>
			<?php } ?>
			</tbody>
		</table>PK|�G[�	�;�;scripts/user/facture.phtmlnu&1i�
<?php
$facture = $this->facture;
?>
<style type="text/css">
.textTd1 {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}
.oldPromoPrice {
	font-size: 10px;
	font-weight: normal;
	color: #5e5e59;
	text-decoration: line-through;
}

.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}

.bill_header {
	float: clear : both;
	width: 800px;
}

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
	
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}




.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px; 
}


.bill_buy{
	float: left;
	width:500px; 
}
 
.bill_user_paiement_box {
	width:450px;
	margin:5px 0 0 0;
	padding: 0 10px 10px 10px;
	border : 2px #000000 solid;
}


.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
}

.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>

<div class="spaceBG2" style="clear: both;"></div>
	<div class="col-xs-12 text-center hidden-print" style="margin-top: 20px; margin-bottom: 20px"><a class="btn btn-default" onclick="window.print();return false;" href="<?php echo $this->baseUrl; ?>/"><span class="fa fa-print"></span> Imprimer</a></div>
<div class="bill_body">
	<div class="bill_header">
		<div class="bill_company">
			<div class="bill_company_logo"> 
				<a href="<?php echo $this->baseUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl; ?>/business/image/logo.png" style="border: none;"/></a>
			</div>
		</div>
		<div class="bill_idents">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php if ($facture['STATUT'] == 1 || $facture['STATUT'] == 2 || $facture['STATUT'] == 3) { echo 'Facture';} else {echo 'Devis';} ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line"><?php echo $facture['REFERENCE']; ?></span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
					} catch(Zend_Exception $e) { } 
					?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div> 
		</div>
		<div style="float: left;width:800px ">
			<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
			<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
			<?php } ?>
			<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
			<span class="bill_text">Email : <?php  echo $this->serviceClient_Mail;?></span>
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].' '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line"  style="text-align: center">P.U. HT</th>
				<th class="bill_line"  style="display: none;">Prix Remis�</th>
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) {
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row['REFERENCE']);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<a target="_blank"  href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVPRODUCTNOM'], $row['PRODUCTID']); ?>"><?php echo $row['DESIGNATION'];?></a>
					<?php if (!empty($row['SELECTEDOPTION'])) { 
						echo '<br/>'.$row['SELECTEDOPTION'].'<br/>';
					} ?>
				</td> 
				<td class="textTd1" > 
					<?php if ((int)$row['STOCK'] == 1) { ?>
					<img alt="Disponible" title="Disponible" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row['STOCK'] == 2) { ?>
					<img alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row['STOCK'] == 3) { ?>
					<img alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row['QUANTITY']; ?>	
				</td>
				<td class="textTd1" width="150px">
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromoprice.phtml"); ?>
				</td>
				<td width="120px"  style="display: none;">
				<?php if ($row['isPROMO'] == 1 && $row['REMISEPRIX'] > 0) { ?>
					<span class="textTd1" >
						<?php
							if ((int)$row['REMISEPRIXTAUXP'] > 0) {
									echo number_format($row['REMISEPRIX'], 2, ',', ' ').' &#8364; <br>('.$this->escape($row['REMISEPRIXTAUXP']).' %)';
								} else {
									echo number_format($row['REMISEPRIX'], 2, ',', ' ').' &#8364;';
								}
							?>
					</span>
					<?php } ?>
				</td>
				<td width="120px">
					<span class="textTd1" style="float: right;" >
						<?php if ($row['isDEVIS'] == 1) { 
							echo number_format($row['PRIXTOTAL'], 2, ',', ' ').' &#8364;';
						} ?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>
<?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row['NOM'].' ('.$row['NBPOINT'].' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>			
		</table>
	</div>
	<div class="bill_facture"> 
		<div class="bill_buy">   
				<?php switch ($facture['USER_MODEPAIEMENT_TYPE']) {
						case 1 : ?>
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par ch�que</div>
							<div style="margin-left:10px">- Veuillez libeller votre ch�que � l�ordre de <?php echo $this->siteName; ?></div>
							<div style="margin-left:10px">- Inscrivez le num�ro de votre commande au dos de votre ch�que</div>
							<div style="margin-left:10px">- Puis envoyez votre r�glement � l�adresse suivante :</div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->siteName; ?></div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_title; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_address; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_cp; ?></div>
							<br/>
							<div style="font-size:10px;text-align:center">A noter : Les produits sont exp�di�s � r�ception du ch�que</div> 
						</div> 
						<?php  break;
							case 2 : ?>  
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par virement</div>
							<div >- La commande sera exp�di�e d�s le virement pr�sent sur notre compte bancaire.</div> 
							<div class="bill_text">- Inscrivez votre num�ro de commande sur le formulaire de virement</div> 
							<div >- Vous disposez d�un <span style="font-weight: bold;">d�lai de 15 jours</span> pour effectuer le virement sur notre compte ci-dessous indiqu�, au d�l� de ce d�lai votre commande sera automatiquement annul�e.</div> 
							<br/>
							<div class="bill_text">RIB : <?php echo $this->site_rib_numbers; ?></div> 
							<div class="bill_text">No IBAN : <?php echo $this->site_rib_iban; ?></div> 
							<div class="bill_text">Code BIC : <?php echo $this->site_rib_bic; ?></div> 
							<div class="bill_text">Nom du compte : <?php echo $this->siteName; ?></div> 
							<div class="bill_text">Nom et domiciliation de la banque : <?php echo $this->site_rib_bankname; ?></div>  
						</div> 
				<?php 	break;
						default : ?>
							<span class="bill_text2">
							<?php if (empty($facture['USER_MODEPAIEMENT_LABEL'])) { ?> Mode de reglement :
							<?php 
								switch ($facture['USER_MODEPAIEMENT']) {
									case 1 : echo " Paiement s�curis� en ligne"; break;
									case 2 : echo " Contre remboursement";break;
									case 3 : echo " Paiement diff�r� - 30 jours";break;
									case 4 : echo " Paiement diff�r� - 45 jours";break;
									case 5 : echo " Paiement diff�r� - 60 jours";break;
									case 6 : echo " A r�ception de la facture";break;
								}
							} else { 
								echo $facture['USER_MODEPAIEMENT_LABEL'];
							} ?>
							</span>	 
						<?php 
						break;  
				} ?>  
		</div> 
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right"> 
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['LIV_NOM']) && !empty($facture['LIV_NOM']) ) { echo 'Livraison en '.$facture['LIV_NOM']; } else { echo 'Frais de port'; } 
						} ?>
					</td>
					
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
	
	
	<div class="bill_footer">
			<span class="link18">
				<input type="checkbox" checked="checked" disabled="disabled"/>
				J'ai pris connaissance des Conditions G�n�rales de Vente et les accepte sans r�serves.
			</span>
			<br /><br />
			<span class="bill_text3">
			P�nalit�s de retard (taux annuel) : 9,00% 
			</span><br>
			<span class="bill_text3">
			<b>RESERVE DE PROPRIETE</b> : Nous nous r�servons la propri�t� des marchandises jusqu'au paiement du prix par l'acheteur. Notre droit de revendication porte aussi bien sur les marchandises que sur leur prix si elles ont d�j� �t� revendues (Loi du 12 mai 1980). 
			</span><br><br>
	</div>
	
		<div class="bill_footer2" >
				<span class="bill_text3">
			<?php echo $this->site_addresse; ?>
			</span><br>
			<span class="bill_text3">
			<?php echo $this->site_actualshort; ?>
			</span>
		</div >
</div>
PK|�G[]s��WW%scripts/user/ajaxcaddyselection.phtmlnu&1i�

<script  type="text/javascript" >

$(function(){
	initEventsCaddyType();
});

</script>  

<?php $caddyTypes = $this->caddyType; ?>
<div class="userAccount_Panel">	
	<?php if (isset($caddyTypes) && !empty($caddyTypes)) { ?>
	<form  id="caddyTypeCheckForm" action="<?php echo $this->baseUrl; ?>/mon-panier-type-actualiser.html" method="post"> 
	<table class="user-cmd-table"cellpadding="0" cellspacing="0" width="100%">
		<thead >
		<tr align="center" >
			<th >Produit</th> 
			<th >Prix Unitaire (HT)</th> 
			<th >Prix remis�</th> 
			<th style="width: 100px;">Quantit�</th>
			<th>Prix Total</th> 
		</tr>  
		</thead>
		<tbody>
		<?php foreach($caddyTypes as $row) { ?>
		<tr align="center" >
			<td  >
				<div class="caddyProdImg" >  
					<a target="_blank" class="tooltips" data-placement="right" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->navnom_urlparents, $row->navnom, $row->idProduit); ?>"
						title="<?php echo $this->escape($row->designation);?>" >
						<img src="<?php echo $this->baseUrl.'/'.$row->url; ?>">
					</a>
				</div>
				<div class="caddyProdTxt" >
					<div class="link17" style="width: auto;clear:both">
						<a target="_blank" class="tooltips"  data-placement="top" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->navnom_urlparents, $row->navnom, $row->idProduit); ?>"
						title="<?php echo $this->escape($row->designation);?>">
							<?php echo $row->designation;?>
						</a>
					</div>
					<div class="textA1 productDetail_ref">
						<?php echo "Ref. ".$this->escape($row->reference);?>
					</div>
				</div>
			</td>  
			<td >
				<?php if (!$row->isSurDevis()) { ?>
					<div class="textA2" >
						<?php echo number_format($row->prix, 2, ',', ' ').' ';?>
						<span style="color: #000000">&#8364;</span>
					</div> 
				<?php } else { ?>
					<div >
						<span class="textA2" >sur devis</span>
					</div>
				<?php } ?>
			</td> 
			<td  >
				<?php if (!$row->isSurDevis()) { 
					if ($row->isPromoCaddyType) { ?>
				 	<div class="textA2">
					 	<?php echo number_format($row->getPrixAfterRemise(), 2, ',', ' ').' ';?>
					 	<span style="color: #000000">&#8364;</span> 
					 </div>  
				<?php } else { echo '&nbsp;'; }
					} else { ?>
					<div >
						<span class="textA2" >sur devis</span>
					</div>
				<?php } ?>
			</td>
			<td>
				<div class="col-xs-12 noPadding">  
					<div class="col-xs-8 noPadding">
						<input  onclick="javascript:clearInput($(this), '0');" type="text" class="form-control input-sm text-center caddyQuantity" maxlength="6" name="Quantity[]" value="<?php echo $row->qte; ?>" /> 
					</div>
					<div class="col-xs-4 noPadding" style="margin-top: 5px; ">
						<a href="javascript:;" onclick="changeValueOfCaddyTypeQte($(this), 0)">
							<img alt="Supprimer" class="tooltips" data-placement="right" title="Supprimer" src="<?php echo $this->baseUrl; ?>/business/image/mini_trash.png">
						</a>  
					</div>
				</div> 				
				<input type="hidden" name="selectedOption[]" value="<?php echo $row->selectedOption; ?>" /> 
				<input type="hidden" name="Child[]" value="<?php echo $row->idChild; ?>" /> 
				<input type="hidden" name="CaddyType[]" value="<?php if ($row->isPromoCaddyType) { echo $row->id; } else { echo '0'; } ?>" />  
				<input type="hidden" name="QuantityMin[]" value="<?php echo $row->qte_min; ?>" />  
			</td> 
			<td  >
				<?php if (!$row->isSurDevis()) { 
					if ($row->isPromoCaddyType) { ?>
				 	<div class="textA2">
					 	<?php echo number_format($row->getPrixAfterRemise(), 2, ',', ' ').' ';?>
					 	<span style="color: #000000">&#8364;</span> 
					 </div>  
				<?php } else { ?>
					<div class="textA2" >
						<?php echo number_format($row->prix, 2, ',', ' ').' ';?>
						<span style="color: #000000">&#8364;</span>
					</div>  
				<?php }
				} else { ?>
					<div >
						<span class="textA2" >sur devis</span>
					</div>
				<?php } ?>
			</td>
		</tr>
		<?php } ?>
		</tbody>
		</table> 
		<div class="col-xs-12 text-center" style="margin-top: 10px;"> 
			<button type="submit" class="tooltips btn btn-success" data-placement="left" title="Mettre la s�lection dans mon panier" >
			  <span class="fa fa-plus-circle"></span> AJOUTER AU PANIER
			</button>
		</div>  
	</form> 
	<?php } else { ?>
	<div class="userAccount_NoCaddyType">
		<span>Vous n�avez pas encore de s�lection,</span>
		<span>Contactez-nous le plus vite possible !</span>
		<span><?php echo $this->siteName; ?></span>
		<?php echo $this->site_addresse2; ?>		
		<span>N� Azur : <?php echo $this->tel_contact; ?></span>
		<span><?php echo $this->contact_Mail; ?></span> 
	</div>
	<?php } ?>
</div>  PK|�G[D:�=='scripts/user/sendmailtoconseiller.phtmlnu&1i�<form action="<?php echo $this->baseUrl; ?>/contacter-un-conseiller.html" method="post">
	<div class="user_mail_field_component_textarea">	
		<span class="messageError2"><?php echo $this -> messageErrorAskConseiller; ?></span>
		<span class="messageSuccess2"><?php echo $this -> messageSuccessAskConseiller; ?></span>
	</div>
	<?php if (!$this->isConnected) { ?>
	<div class="user_mail_field_title text6">Vous contacter par :</div>
	<div class="user_mail_field_component">
		<div class="user_mail_field_text"><span>Email</span></div>
		<div class="user_mail_field_text2">
			<input type="text" class="input4" name="user_email" value="<?php echo $this->messageMail; ?>"/>
		</div>
	</div>
	<div class="user_mail_field_component">
		<div class="user_mail_field_text"><span>T�l�phone</span></div>
		<div class="user_mail_field_text2">	
			<input type="text" class="input4" name="user_tel" value="<?php echo $this->messageTel; ?>"/>
		</div>
	</div>
	<?php } ?>
	<div class="user_mail_field_title text6">Votre message :</div>
	<div class="user_mail_field_component_textarea"><textarea cols="80" rows="10" name="user_message" ><?php echo $this->messageBody; ?></textarea></div>
	<div class="user_mail_field_component_textarea" >
		<input type="submit" class="button" style="margin: 20px;" value="Envoyer" title="Envoyer le mail">
	</div> 
</form>PK|�G[scripts/user/index.phtmlnu&1i�PK|�G[	2rf��(scripts/user/ajaxlistcartefidelite.phtmlnu&1i�
<?php $carteFidelite = $this->carteFidelite; ?>
<div class="userAccount_Panel"  style="padding-bottom:150px;">
  <div class="col-md-12 text-center">
    <h3>Nombre de points : <?php echo $carteFidelite['POINTFIDELITETOTAL']; ?></h3><hr/>
  </div>

  <?php foreach($this->listfidelitegift as $row)  { ?>
  <div class="col-md-12">
    <h4><?php echo $row['TITRE'];?> : <?php echo $row['POINTFIDELITE'];?> points</h4>
  </div>
  <div class="col-md-12" style="padding:10px">
    <div class="col-md-10">
      <?php echo $row['CONTENT'];?>
    </div> 
    <div class="col-md-2">
      <a class="btn btn-success" <?php if ($carteFidelite['POINTFIDELITETOTAL'] < $row['POINTFIDELITE']) { echo "disabled"; }?> href="<?php echo $this->baseUrl; ?>/user/addcaddyfidelitypoint/id/<?php echo $row['ID']; ?>" ><span class="fa fa-plus-circle"></span> AJOUTER AU PANIER</a>
		</div>
  </div>
  <?php } ?>
</div>PK|�G[�	ƃ�=�=scripts/user/moncompte.phtmlnu&1i�
<script>  
$(function(){
	initEventUser();
	
	var params = new Array();
	params['route'] = $('#edituser_adresse');
	params['locality'] = $('#edituser_ville');
	params['administrative_area_level_2'] = $('#edituser_departement');
	params['administrative_area_level_1'] = $('#edituser_region');
	params['country'] = $('#edituser_pays');
	params['postal_code'] = $('#edituser_cp');
	
	initEventAddress($('#edituser_adressecomplete'), params);

	
});
</script>
<style>
.form-group { 
margin: 0 0 10px 0;	
}
.help-block {
	margin-bottom: 0;
}
.form-horizontal .control-label {
font-size: 13px;
}
</style>
<?php  		
$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
?>
<div class="userAccount_TitleContent">
	<div class="userAccount_Title"></div>
	<div class="col-xs-12 noPadding">
    <div class="btn-group btn-group-justified" role="group" >
      <div class="btn-group" role="group">
        <button type="button" id="userAccount_InfosTrigger" class="btn btn-primary user-btn-tab">Mes Informations</button>
      </div>
      <div class="btn-group" role="group">
        <button type="button" id="userAccount_CmdTrigger" class="btn btn-primary user-btn-tab">Mes Commandes</button>
      </div>
      <div class="btn-group" role="group">
        <button type="button" id="userAccount_DevisTrigger" class="btn btn-primary user-btn-tab">Mes Devis</button>
      </div>
      <div class="btn-group" role="group">
        <button type="button" id="userAccount_CaddyTrigger" class="btn btn-primary user-btn-tab">Ma S�lection</button>
      </div>
      <?php  if ($this->isCarteFideliteEnable) {  ?>
      <div class="btn-group" role="group">
        <button type="button" id="userAccount_CarteFideliteTrigger" class="btn btn-primary user-btn-tab">Ma carte de fid�lit�</button>
      </div>
      <?php } ?>
    </div>
	</div>
</div>	
<div class="userAccount_Content"> 
	<div id="userAccount_Caddy"  class="userAccount_Panel">	
		<?php echo $this->render("/user/ajaxcaddyselection.phtml"); ?>
	</div>
	<div id="userAccount_Cmd"  class="userAccount_Panel">	
		<?php echo $this->render("/user/ajaxlistcommand.phtml"); ?>
	</div>	
	<div id="userAccount_Devis"  class="userAccount_Panel">	
		<?php echo $this->render("/user/ajaxlistdevis.phtml"); ?>
	</div>
  <?php  if ($this->isCarteFideliteEnable) { ?>
  <div id="userAccount_CarteFidelite" class="userAccount_Panel">
    <?php echo $this->render("/user/ajaxlistcartefidelite.phtml"); ?>
  </div>
  <?php } ?>
		
	<div id="userAccount_Infos" class="userAccount_Panel">  
		<div class="userAccount_Message"> 
			<span class="messageError2" ><?php echo $this->messageErrorEditUser; ?></span>
			<span class="messageSuccess2" ><?php echo $this->messageSuccessEditUser; ?></span>
		</div>
		<div class="userAccount_InfosLogin">
		
		
		<form class="form-horizontal" name="editUserIdentForm" action="<?php echo $this->baseUrl; ?>/mon-compte-modification-des-identifiants.html" method="POST">	
			<div class="col-xs-6 col-xs-offset-3">					
					<div class="form-group">
				    	<label   class="col-sm-4 col-sm-offset-4 control-label text6">Vos Identifiants</label>
				  	</div>
					  
				  <div class="form-group">
				    <label for="edituser_login" class="col-sm-5 control-label">* Identifiant (Email)</label>
				    <div class="col-sm-5">
				    	<input type="text" class="form-control input-sm" name="edituser_login" id="edituser_login" value="<?php echo $this->populateFormEdit['login']; ?>"/>
					</div>
				  </div>
					  
				  <div class="form-group">
				    <label for="edituser_mdp" class="col-sm-5 control-label">* Mot de passe</label>
				    <div class="col-sm-5">
				    	<input type="password" class="form-control input-sm" name="edituser_mdp" id="edituser_mdp" />
				    	<span class="help-block">4 caract�res minimum</span>
					</div>
				  </div>
					  
				  <div class="form-group">
				    <label for="edituser_mdp2" class="col-sm-5 control-label">* Confirmation du mot de passe</label>
				    <div class="col-sm-5">
						<input type="password" class="form-control input-sm" name="edituser_mdp2" id="edituser_mdp2" />
						<span class="help-block">4 caract�res minimum</span>
					</div>
				  </div>
			</div>
			<div style="clear:both;margin: 5px auto 5px auto; text-align: center;" >
				<input type="submit" value="CHANGER MON MOT DE PASSE" class="btn btn-primary" />
			</div>
		</form>
		</div>
		<div class="lineBG2" ><!-- --></div>
		
		
		<form class="form-horizontal" role="form" name="editUserForm" action="<?php echo $this->baseUrl; ?>/mon-compte-modification-des-informations.html" method="POST">
			<div class="col-xs-12">
				<div class="col-xs-6">
					<div class="form-group">
				    	<label   class="col-sm-4 control-label text6">Vos Identifiants</label>
				  	</div>
				  
				  <div class="form-group">
				    <label for="edituser_civility" class="col-sm-3 control-label">* Civilit�</label>
				    <div class="col-sm-9">
				    	<select class="form-control input-sm" name="edituser_civility" id="edituser_civility">
							<option value="Mr" <?php if ($this->populateFormEdit['civilite'] == 'Mr') { echo 'selected'; } ?>>Monsieur</option>
							<option value="Mme" <?php if ($this->populateFormEdit['civilite'] == 'Mme') { echo 'selected'; } ?>>Madame</option>
							<option value="Mlle" <?php if ($this->populateFormEdit['civilite'] == 'Mlle') { echo 'selected'; } ?>>Mademoiselle</option>
						</select>
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="edituser_nom" class="col-sm-3 control-label">* Nom</label>
				    <div class="col-sm-9">
				      	<input type="text" class="form-control input-sm" name="edituser_nom" id="edituser_nom" value="<?php echo $this->populateFormEdit['nom']; ?>" />
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="edituser_prenom" class="col-sm-3 control-label">* Pr�nom</label>
				    <div class="col-sm-9">
				     	<input type="text" class="form-control input-sm" name="edituser_prenom" id="edituser_prenom"  value="<?php echo $this->populateFormEdit['prenom']; ?>"/>
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="edituser_fct" class="col-sm-3 control-label">Fonction</label>
				    <div class="col-sm-9">
				     	<input type="text" class="form-control input-sm" name="edituser_fct" id="edituser_fct"  value="<?php echo $this->populateFormEdit['fonction']; ?>"/>
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="edituser_tel" class="col-sm-3 control-label">* T�l�phone</label>
				    <div class="col-sm-9">
				     	<input type="text" class="form-control input-sm" name="edituser_tel" id="edituser_tel" value="<?php echo $this->populateFormEdit['tel']; ?>"/>
				   		<span class="help-block">(Exemple : 0810120007)</span>
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="edituser_fax" class="col-sm-3 control-label">Fax</label>
				    <div class="col-sm-9">
				     	<input type="text" class="form-control input-sm" name="edituser_fax" id="edituser_fax" value="<?php echo $this->populateFormEdit['fax']; ?>"/>
				   		<span class="help-block">(Exemple : 0810120007)</span>
				   	 </div>
				  </div>		
				  <div class="form-group">
				    <label for="edituser_email" class="col-sm-3 control-label">* Email</label>
				    <div class="col-sm-9">
				     	<input type="email" class="form-control input-sm" name="edituser_email" id="edituser_email"  value="<?php echo $this->populateFormEdit['email']; ?>"/>
						<input type="hidden" id="address_type" name="address_type" value="old">
				    </div>
				  </div>		
				</div>  
			  
				 <div class="col-xs-6" id="adresseOld">
					<div class="form-group">
				    	<label   class="col-sm-4 control-label text6">Votre adresse</label>
				  	</div>
				  	<div class="form-group">
				    	<label for="edituser_adresse_old" class="col-sm-3 control-label">* Adresse</label>
				    	<div class="col-sm-9">
				     		<input type="text" class="form-control input-sm" name="edituser_adresse_old"  value="<?php echo $this->populateFormEdit['adresse']; ?>"/>
						</div>
				  	</div>
				  	<div class="form-group">
				    	<label for="edituser_cp_old" class="col-sm-3 control-label">* Code postal</label>
				    	<div class="col-sm-9">
				     		<input type="text" class="form-control input-sm" name="edituser_cp_old"   value="<?php echo $this->populateFormEdit['cp']; ?>"/>
						</div>
				  	</div>
				  	<div class="form-group">
				    	<label for="edituser_ville_old" class="col-sm-3 control-label">* Ville</label>
				    	<div class="col-sm-9">
				     		<input type="text" class="form-control input-sm" name="edituser_ville_old"  value="<?php echo $this->populateFormEdit['ville']; ?>"/>
						</div>
				  	</div>
				  	<div class="form-group">
				    	<label for="edituser_pays_old" class="col-sm-3 control-label">* Pays</label>
				    	<div class="col-sm-9">
				     		<select class="form-control input-sm" name="edituser_pays_old" >
								<?php  
								foreach ($this->listPays as $pays) { ?>
								<option value="<?php echo $pays['PAYS']; ?>" <?php if (strcasecmp($this->populateFormEdit['pays'], $pays['PAYS']) == 0) { echo 'selected'; } ?>><?php echo $pays['PAYS']; ?></option>
								<?php }?>
							</select>
						</div>
				  	</div>
				</div>
			</div>	 
					
			<div style="float: left;display: none;"  id="adresseNew">
					<table cellpadding="0" cellspacing="5" border="0" width="380px" >
						<tr style="display: none;">
							<td  colspan="2">
								<span  class="link7"><a href="javascript:;" onclick="swichAdresse($('#adresseOld'),$('#adresseNew'),$('#address_type'), 'new')">Trouver mon adresse</a></span>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="text6">Votre adresse</span>
								<div class="messageError" id="addressError" style="clear: both;display: none;"></div>
							</td>
						</tr>
						<tr>
							<td>
								* Adresse :  	
							</td>
							<td>
								<input type="text" class="input4" name="edituser_adressecomplete" id="edituser_adressecomplete"  value="<?php echo $this->populateFormEdit['adressecomplete']; ?>"/>
							</td>
						</tr>
						
						<tr>
							<td >
								Rue :  	
							</td>
							<td>
								<input type="text" style="border: none;" readonly="readonly" class="input4" name="edituser_adresse" id="edituser_adresse"  value="<?php echo $this->populateFormEdit['adresse']; ?>"/>
								<input type="hidden" name="edituser_departement" id="edituser_departement"  value="<?php echo $this->populateFormEdit['departement']; ?>"/>
								<input type="hidden" name="edituser_region" id="edituser_region"  value="<?php echo $this->populateFormEdit['region']; ?>"/>
							</td>
						</tr> 
						<tr>
							<td>
								Code postal :  	
							</td>
							<td>
								<input readonly="readonly"  style="border: none;" type="text"  name="edituser_cp" id="edituser_cp"  value="<?php echo $this->populateFormEdit['cp']; ?>"/>
							</td>
						</tr>
						<tr>
							<td>
								Ville :  	
							</td>
							<td>
								<input readonly="readonly"  style="border: none;" type="text"  name="edituser_ville" id="edituser_ville"  value="<?php echo $this->populateFormEdit['ville']; ?>"/>
							</td>
						</tr>
						<tr>
							<td>
								Pays : 	
							</td>
							<td>
								<input readonly="readonly"  style="border: none;"  type="text" class="input4" name="edituser_pays" id="edituser_pays"  value="<?php echo $this->populateFormEdit['pays']; ?>"/>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="link7"><a href="javascript:;" onclick="swichAdresse($('#adresseNew'),$('#adresseOld'),$('#address_type'), 'old')">Je ne trouve pas mon adresse !</a></span>
							</td>
						</tr>
					</table>
				</div>
				
				
			<div class="lineBG2"><!-- --></div>
			
			<div class="col-xs-6 col-xs-offset-3">	
				  <div class="col-sm-6 col-xs-12">
				    	<label   class="control-label text6">* Vous etes ?</label>
				  </div>
				  <div class="col-sm-3 col-xs-6">
				  	<div class="radio">
					  <label>
					    <INPUT type=radio name="edituser_typeuser" id="edituser_typeuserPart" value="Particulier" <?php if ($this->populateFormEdit['type'] == 'Particulier') { echo 'checked="checked"'; } ?>  >
					    Particulier
					  </label>
					</div>				   
				  </div>
				  <div class="col-sm-3 col-xs-6">
				  
				  	<div class="radio">
					  <label>
					    <INPUT type=radio name="edituser_typeuser" id="edituser_typeuserPro" value="Professionnel" <?php if ($this->populateFormEdit['type'] == 'Professionnel') { echo 'checked="checked"'; } ?> >
					    Professionnel
					  </label>
					</div>
				    
				  </div>
			</div>
			
			<div class="col-xs-7 col-xs-offset-2" id ="v-UserInfo">	
					<div class="form-group">
				    	<label  class="col-sm-5 control-label text6">+ d'informations</label>
				  	</div>
			  	<div class="form-group">
			    	<label for="edituser_raisonsocial" class="col-xs-5 control-label">* Raison sociale</label>
			    	<div class="col-xs-7">
			     		<input type="text" class="form-control input-sm" name="edituser_raisonsocial" id="edituser_raisonsocial"  value="<?php echo $this->populateFormEdit['raisonsocial']; ?>"/>
					</div>
			  	</div>
			  	<div class="form-group">
			    	<label for="edituser_siret" class="col-xs-5 control-label">* Num�ro SIRET</label>
			    	<div class="col-xs-7">
			     		<input type="text" class="form-control input-sm" name="edituser_siret" id="edituser_siret"  value="<?php echo $this->populateFormEdit['siret']; ?>"/>
					</div>
			  	</div>
			  	<div class="form-group">
			    	<label for="edituser_numidfisc" class="col-xs-5 control-label">* Num�ro T.V.A. Intra Communautaire</label>
			    	<div class="col-xs-7">
			     		<input type="text" class="form-control input-sm" name="edituser_numidfisc" id="edituser_numidfisc"  value="<?php echo $this->populateFormEdit['numidfisc']; ?>"/>
					</div>
			  	</div>
			  	<div class="form-group">
			    	<label for="edituser_codeape" class="col-xs-5 control-label">* Code A.P.E.</label>
			    	<div class="col-xs-7">
			     		<input type="text" class="form-control input-sm" name="edituser_codeape" id="edituser_codeape"  value="<?php echo $this->populateFormEdit['codeape']; ?>"/>
					</div>
			  	</div>
			  	<div class="form-group">
			    	<label for="edituser_sectactivite" class="col-xs-5 control-label">Secteur d'activit�</label>
			    	<div class="col-xs-7">
			     		<input type="text" class="form-control input-sm" name="edituser_sectactivite" id="edituser_sectactivite"  value="<?php echo $this->populateFormEdit['sectactivite']; ?>"/>
					</div>
			  	</div>
			
			</div>
						
			<div class="lineBG2"><!-- --></div>
			
			<div class="col-xs-7 col-xs-offset-2">				
			  	<div class="form-group">
			    	<label for="edituser_comm" class="col-xs-5 control-label">Commentaires</label>
			    	<div class="col-xs-7"> 
			     		<textarea class="form-control  input-sm" name="edituser_comm" id="edituser_comm" ><?php echo $this->populateFormEdit['commentaire']; ?></textarea>
					</div>
			  	</div>
			</div>
			 
			<div style="clear: both;text-align: right;">
				<div style="margin: 10px 0 10px 0"><span class="text3">* Champs obligatoires</span></div>
			</div> 
			<div style="clear: both;margin : 0 auto 0 auto;text-align: center;" >
				<input type="submit" value="MODIFIER MES INFORMATIONS"  class="btn btn-primary"  />
			</div>
		</form>
		<div style="clear: both; height: 10px;"></div>
	</div>
</div>PK|�G[����scripts/blog/actualites.phtmlnu&1i�
<?php echo $this->render("/blog/_blogHeader.phtml"); ?>
<div class="col-md-12">
  <div class="row">
    <div class="col-lg-8 noPadding">
      <h1 class="blog-title"><?php echo $this->currentCategory['title']; ?></h1> 
      <p><?php echo $this->currentCategory['sub_title']; ?></p>
      <hr>
        <?php  
        $posts = $this->listSubjects;
        if (!empty($posts)) {
          foreach ($posts as $post) {  
		        $this->currentPost = $post;
            echo $this->render("/blog/_blogShortDetail.phtml"); 
           } 
        }?>
    </div>
    
    <div class="col-md-4">
      <?php echo $this->render("/blog/_blogCategories.phtml");  ?> 
    </div>

  </div>
</div>PK|�G[��		scripts/blog/sujet.phtmlnu&1i�
<?php echo $this->render("/blog/_blogHeader.phtml"); ?>
<div class="col-md-12">
  <div class="row">
    <div class="col-lg-8 noPadding">
      <h1 class="blog-title"><?php echo $this->currentSubject['title']; ?></h1> 
      <p><?php echo $this->currentSubject['sub_title']; ?></p>
      <p><?php echo $this->currentSubject['message']; ?></p>

      <div class="col-md-12">
        <?php if($this->currentCategory['is_close'] == 0 && $this->currentSubject['is_close'] == 0) { 
              echo $this->render("/blog/_blogAddPost.phtml"); 
        } ?>
      </div>
      <div class="col-md-12">
        <hr>
          <?php  
          $posts = $this->listComments;
          if (!empty($posts)) {
            foreach ($posts as $post) {  
		          $this->currentPost = $post;
              echo $this->render("/blog/_blogShortDetailComment.phtml"); 
             } 
          }?>
      </div>
    </div>
 
    <div class="col-md-4">
      <?php echo $this->render("/blog/_blogCategories.phtml");  ?> 
    </div>

  </div>
</div>PK|�G[�h�Mjj#scripts/blog/_blogShortDetail.phtmlnu&1i�
 <?php $post = $this->currentPost; ?>
  <div class="media"> 
    <div class="media-body">
      <div class="col-md-9">
        <a class="pull-left" href="<?php echo $this->baseUrl."/blog/sujet/id/".$post['id']; ?>">
          <?php echo $post['title']; ?>
        </a>
        <small>&nbsp;
          <?php 
					  try {
					    $myDate = new Zend_Date(strtotime($post['date_updated']));
					    $mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				      $moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					    echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY"); 
					  } catch(Zend_Exception $e) {
						
					  } ?></small>
      </div> 
      <div class="col-md-3 text-right">
        <a href="<?php echo $this->baseUrl."/blog/sujet/id/".$post['id']; ?>" class="btn btn-primary">Voir</a>
      </div> 
      <div class="col-md-12"><p><?php echo $post['sub_title']; ?></p></div>
    </div>
  </div>
<hr />PK|�G[A���;;scripts/blog/_blogHeader.phtmlnu&1i�
<div class="col-md-12 blog-header" >
  <div class="col-md-12 text-center">
    <a href="<?php echo $this->baseUrl; ?>/blog/actualites.html" class="btn btn-info">Blog</a>
  </div>
</div>
<?php if (!empty($this->messageSuccess)) {  ?>
  <div class="col-md-12 text-center no-space-top">
		<span class="alert alert-success"><?php echo $this->messageSuccess; ?></span>
	</div>
<?php } else if (!empty($this->messageError)) { ?>
  <div class="col-md-12 text-center no-space-top">
		<span class="alert alert-danger"><?php echo $this->messageError; ?></span>
	</div>
<?php }  ?>PK|�G[ �Ss��"scripts/blog/_blogCategories.phtmlnu&1i�
<?php  
  $posts = $this->listCategories;
    if (!empty($posts)) { ?>
      <div class="well">
        <div class="row">
          <div class="col-xs-12">
            <ul class="list-unstyled">
              <?php  foreach ($posts as $post) {  ?>
              <li>
                <a href="<?php echo $this->baseUrl."/blog/actualites/id/".$post['id'] ?>"><?php echo $post['title'];?></a>
              </li>
              <?php } ?>
            </ul>
          </div>
        </div>
      </div>
<?php } ?>PK|�G[wUI�scripts/blog/forum.phtmlnu&1i�
<?php echo $this->render("/blog/_blogHeader.phtml"); ?>
<div class="col-md-12">
  <div class="row">
    <div class="col-lg-8 noPadding">
      <h1  class="blog-title"> <?php echo $this->currentCategory['title']; ?></h1>
      <p><?php echo $this->currentCategory['message']; ?></p>
      <hr>
        <?php  
        $posts = $this->listNewPosts;
        if (!empty($posts)) {
        foreach ($posts as $post) {  
		      $this->currentPost = $post;
          echo $this->render("/blog/_blogShortDetail.phtml"); 
         } } ?>
      </div>

    <div class="col-md-4">
      <?php echo $this->render("/blog/_blogSubjects.phtml"); 
      
      $sidePosts = $this->listPostsSide;
      if (!empty($sidePosts)) {
        foreach ($sidePosts as $post) {  
		      $this->currentPost = $post;
          echo $this->render("/blog/_blogSide.phtml");
        }} ?>
    </div>

  </div>
</div>
<?php if($this->currentCategory['id'] > 0 && $this->currentCategory['is_close'] == 0) { 
    echo $this->render("/blog/_blogAddPost.phtml"); 
} ?>PK|�G[f�Բ��scripts/blog/_blogSide.phtmlnu&1i�
<?php $post = $this->currentPost; ?>
<div class="well">
  <a class="pull-left" href="#"> 
      <?php echo $post['pseudo']; ?> 
  </a>
  <br/>
  <p><?php echo $post['message']; ?></p> 
</div>PK|�G[��'.�� scripts/blog/_blogSubjects.phtmlnu&1i�

 <div class="well">
    <div class="row">
      <div class="col-xs-12">
        <ul class="list-unstyled">
          <?php  
            $posts = $this->listSubjects;
            if (!empty($posts)) {
              foreach ($posts as $post) {  ?>
              <li>
                <a href="<?php echo $this->baseUrl."/blog/sujet/id/".$post['id'] ?>"><?php echo $post['title'];?></a>
              </li>
            <?php } } ?>
        </ul>
      </div>
    </div> 
  </div> PK|�G[ּG���scripts/blog/detail.phtmlnu&1i�
<?php echo $this->render("/blog/_blogHeader.phtml"); ?>
<div class="col-md-12">
  <div class="row">

    <!-- Blog Post Content Column -->
    <div class="col-lg-8">

      <!-- Blog Post -->

      <!-- Title -->
      <h1>Blog Post Title</h1>

      <!-- Author -->
      <p class="lead">
        by <a href="#">Start Bootstrap</a>
      </p>

      <hr>

        <!-- Date/Time -->
        <p>
          <span class="glyphicon glyphicon-time"></span> Posted on August 24, 2013 at 9:00 PM
        </p>

        <hr>

          <!-- Preview Image -->
          <img class="img-responsive" src="http://placehold.it/900x300" alt="">

            <hr>

              <!-- Post Content -->
              <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ducimus, vero, obcaecati, aut, error quam sapiente nemo saepe quibusdam sit excepturi nam quia corporis eligendi eos magni recusandae laborum minus inventore?</p>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, tenetur natus doloremque laborum quos iste ipsum rerum obcaecati impedit odit illo dolorum ab tempora nihil dicta earum fugiat. Temporibus, voluptatibus.</p>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eos, doloribus, dolorem iusto blanditiis unde eius illum consequuntur neque dicta incidunt ullam ea hic porro optio ratione repellat perspiciatis. Enim, iure!</p>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Error, nostrum, aliquid, animi, ut quas placeat totam sunt tempora commodi nihil ullam alias modi dicta saepe minima ab quo voluptatem obcaecati?</p>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum, dolor quis. Sunt, ut, explicabo, aliquam tenetur ratione tempore quidem voluptates cupiditate voluptas illo saepe quaerat numquam recusandae? Qui, necessitatibus, est!</p>

              <hr>

                <!-- Blog Comments -->

                <!-- Comments Form -->
                <div class="well">
                  <h4>Leave a Comment:</h4>
                  <form role="form">
                    <div class="form-group">
                      <textarea class="form-control" rows="3"></textarea>
                    </div>
                    <button type="submit" class="btn btn-primary">Submit</button>
                  </form>
                </div>

                <hr>

                  <!-- Posted Comments -->

                  <!-- Comment -->
                  <div class="media">
                    <a class="pull-left" href="#">
                      <img class="media-object" src="http://placehold.it/64x64" alt="">
                    </a>
                    <div class="media-body">
                      <h4 class="media-heading">
                        Start Bootstrap
                        <small>August 25, 2014 at 9:30 PM</small>
                      </h4>
                      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                    </div>
                  </div>

                  <!-- Comment -->
                  <div class="media">
                    <a class="pull-left" href="#">
                      <img class="media-object" src="http://placehold.it/64x64" alt="">
                    </a>
                    <div class="media-body">
                      <h4 class="media-heading">
                        Start Bootstrap
                        <small>August 25, 2014 at 9:30 PM</small>
                      </h4>
                      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                      <!-- Nested Comment -->
                      <div class="media">
                        <a class="pull-left" href="#">
                          <img class="media-object" src="http://placehold.it/64x64" alt="">
                            </a>
                        <div class="media-body">
                          <h4 class="media-heading">
                            Nested Start Bootstrap
                            <small>August 25, 2014 at 9:30 PM</small>
                          </h4>
                          Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                        </div>
                      </div>
                      <!-- End Nested Comment -->
                    </div>
                  </div>

                </div>

    <!-- Blog Sidebar Widgets Column -->
    <div class="col-md-4">

      <!-- Blog Search Well -->
      <div class="well">
        <h4>Blog Search</h4>
        <div class="input-group">
          <input type="text" class="form-control">
            <span class="input-group-btn">
              <button class="btn btn-default" type="button">
                <span class="glyphicon glyphicon-search"></span>
              </button>
            </span>
          </div>
        <!-- /.input-group -->
      </div>

      <!-- Blog Categories Well -->
      <div class="well">
        <h4>Blog Categories</h4>
        <div class="row">
          <div class="col-lg-6">
            <ul class="list-unstyled">
              <li>
                <a href="#">Category Name</a>
              </li>
              <li>
                <a href="#">Category Name</a>
              </li>
              <li>
                <a href="#">Category Name</a>
              </li>
              <li>
                <a href="#">Category Name</a>
              </li>
            </ul>
          </div>
          <div class="col-lg-6">
            <ul class="list-unstyled">
              <li>
                <a href="#">Category Name</a>
              </li>
              <li>
                <a href="#">Category Name</a>
              </li>
              <li>
                <a href="#">Category Name</a>
              </li>
              <li>
                <a href="#">Category Name</a>
              </li>
            </ul>
          </div>
        </div>
        <!-- /.row -->
      </div>

      <!-- Side Widget Well -->
      <div class="well">
        <h4>Side Widget Well</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore, perspiciatis adipisci accusamus laudantium odit aliquam repellat tempore quos aspernatur vero.</p>
      </div>

    </div>

  </div>
</div>PK|�G[��y��scripts/blog/_blogAddPost.phtmlnu&1i�

<div class="col-md-12">
<form id="dialog-add-post" class="form-horizontal" action="<?php echo $this->baseUrl; ?>/blog/addpost" method="post">
	  <span class="indexBox4_title2">R�diger un commentaire</span>
	  <fieldset style="border:0;">

      <?php 
       $storage = null;
       try {
	        $auth = Zend_Auth::getInstance();
	        $auth->setStorage(new Zend_Auth_Storage_Session($this->session_storage));
	        $storage = $auth->getStorage()->read(); 
	      } catch (Zend_Exception $e) {
	      }
      
      if ($storage != null && $auth->hasIdentity() && isset($storage['user'])) { ?>
			  <div class="form-group">
				  <label for="pseudo" class="col-sm-12 text-left"><?php echo $storage['user']['prenom']; ?></label> 
				  <input name="pseudo" type="hidden" value="<?php echo $storage['user']['prenom']; ?>"> 
			  </div>
      <?php } else { ?>
			  <div class="form-group">
				  <label for="pseudo" class="col-sm-2 control-label">Pseudo</label>
            <div class="col-sm-10">
				      <input name="pseudo" type="text" class="form-control" required="">
			      </div>
			  </div>
      <?php } ?>
			    <div class="form-group">
				  <label for="commentaire" class="col-sm-2 control-label">Commentaire</label>
            <div class="col-sm-10">
              <textarea name="commentaire" class="form-control" rows="5" required=""></textarea> 
			      </div>
			  </div>
			  <div class="form-group">
            <div class="col-sm-12 text-center">
                <input type="submit" class="btn btn-default" value="Publier le commentaire" />
                <input type="hidden" name="subject_id" value="<?php echo $this->currentSubject['id']; ?>"/>
              </div> 
			  </div> 
	  </fieldset>
  </form>
</div>PK|�G[�~����*scripts/blog/_blogShortDetailComment.phtmlnu&1i�
 <?php $post = $this->currentPost; ?>
  <div class="media"> 
    <div class="media-body">
      <div class="col-md-9">
        <a class="pull-left" href="#">
          <?php echo $post['pseudo']; ?>
        </a>
        <small>&nbsp;
          <?php 
					  try {
					    $myDate = new Zend_Date(strtotime($post['date_updated']));
					    $mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				      $moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					    echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY"); 
					  } catch(Zend_Exception $e) {
						
					  } ?></small>
      </div> 
      <?php if ($this->currentCategory['is_close'] == 0 && $this->currentSubject['is_close'] == 0) { ?>
        <div class="col-md-3 text-right">
          <a href="#" class="btn btn-success" onclick="scrollTo('#dialog-add-post')">R�pondre&nbsp;<i class="fa fa-reply"></i></a>
        </div>
      <?php } ?>
      <div class="col-md-12"><p><?php echo $post['message']; ?></p></div>
    </div>
  </div>
<hr />PK|�G[hپ

layouts/menuLayout.phtmlnu&1i�<div class="menuLayoutBorder">
	<?php if ($this->listallannonces) { ?>	
	<div class="annonce_container">	 
			<div id="annonce-slider" class="coda-slider preload">
				<?php 
				$i = 1;
				$listAnnonce = $this->listallannonces;
				foreach ($listAnnonce as $row) { ?> 
					<div class="panel annonce_boxPanel"> 
						<div class="panel-wrapper">
							<div class="title-panel"><?php echo $i; ?></div> 
							<?php echo $row['CONTENT'];?>
						</div>
					</div>
				<?php $i++; } ?> 
			</div>
	</div>
	<?php } ?>
</div>PK|�G[��r'��layouts/rightLayout.phtmlnu&1i�
	
<!--[if IE]>
<style type="text/css">
.textA10, .textA9, .textA8b, .textA11 , .textA12, .textA13 {
  filter: glow(color=#000000,strength=1);
}
.linkA10, .linkA9, .linkA8b, .linkA11 , .linkA12, .linkA13 {
  filter: glow(color=#000000,strength=1);
}
</style>
<![endif]-->

<div class="rightPubContent">
	<?php if ($this->listannoncesright) {
		$listAnnonceRight = $this->listannoncesright;
		
		$idCat = $this->listannoncesrightCategory;
		foreach ($listAnnonceRight as $row) {
		$tabCategorie = explode(';',$row['ID_CATS']); 
		if (in_array($idCat, $tabCategorie) || in_array('0', $tabCategorie)) {
			
	?>
	<div class="menuExtraRightOpt"><?php echo $row['CONTENT'];?></div>
	<?php } } } ?>
</div>PK|�G[layouts/extraHeaderLayout.phtmlnu&1i�PK|�G[�����layouts/leftLayout.phtmlnu&1i�
<div class="leftLogo"> 
	<a title="Accueil" href="<?php echo $this->baseUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl; ?>/business/image/logo.png" /></a>
</div> 
<div class="rightPromotion" > 
	<span class="link_shadow18_y2" > 
		<a href="<?php echo $this->baseUrl; ?>/nos-promotions.html" title="D�couvrez nos promotions">Promotions</a> 
	</span>
</div>
<div class="menuOngletsTitle"><span class="text_shadow18_w">Nos Produits</span></div>
 


<?php if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6' ) !== FALSE || strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) !== FALSE ) { ?>
<div class="menuOnglets">
	<div  class="menuOnglet_1 <?php if ( $this->actualDesign['idCategory'] == 1 ) { echo 'menuOnglet_1_hover'; } ?>" ><a style="margin: 2px 0 0 60px;" id="onglet_1" href="<?php echo $this->baseUrl; ?>/industrie/1-manutention-levage.html" <?php if ( $this->actualDesign['idCategory'] == 1 ) { echo 'class="selected"'; } ?> >Manutention, levage</a></div>
	<div  class="menuOnglet_2 <?php if ( $this->actualDesign['idCategory'] == 2 ) { echo 'menuOnglet_2_hover'; } ?>" ><a style="margin: 0 0 0 60px;" id="onglet_2" href="<?php echo $this->baseUrl; ?>/industrie/2-prevention-environnement.html" <?php if ( $this->actualDesign['idCategory'] == 2 ) { echo 'class="selected"'; } ?>>Pr�vention de<br/> l'environnement</a></div>
	<div  class="menuOnglet_3 <?php if ( $this->actualDesign['idCategory'] == 3 ) { echo 'menuOnglet_3_hover'; } ?>" ><a style="margin: 0 0 0 60px;" id="onglet_3" href="<?php echo $this->baseUrl; ?>/industrie/3-stockage-rayonnage.html" <?php if ( $this->actualDesign['idCategory'] == 3 ) { echo 'class="selected"'; } ?>>Stockage,<br/> rayonnage</a></div>
	<div  class="menuOnglet_4 <?php if ( $this->actualDesign['idCategory'] == 4 ) { echo 'menuOnglet_4_hover'; } ?>" ><a style="margin: 0 0 0 60px;" id="onglet_4" href="<?php echo $this->baseUrl; ?>/industrie/4-entretien-proprete.html" <?php if ( $this->actualDesign['idCategory'] == 4 ) { echo 'class="selected"'; } ?>>Entretien,<br/> propret�</a></div>
	<div  class="menuOnglet_5 <?php if ( $this->actualDesign['idCategory'] == 5 ) { echo 'menuOnglet_5_hover'; } ?>" ><a style="margin: 0 0 0 60px;" id="onglet_5" href="<?php echo $this->baseUrl; ?>/industrie/5-protection-securite.html" <?php if ( $this->actualDesign['idCategory'] == 5 ) { echo 'class="selected"'; } ?>>Protection, s�curit�</a></div>
	<div  class="menuOnglet_6 <?php if ( $this->actualDesign['idCategory'] == 6 ) { echo 'menuOnglet_6_hover'; } ?>" ><a style="margin: 10px 0 0 60px;" id="onglet_6" href="<?php echo $this->baseUrl; ?>/industrie/6-emballage.html" <?php if ( $this->actualDesign['idCategory'] == 6 ) { echo 'class="selected"'; } ?>>Emballage</a></div>
	<div  class="menuOnglet_7 <?php if ( $this->actualDesign['idCategory'] == 7 ) { echo 'menuOnglet_7_hover'; } ?>" ><a style="margin: 10px 0 0 60px;" id="onglet_7" href="<?php echo $this->baseUrl; ?>/industrie/7-outillage.html" <?php if ( $this->actualDesign['idCategory'] == 7 ) { echo 'class="selected"'; } ?>>Outillage</a></div>
	<div  class="menuOnglet_8 <?php if ( $this->actualDesign['idCategory'] == 8 ) { echo 'menuOnglet_8_hover'; } ?>" ><a style="margin: 10px 0 0 60px;" id="onglet_8" href="<?php echo $this->baseUrl; ?>/industrie/8-mobilier-atelier.html" <?php if ( $this->actualDesign['idCategory'] == 8 ) { echo 'class="selected"'; } ?>>Mobilier d'atelier</a></div>
	<div  class="menuOnglet_9 <?php if ( $this->actualDesign['idCategory'] == 9 ) { echo 'menuOnglet_9_hover'; } ?>" ><a style="margin: 10px 0 0 45px;" id="onglet_9" href="<?php echo $this->baseUrl; ?>/industrie/9-mobilier-bureau-collectivite.html" <?php if ( $this->actualDesign['idCategory'] == 9 ) { echo 'class="selected"'; } ?>>Mobilier de bureau</a></div>
</div> 
<?php } else { echo $this->render("menuajax.phtml");  } ?> 
		
<div class="leftPubContent">
	<?php if ($this->listannoncesleft) {
		$listAnnonceLeft = $this->listannoncesleft;
		
		$idCat = $this->listannoncesleftCategory;
		foreach ($listAnnonceLeft as $row) {
		$tabCategorie = explode(';',$row['ID_CATS']); 
		if (in_array($idCat, $tabCategorie) || in_array('0', $tabCategorie)) {
			
	?>
	<div class="menuExtraRightOpt"><?php echo $row['CONTENT'];?></div>
	<?php } } } ?>
</div>

PK|�G[���
AAlayouts/breadcrumb.phtmlnu&1i�
<?php if ($this->breadcrumb) { ?>
	<div class="col-xs-12 noPadding bread-crumb-box hidden-print">	
	<ol class="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList">
	  <li><a href="<?php echo $this->baseUrl; ?>/">Accueil</a></li>
	  <?php 
		$breadcrumb = $this->breadcrumb;
  $currentType = "";
  $position = 0;
		  foreach ($breadcrumb as $row) {
      $link = "";
	     if (isset($this->isPromoPage) && $this->isPromoPage) {
		      $link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory2($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
	      } else {
		      $link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
	      }
				$name =  $row['NOM'];
    $position++;
				?>
		  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
        <a itemprop="item" href="<?php echo $link;?>"><span itemprop="name"><?php echo $name; ?></span></a>
        <meta itemprop="position" content="<?php echo $position; ?>" />
      </li>
		  <?php }?>
	</ol>
</div>
<?php }?>
PK|�G[����
�
layouts/menuajax.phtmlnu&1i�

<script type="text/javascript"> 
	$(function(){
		ddsmoothmenu.init({
			mainmenuid: "smoothMenu", //menu DIV id
			orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
			classname: 'ddsmoothmenu', //class added to menu's outer DIV
			contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
		});
	});
</script>
<?php  
$params = array(
		'CATEGORIE_CURRENT' => 0, 
		'BASE_URL' => $this->baseUrl,
		'RESULT_MENUS' =>array(),
		'COLORS' => $this->designColors
);
if (isset($this->actualDesign) && !empty($this->actualDesign)) {
	$params['CATEGORIE_CURRENT'] = $this->actualDesign['idCategory'];
}

function generateHTMLMenu($data, $params) {
	$result = '';
	foreach ($data as $row) {
		if (isset($row['CATEGORIE']) && !empty($row['CATEGORIE'])) {

			$link_href = $params['BASE_URL']."/".Utils_Tool::getFormattedUrlCategory($row['CATEGORIE']['NAVNOM_URLPARENTS'], $row['CATEGORIE']['NAVNOM'], $row['CATEGORIE']['ID']);
				
			if ($row['CATEGORIE']['ID'] < 10) {
				
				if ($row['CATEGORIE']['ID'] == 1) {
					$result .= '<ul>'; 
				}
			
				$params['CATEGORIE_PARENT'] = $row['CATEGORIE']['ID'];

				$stringClass = "";
				if ($params['CATEGORIE_CURRENT'] == $row['CATEGORIE']['ID'] ) {
					$stringClass = "Selected";
				}
				 
				$result .= '<li class="linkOngletFirst">';
				$result .= '<a class="linkOnglet'.$stringClass.'_'.$row['CATEGORIE']['ID'].'" href="'.$link_href.'" id="fg-menu-category-'.$row['CATEGORIE']['ID'].'" >';
				
				if ($row['CATEGORIE']['ID'] == 1) {
					$result .= '<span>Manutention, levage</span>';
				} else  if ($row['CATEGORIE']['ID'] == 2) {
					$result .= "<span>Pr�vention de l'environnement</span>";
				} else if ($row['CATEGORIE']['ID'] == 3) {
					$result .= '<span>Stockage, rayonnage</span>';
				} else if ($row['CATEGORIE']['ID'] == 4) {
					$result .= '<span>Entretien et propret�</span>';
				} else if ($row['CATEGORIE']['ID'] == 5) {
					$result .= '<span>Protection, s�curit�</span>';
				} else if ($row['CATEGORIE']['ID'] == 6) {
					$result .= '<span>Emballage</span>';
				} else if ($row['CATEGORIE']['ID'] == 7) {
					$result .= '<span>Outillage</span>';
				} else if ($row['CATEGORIE']['ID'] == 8) {
					$result .= "<span>Mobilier d'atelier</span>";
				} else if ($row['CATEGORIE']['ID'] == 9) {
					$result .= '<span>Mobilier de bureau</span>';
				} else {
					$result .= '<span>'.$row['CATEGORIE']['NOM'].'</span>';
				}
			
				$result .= '</a>';

				$result .= '<ul style="border:1px solid '.$params['COLORS'][$params['CATEGORIE_PARENT']].';">';

				if (isset($row['CHILDS']) && !empty($row['CHILDS'])) {
					$result .= generateHTMLMenu($row['CHILDS'], $params);
				}
			}  else { 
				$result .= '<li >';
				$result .= '<a href="'.$link_href.'" class="linkSubOnglet_'.$params['CATEGORIE_PARENT'].'">';
				$result .= $row['CATEGORIE']['NOM'];
				$result .= '</a>';
				if ($row['LEVEL'] < 2) {
					if (isset($row['CHILDS']) && !empty($row['CHILDS'])) {
						$result .= '<ul style="border:1px solid '.$params['COLORS'][$params['CATEGORIE_PARENT']].';">';
						$result .= generateHTMLMenu($row['CHILDS'], $params);
						$result .= '</ul>';
					}
				}
				$result .= '</li>';
				
			}

			if ($row['CATEGORIE']['ID'] < 10) {
				$result .= '</ul></li>';  
			}
		} 
	}
	return $result;
}
?>

<noscript>
<?php $listMenu = generateHTMLMenu($this->listallcategories, $params);?>
</noscript> 
 <div class="menuOnglets">
	 <div id="smoothMenu" class="ddsmoothmenu" >
	<?php echo $listMenu;?>
	</div>  
 </div>
 







PK|�G[#����layouts/extraLayout.phtmlnu&1i�<?php if ($this->listallannoncesfooter) { ?>
<div class="extraLayoutOpt">
<?php 
	$listAnnonce = $this->listallannoncesfooter;
	foreach ($listAnnonce as $row) {
		$tabCategorie = explode(';',$row['CAT_ID']); 
		$selectedCategorie = array();
		for ($i=0;$i<sizeof($tabCategorie);$i++) {
			if ($this->breadcrumb[0]['ID'] == $tabCategorie[$i]) {
			?>
			<div  class="menuExtraOpt"> <?php echo $row['CONTENT'];?> </div>
	<?php } } } ?>
</div>
<?php }  ?>PK|�G[o���Y
Y
layouts/footerLayout.phtmlnu&1i�
<div class="footerBg col-sm-12 visible-sm visible-md visible-lg hidden-print">
	<div class="footerBgContent">
	
		<div class="col-sm-9">
		<?php 
			$custom_info_id = 4; 
			$listFooters = $this->listFooters;
      if (isset($listFooters)) {
      
			foreach ($listFooters as $footer) { ?>
	  			<div class="col-sm-4 footerTitle" >
			<?php if (empty($footer['URL'])) { ?>
						<a href="<?php echo $this->baseUrl; ?>/info<?php echo "-".$footer['ID']; ?>/<?php echo str_replace("page/","",$footer['TITRENAV']).".html"; ?>">
						
						<?php if ($footer['ID'] == $custom_info_id) {?>
							<img src="<?php echo $this->baseUrl; ?>/business/image/box-devdurable.png">
						<?php }
						echo $footer['TITRE']; ?></a>
					<?php } else { ?>
						<a target="_blank" href="http://<?php echo $footer['URL']; ?>"><?php echo $footer['TITRE']; ?></a>
			<?php } ?> 
  			</div>
		<?php }} ?>
      <div class="col-sm-4 footerTitle" >
        <a href="<?php echo $this->baseUrl; ?>/nos-marques.html">Nos marques</a>
      </div>
		</div>
  			<div class="col-sm-3" >
  				<div class="col-sm-12 footerMediaBoxTitle">Nous suivre sur :</div>
  				<div class="col-sm-12 footerMediaBox"><a target="_blank" href="<?php echo $this->link_media_facebook; ?>" data-placement="right" class="tooltips" title="Notre Facebook"><img src="<?php echo $this->baseUrl; ?>/business/image/icon-facebook.png"/> <span>Facebook</span></a></div>
  				<div class="col-sm-12 footerMediaBox"><a target="_blank" href="<?php echo $this->link_media_google; ?>" data-placement="right" class="tooltips" title="Notre page Google"><img src="<?php echo $this->baseUrl; ?>/business/image/icon-google.png"/> <span>Google +</span></a></div>
  				<div class="col-sm-12 footerMediaBox"><a target="_blank" href="<?php echo $this->link_media_twitter; ?>" data-placement="right" class="tooltips" title="Suivez nous sur Twitter"><img src="<?php echo $this->baseUrl; ?>/business/image/icon-twitter.png"/> <span>Twitter</span></a></div>
  				<div class="col-sm-12 footerMediaBox"><a target="_blank" href="<?php echo $this->link_media_viadeo; ?>"  data-placement="right" class="tooltips" title="Contactez nous via Viadeo"><img src="<?php echo $this->baseUrl; ?>/business/image/icon-viadeo.png"/> <span>Viadeo</span></a></div>
  			</div>
  			<div class="col-sm-12 text-center" >
  				<?php echo $this->custom_text_1; ?>
  			</div>
  	</div>
  	
  	
  	<div class="footerTitleRealised col-sm-12 visible-sm visible-md visible-lg hidden-print text-center">
  		<a href="http://www.web-entreprise.net" title="Web Entreprise" target="_blank">Site r�alis� par Web Entreprise</a>
  	</div>
  	
</div>PK|�G[|�
f��layouts/extraFooterLayout.phtmlnu&1i�
<style type="text/css">
    .box-bottom-command {
        background: url('/business/image/bon-de-commande.jpg') bottom;
        height: 138px;
    }
    .box-bottom-command a {
        height: 140px;
        display:block;
    }
    .box-bottom-command a:link, .box-bottom-command a:visited, .box-bottom-command a:active {
        text-decoration: none;
        color: #bd2f2c;
    }
    .box-bottom-command a:hover {
        text-decoration: none;
    }
    .box-bottom-command-title {
        color: #5B595A;
        font-weight: bold;
        text-align: center;
        font-size: 20px;
        text-decoration: none;
    }
    .box-bottom-command-link {
        color: #bd2f2c;
        margin-top: 30px;
        font-size: 15px;
        text-align: right;
    }
    .box-bottom-command a:hover .box-bottom-command-link {
        text-decoration: underline;
    }
</style>
<div class="col-xs-12 hidden-print <?php echo $this->prefixPromoClass; ?>footer-content-divider"></div>
<div class="col-xs-12 noPadding footer-content-container hidden-print" >
	<?php 
		$extraFooter = $this->listallannoncesfooter;
		if (isset($extraFooter)) {		
			$counter = 0;
			foreach ($extraFooter as $row) { 
				if ($counter < 2) { ?>
					<div class="col-md-4 col-sm-6 col-xs-12 indexBox4 visible-md visible-lg noPadding" style="overflow: hidden; overflow-y:auto; ">	
						 <?php 	echo $row['CONTENT']; ?>
					</div>
			<?php } 
			$counter++;
		}
	} ?>
	<div class="col-md-4 col-sm-6 col-xs-12 indexBox4 noPadding footer-content-box-last noMargin visible-md visible-lg" style="margin-top: 10px;">
		<div  class="box-bottom-command">
            <a href="<?php echo $this->baseUrl; ?>/doc/bondecommande.pdf" target="_blank">
                <div class="box-bottom-command-title">T�l�charger un bon de commande</div>
                <div class="box-bottom-command-link">T�l�charger <br />& imprimer</div>
            </a>
	    </div> 
	</div> 
    
</div>PK��G[
g�s	enter.phpnu�[���PK��G[)�Y�}}	Mtitle.phpnu�[���PK��G[�H�nlogo.phpnu�[���PK��G[c�11	=start.phpnu�[���PK��G[���l<<
�notice.phpnu�[���PK��G[�=�6QQ	Hsetup.phpnu�[���PK��G[%-<g88�Ipredefined.phpnu�[���PK��G[�ץ���Kconnect-jp.phpnu�[���PK��G[��Vs@@	_stats.phpnu�[���PK��G[Op1,���cactivate.phpnu�[���PK��G[���3NN�dcompatible-plugins.phpnu�[���PK��G[��7uget.phpnu�[���PK��G[��B�J<J<
Wyconfig.phpnu�[���PKc�G[.���$۵scripts/annoncegallery/message.phtmlnu&1i�PKc�G[@�~��/߶scripts/annoncegallery/ajaxshowallpicture.phtmlnu&1i�PKc�G[n.��++!�scripts/annoncegallery/edit.phtmlnu&1i�PKc�G[sem���!f�scripts/annoncegallery/list.phtmlnu&1i�PKc�G[\�֏�� s�scripts/annoncegallery/add.phtmlnu&1i�PKc�G[���e��|�scripts/index/index.phtmlnu&1i�PKc�G[��D��V�scripts/auth/login.phtmlnu&1i�PKc�G[��(^�� E�scripts/fidelitypoint/list.phtmlnu&1i�PKc�G[�y����zscripts/category/list.phtmlnu&1i�PKc�G[�ԃ�u�u�scripts/category/edit.phtmlnu&1i�PKc�G[�©see ׊scripts/category/ajaxvalue.phtmlnu&1i�PKc�G[9��J
J
��scripts/category/add.phtmlnu&1i�PKc�G[�==�ww �scripts/faq/list.phtmlnu&1i�PKc�G[���77ݮscripts/ebp/index.phtmlnu&1i�PKc�G[�ԩ�[�scripts/product/option.phtmlnu&1i�PKc�G[�©see��scripts/product/ajaxvalue.phtmlnu&1i�PKc�G[c]�''f�scripts/product/search.phtmlnu&1i�PKc�G[��C�����scripts/product/livraison.phtmlnu&1i�PKc�G[�)���"�scripts/product/livraisoncat.phtmlnu&1i�PKc�G[�N�oo(�scripts/product/ajaxaccessoirelist.phtmlnu&1i�PKc�G[�dN�$�scripts/product/ajaxannexelist.phtmlnu&1i�PKc�G[F��vv
scripts/product/list.phtmlnu&1i�PKc�G[w��J'
'
/�scripts/product/ajaxaccessoireproductlist.phtmlnu&1i�PKc�G[;�����\'scripts/product/edit.phtmlnu&1i�PKc�G[����	�	$�scripts/product/keywordsengine.phtmlnu&1i�PKc�G[@װN��+�scripts/product/ajaxannexeproductlist.phtmlnu&1i�PKc�G[�7�o��"�scripts/product/optionprofil.phtmlnu&1i�PKc�G[^��1�
�
�scripts/product/add.phtmlnu&1i�PKc�G[Y�X_���+scripts/pagination.phtmlnu&1i�PKc�G[δ�}g
g
�0scripts/blogcomment/edit.phtmlnu&1i�PKc�G[9���� L;scripts/blogcomment/search.phtmlnu&1i�PKc�G[�K��

�Jscripts/blogcomment/add.phtmlnu&1i�PKc�G[Ȗh[FF�Tscripts/annoncefront/list.phtmlnu&1i�PKc�G[�ؘ����cscripts/alert_tr.phtmlnu&1i�PKc�G[�G<���jdscripts/annonceleft/list.phtmlnu&1i�PKc�G[b�tP��)vwscripts/statistic/clickstatsproduct.phtmlnu&1i�PKc�G[�]P��
�
"yzscripts/statistic/logdefault.phtmlnu&1i�PKc�G[�J����scripts/statistic/keymap.phtmlnu&1i�PKc�G[�����!��scripts/statistic/searchkey.phtmlnu&1i�PKc�G[���_�
�
 ��scripts/statistic/logadmin.phtmlnu&1i�PKc�G[�]-q��scripts/statistic/stats.phtmlnu&1i�PKc�G[����$��scripts/statistic/clickstatsip.phtmlnu&1i�PKc�G[�z$׆�!M�scripts/command/ajaxmessage.phtmlnu&1i�PKc�G[��~~+$�scripts/command/facture_deliverytrack.phtmlnu&1i�PKc�G[E�(�R�R��scripts/command/edit.phtmlnu&1i�PKc�G[ס`����5scripts/command/listdevis.phtmlnu&1i�PKc�G[����!Kscripts/command/listcommand.phtmlnu&1i�PKc�G[j�bUUK`scripts/command/search.phtmlnu&1i�PKc�G[[�x��2�oscripts/command/facture_traitementinprogress.phtmlnu&1i�PKc�G[F����sscripts/annoncecms/edit.phtmlnu&1i�PKc�G[e��MM�scripts/annoncecms/list.phtmlnu&1i�PKc�G[�Hj#����scripts/annoncecms/add.phtmlnu&1i�PKc�G[;j���j�scripts/supplier/list.phtmlnu&1i�PKc�G[M"�q;+;+��scripts/supplier/edit.phtmlnu&1i�PKc�G[R;0��-�scripts/supplier/add.phtmlnu&1i�PKc�G[s}@�==�scripts/supplier/search.phtmlnu&1i�PKc�G[�)��&��scripts/productoptionlist/option.phtmlnu&1i�PKc�G[���qq�scripts/annonce/list.phtmlnu&1i�PKc�G[�scripts/csv/export.phtmlnu&1i�PKc�G[��׷JJ�scripts/csv/sitemapxml.phtmlnu&1i�PKc�G[7����|scripts/prestashop/index.phtmlnu&1i�PKc�G[;YP=aaascripts/error/error.phtmlnu&1i�PKc�G[�G�EE scripts/blogsubject/search.phtmlnu&1i�PKc�G[��Ʒ��(scripts/blogsubject/add.phtmlnu&1i�PKc�G[x*�BB�7scripts/blogsubject/edit.phtmlnu&1i�PKc�G[��y1
1
4Gscripts/category2/add.phtmlnu&1i�PKc�G[7H�F���Qscripts/category2/list.phtmlnu&1i�PKc�G[:�|�CC�Xscripts/category2/edit.phtmlnu&1i�PKc�G[L��66! �scripts/annoncecontent/list.phtmlnu&1i�PKc�G[��-,AA��scripts/alert.phtmlnu&1i�PKc�G[��;VV+�scripts/blogcategory/add.phtmlnu&1i�PKc�G[g�9//Ϻscripts/blogcategory/list.phtmlnu&1i�PKc�G[�4����M�scripts/blogcategory/edit.phtmlnu&1i�PKc�G[�I��� ��scripts/annoncefooter/list.phtmlnu&1i�PKc�G[��4a4a~�scripts/user/edit.phtmlnu&1i�PKc�G[�[�t
t
�Mscripts/user/list.phtmlnu&1i�PKc�G[�Xscripts/user/newsletter.phtmlnu&1i�PKc�G[gr�++Yscripts/user/guest.phtmlnu&1i�PKc�G[����00t\scripts/user/search.phtmlnu&1i�PKc�G[�q��yy�cscripts/user/codeinterne.phtmlnu&1i�PKc�G[�q��� �oscripts/productglobal/list.phtmlnu&1i�PKc�G[�4u/����scripts/footer/add.phtmlnu&1i�PKc�G[7�#�33�scripts/footer/doc.phtmlnu&1i�PKc�G[��o��scripts/footer/list.phtmlnu&1i�PKc�G[")�1==��scripts/footer/edit.phtmlnu&1i�PKc�G[�G����scripts/alert_tr1.phtmlnu&1i�PKc�G[�I�|&&^�scripts/maintenance/index.phtmlnu&1i�PKc�G[�Q��/ӻscripts/maintenance/generatenavnomproduct.phtmlnu&1i�PKc�G[.���!�scripts/maintenance/message.phtmlnu&1i�PKc�G[����scripts/annonceright/list.phtmlnu&1i�PKc�G[��*<*<��scripts/promotion/product.phtmlnu&1i�PKc�G[?�YY%0scripts/promotion/codereduction.phtmlnu&1i�PKc�G[�?��5�5�%scripts/promotion/user.phtmlnu&1i�PKc�G[aHT^^�[scripts/promotion/gift.phtmlnu&1i�PKc�G[|1���
�
�mscripts/promotion/front.phtmlnu&1i�PKc�G[�b�x���xscripts/promotion/command.phtmlnu&1i�PKc�G[�0f�͖scripts/admin/edit.phtmlnu&1i�PKc�G[��Q±%�%1�scripts/admin/list.phtmlnu&1i�PKc�G[��E�*�scripts/admin/add.phtmlnu&1i�PKc�G[I`���!��layouts/headerLayoutTopMenu.phtmlnu&1i�PKc�G[�9V����layouts/layout.phtmlnu&1i�PKc�G[ ׃�

]	layouts/headerLayout.phtmlnu&1i�PKc�G[��p����layouts/headerLayoutTop.phtmlnu&1i�PKc�G[��1���layouts-left/layout.phtmlnu&1i�PKc�G[�-���&�4layouts-left/headerLayoutTopMenu.phtmlnu&1i�PKc�G[�Y�"�Klayouts-left/headerLayoutTop.phtmlnu&1i�PKc�G[e�ې0�0QTlayouts-left/headerLayout.phtmlnu&1i�PK|�G[=5_��'0�helpers/mail_ajaxdownloaddocument.phtmlnu&1i�PK|�G[�Waע�%�helpers/mail_user_to_commercial.phtmlnu&1i�PK|�G[�&�܋�!�helpers/mail_ajaxsendfriend.phtmlnu&1i�PK|�G[�v��\\�scripts/commande/paiement.phtmlnu&1i�PK|�G[b�X�??#��scripts/commande/facture_mail.phtmlnu&1i�PK|�G[�s��=�=��scripts/commande/facture.phtmlnu&1i�PK|�G[.�	scripts/commande/paypalipnvalidationtest.phtmlnu&1i�PK|�G[��iAA D	scripts/commande/connexion.phtmlnu&1i�PK|�G[)�^bb�	scripts/commande/devis.phtmlnu&1i�PK|�G[*�	scripts/commande/paypalipnvalidation.phtmlnu&1i�PK|�G[�� �	scripts/commande/livraison.phtmlnu&1i�PK|�G[��q�y"y"!96	scripts/commande/validation.phtmlnu&1i�PK|�G[�Ư>�)�)"Y	scripts/commande/factureedit.phtmlnu&1i�PK|�G[ւ	scripts/contact/empty.phtmlnu&1i�PK|�G[���@!�	scripts/contact/index.phtmlnu&1i�PK|�G[�e�l��$w�	scripts/produits/ajaxaddpanier.phtmlnu&1i�PK|�G[@���44$Z�	scripts/produits/monpaniertype.phtmlnu&1i�PK|�G[C�t%
%
"�	scripts/produits/nosproduits.phtmlnu&1i�PK|�G[ACEQ��+Y�	scripts/produits/ajaxdownloaddocument.phtmlnu&1i�PK|�G[�f���.��	scripts/produits/ajaxshowpromopricecaddy.phtmlnu&1i�PK|�G[�4=j"j" �	scripts/produits/categorie.phtmlnu&1i�PK|�G[ޔZ�7T7T��	scripts/produits/detail.phtmlnu&1i�PK|�G[��'',*0
scripts/produits/ajaxshowchildqteprice.phtmlnu&1i�PK|�G[���N
N
(�6
scripts/produits/ajaxshowallchilds.phtmlnu&1i�PK|�G[�v�oo SD
scripts/produits/monpanier.phtmlnu&1i�PK|�G[����$$%G
scripts/produits/ajaxannexelist.phtmlnu&1i�PK|�G[ܺP��
�
%�J
scripts/produits/ajaxsendfriend.phtmlnu&1i�PK|�G[��>��&�X
scripts/produits/categorie_gamma.phtmlnu&1i�PK|�G[�ceRR!l
scripts/produits/ajaxfacets.phtmlnu&1i�PK|�G[�q�� �s
scripts/produits/catalogue.phtmlnu&1i�PK|�G[
����.%t
scripts/produits/categorie_default_theme.phtmlnu&1i�PK|�G[8Tlq��)��
scripts/produits/ajaxshowpromoprice.phtmlnu&1i�PK|�G[x��'��
scripts/produits/nosmarquesdetail.phtmlnu&1i�PK|�G[��9\\ ��
scripts/produits/recherche.phtmlnu&1i�PK|�G[~$��4�4#G�
scripts/produits/detailmobile.phtmlnu&1i�PK|�G[�J����)W�
scripts/produits/ajaxshowproductbox.phtmlnu&1i�PK|�G[f�	33!��
scripts/produits/nosmarques.phtmlnu&1i�PK|�G[��Lpp*�
scripts/produits/ajaxshowallproducts.phtmlnu&1i�PK|�G[ց�4��
scripts/services/faq.phtmlnu&1i�PK|�G[0��''".�
scripts/services/information.phtmlnu&1i�PK|�G[t�Gdd��
scripts/ajax/ajaxvalue.phtmlnu&1i�PK|�G[��`` W�
scripts/ajax/ajaxlivraison.phtmlnu&1i�PK|�G[a]����
scripts/ajax/ajaxaccount.phtmlnu&1i�PK|�G[W���n3n3��
scripts/ajax/ajaxcaddy.phtmlnu&1i�PK|�G[m�Qixx+�-scripts/ajax/caddyaccountrightnoslide.phtmlnu&1i�PK|�G["Yɋ��$�@scripts/ajax/caddyaccountright.phtmlnu&1i�PK|�G[rH�����Pscripts/ajax/ajaxmessage.phtmlnu&1i�PK|�G[l�z��+�Rscripts/produitspromotion/nosproduits.phtmlnu&1i�PK|�G[�Z
(��)�_scripts/produitspromotion/categorie.phtmlnu&1i�PK|�G[��Pk/	/	 uscripts/user/ajaxlistdevis.phtmlnu&1i�PK|�G[DZ�mTKTK�~scripts/user/connexion.phtmlnu&1i�PK|�G[��RYoo"'�scripts/user/ajaxlistcommand.phtmlnu&1i�PK|�G[�	�;�;��scripts/user/facture.phtmlnu&1i�PK|�G[]s��WW%�scripts/user/ajaxcaddyselection.phtmlnu&1i�PK|�G[D:�=='�!scripts/user/sendmailtoconseiller.phtmlnu&1i�PK|�G[!'scripts/user/index.phtmlnu&1i�PK|�G[	2rf��(i'scripts/user/ajaxlistcartefidelite.phtmlnu&1i�PK|�G[�	ƃ�=�=A+scripts/user/moncompte.phtmlnu&1i�PK|�G[����Riscripts/blog/actualites.phtmlnu&1i�PK|�G[��		Mlscripts/blog/sujet.phtmlnu&1i�PK|�G[�h�Mjj#�pscripts/blog/_blogShortDetail.phtmlnu&1i�PK|�G[A���;;[uscripts/blog/_blogHeader.phtmlnu&1i�PK|�G[ �Ss��"�wscripts/blog/_blogCategories.phtmlnu&1i�PK|�G[wUI�3zscripts/blog/forum.phtmlnu&1i�PK|�G[f�Բ���~scripts/blog/_blogSide.phtmlnu&1i�PK|�G[��'.�� �scripts/blog/_blogSubjects.phtmlnu&1i�PK|�G[ּG�����scripts/blog/detail.phtmlnu&1i�PK|�G[��y���scripts/blog/_blogAddPost.phtmlnu&1i�PK|�G[�~����*�scripts/blog/_blogShortDetailComment.phtmlnu&1i�PK|�G[hپ

1�layouts/menuLayout.phtmlnu&1i�PK|�G[��r'����layouts/rightLayout.phtmlnu&1i�PK|�G[��layouts/extraHeaderLayout.phtmlnu&1i�PK|�G[�����خlayouts/leftLayout.phtmlnu&1i�PK|�G[���
AAڿlayouts/breadcrumb.phtmlnu&1i�PK|�G[����
�
c�layouts/menuajax.phtmlnu&1i�PK|�G[#������layouts/extraLayout.phtmlnu&1i�PK|�G[o���Y
Y
��layouts/footerLayout.phtmlnu&1i�PK|�G[|�
f��4�layouts/extraFooterLayout.phtmlnu&1i�PK���H�