first commit

This commit is contained in:
2023-05-08 09:03:09 +02:00
commit 94149e1c6a
286 changed files with 19144 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
<?
global $lang;
?>
<div class='article_draw'>
<?
if ( $this -> _print )
{
?>
<a class='print' href='print.php?art=<?=$this -> _id;?>' target='_blank'>
<img src='images/system/sico_print.png' alt='<?=$lang -> getTrans('T_DRUKUJ' );?>' style='border:0px;'>
</a>
<?
}
if ( $this -> _show_title )
{
?>
<div class='article_draw_title'>
<?=stripslashes( $this -> _title );?>
</div>
<?
}
if ( $this -> _show_date )
{
?>
<div class='article_draw_date'>
<?=$this -> _date_add;?>
</div>
<?
}
?>
<div class='article_draw_text'>
<?=$this -> _text;?>
</div>
<?
if ( is_array( $this -> _images ) )
{
?>
<div class="article_gallery">
<?
foreach ( $this -> _images as $img )
{
?>
<a href='<?=$img['src'];?>' class="fancybox-buttons" rel='<?=$this -> _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>
<?
}
?>
</div>
<?
}
?>
<div style="clear: both;"></div>
</div>
<div class="button" onClick="javascript:history.go(-1);" style="margin-top: 20px;">
<?=$lang -> getTrans( 'T_WSTECZ' );?>
</div>
<script type="text/javascript">
$(document).ready(function() {
var i = 0;
$( '.article_gallery div.gallery_picture' ).each(function(){
var me = this;
$(this).hide()
var j = i;
setTimeout(function(){
$(me).fadeIn(3000);
}, i)
i += 300
});
});
</script>

View File

@@ -0,0 +1,43 @@
<?
global $lang;
if ( isset( $this -> _articles ) && is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
if ( $art -> get_seo_link() )
$link = $art -> get_seo_link();
else
$link = 'a,' . $art -> get_id() . ',' . \System::seo( $art -> get_title() );
?>
<div class='article_entry'>
<?
if ( $art -> get_show_title() )
{
?><div class='article_title'><a><?=stripslashes( $art -> get_title() );?></a></div><?
}
if ( $art -> getImg() )
{
?>
<div class="article_img">
<div style="background: url( 'resources/thumber.php?img=<?=$art -> getImg();?>&h=150&w=250' ) no-repeat center;"></div>
</div>
<?
}
if ( $art -> get_show_date() )
{
?><div class='article_date'><?=date( 'H:i d/m/Y', strtotime( $art -> get_date_add() ) );?></div><?
}
?>
<div style="text-align: justify;">
<?
$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,94 @@
<?
global $lang;
if ( isset( $this -> _articles ) && is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
?>
<div class="article_full">
<?
if ( $art -> get_show_title() )
{
?>
<div class='article_title'>
<?=stripslashes( $art -> get_title() );?>
</div>
<?
}
if ( $art -> get_show_date() )
{
?><div class='article_date'><?=date( 'Y-m-d H:s' , strtotime( $art -> get_date_add() ) );?></div><?
}
if ( $art -> get_print_enabled() )
{
?>
<a class='print' href='print.php?art=<?=$art-> get_id();?>' target='_blank'>
<img src='images/system/sico_print.png' alt='<?=$lang -> getTrans('T_DRUKUJ' );?>' style='border:0px;'>
</a>
<?
}
?>
<div class='article_text'><?=$art -> getModifyText();?></div>
<?
if ( is_array( $art -> get_images() ) )
{
?>
<div class="article_gallery">
<?
foreach ( $art -> get_images() as $img )
{
?>
<a href='<?=$img['src'];?>' class="fancybox-buttons" rel='<?=$art -> get_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>
<?
}
?>
</div>
<?
}
?>
<?
if ( is_array( $art -> get_files() ) )
{
?>
<ul class="article_files">
<?
foreach ( $art -> get_files() as $file )
{
?>
<li>
<a href="pobierz,<?=$file['id'];?>">
<?=$file['name'];?>
</a>
</li>
<?
}
?>
</ul>
<?
}
?>
</div>
<?
}
?>
<script type="text/javascript">
$(document).ready(function() {
var i = 0;
$( '.article_gallery div.gallery_picture' ).each(function(){
var me = this;
$(this).hide()
var j = i;
setTimeout(function(){
$(me).fadeIn(3000);
}, i)
i += 300
});
});
</script>

View File

@@ -0,0 +1,19 @@
<?
$rand = rand(0,10000);
?>
<div id='article_gallery_<?=$rand;?>' 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=200&w=200' ) no-repeat center;"></div>
</div>
</a>
<?
}
?>
<p style="clear: both;"></p>
</div>

