first commit

This commit is contained in:
2023-09-04 21:59:34 +02:00
commit 650ef5b3e1
196 changed files with 24080 additions and 0 deletions

View File

@@ -0,0 +1,142 @@
<?
global $lang;
?>
<div class='article_draw'>
<? if ( $this -> _article -> _values['print'] ):?>
<a class='print' href='print.php?art=<?= $this -> _article -> _values['id'];?>' target='_blank'>
<img src='images/system/sico_print.png' alt='<?= $lang -> getTrans('T_DRUKUJ' );?>' style='border:0px;'>
</a>
<? endif;?>
<? if ( $this -> _article -> _values['show_title'] ):?>
<div class='article_draw_title'>
<?= stripslashes( $this -> _article -> _values['title'] );?>
</div>
<? endif;?>
<? if ( $this -> _article -> _values['show_date'] ):?>
<div class='article_draw_date'>
<?= $lang -> getTrans( 'T_DATA_PUBLIKACJI' );?>: <?= date( 'H:i d/m/Y', strtotime( $this -> _article -> _values['date_add'] ) );?>
</div>
<? endif;?>
<? if ( $this -> _article -> _values['show_author'] ):?>
<div class='article_draw_author'>
<?
$user = \user\FUser::getUserName( $this -> _article -> _values['author'] );
echo $user['name'] . ' ' . $user['surname'];
?>
</div>
<? endif;?>
<? if ( $this -> _article -> _values['thumbnail'] ):?>
<div class="article-left">
<div class="article_img">
<div style="background: url( 'resources/thumber.php?img=<?= $this -> _article -> _values['thumbnail'];?>&h=150&w=150' ) no-repeat center;"></div>
</div>
</div>
<div class="article-right">
<? endif;?>
<div class='article_draw_text'><?= $this -> _article -> getModifyText();?></div>
<? if ( is_array( $this -> _article -> _values['images'] ) ):?>
<div class="article_gallery">
<? foreach ( $this -> _article -> _values['images'] as $img ):?>
<a href='<?=$img['src'];?>' class="fancybox-buttons" rel='<?= $this -> _article -> _values['id'];?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?= $img['src'];?>&h=200&w=200' ) no-repeat center;"></div>
</div>
</a>
<? endforeach;?>
<div class="clear"></div>
</div>
<? endif;?>
<? if ( is_array( $this -> _article -> _values['files'] ) ):?>
<ul class="article_files">
<? foreach ( $this -> _article -> _values['files'] as $file ):?>
<li>
<a href="pobierz,<?= $file['id'];?>">
<?= $file['name'];?>
</a>
</li>
<? endforeach;?>
</ul>
<? endif;?>
<div class="clearfix"></div>
<? if ( $this -> _article -> _values['thumbnail'] ):?>
</div>
<div class="clearfix"></div>
<? endif;?>
</div>
<a href="#" class="article_back" onClick="javascript:history.go(-1); return false;"><?= $lang -> getTrans( 'T_WSTECZ' );?></a>
<div class="clearfix"></div>
<? if ( $this -> _article -> _values['comments_enabled'] ):?>
<div class="comments_container" id="comments_container_<?= $this -> _article -> _values['id'];?>">
<?
if ( is_array( $this -> _article -> _values['comments'] ) ) foreach ( $this -> _article -> _values['comments'] as $comment )
{
?>
<div class="comments">
<div class="comments_author"><?= $comment['author'];?></div>
<div class="comments_date"><?= $comment['date_add'];?></div>
<div class="comments_text"><?= $comment['text'];?></div>
</div>
<?
}
?>
</div>
<div id="comment_form">
<form method="POST" action="" id="comment_form_add">
<input type="hidden" name="rw" value="add_comment" />
<input type="hidden" name="article_id" value="<?= $this -> _article -> _values['id'];?>" />
<input type="hidden" name="check" value="<?= mktime();?>" />
<div class="group">
<label><?= $lang -> getTrans( 'T_AUTOR' );?></label>
<div class="content">
<input type="text" name="author" id="author" />
</div>
</div>
<div class="group">
<label><?= $lang -> getTrans( 'T_TRESC' );?></label>
<div class="content">
<textarea name="text" id="text"></textarea>
</div>
</div>
<div class="group">
<label><?= $lang -> getTrans( 'T_KOD' );?></label>
<div class="content">
<img id="captcha" src="/resources/securimage/securimage_show.php" alt="CAPTCHA Image" />
<input type="text" name="captcha_code" id="captcha_code" size="10" maxlength="6" />
<a href="#" onclick="document.getElementById('captcha').src = '/resources/securimage/securimage_show.php?' + Math.random(); return false"><?= $lang -> getTrans( 'T_ODSWIEZ' );?></a>
</div>
</div>
<div class="group">
<label></label>
<div class="content">
<a href="#" class="button" onclick="sendCommentForm(); return false;"><?= $lang -> getTrans( 'T_DODAJ_KOMENTARZ' );?></a>
</div>
</div>
</form>
</div>
<? endif;?>
<script type="text/javascript">
function sendCommentForm()
{
if ( $( "#author" ).val() == '' ) {
$( '#author' ).addClass( 'error' );
return false;
} else
$( '#author' ).removeClass( 'error' );
if ( $( "#text" ).val() == '' ) {
$( '#text' ).addClass( 'error' );
return false;
} else
$( '#text' ).removeClass( 'error' );
if ( $( "#captcha_code" ).val() == '' ) {
$( '#captcha_code' ).addClass( 'error' );
return false;
} else
$( '#captcha_code' ).removeClass( 'error' );
$( '#comment_form_add' ).submit();
}
</script>

View File

@@ -0,0 +1,16 @@
<div id='article_gallery_<?= $this -> _id;?>' class="art_gallery">
<?
if ( isset( $this -> _images ) && is_array( $this -> _images ) ) foreach ( $this -> _images as $img )
{
$src = trim( strip_tags( $img['src'] ) );
?>
<a href='<?= $src;?>' class="fancybox-buttons" rel='<?= $this -> _id;?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?= $src;?>&h=150&w=150' ) no-repeat center;"></div>
</div>
</a>
<?
}
?>
<p style="clear: both;"></p>
</div>

View File

