Jump to content


Corporate Sponsors


Latest News: (loading..)

Gyakutsuki

Member Since 30 Dec 2002
Offline Last Active May 17 2012, 17:47
-----

Topics I've Started

pop up country

19 March 2012, 10:54

Heelo,
I try ti insert in my website a pop up country. When the customer arrive in my website, a pop up appear and the customer must choose if it want go in USA store, french store, ou canadian strore for example.

My pb is the cookie, When i click on my webpage store, the pop up appear always or, this pop up must appear only one time, when the customer arrive on my website.

there the code

Do you have an idea with the cookie ? I think the pb is here.

Thanks
Regards,


<script type="text/javascript">
$(function() {
    $("#modal_country_selector").dialog({
		    modal: true,
		    draggable: false,
		    stack: false,
		    zIndex: 15000,
		    width: 560,
		    height: 400
    });
});
function createCookie(name,value,days) {
if (days) {
  var date = new Date();
  date.setTime(date.getTime()+(days*24*60*60*1000));
  var expires = "; expires="+date.toGMTString();
} else {
		    var expires = "";
	    }
document.cookie = name + "=" + value + expires + "; path=/";
}
function selectLanguageData(lang, country) {
    var currentLanguage = 'CA';
    if (lang == currentLanguage) {
	    createCookie('country_bind', country, 10);
	    $("#modal_country_selector").dialog("close");
	    $("#modal_country_selector").dialog("destroy");
    } else {
	    if (country == 'USA') {
		    //location.href = '/boutique/index.php?language=en';
		    return true;
	    } else {
		    if (lang == 'FR') {
			    return true;
			    //location.href = '/boutique/index.php?language=fr';
		    } else {
			    return true;
			    //location.href = '/boutique/';
		    }
	    }
    }
   
    return false;
}
</script>
<style>
.popup_countries {
    background: url("/logo.jpg") no-repeat scroll 0 0 transparent;
    border: 1px solid #000000;
    font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
    height: 360px;
    position: relative;
    text-align: left;
    text-transform: uppercase;
    width: 540px;
}
.popup_countries .text_mark1 {
    color: #646464;
    font-size: 12px;
    height: 33px;
    left: 0;
    line-height: 33px;
    overflow: hidden;
    position: absolute;
    text-align: center;
    top: 82px;
    width: 269px;
}
.popup_countries .text_mark2 {
    color: #646464;
    font-size: 12px;
    height: 33px;
    line-height: 33px;
    overflow: hidden;
    position: absolute;
    right: 0;
    text-align: center;
    top: 82px;
    width: 270px;
}
.popup_countries .lng_sel {
    color: #000000;
    font-size: 14px;
    font-weight: bold;
}
.popup_countries .lng_sel a {
    color: #000000;
    text-decoration: none;
}
.popup_countries .lng_sel a:hover {
    color: #000000;
    text-decoration: underline;
}
.popup_countries .lng_sel1 {
    left: 0;
    position: absolute;
    text-align: center;
    top: 149px;
    width: 179px;
}
.popup_countries .lng_sel2 {
    left: 100px;
    position: absolute;
    text-align: center;
    top: 149px;
    width: 180px;
}
.popup_countries .lng_sel3 {
left : 200px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 148px;
    width: 179px;
}
.popup_countries .lng_sel4 {
left : 300px;
    position: absolute;
    right: 0;
    text-align: center;
    top: 148px;
    width: 179px;
}
</style>
<div style="display: block; z-index: 1502; outline: 0px none; position: absolute; height: auto; width: 540px; top: 182px; left: 424px;" class="ui-dialog ui-widget ui-widget-content ui-corner-all  ui-resizable" tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-modal_country_selector"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span class="ui-dialog-title" id="ui-dialog-title-modal_country_selector"> </span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" role="button"><span class="ui-icon ui-icon-closethick">close</span></a></div><div style="width: auto; min-height: 0px; height: 360px;" id="modal_country_selector" class="ui-dialog-content ui-widget-content">
<div class="popup_countries">
<div class="text_mark1">CHOISIR VOTRE PAYS ET VOTRE LANGUE</div>
<div class="text_mark2">SELECT YOUR COUNTRY AND LANGUAGE</div>
   
   
<div class="lng_sel lng_sel1"><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-canada.gif"/></a><br/><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en">English</a></div>