View File

@@ -0,0 +1,20 @@
<?
if ( isset( $this -> _articles ) && is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
if ( $art -> get_seo_link() )
$link = $art -> get_seo_link();
else
$link = 'a,' . $art -> get_id() . ',' . \System::seo( $art -> get_title() );
?>
<div class='article_list' onClick='document.location.href="<?=$link;?>";'>
<div class='article_title'><a><?=ucfirst( $art -> get_title() );?></a></div>
<?
if ( $art -> get_show_date() )
{
?><div class='article_date'><?=$art -> get_date_add();?></div><?
}
?>
</div>
<?
}
?>

35
templates/article-map.php Normal file
View File

@@ -0,0 +1,35 @@
<?
if ( isset( $this -> _adress ) )
{
?>
<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 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,20 @@
<?
if ( isset( $this -> _articles ) && is_array( $this -> _articles ) ) foreach ( $this -> _articles as $art )
{
if ( $art -> getImg() )
$src = "resources/thumber.php?img=" . $art -> getImg() . "&w=250&h=250&cache=false";
else
$src = "resources/thumber.php?img=images/system/no_img.jpg&w=200&h=200";
if ( $art -> get_seo_link() )
$link = $art -> get_seo_link();
else
$link = 'a,' . $art -> get_id() . ',' . \System::seo( $art -> get_title() );
?>
<div class='article_mini' onClick='document.location.href="<?=$link;?>";'
style="background: url( '<?=$src;?>') no-repeat center top;">
<div class='mini_title'><?=$art -> get_title();?></div>
</div>
<?
}
?>
<div style="clear:both;"></div>

View File

@@ -0,0 +1,37 @@
<?
$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>

31
templates/site-advert.php Normal file
View File

@@ -0,0 +1,31 @@
<div id="img-bg" onClick="closeImg()">
<img src="/upload/2kh18-kh3-kh1-plakat-gron-2kh18.jpg" id="img-bg-img">
</div>
<style type="text/css">
#img-bg-img {
border: 10px solid #000000;
cursor: pointer;
opacity: 1;
position: relative;
top: 10%;
z-index: 1002;
height: 80%;
}
#img-bg {
background: rgba( 255, 255, 255, 0.8);
height: 100%;
left: 0;
position: fixed;
text-align: center;
top: 0;
width: 100%;
z-index: 1001;
}
</style>
<script type="text/javascript">
function closeImg()
{
jQuery("#img-bg").css( 'display' , 'none' );
xajax_closeAdvert();
}
</script>

6
templates/site-alert.php Normal file
View File

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

View File

@@ -0,0 +1,19 @@
<? global $lang;?>
<?
if ( isset($this -> _banners) && is_array($this -> _banners) ) {
?>
<fieldset>
<legend><?=ucfirst( $lang -> getTrans( 'T_POLECAMY' ) );?></legend>
<?
foreach ( $this -> _banners as $baner ) {
?>
<div class="banner">
<a href="<?=$baner['link'];?>" target="_blank"><img src="resources/thumber.php?img=<?=$baner['image'];?>&w=250"></a>
</div>
<?
}
?>
</fieldset>
<?
}
?>