@@ -0,0 +1,37 @@
<?
if ( isset( $this -> _adress ) )
{
?>
<script src='http://maps.google.com/maps?file=api&v=2&key=<?=$this -> _google_map_key;?>' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function() {
map_<?=$this -> _id;?> = new GMap2(document.getElementById('mapa_<?=$this -> _id;?>'));
var geo_<?=$this -> _id;?> = new GClientGeocoder();
var adres_<?=$this -> _id;?> = '<?=$this -> _adress;?>';
geo_<?=$this -> _id;?>.getLatLng(adres_<?=$this -> _id;?>,function(punkt_<?=$this -> _id;?>){
map_<?=$this -> _id;?>.setCenter(punkt_<?=$this -> _id;?>, <?=$this -> _zoom;?> );
map_<?=$this -> _id;?>.addOverlay(new GMarker(punkt_<?=$this -> _id;?>));
map_<?=$this -> _id;?>.panTo(punkt_<?=$this -> _id;?>);
map_<?=$this -> _id;?>.setUIToDefault();
});
});
</script>
<div id='mapa_<?=$this -> _id;?>' style='width:<?=$this -> _width;?>px; height:<?=$this -> _height;?>px; border:1px solid black;'></div>
<?
}
else
{
?>
<script src='http://maps.google.com/maps?file=api&v=2&key=<?=$this -> _google_map_key;?>' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function() {
map_<?=$this -> _id;?> = new GMap2(document.getElementById('mapa_<?=$this -> _id;?>'));
var point_<?=$this -> _id;?> = new GLatLng(<?=$this -> _x_coord;?>,<?=$this -> _y_coord;?>);
map_<?=$this -> _id;?>.setCenter(point_<?=$this -> _id;?> , <?=$this -> _zoom;?> );
map_<?=$this -> _id;?>.addOverlay(new GMarker(point_<?=$this -> _id;?>));
map_<?=$this -> _id;?>.setUIToDefault();
});
</script>
<div id='mapa_<?=$this -> _id;?>' style='width:<?=$this -> _width;?>px; height:<?=$this -> _height;?>px; border:1px solid black;'></div>
<?
}

View File

@@ -0,0 +1,35 @@
<? $rand = rand(0,10000); ?>
<link rel='stylesheet' href='resources/jq_nivo_slider/nivo-slider.css' type='text/css' media='all' />
<link rel='stylesheet' href='resources/jq_nivo_slider/themes/orman/orman.css' type='text/css' media='all' />
<script type="text/javascript" src="resources/jq_nivo_slider/jquery.nivo.slider.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#article_slider_<?=$rand;?>").nivoSlider({
animSpeed:1000,
pauseTime:3000,
startSlide:0,
directionNav:true,
directionNavHide:true,
controlNav:true,
controlNavThumbs:false,
controlNavThumbsFromRel:true,
keyboardNav:true,
manualAdvance:false
});
});
</script>
<div class="slider-wrapper theme-orman">
<div id="article_slider_<?= $rand;?>" class="nivoSlider">
<?
if ( isset( $this -> _images ) && is_array( $this -> _images ) ) foreach ( $this -> _images as $img )
{
?>
<img src='<?= $img['src'];?>' style="width: 568px;">
<?
}
?>
</div>
<div id="htmlcaption" class="nivo-html-caption">
<strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
</div>
</div>

View File

@@ -0,0 +1,38 @@
<?
global $lang;
if ( is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
?>
<div class='article_entry'>
<? if ( $art -> getImg() ):?>
<div class="article_img">
<div style="background: url( 'resources/thumber.php?img=<?= $art -> getImg();?>&h=150&w=150' ) no-repeat center;"></div>
</div>
<? endif;?>
<? if ( $art -> _values['show_title'] ):?>
<div class='article_title'>
<a href="<?= $link;?>"><?= stripslashes( $art -> _values['title'] );?></a>
</div>
<? endif;?>
<? if ( $art -> _values['show_date'] ):?>
<div class='article_date'><?= date( 'H:i d/m/Y', strtotime( $art -> _values['date_add'] ) );?></div>
<? endif;?>
<? if ( $art -> _values['comments_enabled'] ):?>
<div class="article_comments_count"><?= $lang -> getTrans( 'T_KOMENTARZE' );?>: <?= count( $art -> _values['comments'] );?></div>
<? endif;?>
<div class="article_entry_text">
<?
$text = $art -> getModifyText( true );
echo mb_substr( strip_tags( $text ) , 0 , 500 , 'UTF-8' );
if ( strlen( $text ) > 500 )
echo '...';
?>
</div>
<a href="<?= $link;?>" class='article_more'><?= $lang -> getTrans( 'T_WIECEJ' );?></a>
<p style='clear:both'></p>
</div>
<?
}
?>

View File

@@ -0,0 +1,78 @@
<?
global $lang;
if ( is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
?>
<div class="article_full">
<? if ( $art -> _values['show_title'] ):?>
<div class='article_title'>
<?= stripslashes( $art -> _values['title'] );?>
</div>
<? endif;?>
<? if ( $art -> _values['show_date'] ):?>
<div class='article_date'>
<?= $lang -> getTrans( 'T_DATA_PUBLIKACJI' );?>: <?= date( 'Y-m-d H:s' , strtotime( $art -> _values['date_add'] ) );?>
</div>
<? endif;?>
<? if ( $art -> _values['comments_enabled'] ):?>
<div class="article_comments_count">
<a href="<?= $link;?>"><?= $lang -> getTrans( 'T_KOMENTARZE' );?>: <?= count( $art -> _values['comments'] );?></a>
</div>
<? endif;?>
<? if ( $art -> _values['show_author'] ):?>
<div class='article_draw_author'>
<?
$user = \user\FUser::getUserName( $art -> _values['author'] );
echo $user['name'] . ' ' . $user['surname'];
?>
</div>
<? endif;?>
<? if ( $art -> _values['print'] ):?>
<a class='print' href='./print.php?art=<?= $art-> _values['id'];?>' target='_blank'>
<img src='images/system/sico_print.png' alt='<?= $lang -> getTrans( 'T_DRUKUJ' );?>' style='border:0px;'>
</a>
<? endif;?>
<? if ( $art -> _values['thumbnail'] ):?>
<div class="article-left">
<div class="article_img">
<div style="background: url( 'resources/thumber.php?img=<?= $art -> _values['thumbnail'];?>&h=150&w=150' ) no-repeat center;"></div>
</div>
</div>
<div class="article-right">
<? endif;?>
<div class='article_text'>
<?= $art -> getModifyText();?>
</div>
<? if ( is_array( $art -> _values['images'] ) ):?>
<div class="article_gallery">
<? foreach ( $art -> _values['images'] as $img ):?>
<a href='<?= $img['src'];?>' class="fancybox-buttons" rel='<?= $art -> _values['id'];?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?= $img['src'];?>&h=100&w=100' ) no-repeat center;"></div>
</div>
</a>
<? endforeach;?>
<div class="clearfix"></div>
</div>
<? endif;?>
<? if ( is_array( $art -> _values['files'] ) ):?>
<ul class="article_files">
<? foreach ( $art -> _values['files'] as $file ):?>
<li>
<a href="pobierz,<?= $file['id'];?>">
<?= $file['name'];?>
</a>
</li>
<? endforeach;?>
</ul>
<? endif;?>
<div class="clearfix"></div>
<? if ( $art -> _values['thumbnail'] ):?>
</div>
<div class="clearfix"></div>
<? endif;?>
</div>
<?
}
?>

