Example #1
0
		</tr>
		
		<tr bgcolor="#fff8e8">		
		<?
		//var_dump($tpl['filter']['metals']['filter']);
		foreach ($tpl['filter']['metals']['filter'] as $filter) {
			$metalUrlParams['metal'] = array($filter['filter_id']=>$filter['name']);
			?>			
			<td class="tboard" nowrap style="padding:5px" valign="top">
			<?
				foreach ($filter["nominals"] as $n){
					if(in_array($n['id'],$nominal_data)&&in_array($filter['filter_id'], $metals)){
						echo "<b>".$n['name']."</b><br>";
					} else {
						$metalUrlParams['nominal'] = array($n['id']=>$n['name']); ?>
						<a href="<?=urlBuild::makePrettyUrl($metalUrlParams,$r_url)?>"> <?=$n['name'];?></a><br>						
					<?}					
				}?>				
			</td>
		<?}?>
		</tr>
		</table>
		
	<?/*
	$metalUrlParams = array();
	$metalUrlParams['group'] = $urlParams['group'];
	$metalUrlParams['materialtype'] = $urlParams['materialtype'];   
    $metalUrlParams['nominal'] = $urlParams['nominal'];   
    
    $metalUrlParams['usershopcoinssubscribe'] = $urlParams['usershopcoinssubscribe'];
	$metalUrlParams['usercatalogsubscribe'] = $urlParams['usercatalogsubscribe'];
Example #2
0
		</a>
		<a onclick="showWin('<?=$cfg['site_dir']?>shopcoins/?module=shopcoins&task=showsmall&catalog=<?=$rows["shopcoins"]?>&ajax=1',1100);return false;" href='#' style="display:none" class="qwk">Быстрый просмотр</a>
		
	</center>
	
	
	<div id='info' class="info_acc">	    	
    	<a name=coin<?=$rows["shopcoins"]?> title='<?=$rows["name"]?>'></a>
	    <p class="ctitle"><?=$rows['namecoins']?></p>
    	<?if ($rows["gname"]){
	    	$groupItemParams = array();	    
			$groupItemParams['materialtype'] = $rows['materialtype'];
			$groupItemParams['group'] = array($rows["group"]=>$rows["gname"]);
    		?>
    	Группа:
    	<a class="group_href" href=<?=urlBuild::makePrettyUrl($groupItemParams)?> title='Посмотреть <?=contentHelper::setWordThat($rows["materialtype"])?> <?=$rows["gname"]?>'>
    	<?=$rows["gname"]?>
    	</a><br>
    	<?}?>
    	<?=($rows["year"]?"Год:&nbsp;<strong>".$rows["year"]."</strong><br>":"")?>
    </div>
<? } elseif ($rows["materialtype"]==5){?>
	<center>
	<a class="borderimage primage" href='<?=$rows["rehref"]?>' title='Подробнее о книге <?=$rows["name"]?>'>
		<?=contentHelper::showImage('images/'.$rows["image"],$rows["name"])?>
	</a>
	<a onclick="showWin('<?=$cfg['site_dir']?>shopcoins/?module=shopcoins&task=showsmall&catalog=<?=$rows["shopcoins"]?>&ajax=1',1100);return false;" href='#' style="display:none" class="qwk">Быстрый просмотр</a>
		
	</center>
	<a name=coin<?=$rows["shopcoins"]?> title='<?=$rows["name"]?>'></a><strong><?=$rows["name"]?></strong>
<?}	else {
Example #3
0
					?>            
					<div class="checkbox">						
						<input type="checkbox" <?=$checked?> name="groups[]" value="<?=$filter['filter_id']?>" onclick="addToFilterDetails('<?=$filter['filter_id']?>','<?=$filter['name'];?>')" />
					    <a href="<?=urlBuild::makePrettyUrl($groupUrlParams,"http://www.numizmatik.ru/catalognew")?>"> <?=$filter['name'];?></a>
						
					</div>
				    <?php
					if(isset($filter['child'])){?>
						<div style='margin:5px 20px;'>
						<?foreach ($filter['child'] as $filter_child) {
							$groupUrlParams['group'] = array($filter_child['filter_id']=>$filter_child['name']);
							$checked = (is_array($groups)&&in_array($filter_child['filter_id'], $groups)) ? "checked":"";   
					        ?>
							<div class="checkbox">    
								<input type="checkbox" <?=$checked?> name="groups[]" value="<?php echo $filter_child['filter_id']; ?>" onclick="addToFilterDetails('<?=$filter_child['filter_id']?>','<?=$filter_child['name'];?>')" />
							    <a href="<?=urlBuild::makePrettyUrl($groupUrlParams,"http://www.numizmatik.ru/catalognew")?>"> <?=$filter_child['name'];?></a>
							</div>
						<?}?>
						</div>					
				   <?}
				}?>		
			</div>	
        </ul> 
        <div style="text-align:center;padding: 10px 0 0;">    	
		    <a class="fc" id='group-full-show' href="#" onclick="full_filter('groups');return false;"></a>
        </div> 
    </div>  
 <?}?>
</form>
<script>function addToFilterDetails(id,name){
	if($("#fb-groups :checkbox[value="+id+"]").prop("checked")){ 	
Example #4
0
}
//die();
//var_dump($correct_url,"http://www.numizmatik.ru".$_SERVER["REQUEST_URI"]);
if ($tpl['datatype'] != 'text_html' && $correct_url != "http://www.numizmatik.ru" . $_SERVER["REQUEST_URI"]) {
    header("HTTP/1.1 301 Moved Permanently");
    header("location: " . $correct_url);
    die;
}
//}
//if($addhref) $addhref = substr($addhref,1);
$data_filter_old = urlBuild::parseUrl($_COOKIE['lhref'], $materialsRule);
if ($tpl['pagenum'] == 1 && (count(array_diff($data_filter, $data_filter_old)) || count(array_diff($data_filter_old, $data_filter)))) {
    $stats_class->saveFilter($data_filter);
}
unset($urlParams['pagenum']);
$correct_url_for_paginator = urlBuild::makePrettyUrl($urlParams);
$tpl['paginator'] = new Paginator(array('url' => $correct_url_for_paginator, 'count' => $countpubs, 'per_page' => $tpl['onpage'] == 'all' ? $countpubs : $tpl['onpage'], 'page' => $tpl['pagenum'], 'border' => 3));
//setcookie("lhref", $r_url_paginator."/?".$addhref.(($tpl['pagenum']>1)?'&pagenum='.$tpl['pagenum']:''), time() + 3600, "/");
setcookie("lhref", $correct_url, time() + 3600, "/");
/*if (!$page){  
	if($materialtype == 12){
		require_once('build_table/build_table.php');
		$MainText .= $table_data;
	}
}*/
$OrderByArray = array();
$OrderByArray[] = "novelty desc";
/*if ($coinssearch)
	$OrderByArray[] = " shopcoins.shopcoins=".intval($coinssearch)." desc ";*/
