HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/cloudlinux/alt-php54/root/usr/share/pear/RVSeagullMod/modules/tryout/templates/Category.html
<!-- {if:noLink} -->
<!--     {if:downloadTemplate} -->
<!--         <flexy:include src="ImportTemplateMenu.html" /> -->
<!--     {end:} -->
<!-- {end:} -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td id="paddingForm">
        <!-- Download template disable tabmenu -->
        <!-- is not reseller and root -->
        {if:!isAdmin()}
            {if:!noLink}
            <div id="topNavigator">
            
                <div><img src="{rvs_url_www}/themes/default/sitebuilder/images/designNav01.gif" alt="" width="19" height="27" /></div>
                <div class="openCurrent"></div>
                <div class="linkCurrent">{translate(#Template Catalogue#):h}</div>
                <div class="closeCurrent"></div>
                {if:allowDIYTemplate}
                <div class="openActive"></div>
                <div class="linkActive"><a  href="{makeUrl(#view#,#diytemplate#,#sitebuilderpro#)}create/1" class="topTabDisable" id="createDIYTemplate" >{translate(#Create DIY Template#):h}</a></div>
                <div class="closeActive"></div>
                <div style="float:right"><img src="{webThemeUrl}/themes/default/sitebuilder/images/designNav09.gif" alt="" width="3" height="27" /></div>
				<div class="openActive"></div>
  				 {end:}
                {if:allowImportTemplate} 
                <div class="openActive"></div>
                <div class="linkActive"><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}submitUserImport/1" class="topTabDisable"  id="importYourTemplate" >{translate(#Export And Import#):h}</a></div>
                <div class="closeActive"></div>
                <div style="float:right"><img src="{webThemeUrl}/themes/default/sitebuilder/images/designNav09.gif" alt="" width="3" height="27" /></div>
                {end:}
            </div>
            {else:}
            <div id="topNavigator">
                <div><img src="{rvs_url_www}/themes/default/sitebuilder/images/designNav01.gif" alt="" width="19" height="27" /></div>
                <div class="openActive"></div>
                {if:tryoutMode}
                    <div class="linkActive">{translate(#Template Catalogue#):h}</div>
                {else:}
                    <div class="linkActive"><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}"  class="topTabDisable" id="templateCatalogue">{translate(#Template Catalogue#):h}</a></div>
                {end:}
                <div class="closeActive"></div>
                {if:allowDIYTemplate}
                <div class="openActive"></div>
                <div class="linkActive"><a href="{makeUrl(#view#,#diytemplate#,#sitebuilderpro#)}" class="topTabDisable" id="createDIYTemplate" >{translate(#Create DIY Template#):h}</a></div>
                <div class="closeActive"></div>
                <div style="float:right"><img src="{webThemeUrl}/themes/default/sitebuilder/images/designNav09.gif" alt="" width="3" height="27" /></div>
                {end:}
                {if:allowImportTemplate}
                <div class="openCurrent"></div>
                <div class="linkCurrent"><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}submitUserImport/1" class="topTabActive" id="importYourTemplate" >{translate(#Export And Import#):h}</a></div>
                <div class="closeCurrent"></div>
                <div style="float:right"><img src="{webThemeUrl}/themes/default/sitebuilder/images/designNav09.gif" alt="" width="3" height="27" /></div>
                {end:}
            </div>
            {end:}
        {else:}
        <!-- is Admin reseller and root -->
        <div id="topNavigator">
                <div><img src="{rvs_url_www}/themes/default/sitebuilder/images/designNav01.gif" alt="" width="19" height="27" /></div>
                <div class="openCurrent"></div>
                <div class="linkCurrent">{translate(#Template Catalogue#):h}</div>
                <div class="closeCurrent"></div>
                {if:!noLink}
                <!-- Diy Template show in admin -->
                {if:allowDIYTemplate}
                <div class="openActive"></div>
                <div class="linkActive"><a href="{makeUrl(#view#,#diytemplate#,#sitebuilderpro#)}" class="topTabDisable" id="createDIYTemplate" >{translate(#Create DIY Template#):h}</a></div>
                <div class="closeActive"></div>
                <div style="float:right"><img src="{webThemeUrl}/themes/default/sitebuilder/images/designNav09.gif" alt="" width="3" height="27" /></div>
                {end:}
				{if:allowImportTemplate}
				 <!-- Import Template for Admin -->
                <div class="openActive"></div>
                <div class="linkActive"><a href="{makeUrl(##,#uploadtemplate#,#sitebuilder#)}parent/1" target="_blank" class="topTabDisable"  id="importYourTemplate" >{translate(#Export And Import#):h}</a></div>
                <div class="closeActive"></div>
                <div style="float:right"><img src="{webThemeUrl}/themes/default/sitebuilder/images/designNav09.gif" alt="" width="3" height="27" /></div>
                {end:}
                {end:}
        <!-- start test witoon -->
        </div>
            <!-- <div><img src="{webThemeUrl}/themes/{theme}/sitebuilder/images/designNav08.gif" alt="" width="100%" height="2" /></div>  -->
        {end:}
        
            <div class="frameDesign">
                <div class="border">
                    <div class="border2">
                        <table border="0" cellspacing="0" cellpadding="0" class="tableInfo" width="100%">
                            <tr>
                            <td>
                                {if:submitUserImport}               
                                    <flexy:include src="UploadTemplate.html" />
                                {end:}
                            <!-- Start don't show template catague action reupload template -->
                            {if:!reupload}
                                <!-- START BODY -->
                                
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr><td><div id="shadow"></div></td></tr>
									<tr>
										<td id="numPage" align="center" valign="top">
											<table cellpadding="0" cellspacing="0" width="95%" class="linestep2">
												<tr>
													<td align="left">
													<div>
														{if:template_total_select}
                                                             {template_total_select} {translate(#templates#)}
														{end:} 
														{translate(#of#):h} {totalTemplate} {translate(#total templates#)}, {translate(#Page#):h} {currentPage} {translate(#of#):h} {totalPage}
													</div>
													
													<form name="SelectCategory" method="post" FLEXY:IGNORE="yes" action="">
													
													<div style="padding-top:8px;"></div>
													<div>
														<span> 
														{showPager:h}                                                               <!--{firstPage:h} {prevPage:h}  {translate(#Page#):h}  {currentPage} {translate(#of#):h} {totalPage} {nextPage:h} {lastPage:h}-->
														</span>
													
															<!-- {translate(#Template / page#):h} :-->
															{if:listNumPageOption}
															<select name="getNumPage" id="getNumPage" onChange="MM_jumpMenu5('top',this,0)" class="menu">
																{listNumPageOption:h}
															</select>
															{end:}
														</div>
														
														</form>
														
													</td>													
													<td align="right">
														<div>&nbsp;</div>
														<div style="padding-top:8px;"></div>
														<div> 
														{if:tryoutMode}
														<!-- 
                                                        <img class="SPicon SPflash_tem" src="{rvs_url_www}/themes/default/sitebuilder/images/spacer.gif" alt="" width="21" height="20" border="0" align="absmiddle" />
                                                        {translate(#Flash Template#):h}
                                                        <img class="SPicon SPfix_align" src="{rvs_url_www}/themes/default/sitebuilder/images/spacer.gif" alt="" width="21" height="20" border="0" align="absmiddle" />
                                                        {translate(#Fixed align#):h}
                                                        <img class="SPicon SPfix_width" src="{rvs_url_www}/themes/default/sitebuilder/images/spacer.gif" alt="" width="21" height="20" border="0" align="absmiddle" />
                                                        {translate(#Fixed width#):h}             
														 -->
														{else:}
														<img class="SPicon SPflash_tem" src="{rvs_url_www}/themes/{theme}/sitebuilder/images/spacer.gif" alt="" width="21" height="20" border="0" align="absmiddle" />
														{translate(#Flash Template#):h}
														<img class="SPicon SPfix_align" src="{rvs_url_www}/themes/{theme}/sitebuilder/images/spacer.gif" alt="" width="21" height="20" border="0" align="absmiddle" />
														{translate(#Fixed align#):h}
														<img class="SPicon SPfix_width" src="{rvs_url_www}/themes/{theme}/sitebuilder/images/spacer.gif" alt="" width="21" height="20" border="0" align="absmiddle" />
														{translate(#Fixed width#):h}		
														{end:}
														</div>									
													</td>													
												</tr>
											</table>                                                        
										</td>
									</tr>
									<tr><td class="lineTopstep2" valign="top"><img src="{webThemeUrl}/themes/{theme}/sitebuilder/images/spacer.gif" alt="" width="1" height="1" border="0" align="absmiddle" /></td></tr>
									<tr><td valign="top"><img src="{webThemeUrl}/themes/{theme}/sitebuilder/images/spacer.gif" alt="" width="1" height="10" border="0" /></td></tr>
                                    <tr>
                                        <td align="left" valign="top">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                	<td valign="top" width="195" id="leftmenuStep2">
                                                		<!-- Start List Category -->
                                                		<div>{translate(#Template Categories#):h}</div>
                                                		<ul>
														{if:isAdmin()}
														<!-- Display Admin RVSiteBuilder -->
														
															<!-- DIY Menu Template Admin -->
															{if:submitUserImport}
																<li><a href="{makeUrl(##,#admindownloadtemplate#,#sitebuilder#)}select_category_id/0/templatestyle/10/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
															{else:}
															
																{if:downloadTemplate}
															     	<li><a href="{makeUrl(##,#admindownloadtemplate#,#sitebuilder#)}select_category_id/DiyPicture/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
															    {else:}
															    
															    	{if:!tryoutMode}
																		<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/0/templatestyle/10/picture_style/{picture_style}/getNumPage/{getNumPage}/" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
																	{else:}
																		<li><a href="{makeUrl(##,#templatecategory#,#tryout#)}select_category_id/0/templatestyle/10/picture_style/{picture_style}/getNumPage/{getNumPage}/" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
																	{end:}
															     	
															    {end:}
															     	
															{end:}
															<!-- END Menu DIY Template Admin-->
																
															<!-- Menu Import Template Admin-->
															{if:submitUserImport}	
																<li><a href="{makeUrl(##,#downloadtemplate#,#sitebuilder#)}select_category_id/23/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}/import_template_style/1" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
															{else:}
															
																{if:downloadTemplate}
																<!-- admin import template -->
																	<li><a href="{makeUrl(##,#admindownloadtemplate#,#sitebuilder#)}select_category_id/23/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/import_template_style/1" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
															    {else:}
															    
															    	{if:!tryoutMode}
																		<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/0/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/import_template_style/1" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
																	{else:}
																		<li><a href="{makeUrl(##,#templatecategory#,#tryout#)}select_category_id/0/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/import_template_style/1" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
																	{end:}		
																														     	
															    {end:}
															     
															{end:}
															     
															<!-- End Menu Import Template Admin-->
														
														
															<!-- Start list category -->
															{foreach:aCategory,kCategory,vCategory}
																{if:submitUserImport}
																	{if:vCategory[focus]}																
															     	<li><a href="{makeUrl(##,#downloadtemplate#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}" class="curr">{vCategory[name]:h}</a></li>
																	{else:}																
																	<li><a href="{makeUrl(##,#downloadtemplate#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}">{vCategory[name]:h}</a></li>
															     	{end:}																																
																	
																{else:}
																  {if:downloadTemplate}
																	
																	{if:vCategory[focus]}		
																	<!-- admin alltemplate download-->														
															     	<li><a href="{makeUrl(##,#admindownloadtemplate#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
																	{else:}																
																	<li><a href="{makeUrl(##,#admindownloadtemplate#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
															     	{end:}
															     {else:}
															      	{if:!tryoutMode}
																		{if:vCategory[focus]}																
														     			<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
																		{else:}																
																		<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
														     			{end:}
														     		{else:}
														     			<!-- Is tryout -->
														     			{if:vCategory[focus]}																
														     			<li><a href="{makeUrl(##,#rvscategory#,#tryout#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
																		{else:}																
																		<li><a href="{makeUrl(##,#rvscategory#,#tryout#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
														     			{end:}
														     		{end:}<!-- END if Tryout -->

															     {end:}<!-- END if download -->
															     																										
																{end:}
															{end:}														
														</ul>
														<!-- End List Category -->
														
														
														<!-- END isAdmin() -->														
														{else:}
														
															<!-- Menu DIY Template User-->
															{if:submitUserImport}
																<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/DiyPicture/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
															{else:}
																{if:!tryoutMode}
																	<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/DiyPicture/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
																{else:}
																    {if:!tryoutWebsite}
																	   {if:!tryoutMode}
																	<li><a href="{makeUrl(##,#rvscategory#,#tryout#)}select_category_id/DiyPicture/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/" flexy:raw="{classFocusDiy}">{translate(#DIY Template#):h}</a></li>
																	   {end:}
																	{end:}
																{end:}
															
															{end:}
															<!-- End Menu DIY Template User -->
															
															<!-- Menu Import Template User-->
															{if:submitUserImport}																
																<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/23/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}/import_template_style/1/" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
															{else:}
																			
																{if:!tryoutMode}
																	<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/23/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/import_template_style/1/" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
																{else:}
																    {if:!tryoutWebsite}
																	   {if:!tryoutMode}
																	<li><a href="{makeUrl(##,#rvscategory#,#tryout#)}select_category_id/23/templatestyle/0/picture_style/{picture_style}/getNumPage/{getNumPage}/import_template_style/1/" flexy:raw="{classFocusImport}">{translate(#Import template#):h}</a></li>
																	   {end:}
																	{end:}
																{end:}
																
															{end:}  
															<!-- End Menu Import Template User  -->
														
														
														
														
														<!-- Start list category -->
														 {foreach:aCategory,kCategory,vCategory}
														 
															{if:submitUserImport}
																{if:vCategory[focus]}																
														     	<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}" class="curr">{vCategory[name]:h}</a></li>
																{else:}																
																<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/submitUserImport/{submitUserImport}">{vCategory[name]:h}</a></li>
														     	{end:}
															{else:}
															
															    {if:!tryoutMode}
																	{if:vCategory[focus]}																
														     		<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
																	{else:}															
																	<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
														     		{end:}
														     	{else:}
														     		<!-- Is tryout -->
																	{if:tryoutWebsite}
																	   {if:vCategory[focus]}                                                               
	                                    <li><a href="{makeUrl(##,#templateCategory#,#rvuser#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
	                                   {else:}                                                             
	                                    <li><a href="{makeUrl(##,#templateCategory#,#rvuser#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
	                                   {end:}
																	{else:}
																	
															     		{if:vCategory[focus]}																
															     		<li><a href="{makeUrl(##,#rvscategory#,#tryout#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
																		{else:}																
																		<li><a href="{makeUrl(##,#rvscategory#,#tryout#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
															     		{end:}
																    {end:}
														     	{end:}
														     	
															{end:}
															<!--  
															{if:vCategory[focus]}																
														     <li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/" class="curr">{vCategory[name]:h}</a></li>
															{else:}																
															<li><a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}select_category_id/{kCategory}/templatestyle/{template_type_id}/picture_style/{picture_style}/getNumPage/{getNumPage}/">{vCategory[name]:h}</a></li>
														     {end:}
														     -->
														
														{end:}
														
														</ul>
														<!-- End List Category -->														
														
														
														{end:}                            
														
														
													</td>
                                                    <td align="left" valign="top" style="padding:0 15px;">                                                    
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
															<tr>
																<td align="left" valign="bottom" class="cateName">
																{if:isAllCategory}
																	{translate(#All Categories#):h}
																{else:}
																	{selectCategoryName:h}
																{end:}
																{if:import_template_style}
																	[{translate(#Import Template#):h}]
																{end:}
																</td>
																<td align="right" valign="top" class="cateName02">
																	<!-- Search Template -->
																	<form name="SelectCategory3" method="post" FLEXY:IGNORE="yes" action="">
																	<div style="padding-bottom:8px;">
																		<label for="rvsCategoryProductIdSearch">{translate(#Search ID#):h} :</label>
																		<input type="text" name="productIdSearch" id="productIdSearch" value="{productIdSearch}" size="20" style="width:140px;" /> 
																		<input type="hidden" name="select_category_id" value="0">
																		<input type="submit" name="search" value="" class="btnSearch">
																	</div>
																	</form>
																	<!-- End Search Template -->
																</td>
															</tr>
															<tr>
																<td align="left" valign="top" colspan="2" style="padding-top:15px;">
																	<table width="100%" border="0" cellspacing="0" cellpadding="0" id="tableTemplate">
																	{if:template_total_select}
																		{foreach:aShowData,k1,v1}   
																		<tr>
																			{foreach:v1,k2,v2}
																			<td  valign="top">
																				<div id="{v2[pre_]}div_{v2[template_item_id]}">
																				
																				{if:v2[is_current]}
																					<div class="t_current">
																				{else:}
																					<div class="t_normal">
																				{end:}
																					<!-- Display template id -->
																					{if:v2[is_current]}
																						<!-- {translate(#Current Template#)} -->{translate(#Template Id#)} {v2[products_id]}
																					{else:}
																						{if:v2[products_id]}
																							{translate(#Template Id#)}
																							<!-- {if:tryoutMode}
																							     {v2[products_id]}
																							{else:} -->
																						          {this.plugin(#changProductId#,v2[products_id])}
																						  <!--  {end:}-->
																						{end:}
																					{end:} 
																					</div>
																					
																					<div class="width">
																					<!-- end test witoon -->
																			   
																						<div>
																							{if:v2[template_item_folder]}
																								
																								{if:v2[is_current]}
																									<div class="current">
																								{else:}
																								     
																								     <div>
																									 {if:tryoutMode}
																									     <div class="normal">
																									         <img id="{v2[pre_]}{v2[template_item_id]}" src="{v2[template_url]}/{v2[template_item_folder]}/s_preview.{v2[template_type_s_preview]}" width="218" height="168" border="0" style="border:#B9B9B9 solid 2px;">
																									     </div>
																									 {else:}
																									     <div class="normal" 
																									           onmouseover="this.setAttribute('class','hover'),this.setAttribute('className','hover')" 
																									           onMouseOut="this.setAttribute('class','normal'),this.setAttribute('className','normal')">
																										     <a id="alink{v2[pre_]}{v2[template_item_id]}" href="{pagerUrl}template_item_id={v2[template_item_id]}&action=add" >
																											     <img id="{v2[pre_]}{v2[template_item_id]}" src="{v2[template_url]}/{v2[template_item_folder]}/s_preview.{v2[template_type_s_preview]}" width="218" height="168" border="0" style="border:#B9B9B9 solid 2px;">
																										     </a>
																									     </div>
																									 {end:}
																									 
																								{end:}
																								    </div>
																						</div>
																						<div class="tool">
																							<div class="left">
																							<!-- Now at tryoutlogin template catalogue can't preview -->
																							{if:!tryoutMode}
																							<span>  
																								<a style="cursor:pointer;"id="pview{v2[pre_]}{v2[template_item_id]}" popview="{makeUrl(##,#preview#,#sitebuilder#)}template_item_id/{v2[template_item_id]}/action/view/color_id_hid/{v2[default_color_id]}/picture_id/{v2[default_picture_id]}/updateNav/1" OnClick="window.open(this.getAttribute('popview'),'','status=0,scrollbars=1').focus()">
																								  <img class="SPicon SPpreview" src='{rvs_url_www}/themes/{theme}/sitebuilder/images/spacer.gif' alt="{translate(#Preview#)}" title="{translate(#Preview#)}" width="19" height="18" >
																								 </a>
																							 </span>
																							{end:}
																							<!-- start test2 witoon -->
																							{if:!noLink}
													
																							<span>
																								<!-- is current template show edit / reupload -->
																									   {if:v2[is_current]}
																											<!--  diytemplate -->
																											
																												{if:v2[isDiyTemplate]}
																													<a href="{makeUrl(#editview#,#diytemplate#,#sitebuilderpro#)}template_item_id/{v2[template_item_id]}">
																														<img class="SPicon SPedit" src="{webThemeUrl}/themes/default/sitebuilder/images/spacer.gif" alt="{translate(#DiyTemplate#)}" title="{translate(#Edit DiyTemplate#)}" width="19" height="18" border="0"/></a>
																												{end:}
																											
																												<!-- reupload -->
																												{if:v2[reuploadIcon]}
																												<a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}current_template_id/{v2[template_id]}/current_template_item_id/{v2[template_item_id]}/reupload/1/submitUserImport/1">
																												<img class="SPicon SPupload" src="{webThemeUrl}/themes/default/sitebuilder/images/spacer.gif" alt="{translate(#Reupload#)}" title="{translate(#Reupload#)}" width="19" height="18" border="0"/></a>
																												{end:}
																											
																									  {end:}
																							</span> 
																						
																							 <!-- End preview -->
																							 {end:}
																							 
																							<!-- Start noLink for download template-->
																								{if:noLink}
																								  
																								<!-- open DIY cannot download
																								{if:!v2[isDiyTemplate]}
																							   -->
																									{if:downloadTemplate}
																				                 <!--  
																									<span>                                                                       
																										 <a href="{makeUrl(##,#sitebuilder#,#sitebuilder#)}action/ajaxReturnOutput/rvsMgr/editdeletetemplate/rvsAct/deleteTemplate/template_id/{v2[template_id]}/template_item_id/{v2[template_item_id]}" 
																											  rel="lightbox" 
																											  class="lbOn"                                                                                                        
																											  rvstemplate="TemplateDetail" 
																											  returnOperation = "inner"
																											  returnObj="div_{v2[template_item_id]}"                                                                                            
																											  frmName="frmConfirmDel"
																											  param="pagetitle/{translate(#Download Template#):h}/inner|"
																											  loading="true"
																											  jsFunc="getDownloadList('{makeUrl(##,#sitebuilder#,#sitebuilder#)}action/ajaxRunManager/rvsMgr/downloadtemplate/rvsAct/add/template_item_id/{v2[template_item_id]}', '{v2[pre_]}{v2[template_item_id]}')" >
																											  <img src="{rvs_url_www}/images/dw.gif" width="19" height="18" border="0"alt="{translate(#Download#)}" title="{translate(#Download#)}"/></a>
																								   </span>
																								 -->
																								   <span>
																								   
																								   <a   class="jq_DownloadTemStep2"	   
																							       selectPictureID = "{v2[pre_]}{v2[template_item_id]}" 
				                                                                                   temItemID = "{v2[template_item_id]}"
				                                                                              	   template_id = "{v2[template_id]}" >
																					
																								    <img   src="{rvs_url_www}/images/dw.gif" imgsrc ="{v2[pre_]}{v2[template_item_id]}" width="19" height="18" border="0"alt="{translate(#Download#)}" title="{translate(#Download#)}"/>
																								    </a>
																								     
																								 </span>
																									{end:}
																								   
																									 <!--  {end:}  -->
																								{else:}
																									<!-- Reupload and delete template for user only -->
																									{if:!isAdmin()}
																										<span>
																										{if:v2[isImport]}
																												  {if:v2[isDiyTemplate]}
																													<a href="{makeUrl(#editview#,#diytemplate#,#sitebuilderpro#)}template_item_id/{v2[template_item_id]}">
																														<img src="{webThemeUrl}/themes/default/sitebuilder/images/edit.gif" alt="{translate(#DiyTemplate#)}" title="{translate(#Edit DiyTemplate#)}" width="19" height="18" border="0"/></a>
																												  {end:} 
																												  {if:v2[reuploadIcon]}
																													  <a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}current_template_id/{v2[template_id]}/current_template_item_id/{v2[template_item_id]}/reupload/1/submitUserImport/1"><img class="SPicon SPupload" src="{webThemeUrl}/themes/default/sitebuilder/images/spacer.gif" alt="{translate(#Reupload#)}" title="{translate(#Reupload#)}" width="19" height="18" border="0"/></a>
																												  {end:}
																												  {if:v2[deleteIcon]}
																													<!--<a href="{makeUrl(##,#rvscategory#,#sitebuilder#)}action/ajaxReturnOutput/rvsMgr/editdeletetemplate/rvsAct/deleteTemplate/template_id/{v2[template_id]}/template_item_id/{v2[template_item_id]}" 
																														rel="lightbox" 
																														class="lbOn"                                                                                                                
																														returnOperation = "inner"
																														returnObj="div_{v2[template_item_id]}"
																														rvstemplate="ConfirmDelete" 
																														frmName="frmConfirmDel"
																														param="pagetitle/{translate(#Delete Template List#):h}/inner|objTitle/{translate(#Template Id#)} : {v2[products_id]}/inner"><img class="SPicon SPidel" src="{webThemeUrl}/themes/{theme}/sitebuilder/images/spacer.gif" alt="{translate(#Delete#)}" title="{translate(#Delete#)}"  style="cursor:pointer" border="0" width="19" height="18" /></a>-->
																											<!-- Old confirm delete-->
																												<img src="{webThemeUrl}/themes/{theme}/sitebuilder/images/i-del.gif" alt="{translate(#Delete#)}" title="{translate(#Delete#)}" onclick="confirmDelete('{deletemplateUrl}template_id/{v2[template_id]}/template_item_id/{v2[template_item_id]}')" style="cursor:pointer" border="0" class="spicon iconDeleteWYS">
																											   {end:} <!-- End delete icon -->
																											
																										{end:} 
																										</span>
																									{end:} <!-- End isAdmin() -->
																								{end:} <!-- End noLink -->
																							{end:} <!-- End v2[template_item_folder] -->
																							</div>
																							
																						</div>
																					</div>
																				</div>
																			 </td>
																			{end:} 
																		  </tr>
																		{end:} <!-- End loop aShowData -->
																	{else:}
																		<tr>
																			<td colspan="4" align="center" valign="top">
																				<span class="f12b_orange">
																					{translate(#There is no template. Please change your filter and try again.#)}
																				 </span>
																			</td>
																		</tr>
																	{end:}
																	</table>
																</td>
															</tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
										<tr>
										<td id="numPage" align="center" valign="top" class="lineTopstep2">
											<table cellpadding="0" cellspacing="0" width="95%" class="linestep2">
												<tr>
													<td align="left">
													<div>
														{if:template_total_select}
                                                             {template_total_select} {translate(#templates#)}
														{end:} 
														{translate(#of#):h} {totalTemplate} {translate(#total templates#)}, {translate(#Page#):h} {currentPage} {translate(#of#):h} {totalPage}
													</div>
													
													<form name="SelectCategory2" method="post" FLEXY:IGNORE="yes" action="">
													<div style="padding-top:8px;"></div>
													<div>
														<span> 
														{showPager:h}                                                               <!--{firstPage:h} {prevPage:h}  {translate(#Page#):h}  {currentPage} {translate(#of#):h} {totalPage} {nextPage:h} {lastPage:h}-->
														</span>
													
															<!-- {translate(#Template / page#):h} :-->
															{if:listNumPageOption}
															<select name="getNumPage" id="getNumPage" onChange="MM_jumpMenu5('top',this,0)" class="menu">
																{listNumPageOption:h}
															</select>
															{end:}
														</div>
														</form>
														
													</td>
													<td align="right">
													<!--
														{translate(#go to page#):h} :
														<select name="goto2" id="goto2" onChange="MM_jumpMenu5('top',this,0)" class="menu">
															{pageOption:h}
														</select>
													-->
													</td>
												</tr>
											</table>                                                        
										</td>
									</tr>
                                    </table>
                                    <!-- </form> -->
                                    <!-- END BODy -->
                                    
                                {end:}
                                <!-- End don't show template catague action reupload template -->   
                            </td>
                            <!-- end test2 witoon -->

                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</table>

<!-- Disable Download template -->
{if:!tryoutMode}
<div id="ConfirmDelete" style="display:none"><flexy:include src="ConfirmDelete.html" /></div>
 <!-- <div id="TemplateDetail" style="display:none"><flexy:include src="TemplateDetail.html" /></div>  -->
<flexy:include src="dialog/TemplateDetail.html" /></div>

{end:}