View File

@@ -0,0 +1,32 @@
<? global $lang;?>
<div class="title"><?= $this -> _site -> _values['title'];?></div>
<div class="arts-list-st-container" id="arts-list-st-container-<?= $this -> _id;?>">
<? if ( is_array( $this -> _articles ) ): foreach ( $this -> _articles as $art ):?>
<? $art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );?>
<div class='article'>
<? if ( $art -> getImg() ):?>
<div class="article-img">
<div style="background: url( 'resources/thumber.php?img=<?= $art -> getImg();?>&h=300&w=300' ) no-repeat center;"></div>
</div>
<? else:?>
<div class="article-img">
<div style="background: url( 'resources/thumber.php?img=/images/nosystem/no-img.jpg&h=250&w=250' ) no-repeat center;"></div>
</div>
<? endif;?>
<div class='article-title'>
<a href="<?= $link;?>"><?= ucfirst( $art -> _values['title'] );?></a>
</div>
<div class="article-text">
<?
$text = $art -> getModifyText( true );
echo mb_substr( strip_tags( $text ) , 0 , 250 , 'UTF-8' );
if ( strlen( $text ) > 250 )
echo '...';
?>
</div>
<a href="<?= $link;?>" class='button'><?= $lang -> getTrans( 'T_WIECEJ' );?></a>
<div class="clear"></div>
</div>
<? endforeach; endif;?>
</div>

View File

@@ -0,0 +1,15 @@
<?
global $lang;
if ( is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
?>
<div class='article_list' onClick='document.location.href="<?= $link;?>";'>
<div class='article_title'><?= (++$i);?>.<a><?= ucfirst( $art -> _values['title'] );?></a></div>
<? if ( $art -> _values['show_date'] ):?>
<div class='article_date'><?= $lang -> getTrans( 'T_DATA_PUBLIKACJI' );?>: <?= date( 'Y-m-d H:s' , strtotime( $art -> _values['date_add'] ) );?></div>
<? endif;?>
</div>
<?
}
?>

View File

@@ -0,0 +1,19 @@
<ul id="grid" class="group">
<? if ( is_array( $this -> _articles ) ): foreach ( $this -> _articles as $art ):?>
<?
$art -> getImg() ? $src = "resources/thumber.php?img=" . $art -> getImg() . "&w=300&h=200&cache=false" : $src = "resources/thumber.php?img=images/system/no_img.jpg&w=250&h=250";
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
?>
<li>
<div class="details">
<h3><?= $art -> _values['title'];?></h3>
<a class="more" href="<?= $link;?>">więcej</a>
</div>
<a class="more" href="<?= $link;?>">
<div style="height: 200px; width: 300px; background: url( '<?= $src;?>' ) center;"></div>
</a>
</li>
<? endforeach; endif;?>
</ul>
<div style="clear: both;"></div>

45
templates/menu/pages.php Normal file
View File

@@ -0,0 +1,45 @@
<?
if ( $this -> _menu )
echo \menu\VMenu::drawSubpages( $this -> _menu -> get_sites(), $this -> _menu -> get_id(), 0, $this -> _menu -> get_type() );
?>
<style type="text/css">
ul.dropdown {
position: relative;
list-style-type: none;
}
ul.dropdown li {
display: inline-block;
zoom: 1;
}
ul.dropdown li a {
display: block;
}
ul.dropdown li:hover {
position: relative;
}
/*
LEVEL TWO
*/
ul.dropdown ul {
width: 220px;
visibility: hidden;
position: absolute;
top: 100%;
left: 0;
}
ul.dropdown ul li {
display: block;
}
ul.dropdown ul li a {
width: 100%;
display: inline-block;
}
ul.dropdown ul ul {
left: 100%;
top: 0;
}
ul.dropdown li:hover > ul {
visibility: visible;
}
</style>

View File

@@ -0,0 +1,49 @@
<?php
global $site;
?>
<ul <? if ( !$this -> _step && !$this -> _type ) echo 'class="dropdown"';?> id="menu_<?= $this -> _menu_id . '_' . $this->_step;?>">
<?
if ( is_array( $this -> _pages ) ) foreach ( $this -> _pages as $site_tmp )
{
?>
<li class="menu_li_<?= $this -> _menu_id . '_' . $this -> _step;?>">
<?
switch( $site_tmp -> _values['id_page_type'] )
{
case 8:
$link = $site_tmp -> _values['link'];
break;
case 9:
$link = 'rejestracja';
break;
case 10:
$link = 'wyszukiwarka';
break;
case 11:
$link = 'mapa_strony';
break;
default:
if ( $site_tmp -> _values['seo_link'] )
$link = $site_tmp -> _values['seo_link'];
else
$link = 's,' . $site_tmp -> _values['id'] . ',' . \System::seo( $site_tmp -> _values['title'] );
break;
}
echo '<a href="' . $link . '"';
if ( $site_tmp -> _values['id'] == $site -> _values['id'] )
echo ' class="menu_active menu_link_' . $this -> _menu_id . '_' . $this -> _step . '"';
else
echo ' class="menu_inactive menu_link_' . $this -> _menu_id . '_' . $this -> _step . '"';
echo ' id="menu_link_' . $this -> _menu_id . '_' . $site_tmp -> _values['id'] . '" title="' . ucfirst( $site_tmp -> _values['title'] ) . '">';
echo ucfirst( $site_tmp -> _values['title'] );
echo '</a>';
if ( is_array( $site_tmp -> _values['subpages'] ) )
echo \menu\VMenu::drawSubpages( $site_tmp -> _values['subpages'], $this -> _menu_id, $this -> _step + 1 );
?>
</li>
<?
}
?>
</ul>

View File

@@ -0,0 +1,21 @@
<?php
global $lang;
?>
<div id="newsletter_form">
<div id="title">
<?= $lang -> getTrans( 'T_NEWSLETTER' );?>
</div>
<div id="form">
<input type="text" id="email" placeholder="e-mail" />
<div class="clearfix"></div>
<a class="button" onclick="newsletterSign( 0 )" id="sign_out">wypisz się</a>
<a class="button" onclick="newsletterSign( 1 )" id="sign_in">zapisz się</a>
<div class="clearfix"></div>
</div>
</div>
<script type="text/javascript">
function newsletterSign( type ) {
xajax_newsletterSign( type, $( '#email' ).val() );
$( '#email' ).attr( 'disabled', 'disabled' );
}
</script>