<div class="lng_sel lng_sel2"><a onclick=" return selectLanguageData('FR', 'CAN')" href="http://www.site.com/boutique/"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-canada.gif"/></a><br/><a onclick=" return selectLanguageData('FR', 'CAN')" href="http://www.site.com/">Français</a></div>

<div class="lng_sel lng_sel3"><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-usa.gif"/></a><br/><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en">English</a></div>   
<div class="lng_sel lng_sel4"><a onclick=" return selectLanguageData('FR', 'FR')" href="http://www.site.fr"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-canada.gif"/></a><br/><a onclick=" return selectLanguageData('FR', 'FR')" href="http://www.site.fr/">Français</a></div>   
  
  
  
   
   
</div></div><div class="ui-resizable-handle ui-resizable-n"/><div class="ui-resizable-handle ui-resizable-e"/><div class="ui-resizable-handle ui-resizable-s"/><div class="ui-resizable-handle ui-resizable-w"/><div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se" style="z-index: 1001;"/><div class="ui-resizable-handle ui-resizable-sw" style="z-index: 1002;"/><div class="ui-resizable-handle ui-resizable-ne" style="z-index: 1003;"/><div class="ui-resizable-handle ui-resizable-nw" style="z-index: 1004;"/></div><div class="ui-widget-overlay" style="width: 1388px; height: 1005px; z-index: 1501;"/>

Mega Menu - Image multi css

24 January 2012, 14:50

Hello,

I try to develop a mega menu, you can see the screen in attachment.
my problem is the text. I am not strong in css. i think this contribution can be usefull if it works correctly.
yo must adapt in function.


The screen shot
[img]http://jmr-location.fr/osc/mega_menu.png[/img]


How to install :

Before you must download this jquery script : http://www.geektantra.com/2010/05/jquery-megamenu-2/
the demo is here : http://www.geektantra.com/projects/jquery-megamenu-2/

now in your header.php:


		$header .= '<script type="text/javascript" src="'ext/javascript/jquery_megamenu_2_1/javascripts/jquery.megamenu.js" /></script>' . "\n";
		$header .= '<script type="text/javascript">' . "\n";
		$header .= 'jQuery(document).ready(function(){';
		$header .= 'jQuery(".megamenu").megamenu({';
		$header .= 'activate_action: "mouseover",';
		$header .= 'deactivate_action: "mouseleave",';
		$header .= 'show_method: "slideDown",';
		$header .= 'hide_method: "slideUp",';
		$header .= 'justify: "left",';
		$header .= 'enable_js_shadow: false,';
		$header .= 'shadow_size: 3,';
		$header .= 'mm_timeout: 250';
		$header .= '});';
		$header .= '});' . "\n";
		$header .= '</script>' . "\n";
		echo $header;

Now the stylesheet :

<style>
/*
  jQuery MegaMenu Plugin
  Author: GeekTantra
  Author URI: [url="http://www.geektantra.com"]http://www.geektantra.com[/url]
*/

div.searchMegaDropDown {
  float:right;
  padding-right:5px;
  padding-top:10px;
  padding-bottom:7px;
  background-color: #a39993;
}


div.hr, span.hr{
  height: 3px;
  width:100%;
  background: #b43079;
}

div.hr hr {
  display: none;
}


div.backgroundPageDropDown {
  background-color: #a39993;
  height:43px;
}

div.PageDropDown {
  float:left;
  background-color: #a39993;
}


ul.megamenu {
  background-color: #a39993;
  margin: 0px auto;
  padding: 5px 0px 5px 0px;
  list-style: none;
  display: none;
  width:720px
}




ul.megamenu li.mm-item {
  background-color: #a39993;
  border-right: 1px solid #dadada;
  padding: 0 68px 0 68px; /* ecart entre les liens de categories */

}

ul.megamenu li {
  margin: 0;
  padding: 0;
}

ul.megamenu li.clear-fix {
  float: none;
  clear: both;
  margin: 0;
  padding: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
}


