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,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>