View File

@@ -0,0 +1,50 @@
<div id="advert_background" onClick="closeAdvert()">
<img src="<?=$this -> _advert['img'];?>" id="advert_img">
</div>
<style type="text/css">
#advert_img {
border: 10px solid #000000;
cursor: pointer;
opacity: 1;
position: relative;
top: 10%;
z-index: 1003;
}
#advert_background {
background: rgba( 255, 255, 255, 0.8);
height: 100%;
left: 0;
position: fixed;
text-align: center;
top: 0;
width: 100%;
z-index: 1002;
}
</style>
<script type="text/javascript">
$( '#advert_img' ).load( function()
{
var h_i = $( '#advert_img' ).height();
var h = $(window).height();
if ( h_i < h )
h = h_i;
else
h = h * 0.80;
var cssObj = {
'height' : h + 'px',
'margin-top' : '-' + ( h/2 + 10 ) + 'px',
'top' : '50%'
}
jQuery('#advert_img').css( cssObj );
});
function closeAdvert() {
jQuery("#advert_background").css( 'display' , 'none' );
xajax_closeAdvert();
}
</script>

View File

@@ -0,0 +1,6 @@
<?
if ( isset( $this -> _alert ) && $this -> _alert )
{
?><div class="alert"><?=$this -> _alert;?></div><?
}
?>

View File

@@ -0,0 +1,16 @@
<div class="title">Polecamy</div>
<div id="banner_container">
<? if ( is_array( $this -> _banners ) ): foreach ( $this -> _banners as $baner ):?>
<div class="banner">
<a href="<?= $baner['link'];?>" rel="nofollow">
<img src="resources/thumber.php?img=<?= $baner['image'];?>&w=540" />
</a>
</div>
<? endforeach; endif;?>
</div>
<script type="text/javascript" src="/resources/jquery.cycle.all.js"></script>
<script type="text/javascript">
$( document ).ready( function() {
$( '#banner_container' ).cycle();
});
</script>

10
templates/other/clock.php Normal file
View File

@@ -0,0 +1,10 @@
<script type='text/javascript' src='resources/jquery.jclock.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$('#clock').jclock();
});
</script>
<div class="date_clock">
<?=$this -> _data;?>
<div id='clock'></div>
</div>

View File

@@ -0,0 +1,10 @@
<? global $config;?>
<p style="font-weight: bold;">Witaj,</p>
<p>poniżej znajdziesz wiadomość wysłaną ze strony <span style="font-weight: bold;">www.<?= $config['page'];?></span>.</p>
<p></p>
<p><span style="font-weight: bold;">Imię i nazwisko:</span> <?= $this -> _data['ac-name'];?></p>
<p><span style="font-weight: bold;">Firma:</span> <?= $this -> _data['ac-firm'];?></p>
<p><span style="font-weight: bold;">Email:</span> <?= $this -> _data['ac-email'];?></p>
<p><span style="font-weight: bold;">Roczna ilość:</span> <?= $this -> _data['ac-quantity'];?></p>
<p><span style="font-weight: bold;">Treść:</span></p>
<p><?= nl2br( $this -> _data['ac-text'] );?></p>

View File

@@ -0,0 +1,18 @@
<? global $lang;?>
<div id='contact_mini'>
<div id="title"><?= $lang -> getTrans( 'T_KONTAKT' );?></div>
<?
if ( isset( $this -> _firm_name ) && $this -> _firm_name )
echo '<div class="contact_line">' . $this -> _firm_name . '</div>';
if ( isset( $this -> _street ) || isset( $this -> _postal_code ) || isset( $this -> _city ) )
echo '<div class="contact_line">' . $this -> _street . '<br />' . $this -> _postal_code . ' ' . $this -> _city . '</div>';
if ( $this -> _phone || $this -> _email )
{
echo '<div class="contact_line">';
echo $lang -> getTrans( 'T_TEL' ) . ' ' . $this -> _phone . '<br /><a href="mailto:' . $this -> _email . '">' . $this -> _email . '</a>';
echo '</div>';
}
?>
</div>

View File

@@ -0,0 +1,8 @@
<div id="cookie_information" style="position: fixed; bottom: 0; padding: 10px 0; background: #484848; color: #939393; text-align: center; width: 100%; font-size: 10px; line-height: 16px;">
<p style="bottom: 10px;">
W ramach naszej witryny stosujemy pliki cookies w celu świadczenia Państwu usług na najwyższym poziomie, w tym w sposób dostosowany do indywidualnych potrzeb.
Korzystanie z witryny bez zmiany ustawień dotyczących cookies oznacza akceptację faktu będą one zamieszczane w Państwa urządzeniu końcowym.
Możecie Państwo dokonać w każdym czasie zmiany ustawień dotyczących cookies.
</p>
<a href="#" onclick="xajax_setCookieInf(); $( '#cookie_information' ).hide(); return false;" style="color: #FFF;">[akceptuję]</a>
</div>

View File

@@ -0,0 +1,3 @@
<div id="copyright">
Realizacja: <a href="http://www.project-pro.pl/" title="Project-Pro">Project-Pro</a> - <a href="http://www.project-pro.pl/" title="projektowanie stron www">projektowanie stron www</a>
</div>

View File

@@ -0,0 +1,46 @@
<div id="facebook">
<div id="facebook-toggle"></div>
<iframe src="//www.facebook.com/plugins/likebox.php?href=<?= urlencode( \admin\factory\Settings::getSystemSettings( 'facebook_url' ) );?>&amp;width=292&amp;height=558&amp;show_faces=true&amp;colorscheme=light&amp;stream=true&amp;border_color=%23FFF&amp;header=false&amp;appId=194295077275888" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:558px;" allowTransparency="true"></iframe>
</div>
<style type="text/css">
#facebook {
position: fixed;
top: 50%;
margin-top: -275px;
background: #FFF;
z-index: 10;
border: 1px solid #3B5998;
border-left: 0px;
width: 292px;
height: 550px;
left: -293px;
-webkit-box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
}
#facebook-toggle {
background: url( '/images/system/facebook.jpg' ) no-repeat center;
height: 133px;
width: 50px;
position: relative;
z-index: 12;
float: right;
right: -50px;
top: -1px;
-webkit-box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
cursor: pointer;
}
#facebook iframe {
margin-top: -133px;
}
</style>
<script type="text/javascript">
$( function() {
$( '#facebook-toggle' ).click( function() {
if ( !$( '#facebook' ).hasClass( 'show' ) )
$( '#facebook' ).addClass( 'show' ).animate({ left: 0 }, 1000 );
else
$( '#facebook' ).removeClass( 'show' ).animate({ left: -293 }, 500 );
})
})
</script>