ul.megamenu a.mm-item-link:link, ul.megamenu a.mm-item-link:visited {
  position: relative;
  display: inline-block;
  color: #FFF;  
  padding: 8px 16px; /* changer ici pour l'image et l'espacer */
  margin: 0 0 0 0;
  text-decoration: none;
  text-transform:uppercase;
  z-index: 600;
  font-size: 14px;
  font-weight:bold;
}

ul.megamenu a.mm-item-link-hover:link {  
  background:url("../../../../../image/template/karawan2011/imy_con_menu_dropdown.gif") no-repeat  !important;
  background-position:left  !important;
}


ul.megamenu a.mm-item-link-hover:visited {
width:500px;
}



ul.megamenu div.mm-item-content {
  background-color: #c7bbb8;
  padding: 0px;
  margin-top:-8px;
  position: absolute;
  border: 4px solid #7e736f;
  z-index: 600;
  left:0 !important; /* ne pas supprimer */

}

.mm-js-shadow {
  background-color: #555;
  position: absolute;
  z-index: 600;
}


.mm-content-base {
  background-color: #eae6e4;
  position: relative;
  padding: 10px;
  height:305px; /* hauteur du tableau */
  z-index: 600;
}



#list-content, #list-content ul {
  margin: 0px;
  padding-left: 10px;
  margin-top:10px;

}

#list-content li {
  margin: 0px;
  padding: 10px 20px 20px 20px;  

}

#paragraph-content li{
  margin: 0px;
  padding: 0px;
  width: 50%; /* Important concernalt les liens des sous  catégories niveau 1 */
  font-size:14px;
  font-weight:bold;  
/* padding-bottom: 50px; espace entre les liens */
}


#paragraph-content, #quote-content {
  text-align: left;
/*	  padding-bottom: 50px; espace entre les paragraphes */

}

.megacolumn {
	width: 860px; /* lageur du tableau */
	float: left;
}


.megacolumnSubSubCategories {
	width: 310px;
	float:left;

}

.megacolumn-content {
	padding: 10px 0 10px;
	color:#78615A !important;
	width: 110%;  
	float:none !important;
	font-size:14px!important;


}



.megacolumn-content p {
	padding-bottom:10px!important;
	text-align:left;
}



#mega_c1, #mega_c2 {
padding-top:10px;

/*
	border-right: 1px dotted #000;
	overflow: hidden;
*/	
}

.megawrapper {
	width: 860px;
	float:left;

}
/* ******************************

			 MULTI CSS

**********************************/

.megawapperImage1 {
	width: 860px;
	height:305px;
	float:left;
	background:url("../../../../../image/template/karawan2011/my_image_1.png") no-repeat scroll 710px 200px  !important;
}

.megawapperImage2 {
	width: 860px;
	height:305px;
	float:left;
	background:url("../../../../../image/template/karawan2011/my_image_2.png") no-repeat scroll 710px 100px  !important;
}


.megawapperImage3 {
	width: 860px;
	height:200px;
	float:left;
	background:url("../../../../../image/template/karawan2011/my_image3.png") no-repeat scroll 710px 5px  !important;
}


.megawrapper ul {
/*	background-image: none;	*/
	position: relative;
	top: auto;
	padding-bottom: 10px;
}

.megawrapper ul li {
/*	background-color: transparent;*/

}

.megawrapper ul li a{
	height: 1%;
	position: relative;

}

.megawrapper ul li a:hover {
	height: 1%;
	position: relative;
	width:100%;

}

/* sous sous catégorie */

.megawrapperSubSubCategories {
/*
	background-position: bottom;
	background-repeat: repeat-x;
	padding-top: 15px;
	width: 860px;
	float:left;
*/
}

.megawrapperSubSubCategories ul a{
	font-size:12px;
	text-transform:none;
	color: #78615A !important;
	font-weight:normal;
	font-family:Arial, Helvetica, sans-serif;	
}


.megawrapperSubSubCategories li a{
	font-size:12px;
	text-transform:none;
	color: #78615A !important;
	font-weight:normal;
	font-family:Arial, Helvetica, sans-serif;	
}



.megawrapperSubSubCategories ul li a:hover {
	color: #78615A !important;
	font-size:12px;
	font-weight:normal;		
	font-family:Arial, Helvetica, sans-serif;	

}

</style>

Now the script in yoour header or a files :