//if ($group)	$OrderByArray[] = " ABS(shopcoins.group-".$group.") ";
if ($materialtype == 3 || $materialtype == 5 and $group) {
Example #5
0
echo $show_theme ? 'block' : 'none';
?>
">
			<div id="filter-grouptheme_container" class="filter-grouptheme_container_1">
				<?php 
foreach ($tpl['filter']['theme']['filter'] as $filter) {
    $themeUrlParams['theme'] = array($filter['filter_id'] => $filter['name']);
    ?>
            
					<div class="checkbox">
                        <input type="checkbox" name="themes[]" value="<?php 
    echo $filter['filter_id'];
    ?>
" <?php 
    echo is_array($themes) && in_array($filter['filter_id'], $themes) ? "checked" : "";
    ?>
/>
					       <a href="<?php 
    echo urlBuild::makePrettyUrl($themeUrlParams, "http://www.numizmatik.ru/catalognew");
    ?>
"> <?php 
    echo $filter['name'];
    ?>
</a>
					</div>
				<?}?>        
    		</div>
    	</ul> 	
	</div>
   <?php 
}
$priceUrlParams = array();
$priceUrlParams['group'] = $urlParams['group'];
$priceUrlParams['nocheck'] = $urlParams['nocheck'];
$priceUrlParams['mycoins'] = $urlParams['mycoins'];
$priceUrlParams['materialtype'] = $urlParams['materialtype'];
?>
<div class="filter-block" id='fb-prices'>
	<div class="filter_heading">
		<div class="left">Цены</div> 
		<div style="text-align:center;padding: 0 0 0 10px;" class="left">    	
			<a class="fc" id='nominals-full-show' href="#" onclick="full_filter('prices');return false;"></a>
		</div>            			
		<div class="right"><a class="fc" href="#" onclick="clear_filter('prices');return false;">Сбросить</a></div>
	</div>  
	<? if($tpl['filter']['prices']){?>
	<ul class="filter_heading_ul">
		<div id="filter-groupprices_container" class="filter-groupprices_container_1">
		<?php 
		foreach ($tpl['filter']['prices']['filter'] as $filter) {
			$priceUrlParams['price'] = array(0=>$filter['filter_id']);
			
			?>            
			<div class="checkbox">
				   <input type="checkbox" name="prices[]" value="<?=$filter['filter_id']?>" <?=(is_array($prices)&&in_array($filter['filter_id'], $prices))?"checked":""?> /> 
				   <a href="<?=urlBuild::makePrettyUrl($priceUrlParams)?>"> <?=$filter['name'];?> руб.</a>						
			</div>
		 <?}?> 							
		</div>
	</ul>
  <?}?> 