View File

@@ -0,0 +1,11 @@
<div id="languages">
<?
if ( is_array( $this -> _langs ) ) foreach ( $this -> _langs as $lang_tmp )
{
echo '<div id="lang_' . $lang_tmp['id'] . '"';
if ( $lang_tmp['id'] == $this -> _current_lang )
echo ' class="current_lang"';
echo ' onClick="document.location.href=\'lang,' . $lang_tmp['id'] . '\';">' . $lang_tmp['id'] . '</div>';
}
?>
</div>

View File

@@ -0,0 +1,2 @@
<? global $lang; ?>
<?=ucfirst( $lang -> getTrans('T_IMIENINY_OBCHODZA') );?>: <br /><span><?=$this -> _nameday;?></span>

View File

@@ -0,0 +1,6 @@
<div class="static-container" id="static-container-<?= $this -> _container['id'];?>">
<?
if ( $this -> _container['enabled'] )
echo $this -> _container['content'];
?>
</div>

View File

@@ -0,0 +1,4 @@
<? global $lang; ?>
<div id="visit_counter">
<a><?=$this -> _visit_counter;?></a>
</div>

View File

@@ -0,0 +1,21 @@
<?
global $lang;
?>
<ul class="product-category-<?= $this -> _step;?>">
<?php
if ( is_array( $this -> _categories ) ) foreach ( $this -> _categories as $category )
{
?>
<li>
<a href="./kategoria,<?= $category -> get_id();?>,<?= \System::seo( $category -> get_name() );?>">
<?= $category -> get_name();?>
</a>
<?
if ( is_array( $category -> get_subcategories() ) )
echo \product\VCategory::drawCategories( $category -> get_subcategories(), $this -> _step + 1 );
?>
</li>
<?
}
?>
</ul>

View File

@@ -0,0 +1,76 @@
<? global $lang;?>
<div class="products-content">
<?php
if ( is_array( $this -> _categories ) ) foreach ( $this -> _categories as $category )
{
if ( is_array( $category -> get_products() ) ) foreach ( $category -> get_products() as $product )
{
?>
<div class="product">
<div class="product-name">
<?= $product -> get_name();?>
</div>
<div class="product-img">
<?
if ( is_array( $product -> get_images() ) ) foreach ( $product -> get_images() as $img )
{
if ( !$i++ )
{
?>
<a href='<?= $img;?>' class="fancybox-buttons" rel='<?= $product -> get_id();?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?= $img;?>&h=100&w=100' ) no-repeat center;"></div>
</div>
</a>
<?
}
}
?>
</div>
<div class="product-description">
<?= $product -> get_description();?>
</div>
<?
if ( $product -> get_price() )
{
?>
<div class="product-price">
<?= $product -> get_price();?>
</div>
<?
}
if ( is_array( $product -> get_images() ) && count( $product -> get_images() ) > 1 )
{
?>
<div class="product_gallery">
<?
foreach ( $product -> get_images() as $img )
{
if ( $x++ )
{
?>
<a href='<?= $img;?>' class="fancybox-buttons" rel='<?= $product -> get_id();?>'>
<div class="gallery_picture">
<div style="background: url( 'resources/thumber.php?img=<?=$img;?>&h=100&w=100' ) no-repeat center;"></div>
</div>
</a>
<?
}
}
?>
</div>
<?
}
?>
</div>
<?
}
// if ( is_array( $category -> get_subcategories() ) )
// echo \product\VCategory::drawCategories( $category -> get_subcategories(), $this -> _step + 1 );
}
?>
</div>
<?
if ( $this -> _child )
echo '<div class="button" onClick="javascript:history.go(-1);" style="margin-top: 20px;">' . $lang -> getTrans( 'T_WSTECZ' ) . '</div>';

View File

@@ -0,0 +1,55 @@
<div id='ac'>
<div class='edit-row' style='background: #e32d2c; color: #FFF; text-align: center;'>Zadaj pytanie naszemu ekspertowi.</div>
<form method="POST" action="" id="ac-form" enctype="multipart/form-data">
<input type="hidden" name="rw" value="send-ac-form" />
<input type="hidden" name="check" value="<?= mktime();?>" />
<div class='edit-row'>
<label class="red">Imię i nazwisko:*</label>
<div class='input'>
<input type='text' name='ac-name' id='ac-name' class="require" />
</div>
</div>
<div class="edit-row">
<label>Nazwa firmy:</label>
<div class="input">
<input type="text" name="ac-firm" id="ac-firm" />
</div>
</div>
<div class='edit-row'>
<label class="red">Email:*</label>
<div class='input'>
<input type='text' name='ac-email' id='ac-email' class="require" />
</div>
</div>
<div class="edit-row">
<label>Roczna ilość:</label>
<div class="input">
<input type="text" name="ac-quantity" id="ad-quantity" />
</div>
</div>
<div class='edit-row'>
<label class="red">Treść:*</label>
<div class='input'>
<textarea name='ac-text' id='ac-text' style='height: 120px;' class="require"></textarea>
</div>
</div>
<div class="edit-row">
<label>Zdjęcie:</label>
<div class="input">
<input type="file" name="ac-file" id="ac-file" />
</div>
</div>
<div class="edit-row">
<label></label>
<div class="input red" style="font-size: 11px;">
* pola wymagane
</div>
</div>
<div class='edit-row'>
<label></label>
<div class='input' style='margin-left: 125px;'>
<a class='button' href='#' onclick="checkForm( 'ac-form' );">wyślij zapytanie</a>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,43 @@
<? global $lang, $config;?>
<div id="contact_form">
<div id="title">
Złóz zapytanie
</div>
<div id="desc">
Zapraszamy do składania zapytań : odpowiadamy szybko, udzielamy fachowej - konkretnej informacji, transakcję realizujemy sprawnie - dbamy o to by każdy nasz klient był zadowolony z kontaktów z nami.
</div>
<div class="edit_line">
<label><?= ucfirst( $lang -> getTrans( 'T_TWOJ_EMAIL' ) );?>:</label>
<div class="input">
<input type='text' id="cf_email" />
</div>
</div>
<div class="edit_line">
<label><?= ucfirst( $lang -> getTrans( 'T_TEMAT' ) );?>:</label>
<div class="input">
<input type='text' id="cf_subject" value="Zapytanie ze strony: <?= $config['page'];?>" />
</div>
</div>
<div class="edit_line">
<label><?= ucfirst( $lang -> getTrans( 'T_TRESC' ) );?>:</label>
<div class="input">
<textarea name='text' id="cf_text" cols='35' rows='6'></textarea>
</div>
</div>
<div class="edit_line">
<label></label>
<div class="input">
<a class='button' onClick='sendContactMsg();'><?=$lang -> getTrans( 'T_WYSLIJ' );?></a>
</div>
</div>
</div>
<script type='text/javascript'>
function sendContactMsg()
{
var email = $( "#cf_email" ).val();
var subject = $( '#cf_subject' ).val();
var text = $( "#cf_text" ).val();
$.prompt( '<?= $lang -> getTrans( 'T_TRWA_WYSYLANIE_FORMULARZA' );?>', { title: 'Komunikat', buttons: { 'Zamknij': true }, focus: 1 });
xajax_sendContactForm( email, subject, text, '<?= mktime();?>' );
}
</script>