// Create the root unordered list
	 function tep_make_catsf_ullist($rootcatid = 0, $maxlevel = 4){
	   global $idname_for_menu, $cPath_array, $show_full_tree, $languages_id;

		$show_full_tree = true;
		$idname_for_menu = 'megamenu';  // see superfish.css
		$classname_for_selected = ''; // see superfish.css
		$classname_for_parent = ''; //see superfish.css

// Global Variables
	 $GLOBALS['this_level'] = 0;
// Modify category query if not fetching all categories (limit to root cats and selected subcat tree)
		if (!$show_full_tree) {
		  $parent_query = 'AND (c.parent_id = "0"';
		  if (isset($cPath_array)) {
			$cPath_array_temp = $cPath_array;
			foreach($cPath_array_temp AS $key => $value) {
			  $parent_query .= ' OR c.parent_id = "'.$value.'"';
			}
			unset($cPath_array_temp);
		  }
		  $parent_query .= ')';  
  } else {
		  $parent_query = '';
  }

  $result = tep_db_query('select c.categories_id,
									   cd.categories_name,
									   c.parent_id
								from ' . TABLE_CATEGORIES . ' c,
									 ' . TABLE_CATEGORIES_DESCRIPTION . ' cd
								where c.categories_id = cd.categories_id
								and c.virtual_categories = 0
								and cd.language_id="' . (int)$languages_id .'"
								'.$parent_query.'
								order by sort_order,
										 cd.categories_name
								');
  
  while ($row = tep_db_fetch_array($result)) {  
		  $table[$row['parent_id']][$row['categories_id']] = $row['categories_name'];
		}
		$output .= '<ul class="'.$idname_for_menu.'">'; // categorie sf_mmenu
		$output .= '<li>';
		$output .= tep_make_catsf_ulbranch($rootcatid, $table, 0, $maxlevel);
// Close off nested lists
		for ($nest = 0; $nest <= $GLOBALS['this_level']; $nest++) {
		  $output .= '</li>';
		  $output .= '</ul>';
  }

		return $output;
	  }

// Create the branches of the unordered list
	  function tep_make_catsf_ulbranch($parcat, $table, $level, $maxlevel) {
		global $cPath_array, $classname_for_selected, $classname_for_parent, $valCpathCss;
		$list = $table[$parcat];

		while(list($key,$val) = each($list)){
		  if ($GLOBALS['this_level'] != $level) {
			if ($GLOBALS['this_level'] < $level) {
			 $output .= "\n";
			 $output .= '<ul id="paragraph-content">';
			 $output .= '<li class="list-content">';
			$output .= '<div>';

			 if ($GLOBALS['this_level'] == 0) {
			   $output .= '<div class="megawrapper">';  
			   $output .= '<div class="megawapperImage'.$valCpathCss.'">';  
			   $output .= '<div  id="mega_c2" class="megacolumn-content">';
			 }
			 if ($GLOBALS['this_level'] == 1) {
			   $output .= '<div class="megawrapperSubSubCategories"
  
	
style="	
	padding-top:10px !important;
	width:500px !important;	
	margin-left:-90px !important;
padding-bottom:10px !important;
	border-right: 1px solid #bfb9b7 !important;
font-weight:bold !important;
font-size:12px !important;
font-weight:bold !important;
font-size:12px !important;
   "
>';

				$output .= '<div  style="">';
				$output .= '<div style="
	">';
			 }

			 if ($GLOBALS['this_level'] == 2) {
			   $output .= '<div style="	  margin-left:-70px!important;
	padding-top:10px!important;
		  width:275px!important;	  
/*
	padding-top:10px!important;
	 padding-bottom:10px!important;
float:none!important;
  
*/	
	 " >';
			   $output .= '<div>';
			   $output .= '<div>';
			 } else {
			   $output .= '';
			 }





		  $output .= '<ul>';  
  
			} else {
			  for ($nest = 1; $nest <= ($GLOBALS['this_level'] - $level); $nest++) {
			   $output .= '</div>';
			   $output .= '</div>';
			   $output .= '</div>';
			   $output .= '</div>';
			   $output .= '</li>';
			   $output .= '</ul>';
	
			  } // end for  
			} // end if
			$GLOBALS['this_level'] = $level;
		  }  // end if
		  if (isset($cPath_array) && in_array($key, $cPath_array) && $classname_for_selected) {
			$this_cat_class = ' class="'.$classname_for_selected.'"';
		  } else {
			$this_cat_class = '';
		  }

//		  $output .= '<li class="cat_lev_'.$level.'"><a href="';
			 $output .= '<li><a href="'; // affichage du lien
  


  
		  if (!$level) {
			unset($GLOBALS['cPath_set']);
			$GLOBALS['cPath_set'][0] = $key;
			$cPath_new = 'cPath=' . $key;
			$valCpathCss = implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1)));
		  } else {
			$GLOBALS['cPath_set'][$level] = $key;
			$cPath_new = 'cPath=' . implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1)));
		  }
  
		  if (tep_has_category_subcategories($key) && $classname_for_parent) {
			$this_parent_class = ' class="'.$classname_for_parent.'"';
		  } else {
			$this_parent_class = '';
		  }  