10
templates/site-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,27 @@
<? global $lang; ?>
<div id='contact'>
<div style="text-align: right;">
<a href="https://www.facebook.com/RockowaSzkolaMuzyczna" target="_blank">
<img src="images/nosystem/icon-facebook.png">
</a>
</div>
<?
if ( isset( $this -> _firm_name ) && $this -> _firm_name )
echo '<div class="contact_line" style="color: #FFC900;">' . $this -> _firm_name . '</div>';
if ( isset( $this -> _street ) || isset( $this -> _postal_code ) || isset( $this -> _city ) )
echo '<div class="contact_line">ul. ' . $this -> _street . '<br />' . $this -> _postal_code . ' ' . $this -> _city . '</div>';
if ( isset( $this -> _phone ) && $this -> _phone )
echo '<div class="contact_line">' . $lang -> getTrans( 'T_TEL' ) . ' ' . $this -> _phone . '</div>';
if ( isset( $this -> _fax ) && $this -> _fax )
echo '<div class="contact_line">' . $lang -> getTrans( 'T_FAX' ) . ' ' . $this -> _fax . '</div>';
if ( isset( $this -> _email ) && $this -> _email )
echo '<div class="contact_line"><a href="mailto:' . $this -> _email . '">' . $this -> _email . '</a></div>';
if ( isset( $this -> _nip ) && $this -> _nip )
echo '<div class="contact_line">' . $lang -> getTrans( 'T_NIP' ) . ': ' . $this -> _nip . '</div>';
?>
</div>

View File

@@ -0,0 +1,91 @@
<? global $lang , $sys; ?>
<div id='contact_full'>
<?
if ( isset( $this -> _firm_name ) && $this -> _firm_name )
echo '<div class="contact_line" style="color: #FFC900;">' . $this -> _firm_name . '</div>';
if ( isset( $this -> _street ) || isset( $this -> _postal_code ) || isset( $this -> _city ) )
echo '<div class="contact_line">ul. ' . $this -> _street . '<br />' . $this -> _postal_code . ' ' . $this -> _city . '</div>';
if ( isset( $this -> _phone ) && $this -> _phone )
echo '<div class="contact_line">' . $lang -> getTrans( 'T_TEL' ) . ' ' . $this -> _phone . '</div>';
if ( isset( $this -> _fax ) && $this -> _fax )
echo '<div class="contact_line">' . $lang -> getTrans( 'T_FAX' ) . ' ' . $this -> _fax . '</div>';
if ( isset( $this -> _email ) && $this -> _email )
echo '<div class="contact_line"><a href="mailto:' . $this -> _email . '">' . $this -> _email . '</a></div>';
if ( isset( $this -> _nip ) && $this -> _nip )
echo '<div class="contact_line">' . $lang -> getTrans( 'T_NIP' ) . ': ' . $this -> _nip . '</div>';
?>
<div class="contact_line" style="display: none;">
<p>BOŚ S.A. o/Rzeszów</p>
<p>Nr konta: <a href="#" style="color: #FFC900;">94 1540 1131 2113 9101 3626 0001</a></p>
</div>
</div>
<div id="contact">
<?
if ( isset( $this -> _contact_form ) && $this -> _contact_form == 1 )
{
?>
<div class="contact_line">
<?=ucfirst( $lang -> getTrans( 'T_TWOJ_EMAIL' ) );?>:
</div>
<div class="contact_line">
<input type='text' id="email" name='email'>
</div>
<div class="contact_line">
<?=ucfirst( $lang -> getTrans( 'T_TEMAT' ) );?>:
</div>
<div class="contact_line">
<input type='text' id="subject" name='subject'>
</div>
<div class="contact_line">
<?=ucfirst( $lang -> getTrans( 'T_TRESC' ) );?>:
</div>
<div class="contact_line">
<textarea name='text' id="text" cols='35' rows='6'></textarea>
</div>
<div class="contact_line">
<a class='button' onClick='sendContactForm();' style="float: right;"><?=$lang -> getTrans( 'T_WYSLIJ' );?></a>
</div>
<?
}
?>
</div>
<div class="clearfix"></div>
<?
if ( $sys -> getSystemSettings( 'google_map_key' ) && $user_tmp == true )
{
?>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=<?=$sys -> 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 = '<?=$sys -> getSystemSettings( 'street' ) . ' ' . $sys -> 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' style='width: 490px; height: 260px; border: 1px solid black; position: relative; top: -200px; right: -440px;'></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' );?>');
xajax_sendContactForm( email , subject , text , '<?=date( "Y-m-d H:i:s" );?>' , '<?=$sys -> getSessionVar( 'token' );?>' );
}
</script>

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,69 @@
<?
global $lang , $sys;
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' );?>' , '<?=$sys -> getSessionVar( 'token' );?>' );
}
</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'] . '\';">' . ucfirst( $lang_tmp['name'] ) . '</div>';
}
?>
</div>