View File

@@ -0,0 +1,71 @@
<? global $lang, $config; ?>
<div id="contact-left">
<? if ( \admin\factory\Settings::getSystemSettings( 'google_map_key' ) && \admin\factory\Settings::getSystemSettings( 'street' ) && \admin\factory\Settings::getSystemSettings( 'city' ) ):?>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=<?= \admin\factory\Settings::getSystemSettings( 'google_map_key' );?>' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function()
{
map = new GMap2(document.getElementById( 'mapa' ));
var geo = new GClientGeocoder();
var adres = '<?= \admin\factory\Settings::getSystemSettings( 'street' ) . ' ' . \admin\factory\Settings::getSystemSettings( 'city' );?>';
geo.getLatLng(adres,function(punkt){
map.setCenter(punkt,16);
map.addOverlay(new GMarker(punkt));
map.panTo(punkt);
map.setUIToDefault();
});
});
</script>
<div id='mapa'></div>
<? endif;?>
<?
if ( isset( $this -> _contact_form ) && $this -> _contact_form == 1 )
{
?>
<div class="contact">
<div class="line">
<?= ucfirst( $lang -> getTrans( 'T_TWOJ_EMAIL' ) );?>:<br />
<input type='text' id="email" />
</div>
<div class="line">
<?= ucfirst( $lang -> getTrans( 'T_TEMAT' ) );?>:<br />
<input type='text' id="subject" value="Zapytanie ze strony <?= $config['page'];?>" />
</div>
</div>
<div class="contact">
<div class="line">
<?= ucfirst( $lang -> getTrans( 'T_TRESC' ) );?>:<br />
<textarea id="text" cols='35' rows='6'></textarea>
</div>
</div>
<div class="contact">
<a class='button' onClick='sendContactForm();'><?=$lang -> getTrans( 'T_WYSLIJ' );?></a>
</div>
<?
}
?>
<div class="contact_details">
<h2>Adres</h2>
<? if ( isset( $this -> _firm_name ) && $this -> _firm_name ):?>
<div class="bold"><?= $this -> _firm_name;?></div>
<? endif;?>
<div class="line"><?= $this -> _street;?></div>
<div class="line"><?= $lang -> getTrans( 'T_TEL' ) . ' ' . $this -> _phone;?></div>
<div class="line"><?= $this -> _postal_code . ' ' . $this -> _city;?></div>
<div class="line"><a href="mailto:'<?= $this -> _email;?>"><?= $this -> _email;?></a></div>
<? if ( isset( $this -> _info ) ):?>
<div class="clearfix" style="margin: 10px 0;"><?= $this -> _info;?></div>
<? endif;?>
</div>
</div>
<div class="clearfix"></div>
<script type='text/javascript'>
function sendContactForm()
{
var email = $("#email").val();
var subject = $("#subject").val();
var text = $("#text").val();
$.prompt( '<?=$lang -> getTrans( 'T_TRWA_WYSYLANIE_FORMULARZA' );?>', { title: 'Komunikat', buttons: { 'Zamknij': true }, focus: 1 });
xajax_sendContactForm( email, subject, text, '<?= mktime();?>' );
}
</script>

View File

@@ -0,0 +1,69 @@
<?
global $lang;
if ( isset( $this -> _entries ) && is_array( $this -> _entries ) ) foreach ( $this -> _entries as $entry )
{
?>
<div class='guest_book_entry'>
<div class='guest_book_signature'>
<span><?=$entry['signature'];?></span>
<?=$entry['date'];?>
</div>
<div class='text'><?=$entry['text'];?></div>
</div>
<?
}
else
{
?><div class='alert'><?=$lang -> getTrans( 'T_BRAK_WPISOW_KSIEGA_GOSCI' );?></div><?
}
?>
<div class='guest_book_add_entry'>
<table id="table_contact">
<tr>
<td style='width:20%; text-align:right;'>
<?=ucfirst( $lang -> getTrans( 'T_PODPIS' ) );?>:
</td>
<td>
<input type='text' id="signature" name='signature' style='width:150px;'>
</td>
</tr>
<tr>
<td style='text-align:right;'>
<?=ucfirst( $lang -> getTrans( 'T_TRESC' ) );?>:
</td>
<td>
<textarea id="text" name='text' cols='30' rows='6' style='width:300px;'></textarea>
</td>
</tr>
<tr>
<td style='text-align:right;'>
<?=ucfirst( $lang -> getTrans( 'T_KOD' ) );?>:
</td>
<td>
<input type="text" id="captcha_code" name="captcha_code" maxlength="6">
</td>
</tr>
<tr>
<td></td>
<td>
<img id="captcha" src="/resources/securimage/securimage_show.php" alt="CAPTCHA Image" />
</td>
</tr>
<tr>
<td style='text-align:center; padding-top:10px;' colspan='2'>
<div class='button' onClick='sendGuestBookEntry()'><?=$lang -> getTrans( 'T_DODAJ_WPIS' );?></div>
</td>
</tr>
</table>
</div>
<script type='text/javascript'>
function sendGuestBookEntry()
{
var signature = $("#signature").val();
var code = $("#captcha_code").val();
var text = $("#text").val();
$.prompt('<?=$lang -> getTrans( 'T_TRWA_WYSYLANIE_FORMULARZA' );?>');
xajax_sendGuestBookEntry( signature , text , code , '<?=date( 'Y-m-d H:i:s' );?>' , '<?=\System::getSessionVar( 'token' );?>' );
}
</script>

48
templates/site/paging.php Normal file
View File