</div>  
Example #7
0
        //var_dump($tpl['news']['data'][$key]['img']);
        //echo "<br>";
    }
    $tpl['news']['data'][$key]['img'] = imageMini::getMini($tpl['news']['data'][$key]['img'], "news_img/");
    //}
    $news_text = $rows['text'];
    $news_text = str_replace("</h1>", "</h1>. ", $news_text);
    $news_text = strip_tags($news_text);
    while (substr_count($news_text, "<<<")) {
        $news_text = mb_substr($news_text, 0, strpos($news_text, "<<<")) . substr(strstr($news_text, ">>>"), 3, 'utf-8');
    }
    $news_text = mb_substr($news_text, 0, 320, 'utf-8') . '...';
    $tpl['news']['data'][$key]['text'] = strip_tags($news_text);
    $tpl['news']['data'][$key]['namehref'] = contentHelper::strtolower_ru($rows["name"]) . "_n" . $rows["news"] . ".html";
}
//if($addhref) $addhref = substr($addhref,1);
$correct_url = urlBuild::makePrettyUrl($urlParams, "http://www.numizmatik.ru/news");
if ($tpl['datatype'] != 'text_html' && $correct_url != urldecode("http://www.numizmatik.ru" . $_SERVER["REQUEST_URI"]) && $_SERVER["REQUEST_URI"] !== '/news/') {
    header("HTTP/1.1 301 Moved Permanently");
    header("location: " . $correct_url);
    die;
}
unset($urlParams['pagenum']);
$correct_url_for_paginator = urlBuild::makePrettyUrl($urlParams, "http://www.numizmatik.ru/news");
$tpl['paginator'] = new Paginator(array('url' => $correct_url_for_paginator, 'count' => $countpubs, 'per_page' => $tpl['onpage'] == 'all' ? $countpubs : $tpl['onpage'], 'page' => $tpl['pagenum'], 'border' => 4));
foreach ($tpl['breadcrumbs'] as $key => $value) {
    if ($value["base_href"] == $correct_url) {
        $tpl['breadcrumbs'][$key]['base_href'] = '';
    }
}
require_once 'filters.ctl.php';
Example #8
0
echo contentHelper::setHrefTitle($rows["name"], $rows["materialtype"], $rows["gname"]);
?>
'></a>
	<b>Название:</b> <strong><?php 