// entete couleur du menu
		  $output .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"'.$this_parent_class.' >'.$val;
  
		  if (SHOW_COUNTS == 'true') {
			$products_in_category = tep_count_products_in_category($key);
			if ($products_in_category > 0) {
				$output .= '&nbsp;(' . $products_in_category . ')';
			}
		  }

		  $output .= '</a>';
		  if (!tep_has_category_subcategories($key)) {
			 $output .= '</li>';
		  }	  
	  
		  if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) {
			$output .= tep_make_catsf_ulbranch($key,$table,$level + 1,$maxlevel);
		  }
		} // End while loop
		return $output;
	  }

// Initialize HTML and info_box class if displaying inside a box
// Generate a bulleted list (uses configuration options above)
	  $categories_string = tep_make_catsf_ullist();
	   $header_template = '<!-- header template  megamenu start -->';
	   $header_template .= '<div class="clear"></div>';
	   $header_template .= '<div class="backgroundPageDropDown">';  
	   $header_template .= '<div class="PageDropDown" >';
	   $header_template .=  $categories_string; // display the categories
  
	   $header_template .= '</div>'; // end PageDropDown
	   $header_template .= '<div class="searchMegaDropDown">';
	   $header_template .= tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
	   $header_template .= tep_image_submit('button_quick_find.png', MODULE_BOXES_SEARCH_BOX_TITLE, 'align="top"') . ' '. tep_draw_input_field('keywords', '', 'size="60" maxlength="30" style="width: 90px;"') . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('button_quick_find_ok.png', MODULE_BOXES_SEARCH_BOX_TITLE, 'align="top"') .'</a>';
	   $header_template .= '</form>';
	   $header_template .= '</div>'; // end search
	   $header_template .= '</div>'; // end backgroundPageDropDown
	   $header_template .= '<div class="clear" style="padding-top:0; padding-bottom:0;"></div>';
	   $header_template .= '<div class="hr"></div>' . "\n";
	   $header_template .= '<!-- header template megamenu  end -->' . "\n";

echo   $header_template;


that's all. It must work.

Automatic products tab

07 December 2011, 01:01

Hello,

I try to develop a new product tab module. All i seen is manual.

If in my description I have <h3> then the tab is created automaticly

it does'nt work again fine, but if you can help me, i think it will be a good contriburion.

delete line 135 : <?php echo stripslashes($product_info['products_description']); ?>

<style>
.rte {
	color: black;
	text-align: left;
}
.clear {
	clear: both;
}
/*couleur onglet*/
#more_info_tabs li a.selected {
	background-color: #B5A432;
	color: #FFFFFF;
}
#more_info_tabs li a {
	border-left: 1px solid #FFFFFF;
	color: #FFFFFF;
	height: auto;
	padding: 7px 20px !important;
}
ul.idTabsShort li a.selected {
	border: medium none;
	color: black;
	padding: 5px 15px 9px 0;
}
ul.idTabs li a.selected {
	height: auto;
	padding-left: 0;
}
ul.idTabsShort li a {
	border: medium none;
	color: #999999;
	font-weight: normal;
	padding: 8px 12px 9px 0 !important;
	width: auto;
}
ul.idTabs li a {
	color: #0066CC;
	display: block !important;
	font-weight: bold;
	height: 10px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}