@@ -0,0 +1,48 @@
<? global $lang; ?>
<table id='paging'>
<tr>
<?
if ( $this -> _bs > 1 )
{
?>
<td><a href='<?=str_replace( '[bs]', 1, $this -> _link );?>' class='paging_arrow paging_active'><?=$lang -> getTrans( 'T_PIERWSZA' );?></a></td>
<td><a href='<?=str_replace( '[bs]', ($this -> _bs - 1 ), $this -> _link );?>' class='paging_arrow paging_active'><?=$lang -> getTrans( 'T_POPRZEDNIA' );?></a></td>
<?
}
else
{
?>
<td><a class='paging_arrow paging_inactive'><?=$lang -> getTrans( 'T_PIERWSZA' );?></a></td>
<td><a class='paging_arrow paging_inactive'><?=$lang -> getTrans( 'T_POPRZEDNIA' );?></a></td>
<?
}
for ( $i = $this -> _a; $i <= $this -> _b; $i++ )
{
if ( $i > 0 && $i <= $this -> _ls )
{
echo "<td>
<a href='" . str_replace( '[bs]', $i, $this -> _link ) . "' class='paging_numbers";
if ( $i == $this -> _bs )
echo ' paging_current';
echo "'>" . $i;
echo "</a>
</td>";
}
}
if ( $this -> _bs < $this -> _ls )
{
?>
<td><a href='<?=str_replace( '[bs]', ( $this -> _bs + 1 ), $this -> _link );?>' class='paging_arrow paging_active'><?=$lang -> getTrans( 'T_NASTEPNA' );?></a></td>
<td><a href='<?=str_replace( '[bs]', $this -> _ls, $this -> _link );?>' class='paging_arrow paging_active'><?=$lang -> getTrans( 'T_OSTATNIA' );?></a></td>
<?
}
else
{
?>
<td><a class='paging_arrow paging_inactive'><?=$lang -> getTrans( 'T_NASTEPNA' );?></a></td>
<td><a class='paging_arrow paging_inactive'><?=$lang -> getTrans( 'T_OSTATNIA' );?></a></td>
<?
}
?>
</tr>
</table>

View File

@@ -0,0 +1,7 @@
<? global $lang; ?>
<div class="search">
<form method="POST" action="wyszukiwarka" id="wyszukiwarka" class="form_designer">
<input type="text" name="s_text" id="s_text" value="<? if ( isset( $this -> _text ) ) echo $this -> _text; else echo 'Szukaj...';?>" onFocus="$( this ).val( '' );" onBlur="if ( $( this ).val() == '' ) $( this ).val( '<?=$lang -> getTrans( 'T_SZUKAJ' );?>..' );">
<img src="/images/nosystem/search.png" onclick="$( '#wyszukiwarka' ).submit();" id="button-search" />
</form>
</div>

View File

@@ -0,0 +1,57 @@
<?
global $lang;
?>
<div class="clearfix"></div>
<?
include 'templates/site/search-form.php';
if ( $this -> _message )
echo '<div class="alert">' . $this -> _message . '</div>';
if ( is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
$art -> _values['seo_link'] ? $link = $art -> _values['seo_link'] : $link = 'a,' . $art -> _values['id'] . ',' . \System::seo( $art -> _values['title'] );
?>
<div class='article_entry' onClick='document.location.href="<?=$link;?>";'>
<? if ( $art -> getImg() ):?>
<div class="article_img">
<img src='resources/thumber.php?img=<?= $art -> getImg();?>&w=100'>
</div>
<? endif;?>
<div class='article_title'><a><?= stripslashes( $art -> _values['title'] );?></a></div>
<? if ( $art -> _values['show_date'] ):?>
<div class='article_date'><?= date( 'H:i d/m/Y', strtotime( $art -> _values['date_add'] ) );?></div>
<? endif;?>
<div class="text">
<?
$text = strip_tags( $art -> getModifyText( true ) );
$position = strpos( $text , $this -> _text );
$start = $position - 255;
if ( $start < 0 )
$start = 0;
if ( $start > 0 )
$out = '...';
else
$out = '';
$end = 255;
if ( $end > $position )
$end = $position;
$out .= mb_substr( $text , $start , $end , 'UTF-8' );
$out .= mb_substr( $text , $position , 255 , 'UTF-8' );
$out .= '...';
$out = str_replace( $this -> _values['text'] , '<b>' . $this -> _values['text'] . '</b>' , $out );
echo $out;
?>
</div>
<a href="<?= $link;?>" class='article_more'><?= $lang -> getTrans( 'T_WIECEJ' );?></a>
<p style='clear:both'></p>
</div>
<?
}
?>

View File

@@ -0,0 +1,35 @@
<?php
echo '<ul>';
if ( is_array( $this -> _pages ) ) foreach ( $this -> _pages as $site_tmp )
{
echo '<li>';
switch( $site_tmp -> _values['id_page_type'] )
{
case 8:
$link = $site_tmp -> _values['link'];
break;
case 9:
$link = 'rejestracja';
break;
case 10:
$link = 'wyszukiwarka';
break;
case 11:
$link = 'mapa_strony';
break;
default:
$link = 's,' . $site_tmp -> _values['id'] . ',' . \System::seo( $site_tmp -> _values['title'] ) . '';
break;
}
echo '<a href="' . $link . '">';
echo ucfirst( $site_tmp -> _values['title'] );
echo '</a>';
if ( is_array( $site_tmp -> _values['subpages'] ) )
echo \site\VSite::drawSiteMapPages( $site_tmp -> _values['subpages'] );
echo '</li>';
}
echo '</ul>';
?>

View File

@@ -0,0 +1,12 @@
<?php
if ( is_array( $this -> _sitemaps ) ) foreach ( $this -> _sitemaps as $sitemap )
{
?>
<ul class="sitemap">
<?
if ( is_array( $sitemap['pages'] ) )
echo \site\VSite::drawSiteMapPages( $sitemap['pages'] );
?>
</ul>
<?
}

1
templates/site/title.php Normal file
View File

@@ -0,0 +1 @@
<div id="site-title"><?= $this -> _title;?></div>

View File

@@ -0,0 +1,44 @@
<? global $lang;?>
<script type="text/javascript">
function loginUser()
{
var login = $( '#l_login' ).val();
var password = $( '#l_password' ).val();
if ( login && password )
{
$.prompt( '<?=$lang -> getTrans( 'T_PROSZE_CZEKAC' );?>..' );
xajax_loginUser( login , password );
}
}
</script>
<form>
<table>
<tr>
<th class="header" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_LOGIN' );?>:</th>
<td class="row"><input type="text" name="l_login" id="l_login"></td>
</tr>
<tr>
<th class="header" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_HASLO' );?>:</th>
<td class="row"><input type="password" name="l_password" id="l_password">
</tr>
<tr>
<td></td>
<td class="row center">
<div onClick="loginUser()"><?= $lang -> getTrans( 'T_ZALOGUJ' );?></div>
</td>
</tr>
<tr>
<td colspan="2" class="row">
<?
if ( \admin\factory\Settings::getSystemSettings( 'register' ) )
{
?>
<a href="rejestracja"><?=$lang -> getTrans( 'T_REJESTRACJA' );?></a> /
<?
}
?><a href="odzyskaj_haslo"><?=$lang -> getTrans( 'T_ODZYSKAJ_HASLO' );?></a>
</td>
</tr>
</table>
</form>