41
templates/site-menu.php Normal file
View File

@@ -0,0 +1,41 @@
<? global $site; ?>
<div id="menu_left_<?=$this -> _menu -> get_id();?>"><i class='uil uil-align-justify'></i></div>
<div id="menu_<?=$this -> _menu -> get_id();?>">
<?
if ( is_array( $this -> _menu -> get_sites() ) ) foreach ( $this -> _menu -> get_sites() as $site_tmp )
{
switch( $site_tmp -> get_site_type() )
{
case 8:
$link = $site_tmp -> get_link();
break;
case 9:
$link = 'rejestracja';
break;
case 10:
$link = 'wyszukiwarka';
break;
case 11:
$link = 'mapa_strony';
break;
default:
if ( $site_tmp -> get_seo_link() )
$link = $site_tmp -> get_seo_link();
else
$link = 's,' . $site_tmp -> get_id() . ',' . \System::seo( $site_tmp -> get_title() );
break;
}
echo '<a href="' . $link . '"';
if ( $site_tmp -> get_id() == $site -> get_id() )
echo ' class="menu_active"';
else
echo ' class="menu_inactive"';
echo ' id="menu_link_' . $this -> _menu -> get_id() . '_' . $site_tmp -> get_id() . '" title="' . ucfirst( $site_tmp -> get_title() ) . '">';
echo ucfirst( $site_tmp -> get_title() );
echo '</a>';
}
?>
</div>
<div id="menu_right_<?=$this -> _menu -> get_id();?>"></div>

View File

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

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,9 @@
<?
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' );?>..' );">
<input type="submit" value="<?=$lang -> getTrans( 'T_SZUKAJ' );?>">
</form>
</div>

View File

@@ -0,0 +1,65 @@
<?
global $lang;
?>
<div class="clearfix" style="margin-bottom: 50px; width: 100%; height: 1px;"></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 )
{
if ( $art -> get_seo_link() )
$link = $art -> get_seo_link();
else
$link = 'a,' . $art -> get_id() . ',' . \System::seo( $art -> get_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>
<?
}
?>
<div class='article_title'><a><?=stripslashes( $art -> get_title() );?></a></div>
<div class='article_date'><?=$art -> get_date_add();?></div>
<?
?>
<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 -> _text , '<b>' . $this -> _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,37 @@
<?php
if ( is_array( $this -> _sitemap ) ) foreach ( $this -> _sitemap as $menu )
{
?>
<ul class="sitemap">
<?
if ( is_array( $menu['pages'] ) ) foreach ( $menu['pages'] as $site_tmp )
{
echo '<li>';
switch( $site_tmp -> get_site_type() )
{
case 8:
$link = $site_tmp -> get_link();
break;
case 9:
$link = 'rejestracja';
break;
case 10:
$link = 'wyszukiwarka';
break;
case 11:
$link = 'mapa_strony';
break;
default:
$link = 's,' . $site_tmp -> get_id() . ',' . \System::seo( $site_tmp -> get_title() ) . '';
break;
}
echo '<a href="' . $link . '">';
echo ucfirst( $site_tmp -> get_title() );
echo '</a>';
echo '</li>';
}
?>
</ul>
<?
}

View File

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

67
templates/user-panel.php Normal file
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 ( \System::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>

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 $user , $lang;
if ( !\System::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>