echo $rows['namecoins'];
?>
</strong>
	<div id='info'>	
		<?		
		if ($rows["gname"]){
			$groupItemParams = array();	    
			$groupItemParams['materialtype'] = $rows['materialtype'];
			$groupItemParams['group'] = array($rows["group"]=>$rows["gname"]);
			?>		    
		<b>Страна:</b><a href="<?php 
echo urlBuild::makePrettyUrl($groupItemParams, "http://www.numizmatik.ru/catalognew");
?>
" title='Посмотреть все <?php 
echo contentHelper::setWordThat($rows["materialtype"]);
?>
 <?php 
echo $rows["gname"];
?>
' alt='Посмотреть все <?php 
echo contentHelper::setWordThat($rows["materialtype"]);
?>
 <?php 
echo $rows["gname"];
?>
'>
    	<?php 
Example #9
0
	    $yearsUrlParams['years'] = array(0=>$filter["name"]);
	?>
		<td align=center class="tboard">
		<? if(in_array($filter['filter_id'], $years)){?>
			<strong><?= $filter["name"]?></strong>		
		<?} else {?>
			<a href="<?=urlBuild::makePrettyUrl($yearsUrlParams,$r_url)?>"> <?=$filter['name'];?></a>
		<?}?>
		
	<?}?>
	</tr>	
	<tr bgcolor=#ebe4d4 class=tboard><td class="tboard"><strong>Буквы:</strong>	
	<?	foreach ($tpl['filter']['years']['filter'] as $filter) {
		$yearsUrlParams['years'] = array(0=>$filter["name"]);
		?>		
			<td valign=top align=right class="tboard">
			<?foreach ($filter['simbols'] as $value2) {	
				$yearsUrlParams['simbol'] = array($value2['simbol']=>$value2['name']);	
				if(in_array($value2['simbol'], $simbols)&&in_array($filter['filter_id'], $years)){?>
					<strong><?= $value2['name']?></strong>		
				<?} else {?>
					<a href="<?=urlBuild::makePrettyUrl($yearsUrlParams,$r_url)?>"> <?=$value2['name'];?></a>
				<?}
			}?>	
			</td>	
		<?}?>
	</tr>
	</table>
</div>	

<?}?>
Example #10
0
</strong> 
	</a>
	<div id=mysubscribecatalog<?php 
echo $rows["catalog"];
?>
></div>	
</div>


<div id='info'>	
	<?	
	if ($rows["gname"]){
		$groupItemParams['group'] = array($rows["group"]=>$rows["gname"]);		
		?>
		<b>Страна:</b> <a class="group_href" href="<?php 
echo urlBuild::makePrettyUrl($groupItemParams, "http://www.numizmatik.ru/price");
?>
" title='Посмотреть цены на монеты <?php 
echo $rows["gname"];
?>
'><?php 
echo $rows["gname"];
?>
</a>
	<?}?>
	Название: <strong><?php 
echo $rows["aname"];
?>
</strong>
	<?php 