View File

@@ -0,0 +1,48 @@
<?
global $user, $lang;
?>
<div class="user_panel" style="clear: both;">
<?
if ( !is_object( $user ) || !$user -> get_login() )
{
?>
<form class="form_designer">
<table>
<tr>
<th class="header" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_EMAIL' );?>:</th>
<td class="row"><input type="text" name="r_email" id="r_email"></td>
</tr>
<tr>
<td colspan="2" class="row">
<input type="button" value="<?=$lang -> getTrans( 'T_ODZYSKAJ_HASLO' );?>" onClick="recoverPassword()">
</td>
</tr>
</table>
</form>
<?
}
?>
</div>
<script type="text/javascript">
function recoverPassword()
{
var email = $( "#r_email" ).val();
if ( !sprawdzEmail( email ) )
$.prompt( '<?=$lang -> getTrans( 'T_NIEPRAWIDLOWY_EMAIL_REJESTRACJA' );?>' , { buttons: { <?=$lang -> getTrans( 'T_ZAMKNIJ' );?>: true }, focus: 1 });
else
{
$.prompt('<?=$lang -> getTrans( 'T_PROSZE_CZEKAC' );?>');
xajax_recoverPassword( email );
}
}
function sprawdzEmail(AdresEmail)
{
var TestEmail = /^(.[A-Za-z0-9\-]*\w)+@+([A-Za-z0-9\-]*\w)+(\.[A-Za-z]*\w)+$/;
var Wynik = AdresEmail.match(TestEmail);
if (Wynik == null)
return false;
return true;
}
</script>

View File

@@ -0,0 +1,79 @@
<?
global $lang;
if ( !\admin\factory\Settings::getSystemSettings( 'register' ) )
{
?>
<div class="alert">
<?=$lang -> getTrans( 'T_REJESTRACJA_ZAMKNIETA' );?>
</div>
<?
}
else
{
?>
<div class="registration_form">
<form method="POST" id="user_register" class="form_designer">
<input type="hidden" name="check" value="<?\System::getSessionVar( 'token' );?>">
<input type="hidden" name="action" value="user_registration">
<table>
<tr>
<td colspan="2" id="r_login_check"></td>
</tr>
<tr>
<th class="header right" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_LOGIN' );?>:</th>
<td class="row"><input type="text" name="r_login" id="r_login" onChange="checkRegisterForm( 'login' )"></td>
</tr>
<tr>
<td colspan="2" id="r_password_check"></td>
</tr>
<tr>
<th class="header right" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_HASLO' );?>:</th>
<td class="row"><input type="password" name="r_password" id="r_password" onChange="checkRegisterForm( 'password' )"></td>
</tr>
<tr>
<th class="header right" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_HASLO_POWTORZ' );?>:</th>
<td class="row"><input type="password" name="r_password_re" id="r_password_re" onChange="checkRegisterForm( 'password' )"></td>
</tr>
<tr>
<td colspan="2" id="r_email_check"></td>
</tr>
<tr>
<th class="header right" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_EMAIL' );?>:</th>
<td class="row"><input type="text" name="r_email" id="r_email" onChange="checkRegisterForm( 'email' )"></td>
</tr>
<tr>
<td></td>
<td class="row center">
<input type="button" value="<?=$lang -> getTrans( 'T_REJESTRUJ' );?>" onClick="registerUser()">
</td>
</tr>
</table>
</form>
</div>
<?
}
?>
<script type="text/javascript">
var r_login = false;
var r_password = false;
var r_email = false;
function checkRegisterForm( param )
{
var value = $( '#r_' + param ).val();
if ( param == 'password' )
var value2 = $( '#r_' + param + '_re' ).val();
$.prompt('<?=$lang -> getTrans( 'T_TRWA_SPRAWDZANIE' );?>');
xajax_checkRegisterForm( param , value , value2 );
}
function registerUser()
{
if ( !r_login || !r_password || !r_email )
$.prompt( '<?=$lang -> getTrans( 'T_BLEDY_REJESTRACJA_FORMULARZ' );?>' , { buttons: { <?=$lang -> getTrans( 'T_ZAMKNIJ' );?>: true }, focus: 1 });
else
{
$.prompt('<?=$lang -> getTrans( 'T_TRWA_REJESTRACJA' );?>');
xajax_registerUser( $( "#r_login" ).val() , $( "#r_password" ).val() , $( "#r_email" ).val() );
}
}
</script>

View File

@@ -0,0 +1,67 @@
<?
global $user, $lang;
?>
<div class="user_panel">
<div class="header"><?=$lang -> getTrans( 'T_PANEL_UZYTKOWNIKA' );?></div>
<?
if ( is_object( $user ) && $user -> get_login() )
{
?>
<div><?=ucfirst( $lang -> getTrans( 'T_WITAJ' ) );?>: <?=$user -> get_login();?></div>
<div style="margin: auto; width: 90px; height: 25px; margin-top: 10px;">
<form class="form_designer">
<input type="button" onClick="xajax_logout();" value="<?=$lang -> getTrans( 'T_WYLOGUJ' );?>">
</form>
</div>
<?
}
else
{
?>
<form class="form_designer">
<table>
<tr>
<th class="header" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_LOGIN' );?>:</th>
<td class="row"><input type="text" name="l_login" id="l_login"></td>
</tr>
<tr>
<th class="header" style="padding: 0px 0px 10px;"><?=$lang -> getTrans( 'T_HASLO' );?>:</th>
<td class="row"><input type="password" name="l_password" id="l_password">
</tr>
<tr>
<td></td>
<td class="row center">
<input type="button" value="<?=$lang -> getTrans( 'T_ZALOGUJ' );?>" onClick="loginUser()">
</td>
</tr>
<tr>
<td colspan="2" class="row">
<?
if ( \admin\factory\Settings::getSystemSettings( 'register' ) )
{
?>
<a href="rejestracja"><?=$lang -> getTrans( 'T_REJESTRACJA' );?></a> /
<?
}
?><a href="odzyskaj_haslo"><?=$lang -> getTrans( 'T_ODZYSKAJ_HASLO' );?></a>
</td>
</tr>
</table>
</form>
<?
}
?>
</div>
<script type="text/javascript">
function loginUser()
{
var login = $( '#l_login' ).val();
var password = $( '#l_password' ).val();
if ( login && password )
{
$.prompt( '<?=$lang -> getTrans( 'T_PROSZE_CZEKAC' );?>..' );
xajax_loginUser( login , password );
}
}
</script>