ul.idTabsShort li {
	line-height: 15px !important;
}
ul.idTabsShort {
	border-style: solid none dotted;
}
ul.idTabs {
	list-style-type: none;
}
</style>
<?php
		$products_description = stripslashes($product_info['products_description']);
		 $products_description_content .= '<script type="text/javascript">jQuery(document).ready(function () { jQuery(\'#idTab1\').remove(); jQuery(\'#more_info_tab_more_info\').parent().remove(); });</script>' . "\n";
 
// tab menu
		 $return = "";
   $first = true;
	if (strpos($desc, '<h3>') !== FALSE) {
	 $cut = explode('<h3>', trim($desc));
	 foreach ($cut as $k => $part) {
	  if (trim($part) != "") {
	   if (strpos($part, "</h3>") !== FALSE) {
		$t = substr($part, 0, strpos($part, '</h3>'));
		$return .= '<li><a href="#idTab100' . $k . '"' . ($first ? 'class="selected"' : '' ) . '>' . $t . '</a></li>' . "\n";
		$first = false;
	   }
	  }
	 }
	}
 
// content menu in the tab
	   $return1 = "";
	$desc = $products_description;
	if (strpos($desc, '<h3>') !== FALSE) {
	 $cut = explode('<h3>', trim($desc));
	 foreach ($cut as $k => $part) {
	  if (trim($part) != "") {
	   if (strpos($part, "</h3>") !== FALSE) {
		$r = substr($part, strpos($part, '</h3>') + 5);
		$return1 .= '<div id="idTab100' . $k . '" class="rte">' . $r . '</div>' . "\n";
	   }
	  }
	 }
				  }
//		  $products_description_content .= '<div class="clear" id="more_info_block">' . "\n";
		  $products_description_content .= '<div  id="more_info_block">' . "\n";
		  $products_description_content .= '<ul class="idTabs idTabsShort" id="more_info_tabs">' . "\n";
		  $products_description_content .= ' '.$return . $return1 . "\n";
		  $products_description_content .= '</ul>' . "\n";
		  $products_description_content .= '</div>' . "\n";
//		  $products_description_content .= '</div>' . "\n";
 
echo $products_description_content;
?>

Regards

Javascript menu : value javascript in php

13 July 2011, 22:06

I try to implement this script http://tympanus.net/...nu-with-jquery/

It allow to show a specfic menu allowing to realise different actions (save, move, delete).

my problem is to know if i can have the value of the checbox in my sheet for erase it.


Script

<?php
  while ($products = tep_db_fetch_array($products_query)) {
	$rows++;

	if (strlen($rows) < 2) {
  	$rows = '0' . $rows;
	}
// example
// the first line concern the checkbox
?>
													
[b]            	<td class="check"><input id="check_<?php echo $products['products_id']; ?>" name="<?php echo $products['products_id']; ?>" type="checkbox" value="1" AUTOCOMPLETE=OFF /></td>[/b]

   			<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_PREVIEW, '&pID=' . $products['products_id'] . '&origin=' . FILENAME_STATS_PRODUCTS_VIEWED . '?page=' . $_GET['page'], 'NONSSL') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', TEXT_IMAGE_PREVIEW) .'</a>'; ?></td>
 <?php
  } // end while
?>

...
<!-- Display the menu -->
<div id="actionsBox" class="actionsBox">
	<div id="actionsBoxMenu" class="menu">
		<span id="cntBoxMenu"></span>
		<a class="button box_action">Archive</a>
   		<?php echo '<a class="button box_action" href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '&resetViewed=1&products_id=' . $products['products_id'] . '&action=delete_all&page=' . $page) . '">'. IMAGE_DELETE . '</a>'; ?>
		<a id="closeBoxMenu" class="button">X</a>
	</div>