echo trim($rows["metal"]) ? "<br>Металл: <strong>" . $rows["ametal"] . "</strong>" : "";
Example #11
0
    			 <a class="fc" id='years_p-full-show' href="#" onclick="full_filter('years_p');return false;"></a>
    		</div>       

			<div class="right"><a class="fc" href="#" onclick="clear_filter('<?=$tpl['filter']['years']['filter_group_id_full']?>');return false;">Сбросить</a></div>
		</div>    
		
		<ul class="filter_heading_ul">
			<div id="filter-group<?=$tpl['filter']['years']['filter_group_id']?>_container" class="filter-group<?=$tpl['filter']['years']['filter_group_id']?>_container_1">	     
				<?php 
				$count_for_column = ceil(count($tpl['filter']['years']['filter'])/4);
				$i=0;								
				foreach ($tpl['filter']['years']['filter'] as $filter) {				
				 	$yearsUrlParams['years'] = array(0=>$filter['filter_id']);     					
					if($i==0){echo "<div class='left yc'>";}
					?> 
					<div class="checkbox">           
                    <input type="checkbox" name="years[]" value="<?=$filter['filter_id']?>" <?=(is_array($years)&&in_array($filter['filter_id'], $years))?"checked":""?> />
					<a href="<?=urlBuild::makePrettyUrl($yearsUrlParams,"http://www.numizmatik.ru/news")?>"> <?=$filter['name'];?></a>
					</div>						
					<?
					$i++;
					if($i==$count_for_column){
						echo "</div>";
						$i=0;
					}
    			}
		      if($i>0) echo "</div>";?>   
		  </div>
	   </ul> 	
	</div>   
<?}?>
Example #12
0
$nominalUrlParams['nocheck'] = $urlParams['nocheck'];
$nominalUrlParams['mycoins'] = $urlParams['mycoins'];
$nominalUrlParams['materialtype'] = $urlParams['materialtype'];

?>
<div class="filter-block" id='fb-nominals'>
	<div class="filter_heading">
		<div class="left">Номиналы</div> 
		<div style="text-align:center;padding: 0 0 0 10px;" class="left">    	
			<a class="fc" id='nominals-full-show' href="#" onclick="full_filter('nominals');return false;"></a>
		</div>            			
		<div class="right"><a class="fc" href="#" onclick="clear_filter('nominals');return false;">Сбросить</a></div>
	</div>  
	<? if($tpl['filter']['nominals']){
	    
	    //<?=(count($tpl['filter']['nominals']['filter'])>13)?1:0?>  
	<ul class="filter_heading_ul">
		<div id="filter-groupnominal_container" class="filter-groupnominals_container_1">
		<?php 
		foreach ($tpl['filter']['nominals']['filter'] as $filter) {
			$nominalUrlParams['nominal'] = array($filter['filter_id']=>$filter['name']);
			?>            
			<div class="checkbox">
				   <input type="checkbox" name="nominals[]" value="<?=$filter['filter_id']?>" <?=(is_array($nominals)&&in_array($filter['filter_id'], $nominals))?"checked":""?> /> 
				   <a href="<?=urlBuild::makePrettyUrl($nominalUrlParams)?>"> <?=$filter['name'];?></a>						
			</div>
		 <?}?> 							
		</div>
	</ul>
  <?}?> 
</div>  
Example #13
0
echo $show_theme ? 'block' : 'none';
?>
">
			<div id="filter-grouptheme_container" class="filter-grouptheme_container_1">
				<?php 