</div>

    	<script type="text/javascript">
        	$(function() {
            	/* tells us if we dragged the box */
            	var dragged = false;
				
            	/* timeout for moving the mox when scrolling the window */
            	var moveBoxTimeout;
				
            	/* make the actionsBox draggable */
            	$('#actionsBox').draggable({
                	start: function(event, ui) {
                    	dragged = true;
                	},
                	stop: function(event, ui) {
                    	var $actionsBox = $('#actionsBox');
                    	/*
                    	calculate the current distance from the window's top until the element
                    	this value is going to be used further, to move the box after we scroll
             			*/
                    	$actionsBox.data('distanceTop',parseFloat($actionsBox.css('top'),10) - $(document).scrollTop());
                	}
            	});
				
            	/*
            	when clicking on an input (checkbox),
            	change the class of the table row,
            	and show the actions box (if any checked)
     			*/
            	$('#mytable input[type="checkbox"]').bind('click',function(e) {
                	var $this = $(this);
                	if($this.is(':checked'))
                    	$this.parents('tr:first').addClass('selected');
                	else
                    	$this.parents('tr:first').removeClass('selected');
                	showActionsBox();
            	});
				
            	function showActionsBox(){
                	/* number of checked inputs */
                	var BoxesChecked = $('#mytable input:checked').length;
                	/* update the number of checked inputs */
                	$('#cntBoxMenu').html(BoxesChecked);
                	/*
                	if there is at least one selected, show the BoxActions Menu
                	otherwise hide it
         			*/
                	var $actionsBox = $('#actionsBox');
                	if(BoxesChecked > 0){
                    	/*
                    	if we didn't drag, then the box stays where it is
                    	we know that that position is the document current top
                    	plus the previous distance that the box had relative to the window top (distanceTop)
             			*/
                    	if(!dragged)
                        	$actionsBox.stop(true).animate({'top': parseInt(15 + $(document).scrollTop()) + 'px','opacity':'1'},500);
                    	else
                        	$actionsBox.stop(true).animate({'top': parseInt($(document).scrollTop() + $actionsBox.data('distanceTop')) + 'px','opacity':'1'},500);
                	}
                	else{
                    	$actionsBox.stop(true).animate({'top': parseInt($(document).scrollTop() - 50) + 'px','opacity':'0'},500,function(){
                        	$(this).css('left','50%');
                        	dragged = false;
                        	/* if the submenu was open we hide it again */
                        	var $toggleBoxMenu = $('#toggleBoxMenu');
                        	if($toggleBoxMenu.hasClass('closed')){
                            	$toggleBoxMenu.click();
                        	}
                    	});
                	}
            	}
				
            	/*
            	when scrolling, move the box to the right place
     			*/
            	$(window).scroll(function(){
                	clearTimeout(moveBoxTimeout);
                	moveBoxTimeout = setTimeout(showActionsBox,500);
            	});
				
            	/* open sub box menu for other actions */
            	$('#toggleBoxMenu').toggle(
            	function(e){
                	$(this).addClass('closed').removeClass('open');
                	$('#actionsBox .submenu').stop(true,true).slideDown();
            	},
            	function(e){
                	$(this).addClass('open').removeClass('closed');
                	$('#actionsBox .submenu').stop(true,true).slideUp();
            	}
        	);
				
            	/*
            	close the actions box menu:
            	hides it, and then removes the element from the DOM,
            	meaning that it will no longer appear
            	//old 
            	$('#closeBoxMenu').bind('click',function(e){
                	$('#actionsBox').animate({'top':'-50px','opacity':'0'},1000,function(){
                    	$(this).remove();
                	});
            	});
            	*/

            	$('#closeBoxMenu').bind('click',function(e){
       			$('#actionsBox').animate({'top':'-50px','opacity':'0'},1000);
            	});


				
            	/*
            	as an example, for all the actions (className:box_action)
            	alert the values of the checked inputs
     			*/
            	$('#actionsBox .box_action').bind('click',function(e){
                	var ids = '';
                	$('#mytable input:checked').each(function(e,i){
                    	var $this = $(this);
                    	ids += 'id : ' + $this.attr('id') + ' , value : ' + $this.val() + '\n';
       			});
                	alert('checked inputs:\n'+ids);

            	});
        	});
    	</script>

I whish have the value of $this.attr('id') . this value concern the id checbox: <input id="check_<?php echo $products['products_id']; ?>" name="<?php echo $products['products_id']; ?>" type="checkbox" value="1" AUTOCOMPLETE=OFF /> for delete all data for example.

La valeur $_POST ou $_GET does'nt work.

thank you.