foreach ($tpl['filter']['theme']['filter'] as $filter) {
    $themeUrlParams['theme'] = array($filter['filter_id'] => $filter['name']);
    ?>
            
					<div class="checkbox">
                        <input type="checkbox" name="themes[]" value="<?php 
    echo $filter['filter_id'];
    ?>
" <?php 
    echo is_array($themes) && in_array($filter['filter_id'], $themes) ? "checked" : "";
    ?>
/>
					       <a href="<?php 
    echo urlBuild::makePrettyUrl($themeUrlParams);
    ?>
"> <?php 
    echo $filter['name'];
    ?>
</a>
					</div>
				<?}?>        
    		</div>
    	</ul> 	
	</div>
   <?php 
}
Example #14
0
    	'href' => $cfg['site_dir'].'shopcoins',
    	'base_href' =>'shopcoins'
    );
    
    $tpl['breadcrumbs'][] = array(
    	'text' => contentHelper::$menu[$materialtype],
    	//'href' => $cfg['site_dir']."shopcoins/index.php?materialtype=$materialtype",
		'href' => urlBuild::makePrettyOfferUrl(array('materialtype'=>$materialtype),$materialIDsRule,$ThemeArray,$tpl,$shopcoins_class),
    	'base_href' =>urlBuild::makePrettyOfferUrl(array('materialtype'=>$materialtype),$materialIDsRule,$ThemeArray,$tpl,$shopcoins_class)
    );
    
    if($rows_main["gname"]&&$rows_main["group"]){
         $tpl['breadcrumbs'][] = array(
        	'text' => $rows_main["gname"],
        	//'href' => $cfg['site_dir']."shopcoins/index.php?materialtype=$materialtype&group=".$rows_main["group"],
			'href' =>urlBuild::makePrettyOfferUrl(array('materialtype'=>$materialtype,'group_id'=>$rows_main["group"]),$materialIDsRule,$ThemeArray,$tpl,$shopcoins_class),
        	'base_href' =>"shopcoins/index.php?materialtype=$materialtype&group=".$rows_main["group"]
        );
    }
    $tpl['breadcrumbs'][] = array(
    	'text' => $rows_main["name"],
    	'href' => '',
    	'base_href' =>''
    );
    
    $tpl['current_page'] = '';
    
}elseif ($tpl['module']=='shopcoins'&&$tpl['task']=='showa'){
    $tpl['breadcrumbs'][] = array(
    	'text' => 'Магазин монет',
    	'href' => $cfg['site_dir'].'shopcoins',
Example #15
0
        $urls[300][] = urlBuild::makePrettyUrl($urlParams, "http://www.numizmatik.ru/news");
    }
    unset($urlParams['pagenum']);
}
unset($urlParams['years']);
$news_by_theme = $news_class->getThemes(array());
foreach ($news_by_theme as $row) {
    $urlParams = array();
    $urlParams['theme'] = array($row['theme'] => $ThemeArray[$row['theme']]);
    $urls[40][] = urlBuild::makePrettyUrl($urlParams, "http://www.numizmatik.ru/news");
    $WhereParams['theme'] = array($value["group"]);
    $count = $shopcoins_class->countallByParams($WhereParams);
    $pages = ceil($count / $tpl['onpage']);
    for ($i = 2; $i <= $pages; $i++) {
        $urlParams['pagenum'] = $i;
        $urls[400][] = urlBuild::makePrettyUrl($urlParams, "http://www.numizmatik.ru/news");
    }
    unset($urlParams['pagenum']);
}
ksort($urls);
$priority = 0.5;
foreach ($urls as $key => $links) {
    //echo "<h1>".$key."</h1>";
    if ($key > 100) {
        $priority = 0.4;
    }
    $page = 'daily';
    foreach ($links as $link) {
        try {
            //echo $link."<br>";
            $sql_ins = "insert into sitemaps (`url`,`page`,`priority`,`type`,`dateinsert`,`lastmod`) \n\t\t\t\t\t\tvalues ('" . $link . "', '{$page}','{$priority}','news'," . time() . ",'" . date('Y-m-d', $newstime) . "')";
Example #16
0
	<?} else {?>
		<span class="blue">Нет изображения</span>
	<?}?>
      
	</div>
</div>
<div class="detailsItem">
     <h1><?php 
echo $rows_main["gname"] . " " . $rows_main["aname"] . " - " . $rows_main["year"];
?>
</h1>       

     <?
	if ($rows_main["gname"]){?>
	Страна: <a href="<?php 
echo $r_url . "/" . urlBuild::groupUrl($rows_main["gname"], $rows_main["group"]);
?>
" title='Посмотреть цены на монеты <?php 
echo $rows_main["gname"];
?>
'>
	<strong><?php 
echo $rows_main["gname"];
?>
</strong>
	</a><br>
	<?}?>
	Название: <strong><?php 
echo $rows_main["name"];
?>
</strong><br>
Example #17
0
	$WhereParams['nominal'] = array($name);
	$urlParams['nominal'] = array($rows_main['name'] => $rows_main["aname"]);
	
	$tpl['back_url'] = urlBuild::makePrettyUrl($urlParams,$r_url);
	
	$years = $price_class->getYears($WhereParams);		
    $tpl['price']['years'] = array();
    
	foreach ($years as $rows) {
		$WhereParams['year'] = array($rows['year']);
		$simbols = $price_class->getSimbols($WhereParams);	

		foreach ($simbols as $rows2) {
			$tpl['price']['years'][$rows['year']][$rows2['simbol']]['name'] = $rows2['name'];
			$urlParams['simbol'] = array($rows2['simbol'] => $rows2['name']);
			$tpl['price']['years'][$rows['year']][$rows2['simbol']]['url'] = urlBuild::makePrettyUrl($urlParams,$r_url);
		}
	}
	
	
	if (!$pcondition) {	
		
		$rehref = "Монета ";				
					
		if ($rows_main['gname'])$rehref .= $rows_main['gname']." ";
		$rehref .= $rows_main['aname'];
		if ($rows['ametal'])$rehref .= " ".$rows_main['ametal']; 
		if ($rows['year'])	$rehref .= " ".$rows_main['year'];
		$namecoins = $rehref;
		
		$tpl['rehref'] = contentHelper::strtolower_ru($rehref)."_cpc".$rows_main['priceshopcoins']."_cpr".$rows_main['parent']."_pcn0.html";
echo $show_condition ? 'block' : 'none';
?>
">
			<div id="filter-groupconditions_container" class="filter-groupcondition_container_1">
				<?php 
foreach ($tpl['filter']['conditions']['filter'] as $filter) {
    $condUrlParams['condition'] = array($filter['filter_id'] => $filter['name']);
    ?>
            
					<div class="checkbox">
                        <input type="checkbox" name="conditions[]" value="<?php 
    echo $filter['filter_id'];
    ?>
" <?php 
    echo is_array($conditions) && in_array($filter['filter_id'], $conditions) ? "checked" : "";
    ?>
/>
					       <a href="<?php 
    echo urlBuild::makePrettyUrl($condUrlParams);
    ?>
"> <?php 
    echo $filter['name'];
    ?>
</a>
					</div>
				<?}?>        
    		</div>
    	</ul> 	
	</div>
   <?php 
}
Example #19
0
echo $show_simbol ? 'block' : 'none';
?>
">
			<div id="filter-groupsimbol_container" class="filter-groupsimbol_container_1">
				<?php 
foreach ($tpl['filter']['simbols']['filter'] as $filter) {
    $simbolUrlParams['simbol'] = array($filter['filter_id'] => $filter['name']);
    ?>
            
					<div class="checkbox">
                        <input type="checkbox" name="simbols[]" value="<?php 
    echo $filter['filter_id'];
    ?>
" <?php 
    echo is_array($simbols) && in_array($filter['filter_id'], $simbols) ? "checked" : "";
    ?>
/>
					       <a href="<?php 
    echo urlBuild::makePrettyUrl($simbolUrlParams, $r_url);
    ?>
"> <?php 
    echo $filter['name'];
    ?>
</a>
					</div>
				<?}?>        
    		</div>
    	</ul> 	
	</div>
   <?php 
}
Example #20
0
                    $chars = preg_split('//', $strtheme, -1, PREG_SPLIT_NO_EMPTY);
                    for ($k = 0; $k < $strthemelen; $k++) {
                        if ($chars[$k] == 1) {
                            $shopcoinstheme[] = $ThemeArray[$strthemelen - 1 - $k];
                        }
                    }
                    $tpl['catalognew']['show']['offers'][$key]['shopcoinstheme1'] = implode(", ", $shopcoinstheme);
                    continue;
                }
            }
        }
    }
    //показываем 10 последних отзывов о монете
    $tpl['catalognew']['reviews']['reviewusers'] = $catalognew_class->getReviews($catalog);
    //$tpl['show']['lhreg'] = "/shopcoins";
    $tpl['show']['lhreg'] = isset($_COOKIE['chref']) ? trim($_COOKIE['chref']) : (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/catalognew');
    if (substr($tpl['show']['lhreg'], -1) == '?') {
        $tpl['show']['lhreg'] = substr($tpl['show']['lhreg'], 0, strlen($tpl['show']['lhreg']) - 1);
    }
    $tpl['breadcrumbs'][] = array('text' => 'Каталог монет', 'href' => $cfg['site_dir'] . 'catalognew', 'base_href' => 'catalognew');
    $tpl['current_page'] = '';
    $tpl['breadcrumbs'][] = array('text' => contentHelper::$menu[$materialtype], 'href' => urlBuild::makePrettyUrl(array('materialtype' => $materialtype), $cfg['site_dir'] . 'catalognew'), 'base_href' => urlBuild::makePrettyUrl(array('materialtype' => $materialtype), $cfg['site_dir'] . 'catalognew'));
    if ($rows_main["gname"] && $rows_main["group"]) {
        $tpl['breadcrumbs'][] = array('text' => $rows_main["gname"], 'href' => urlBuild::makePrettyUrl(array('materialtype' => $materialtype, 'group' => array($rows_main['group'] => $rows_main['gname'])), $cfg['site_dir'] . 'catalognew'), 'base_href' => urlBuild::makePrettyUrl(array('materialtype' => $materialtype, 'group' => array($rows_main['group'] => $rows_main['gname'])), $cfg['site_dir'] . 'catalognew'));
    }
    $tpl['breadcrumbs'][] = array('text' => $rows_main["name"], 'href' => '', 'base_href' => '');
    $tpl['current_page'] = '';
} else {
    $tpl['catalognew']['error']['no_coins'] = true;
}
//if($errorcataloghistory) $tpl['catalognew']['error']['text'] = implode("<br>",$errorcataloghistory);
Example #21
0
                    <?	
                    $statuses = $shopcoins_class->getBuyStatus($rows_show_relation2["shopcoins"],$tpl['user']['can_see'],$ourcoinsorder,$shopcoinsorder);
                    $rows_show_relation2['buy_status'] = $statuses['buy_status'];
                    $rows_show_relation2['reserved_status'] = $statuses['reserved_status'];	
                    $rows_show_relation2['mark'] = $shopcoins_class->getMarks($rows_show_relation2["shopcoins"]);
                    echo contentHelper::render('shopcoins/item/itemmini-carusel',$rows_show_relation2);
                    ?>				
                </div>
            <?}?>
        </div>
        <?break;
    }
    case 'filter':{?>
    	<div class="tab_filter">   </div>
    	<? foreach ($lastFilters as $row){
    	    $href_array = urlBuild::makePrettyOfferUrl($row,$materialIDsRule,$ThemeArray,$tpl,$shopcoins_class,array('full'=>true));
    	    ?>
           <div> 
           <span><?php 
echo date('Y-m-d H:i', $row['datetime']);
?>
</span>
           <a href="<?php 
echo $href_array['href'];
?>
"><?php 
echo $href_array['title'];
?>
</a>
           </div>
        <?}?>            
Example #22
0
<?
include(START_PATH."/config.php");

$rehref = urlBuild::priceCoinsUrl($rows['priceshopcoins']);
	
$namecoins = "Монета ";					
if ($rows['gname'])	$namecoins .= $rows['gname']." ";
$namecoins .= $rows['aname'];
if ($rows['ametal'])	$namecoins .= " ".$rows['ametal']; 
if ($rows['year'])	$namecoins .= " ".$rows['year'];

?>
<div class="center">		
	<a href='<?php 
echo $cfg['site_dir'];
?>
price/<?php 
echo $rehref;
?>
' title='<?php 
echo $title;
?>
' class="borderimage primage">
	
	<?
	if(file_exists($cfg['oldpath']."/price/images/".$rows["bigimage"])){
		$title = "Посмотреть подробное изображение монеты ".$rows["gname"]." ".$rows["aname"];?>
		<img  src='<?php 
echo $cfg['site_dir'];
?>
price/images/<?php