first commit

This commit is contained in:
2024-11-11 15:28:20 +01:00
commit 3f5649dbc7
6231 changed files with 999089 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<? global $lang;?>
<div class="col-12 col-sm-4">
<div class="article-entry">
<? $this -> article['language']['seo_link'] ? $url = $this -> article['language']['seo_link'] : $url = 'a-' . $this -> article['id'] . '-' . \S::seo( $this -> article['language']['title'] );?>
<div class="entry">
<a href="/<? if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() ) echo \S::get_session( 'current-lang' ) . '/';?><?= $url;?>" title="<?= $this -> article['language']['title'];?>" <? if ( $this -> article['language']['noindex'] ):?>rel="nofollow"<? endif;?>>
<? if ( file_exists( substr( $img = \front\factory\Articles::get_image( $this -> article ), 1, strlen( $img ) ) ) ):?><img src="<?= $img;?>" alt="" /><? endif;?>
</a>
</div>
<?
if ( $this -> article['show_date_add'] )
echo '<div class="date-add">' . ucfirst( $lang['data-dodania'] ) . ': ' . date( 'H:i d/m/Y', strtotime( $this -> article['date_add'] ) ) . '</div>';
if ( $this -> article['show_date_modify'] )
echo '<div class="date-add">' . ucfirst( $lang['data-modyfikacji'] ) . ': ' . date( 'H:i d/m/Y', strtotime( $this -> article['date_modify'] ) ) . '</div>';
if ( $this -> article['show_title'] ):
?>
<h3 class="article-title">
<a href="/<? if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() ) echo \S::get_session( 'current-lang' ) . '/';?><?= $url;?>" title="<?= $this -> article['language']['title'];?>" <? if ( $this -> article['language']['noindex'] ):?>rel="nofollow"<? endif;?>><?= $this -> article['language']['title'];?></a>
</h3>
<?
endif;
?>
<div class="text">
<?
$content = $this -> article['language']['entry'];
$content = preg_replace( "/<img[^>]+\>/i", "", $content );
$content = preg_replace( "/<p[^>]*?><\/p>/", "", $content );
$content = trim( strip_tags( $content ) );
echo mb_substr( $content, 0, 200, 'UTF-8' );
if ( strlen( $content) > 200 )
echo '...';
?>
</div>
<a href="/<?= $url;?>" class="btn" title="<?= $this -> article['language']['title'];?>" <? if ( $this -> article['language']['noindex'] ):?>rel="nofollow"<? endif;?>><?= $lang['wiecej'];?></a>
</div>
</div>

View File

@@ -0,0 +1,232 @@
<? global $lang, $lang_id;?>
<div class="article-full">
<?
$this -> article['language']['seo_link'] ? $url = $this -> article['language']['seo_link'] : $url = 'a-' . $this -> article['id'] . '-' . \S::seo( $this -> article['language']['title'] );
if ( $this -> article['show_title'] )
echo '<h3 class="article-title">' . $this -> article['language']['title'] . '</h3>';
if ( $this -> article['social_icons'] ):
?>
<div class="social-icons">
<a class="fb" href="http://www.facebook.com/sharer.php?u=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="facebook" target="_blank" rel="nofollow">
<img src="/images/system/logo-facebook.jpg" alt="facebook" />
</a>
<a class="pinterest" href="http://pinterest.com/pin/create/button/?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="pinterest" target="_blank" rel="nofollow">
<img src="/images/system/logo-pinterest.jpg" alt="pinterest" />
</a>
<a class="twitter" href="http://twitter.com/share?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=450,width=600');return false;" title="twitter" target="_blank" rel="nofollow">
<img src="/images/system/logo-twitter.jpg" alt="twitter" />
</a>
<a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=850');return false;" title="linked in" target="_blank" rel="nofollow">
<img src="/images/system/logo-linkedin.jpg" alt="linkedin" />
</a>
<a class="gp" href="https://plus.google.com/share?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="google+" target="_blank" rel="nofollow">
<img src="/images/system/logo-google.jpg" alt="google+" />
</a>
</div>
<?
endif;
if ( $this -> article['show_date_add'] )
echo '<div class="date-add">' . $lang['data-dodania'] . ': ' . $this -> article['date_add'] . '</div>';
if ( $this -> article['show_date_modify'] )
echo '<div class="date-add">' . $lang['data-modyfikacji'] . ': ' . $this -> article['date_modify'] . '</div>';
if ( is_array( $this -> article['tags'] ) and !empty( $this -> article['tags'] ) ):
echo '<div class="article-tags">';
echo '<ul>';
foreach ( $this -> article['tags'] as $tag ):
echo '<li>';
echo '<a href="/tag,' . \S::seo( $tag ) . '">'. $tag . '</a>';
echo '</li>';
endforeach;
echo '</ul>';
echo '</div>';
endif;
?>
<? if ( $this -> article['repeat_entry'] ):?>
<div class="entry">
<?= $this -> article['language']['entry'];?>
</div>
<? endif;?>
<div class="text">
<?
$text = $this -> article['language']['text'];
/* artykuł wewnątrz innego artykułu */
preg_match_all( '/ARTYKUL:[0-9]*/', $this -> article['language']['text'], $articles_list );
if ( is_array( $articles_list[0] ) ) foreach( $articles_list[0] as $article_tmp )
{
$article_tmp = explode( ':', $article_tmp );
if ( $article_tmp[1] != $this -> article['id'] )
$text = str_replace( '[ARTYKUL:' . $article_tmp[1] . ']', \front\view\Articles::article_full( $article_tmp[1], $lang_id ), $text );
else
$text = str_replace( '[ARTYKUL:' . $article_tmp[1] . ']', '', $text );
}
/* galeria w innym miejscu niż na końcu */
if ( strpos( $this -> article['language']['text'], '[GALERIA]' ) !== false )
{
ob_start();
if ( is_array( $this -> article['images'] ) ):
?>
<div class="gallery">
<div class="row">
<?
foreach ( $this -> article['images'] as $img ):
?>
<div class="col-12 col-sm-3 co-lg-4">
<a rel="article-<?= $this -> article['id'];?>" href="<?= $img['src'];?>" title="">
<img src="<?= $img['src'];?>" alt="<?= $img['alt'];?>" />
</a>
</div>
<?
endforeach;
?>
</div>
</div>
<?
endif;
$gallery = ob_get_contents();
ob_end_clean();
$text = str_replace( '[GALERIA]', $gallery, $text );
}
/* załączniki w innym miejscu niż na końcu */
if ( strpos( $this -> article['language']['text'], '[ZALACZNIKI]' ) !== false )
{
ob_start();
if ( is_array( $this -> article['files'] ) ):
?>
<ul class="files">
<?
foreach ( $this -> article['files'] as $file ):
?>
<li>
<a href="./download.php?file=<?= $file['id'];?>&hash=<?= md5( $file['src'] );?>" title="<?= $file['name'];?>" target="_blank">
<?
if ( $file['name'] )
echo $file['name'];
else
{
$name = explode( '/', $file['src'] );
echo $name[ count( $name ) - 1 ];
}
?>
</a>
</li>
<?
endforeach;
?>
</ul>
<?
endif;
$files = ob_get_contents();
ob_end_clean();
$text = str_replace( '[ZALACZNIKI]', $files, $text );
}
/* slider */
if ( strpos( $text, '[SLIDER]' ) !== false )
{
while ( strpos( $text, '[SLIDER]' ) !== false )
{
$text_tmp = explode( '[SLIDER]', $text );
$before = $text_tmp[0];
for ( $i = 1; $i < count( $text_tmp ); $i++ )
{
$temp = explode( '[/SLIDER]' , $text_tmp[$i] );
$code = $temp[0];
ob_start();
$images_tmp = explode( '|', $code );
if ( is_array( $images_tmp ) and !empty( $images_tmp ) ) foreach ( $images_tmp as $image_tmp )
{
$image = explode( ';', $image_tmp );
$images[] = $image;
}
$tpl = new \Tpl;
$tpl -> images = $images;
$tpl -> article_id = $this -> article['id'];
$tpl -> i = $i;
echo $tpl -> render( 'articles/slider' );
$out .= ob_get_contents();
ob_end_clean();
$out .= $temp[1];
}
$text = $before . $out;
}
}
echo $text;
?>
</div>
<?
if ( is_array( $this -> article['images'] ) and strpos( $this -> article['language']['text'], '[GALERIA]' ) === false ):
?>
<div class="gallery">
<div class="row">
<?
foreach ( $this -> article['images'] as $img ):
?>
<div class="col-12 col-sm-3 co-lg-4">
<a rel="article-<?= $this -> article['id'];?>" href="<?= $img['src'];?>" title="">
<img src="<?= $img['src'];?>" alt="<?= $img['alt'];?>" />
</a>
</div>
<?
endforeach;
?>
</div>
</div>
<?
endif;
if ( is_array( $this -> article['files'] ) and strpos( $this -> article['language']['text'], '[ZALACZNIKI]' ) === false ):
?>
<ul class="files">
<?
foreach ( $this -> article['files'] as $file ):
?>
<li>
<a href="./download.php?file=<?= $file['id'];?>&hash=<?= md5( $file['src'] );?>" title="<?= $file['name'];?>" target="_blank">
<?
if ( $file['name'] )
echo $file['name'];
else
{
$name = explode( '/', $file['src'] );
echo $name[ count( $name ) - 1 ];
}
?>
</a>
</li>
<?
endforeach;
?>
</ul>
<?
endif;
?>
</div>
<link class="footer" href="/libraries/fancyBox/jquery.fancybox.css" rel="stylesheet" type="text/css">
<link class="footer" href="/libraries/fancyBox/helpers/jquery.fancybox-buttons.css" rel="stylesheet" type="text/css">
<script class="footer" type="text/javascript" src="/libraries/fancyBox/jquery.fancybox.js"></script>
<script class="footer" type="text/javascript" src="/libraries/fancyBox/helpers/jquery.fancybox-buttons.js"></script>
<script class="footer" type="text/javascript">
$( document ).ready(function()
{
$( ".gallery a" ).fancybox({
closeBtn : false,
helpers : {
buttons : {}
}
});
});
</script>

View File

@@ -0,0 +1,252 @@
<? global $lang, $lang_id;?>
<div class="article">
<?
$this -> article['language']['seo_link'] ? $url = $this -> article['language']['seo_link'] : $url = 'a-' . $this -> article['id'] . '-' . \S::seo( $this -> article['language']['title'] );
if ( $this -> article['show_title'] )
echo '<h1 class="article-title">' . $this -> article['language']['title'] . '</h1>';
if ( $this -> article['social_icons'] ):
?>
<div class="social-icons">
<p class="mb5"><?= ucfirst( $lang['podziel-sie-z-innymi'] );?>:</p>
<a class="fb" href="http://www.facebook.com/sharer.php?u=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="facebook" target="_blank" rel="nofollow">
<img src="/images/system/logo-facebook.jpg" alt="facebook" />
</a>
<a class="pinterest" href="http://pinterest.com/pin/create/button/?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="pinterest" target="_blank" rel="nofollow">
<img src="/images/system/logo-pinterest.jpg" alt="pinterest" />
</a>
<a class="twitter" href="http://twitter.com/share?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=450,width=600');return false;" title="twitter" target="_blank" rel="nofollow">
<img src="/images/system/logo-twitter.jpg" alt="twitter" />
</a>
<a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=850');return false;" title="linked in" target="_blank" rel="nofollow">
<img src="/images/system/logo-linkedin.jpg" alt="linkedin" />
</a>
<a class="gp" href="https://plus.google.com/share?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="google+" target="_blank" rel="nofollow">
<img src="/images/system/logo-google.jpg" alt="google+" />
</a>
</div>
<?
endif;
if ( $this -> article['show_date_add'] )
echo '<div class="date-add">' . ucfirst( $lang['data-dodania'] ) . ': ' . date( 'H:i d/m/Y', strtotime( $this -> article['date_add'] ) ) . '</div>';
if ( $this -> article['show_date_modify'] )
echo '<div class="date-add">' . ucfirst( $lang['data-modyfikacji'] ) . ': ' . date( 'H:i d/m/Y', strtotime( $this -> article['date_modify'] ) ) . '</div>';
if ( $this -> article['tags'] ):
echo '<div class="article-tags">';
echo '<ul>';
foreach ( $this -> article['tags'] as $tag ):
echo '<li>';
echo '<a href="/tag,' . \S::seo( $tag ) . '">' . $tag . '</a>';
echo '</li>';
endforeach;
echo '</ul>';
echo '</div>';
endif;
?>
<div class="text">
<? if ( $this -> article['repeat_entry'] ):?>
<?= $this -> article['language']['entry'];?>
<? endif;?>
<?
$text = $this -> article['language']['text'];
/* artykuł wewnątrz innego artykułu */
preg_match_all( '/ARTYKUL:[0-9]*/', $this -> article['language']['text'], $articles_list );
if ( is_array( $articles_list[0] ) ) foreach( $articles_list[0] as $article_tmp )
{
$article_tmp = explode( ':', $article_tmp );
if ( $article_tmp[1] != $this -> article['id'] )
$text = str_replace( '[ARTYKUL:' . $article_tmp[1] . ']', \front\view\Articles::article_full( $article_tmp[1], $lang_id ), $text );
else
$text = str_replace( '[ARTYKUL:' . $article_tmp[1] . ']', '', $text );
}
/* galeria w innym miejscu niż na końcu */
if ( strpos( $this -> article['language']['text'], '[GALERIA]' ) !== false )
{
ob_start();
if ( is_array( $this -> article['images'] ) ):
?>
<div class="gallery">
<div class="row">
<?
foreach ( $this -> article['images'] as $img ):
?>
<div class="col-12 col-sm-3 co-lg-4">
<a rel="article-<?= $this -> article['id'];?>" href="<?= $img['src'];?>" title="">
<img src="<?= $img['src'];?>" alt="<?= $img['alt'];?>" />
</a>
</div>
<?
endforeach;
?>
</div>
</div>
<?
endif;
$gallery = ob_get_contents();
ob_end_clean();
$text = str_replace( '[GALERIA]', $gallery, $text );
}
/* załączniki w innym miejscu niż na końcu */
if ( strpos( $this -> article['language']['text'], '[ZALACZNIKI]' ) !== false )
{
ob_start();
if ( is_array( $this -> article['files'] ) ):
?>
<ul class="files">
<?
foreach ( $this -> article['files'] as $file ):
?>
<li>
<a href="./download.php?file=<?= $file['id'];?>&hash=<?= md5( $file['src'] );?>" title="<?= $file['name'];?>" target="_blank">
<?
if ( $file['name'] )
echo $file['name'];
else
{
$name = explode( '/', $file['src'] );
echo $name[ count( $name ) - 1 ];
}
?>
</a>
</li>
<?
endforeach;
?>
</ul>
<?
endif;
$files = ob_get_contents();
ob_end_clean();
$text = str_replace( '[ZALACZNIKI]', $files, $text );
}
/* slider */
if ( strpos( $text, '[SLIDER]' ) !== false )
{
while ( strpos( $text, '[SLIDER]' ) !== false )
{
$text_tmp = explode( '[SLIDER]', $text );
$before = $text_tmp[0];
for ( $i = 1; $i < count( $text_tmp ); $i++ )
{
$temp = explode( '[/SLIDER]' , $text_tmp[$i] );
$code = $temp[0];
ob_start();
$images_tmp = explode( '|', $code );
if ( is_array( $images_tmp ) and !empty( $images_tmp ) ) foreach ( $images_tmp as $image_tmp )
{
$image = explode( ';', $image_tmp );
$images[] = $image;
}
$tpl = new \Tpl;
$tpl -> images = $images;
$tpl -> article_id = $this -> article['id'];
$tpl -> i = $i;
echo $tpl -> render( 'articles/slider' );
$out .= ob_get_contents();
ob_end_clean();
$out .= $temp[1];
}
$text = $before . $out;
}
}
echo $text;
?>
</div>
<?
if ( is_array( $this -> article['images'] ) and strpos( $this -> article['language']['text'], '[GALERIA]' ) === false ):
?>
<div class="gallery">
<div class="row">
<?
foreach ( $this -> article['images'] as $img ):
?>
<div class="col-12 col-sm-3 co-lg-4">
<a rel="article-<?= $this -> article['id'];?>" href="<?= $img['src'];?>" title="">
<img src="<?= $img['src'];?>" alt="<?= $img['alt'];?>" />
</a>
</div>
<?
endforeach;
?>
</div>
</div>
<?
endif;
if ( is_array( $this -> article['files'] ) and strpos( $this -> article['language']['text'], '[ZALACZNIKI]' ) === false ):
?>
<ul class="files">
<?
foreach ( $this -> article['files'] as $file ):
?>
<li>
<a href="./download.php?file=<?= $file['id'];?>&hash=<?= md5( $file['src'] );?>" title="<?= $file['name'];?>" target="_blank">
<?
if ( $file['name'] )
echo $file['name'];
else
{
$name = explode( '/', $file['src'] );
echo $name[ count( $name ) - 1 ];
}
?>
</a>
</li>
<?
endforeach;
?>
</ul>
<?
endif;
?>
<? if ( $this -> article['social_icons'] ):?>
<div class="social-icons">
<p class="mb5"><?= ucfirst( $lang['podziel-sie-z-innymi'] );?>:</p>
<a class="fb" href="http://www.facebook.com/sharer.php?u=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="facebook" target="_blank" rel="nofollow">
<img src="/images/system/logo-facebook.jpg" alt="facebook" />
</a>
<a class="pinterest" href="http://pinterest.com/pin/create/button/?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="pinterest" target="_blank" rel="nofollow">
<img src="/images/system/logo-pinterest.jpg" alt="pinterest" />
</a>
<a class="twitter" href="http://twitter.com/share?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=450,width=600');return false;" title="twitter" target="_blank" rel="nofollow">
<img src="/images/system/logo-twitter.jpg" alt="twitter" />
</a>
<a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=850');return false;" title="linked in" target="_blank" rel="nofollow">
<img src="/images/system/logo-linkedin.jpg" alt="linkedin" />
</a>
<a class="gp" href="https://plus.google.com/share?url=<?= \S::get_domain_url( $_SERVER['SERVER_NAME'] );?>/<?= $url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="google+" target="_blank" rel="nofollow">
<img src="/images/system/logo-google.jpg" alt="google+" />
</a>
</div>
<? endif;?>
<!--<a href="javascript:history.go(-1);" class="btn btn-success"><?= $lang['wstecz'];?></a>-->
</div>
<link class="footer" href="/libraries/fancyBox/jquery.fancybox.css" rel="stylesheet" type="text/css">
<link class="footer" href="/libraries/fancyBox/helpers/jquery.fancybox-buttons.css" rel="stylesheet" type="text/css">
<script class="footer" type="text/javascript" src="/libraries/fancyBox/jquery.fancybox.js"></script>
<script class="footer" type="text/javascript" src="/libraries/fancyBox/helpers/jquery.fancybox-buttons.js"></script>
<script class="footer" type="text/javascript">
$( document ).ready(function()
{
$( ".gallery a" ).fancybox({
closeBtn : false,
helpers : {
buttons : {}
}
});
});
</script>

View File

@@ -0,0 +1,11 @@
<div class="row">
<?
if ( is_array( $this -> articles ) ) foreach ( $this -> articles as $article )
{
$tpl = new \Tpl;
$tpl -> page_id = $this -> page_id;
$tpl -> article = $article;
echo $tpl -> render( 'articles/article-entry' );
}
?>
</div>

View File

@@ -0,0 +1,39 @@
<? global $lang, $config, $settings;?>
<div id="news" class="row">
<? if ( is_array( $this -> articles ) ): foreach ( $this -> articles as $article ):?>
<? $article['language']['seo_link'] ? $url = $article['language']['seo_link'] : $url = 'a-' . $article['id'] . '-' . \S::seo( $article['language']['title'] );?>
<div class="col-12 col-sm-6">
<div class="article-image">
<? if ( $img = \front\factory\Articles::get_image( $article ) ):?>
<img src="<?= $img;?>" alt="<?= $article['language']['title'];?>">
<? endif;?>
<h2 class="article-title">
<a href="/<? if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language( \S::get_domain( $_SERVER['HTTP_HOST'] ) ) ) echo \S::get_session( 'current-lang' ) . '/';?><?= $url;?>" title="<?= $article['language']['title'];?>" <? if ( $article['language']['noindex'] ):?>rel="nofollow"<? endif;?>><?= $article['language']['title'];?></a>
</h2>
</div>
</div>
<div class="col-12 col-sm-6">
<div class="entry">
<?
if ( $article['language']['entry'] )
{
$content = $article['language']['entry'];
$content = preg_replace( "/<img[^>]+\>/i", "", $content );
$content = preg_replace( "/<p[^>]*?><\/p>/", "", $content );
echo $content;
if ( $article['language']['text'] )
$more = true;
}
else
{
echo $article['language']['text'];
$more = false;
}
?>
</div>
</div>
<? endforeach; endif;?>
</div>

View File

@@ -0,0 +1,41 @@
<h2 class="blog-news-title"><?= \S::lang( 'zobacz-inne-artykuly' );?></h2>
<?
global $mdb, $lang_id;
$results = $mdb -> query( 'SELECT * FROM ( '
. 'SELECT '
. 'a.id, date_modify, date_add, o, priority, '
. '( CASE '
. 'WHEN copy_from IS NULL THEN title '
. 'WHEN copy_from IS NOT NULL THEN ( '
. 'SELECT '
. 'title '
. 'FROM '
. 'pp_articles_langs '
. 'WHERE '
. 'lang_id = al.copy_from AND article_id = a.id '
. ') '
. 'END ) AS title '
. 'FROM '
. 'pp_articles_pages AS ap '
. 'INNER JOIN pp_articles AS a ON a.id = ap.article_id '
. 'INNER JOIN pp_articles_langs AS al ON al.article_id = ap.article_id '
. 'WHERE '
. 'status = 1 AND page_id = 6 AND lang_id = \'' . $lang_id . '\' '
. ') AS q1 '
. 'WHERE '
. 'q1.title IS NOT NULL '
. 'ORDER BY RAND() '
. 'LIMIT 3' ) -> fetchAll();
if ( is_array( $results ) and !empty( $results ) ) foreach ( $results as $row )
$articles[] = $row['id'];
if ( is_array( $articles ) and count( $articles ) )
{
foreach ( $articles as $article )
$articles_details[] = \front\factory\Articles::article_details( $article, $lang_id );
$tpl = new \Tpl;
$tpl -> articles = $articles_details;
echo $tpl -> render( 'articles/articles-entries' );
}

View File

@@ -0,0 +1,417 @@
<? global $lang; ?>
<div class="row">
<div class="col-12 col-lg-9">
<div class="advert-details">
<div class="top">
<h1 class="name"><?= $this->advert['title']; ?></h1>
<div class="top-content">
<div class="row">
<div class="col-md-6">
<div class="advert-details-top-right">
<div class="firm">
<a href="/pracodawca/<?= $this->advert['user_id']; ?>/<?= \S::seo($this->advert['firm_name_profile'], true); ?>"><?= $this->advert['firm_name_profile']; ?></a>
</div>
<div class="info">
<span class="date">
<i class="fa fa-calendar"></i><?= ucfirst($lang['opublikowano']); ?>: <?= date('Y-m-d', strtotime($this->advert['date_add'])); ?>
</span>
</div>
<div class="info-second">
<span class="place">
<a href="/oferty-pracy/<?= \S::seo($this->advert['country_name'], true); ?>" title="oferty pracy <?= $this->advert['country_name']; ?>"><?= $this->advert['country_name']; ?></a>
<? if ($this->advert['id_voivodeship']) : ?> - <?= \front\factory\Globelus::get_voivodeship_name($this->advert['id_voivodeship']); ?><? endif; ?> -
<?= $this->advert['city']; ?>
</span><br>
<span class="category">
<a href="/oferty-pracy/<?= \S::seo($this->advert['category_name'], true); ?>" title="oferty pracy <?= $this->advert['category_name']; ?>"><?= $this->advert['category_name']; ?></a>
</span>
<? if ( $this -> advert['id_position'] ):?><br>
<span class="position"><?= \front\factory\Globelus::position_name( $this -> advert['id_position'] );?></span>
<? endif;?>
</div>
<? if ($this->g_user and !$this->g_user['type']) : ?>
<form method="POST" action="<? if (in_array($this->advert['id'], $this->g_user['adverts'])) : ?>/globelusAdverts/remove_from_favorite/<? else : ?>/globelusAdverts/add_to_favorite/<? endif; ?>" id="advert-favorite">
<input type="hidden" name="redirect_url" value="<?= $_SERVER['REQUEST_URI']; ?>">
<input type="hidden" name="advert_id" value="<?= $this->advert['id']; ?>">
<a href="#" <? if (in_array($this->advert['id'], $this->g_user['adverts'])) : ?>class="active" <? endif; ?> onclick="$( '#advert-favorite' ).submit(); return false;">
<i class="fa fa-star" title="<? if (in_array($this->advert['id'], $this->g_user['adverts'])) : ?><?= $lang['usun-z-obserwowanych']; ?><? else : ?><?= $lang['dodaj-do-obserwowanych']; ?><? endif; ?>"></i>
<? if (in_array($this->advert['id'], $this->g_user['adverts'])) : ?><?= $lang['usun-z-obserwowanych']; ?><? else : ?><?= $lang['dodaj-do-obserwowanych']; ?><? endif; ?>
</a>
</form>
<? endif; ?>
</div>
</div>
<div class="col-md-6">
<div class="logo-container">
<div class="logo ">
<? if (file_exists(\front\factory\GlobelusFirms::logo_url($this->advert['user_id']))) : ?>
<img src="/logo/<?= $this->advert['user_id']; ?>/<?= \S::get_token(); ?>">
<? else : ?>
<img src="/images/no-logo.jpg">
<? endif; ?>
</div>
</div>
</div>
</div>
</div>
<div class="icons row no-gutters">
<div class="col-12 col-lg-10 offset-lg-1">
<? if ($this->advert['salary']) : ?>
<div class="icon">
<img src="/layout/images/oferta-wynagrodzenie-gray.svg">
<?= $this->advert['salary']; ?>
</div>
<? endif; ?>
<? if ($this->advert['overtime']) : ?>
<div class="icon small">
<img src="/layout/images/nadgodziny-gray.svg">
<?= $this->advert['overtime_quantity']; ?>
</div>
<? endif; ?>
<? if ($this->advert['accommodation']) : ?>
<div class="icon small">
<img src="/layout/images/zakwaterowanie-gray.svg">
<?= $this->advert['accommodation_cost']; ?>
</div>
<? endif; ?>
<? if ($this->advert['travel_refund']) : ?>
<div class="icon">
<img src="/layout/images/przejazd-gray.svg">
refundacja przejazdu
</div>
<? endif; ?>
<? if ($this->advert['from_now']) : ?>
<div class="icon">
<img src="/layout/images/praca-od-zaraz-gray.svg">
<?= \S::lang('praca-od-zaraz'); ?>
</div>
<? endif; ?>
<? if ($this->advert['work_type']) : ?>
<div class="icon small">
<img src="/layout/images/oferta-rodzaj-umowy-gray.svg">
<? $work_type = \front\factory\Globelus::work_types();
echo $work_type[$this->advert['work_type']]; ?>
</div>
<? endif; ?>
<? if ($this->advert['without_experience']) : ?>
<div class="icon small">
<img src="/layout/images/oferta-doswiadczenie-gray.svg">
<?= \S::lang('bez-doswiadczenia'); ?>
</div>
<? endif; ?>
<? if ($this->advert['without_language']) : ?>
<div class="icon">
<img src="/layout/images/bez-znajomosci-jezyka-gray.svg">
<?= \S::lang('bez-znajomosci-jezyka'); ?>
</div>
<? endif; ?>
<? if ($this->advert['for_couples']) : ?>
<div class="icon small">
<img src="/layout/images/oferta-dla-par-gray.svg">
<?= \S::lang('dla-par'); ?>
</div>
<? endif; ?>
<? if ($this->advert['outside_ue']) : ?>
<div class="icon small">
<img src="/layout/images/ue-gray.svg">
dla obywateli spoza UE
</div>
<? endif; ?>
<? if ($this->advert['without_driving_license']) : ?>
<div class="icon small">
<img src="/layout/images/prawojazdy-gray.svg">
bez prawa jazdy
</div>
<? endif; ?>
</div>
</div>
</div>
<?
$img_header_url = \front\factory\GlobelusFirms::img_header_url( $this -> g_user['id'] );
$advert_add_img_top = \front\factory\GlobelusFirms::advert_add_img_top_url( $this -> advert['id'] );
if ( file_exists( $advert_add_img_top ) ):
echo '<div class="image_header"><img src="/advert_add_img_top/' . $this->advert['id'] . '/'. \S::get_token() . '"></div>';
elseif ( file_exists( $img_header_url ) and !$this -> advert ):
echo '<div class="image_header"><img src="/img_header/' . $this->g_user['id'] . '/'. \S::get_token() . '"></div>';
endif;
?>
<div class="content">
<?
$text = $this->advert['text'];
if (!$this->g_user) :
$text = preg_replace('/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i', ' <a href="/logowanie">Zaloguj się aby zobaczyć adres email</a> ', $text);
$text = preg_replace(
'/(\+[0-9]{11}|\+[0-9]{2} [0-9]{9}|\+[0-9]{2} [0-9]{3} [0-9]{3} [0-9]{3}|\+[0-9]{2} [0-9]{3}-[0-9]{3}-[0-9]{3}|[0-9]{3} [0-9]{3} [0-9]{3}|[0-9]{4} [0-9]{8})/i',
' <a href="/logowanie">Zaloguj się aby zobaczyć numer telefonu</a> ',
$text
);
endif;
echo $text;
?>
</div>
<?
$img_bottom_url = \front\factory\GlobelusFirms::img_bottom_url( $this -> g_user['id'] );
$advert_add_img_bottom = \front\factory\GlobelusFirms::advert_add_img_bottom_url( $this -> advert['id'] );
if ( file_exists( $advert_add_img_bottom ) ):
echo '<div class="image_bottom"><img src="/advert_add_img_bottom/' . $this->advert['id'] . '/'. \S::get_token() . '"></div>';
elseif ( file_exists( $img_bottom_url ) ):
echo '<div class="image_bottom"><img src="/img_bottom/' . $this->g_user['id'] . '/'. \S::get_token() . '"></div>';
endif;
?>
<? if ($this->advert['clauses']) : ?>
<div class="content clauses">
<?= $this->advert['clauses']; ?>
</div>
<? endif; ?>
<? if ($this->advert['contact_person'] or $this->advert['contact_person2']) : ?>
<div class="content person">
<div class="row">
<? if ($this->advert['contact_person']) : ?>
<div class="col-12 col-md-6">
<p><strong>Osoba rekrutująca na stanowisko:</strong></p>
<p><?= $this->advert['contact_person']; ?><br />
<? if (!$this->g_user) : ?>
<a href="/logowanie">Zaloguj się aby zobaczyć adres email</a><br />
<a href="/logowanie">Zaloguj się aby zobaczyć numer telefonu</a><br />
<? else : ?>
<?= $this->advert['phone']; ?><br />
<?= $this->advert['email']; ?><br />
<? endif; ?>
</p>
</div>
<? endif; ?>
<? if ($this->advert['contact_person2']) : ?>
<div class="col-12 col-md-6">
<p><strong>Osoba rekrutująca na stanowisko:</strong></p>
<p><?= $this->advert['contact_person2']; ?><br />
<? if (!$this->g_user) : ?>
<a href="/logowanie">Zaloguj się aby zobaczyć adres email</a><br />
<a href="/logowanie">Zaloguj się aby zobaczyć numer telefonu</a><br />
<? else : ?>
<?= $this->advert['phone2']; ?><br />
<?= $this->advert['email2']; ?><br />
<? endif; ?>
</p>
</div>
<? endif; ?>
</div>
</div>
<? endif; ?>
<? if ($this->advert['aplication_link']) : ?>
<div class="form form--aplication-link application">
<a href="<?= $this->advert['aplication_link'] ?>" target="_blank" class="aplication-link btn btn-success">Aplikuj teraz</a>
<? else : ?>
<div class="form application">
<h3><?= $lang['zainteresowany-nie-zwlekaj-aplikuj']; ?></h3>
<div class="row">
<div class="col-12 col-md-10 offset-md-1">
<form method="POST" action="/globelusAdverts/send_message/" id="advert-contact" enctype="multipart/form-data">
<input type="hidden" name="redirect_url" value="<?= $_SERVER['REQUEST_URI']; ?>">
<input type="hidden" name="advert_id" value="<?= $this->advert['id']; ?>">
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="name" class="col-12 col-sm-4"><?= ucfirst($lang['imie']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="name" name="name" class="form-control" value="<?= $this->g_user['name'] ? htmlspecialchars($this->g_user['name']) : htmlspecialchars(\S::get_session('advert_answer_name')); ?>">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="surname" class="col-12 col-sm-4"><?= ucfirst($lang['nazwisko']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="surname" name="surname" class="form-control" value="<?= $this->g_user['surname'] ? htmlspecialchars($this->g_user['surname']) : htmlspecialchars(\S::get_session('advert_answer_surname')); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst($lang['email']); ?><span class="red">*</span>:</label>
<div class="col-12 col-sm-8">
<input type="text" required id="email" name="email" class="form-control" value="<?= $this->g_user['email'] ? htmlspecialchars($this->g_user['email']) : htmlspecialchars(\S::get_session('advert_answer_email')); ?>">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="phone" class="col-12 col-sm-4"><?= ucfirst($lang['telefon']); ?><span class="red">*</span>:</label>
<div class="col-12 col-sm-8">
<input type="text" required id="phone" name="phone" class="form-control" value="<?= $this->g_user['phone'] ? htmlspecialchars($this->g_user['phone']) : htmlspecialchars(\S::get_session('advert_answer_phone')); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="text" class="col-12 col-sm-4 col-md-2"><?= ucfirst($lang['wiadomosc']); ?>:</label>
<div class="col-12 col-sm-8 col-md-10">
<textarea id="text" name="text" class="form-control">Witam,<?= PHP_EOL; ?>Państwa oferta pracy wydaje mi się interesująca. Bardzo proszę o kontakt.<?= PHP_EOL; ?>Pozdrawiam<?= PHP_EOL; ?><?= htmlspecialchars($this->g_user['surname']); ?> <?= htmlspecialchars($this->g_user['name']); ?>
</textarea>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="cv" class="col-12 col-sm-4 col-md-2"><?= strtoupper($lang['cv']); ?><span class="red">*</span>:</label>
<div class="col-12 col-sm-8 col-md-10 pt10">
<? if ($this->g_user and file_exists(\front\factory\GlobelusCandidates::cv_url($this->g_user['id']))) : ?>
<p class="small-info mt0 text-success">Nie musisz dodawać CV, chyba, że chcesz użyć innego cv niż to zarejestrowane w Profilu Kandydata?</p>
<input type="file" id="cv" name="cv">
<? elseif (!$this->g_user and \S::get_session('advert_answer_cv')) : ?>
<p class="small-info mt0 text-success">Dodaj nowe CV, lub skorzystaj z wcześniej wysłanego.</p>
<input type="file" id="cv" name="cv">
<? else : ?>
<input type="file" id="cv" name="cv" required="required">
<? endif; ?>
</div>
</div>
</div>
</div>
<? if (!$this->g_user) : ?>
<div class="form-group row agremment">
<div class="col-12 col-sm-10 offset-sm-2">
<input type="checkbox" required id="agremment">
<?
$text = str_replace('[LINK-REGULAMIN]', '<a href="/regulamin">' . $lang['regulamin'] . '</a>', $lang['rejestracja-akceptacja-regulaminu']);
echo $text = str_replace('[LINK-POLITYKA-PRYWATNOSCI]', '<a href="/polityka-prywatnosci">' . $lang['polityke-prywatnosci'] . '</a>', $text);
?>
</div>
</div>
<div class="form-group row agremment mt20">
<div class="col-12 col-sm-10 offset-sm-2">
<input type="checkbox" name="register"> Zgadzam się na dopasowanie mojego cv również do innych ofert pracy oraz udostepnienie mojego cv innym pracodawcom zarejestrowanym na globelus.pl
</div>
</div>
<? endif; ?>
<div class="form-group row">
<div class="col-12 col-sm-8 offset-sm-4 offset-md-2 mt20">
<input type="submit" value="<?= ucfirst($lang['aplikuj-na-oferte']); ?>" class="btn btn-success">
</div>
</div>
<div class="form-group row agremment mt20">
<div class="col-12 col-sm-10 offset-sm-2">
Jeśli dałeś nam swoją zgodę i możemy dopasować Twoje cv również do innych ofert pracy oraz udostępnić Twoje cv innym pracodawcom zarejestrowanym na globelus.pl to zalecamy abyś uzupełnij swój <a href="/jakiej-pracy-szukasz">Profil Kandydata</a>.
<!--<input type="checkbox" name="register"> Zgadzam się na dopasowanie mojego cv również do innych ofert pracy oraz udostepnienie mojego cv innym pracodawcom zarejestrowanym na globelus.pl-->
</div>
</div>
</form>
</div>
</div>
<? endif; ?>
</div>
</div>
</div>
<div class="col-12 col-lg-3">
<div class="row advert_details_boxes">
<? if (count($this->similar_adverts)) : ?>
<div class="col-12">
<div class="mini-box vertical similar-adverts">
<div class="title small">
Podobne oferty
</div>
<ul>
<? foreach ($this->similar_adverts as $advert_id) : ?>
<? $advert = \front\factory\GlobelusAdverts::advert_details($advert_id); ?>
<li>
<a href="/oferta/<?= $advert['id']; ?>/<?= \S::seo($advert['title'], true); ?>" title="Ogłoszenie: <?= addslashes($advert['title']); ?>"><?= $advert['title']; ?></a>
<div class="place">
<i class="fa fa-map-marker"></i>
<a href="/oferty-pracy/<?= \S::seo($advert['country_name'], true); ?>" title="oferty pracy <?= $advert['country_name']; ?>"><?= $advert['country_name']; ?></a>
<? if ($advert['id_voivodeship']) : ?> - <?= \front\factory\Globelus::get_voivodeship_name($advert['id_voivodeship']); ?><? endif; ?> -
<?= $advert['city']; ?>
</div>
</li>
<? endforeach; ?>
</ul>
</div>
</div>
<? endif; ?>
<div class="col-12">
<div class="mini-box mt10 text-center">
<form method="POST" action="/oferty-pracy">
<input type="hidden" name="filtr" value="t">
<input type="hidden" name="k" value="<?= $this->advert['firm_name_profile']; ?>">
<a href="#" class="action" onclick="$( this ).parent( 'form' ).submit(); return false;">
<i class="fa fa-bars"></i>
<?= ucfirst($lang['inne-oferty-tego-pracodawcy']); ?>
</a>
</form>
</div>
</div>
<div class="col-12">
<div class="mini-box mt10 text-center">
<a href="/pracodawca/<?= $this->advert['user_id']; ?>/<?= \S::seo($this->advert['firm_name_profile'], true); ?>" class="action">
<i class="fa fa-user"></i>
<?= ucfirst($lang['zobacz-profil-pracodawcy']); ?>
</a>
</div>
</div>
<div class="col-12">
<div class="mini-box mt10 text-center">
<div class="social-icons">
<a class="fb" href="http://www.facebook.com/sharer.php?u=<?= \S::get_domain_url($_SERVER['SERVER_NAME']); ?>/oferta/<?= $this->advert['id']; ?>/<?= \S::seo($this->advert['title'], true); ?>/" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="facebook" target="_blank" rel="nofollow">
<img src="/images/system/logo-facebook.jpg" alt="facebook" />
</a>
<a class="pinterest" href="http://pinterest.com/pin/create/button/?url=<?= \S::get_domain_url($_SERVER['SERVER_NAME']); ?>/oferta/<?= $this->advert['id']; ?>/<?= \S::seo($this->advert['title'], true); ?>/" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="pinterest" target="_blank" rel="nofollow">
<img src="/images/system/logo-pinterest.jpg" alt="pinterest" />
</a>
<a class="twitter" href="http://twitter.com/share?url=<?= \S::get_domain_url($_SERVER['SERVER_NAME']); ?>/oferta/<?= $this->advert['id']; ?>/<?= \S::seo($this->advert['title'], true); ?>/" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=450,width=600');return false;" title="twitter" target="_blank" rel="nofollow">
<img src="/images/system/logo-twitter.jpg" alt="twitter" />
</a>
<a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?= \S::get_domain_url($_SERVER['SERVER_NAME']); ?>/oferta/<?= $this->advert['id']; ?>/<?= \S::seo($this->advert['title'], true); ?>/" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=500,width=850');return false;" title="linked in" target="_blank" rel="nofollow">
<img src="/images/system/logo-linkedin.jpg" alt="linkedin" />
</a>
<a class="gp" href="https://plus.google.com/share?url=<?= \S::get_domain_url($_SERVER['SERVER_NAME']); ?>/oferta/<?= $this->advert['id']; ?>/<?= \S::seo($this->advert['title'], true); ?>/" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="google+" target="_blank" rel="nofollow">
<img src="/images/system/logo-google.jpg" alt="google+" />
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<a href="javascript:history.go(-1);" class="btn btn-dark btn-back"><?= $lang['wstecz']; ?></a>
</div>
</div>
<script class="footer" type="text/javascript">
$(function() {
$('body').on('submit', '#advert-contact', function(e) {
if (!($('#cv')[0].files[0].size < 5242880)) {
e.preventDefault();
$.alert({
title: '<?= ucfirst($lang['blad']); ?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['plik-cv-jest-zbyt-duzy']; ?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons: {
confirm: {
text: '<?= $lang['zamknij']; ?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
});
});
</script>
<?
if (!$this->g_user['id'] or $this->g_user['id'] != $this->advert['user_id'])
\front\factory\GlobelusAdverts::advert_visits_increase($this->advert['id']);
?>

View File

@@ -0,0 +1,475 @@
<? global $lang;?>
<div class="row">
<div class="col-12 col-sm-4 col-md-3">
<div class="advert-filtr">
<form method="GET" action="/oferty-pracy">
<input type="hidden" name="filtr" value="t">
<div class="title"><?= $lang['filtry-wyszukiwania'];?><i class="fa fa-chevron-down"</i></div>
<div class="content">
<div class="subtitle"><?= ucfirst( $lang['slowo-kluczowe'] );?></div>
<div class="subcontent" style="display: block;">
<input type="text" name="k" class="form-control" value="<?= htmlspecialchars( $this -> values['f_keyword'] );?>" placeholder="<?= $lang['wpisz-szukane-slowo-kluczowe'];?>">
</div>
<div class="subtitle toggle" content="categories"><?= ucfirst( $lang['kategorie'] );?></div>
<div class="subcontent" id="subcontent-categories">
<ul>
<? if ( is_array( $this -> values['categories'] ) ): foreach ( $this -> values['categories'] as $category ):?>
<li <? if ( ++$i > 5 ):?> style="display: none;"<? endif;?>>
<input class="checkbox" type="checkbox" name="c1[]" value="<?= $category['id'];?>" <? if ( in_array( $category['id'], $this -> values['f_categories'] ) ):?>checked="checked"<? endif;?>><?= $category['name'];?>
</li>
<? endforeach; endif;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-categories">więcej</a>
</div>
<div class="subtitle toggle" content="countries"><?= ucfirst( $lang['kraj'] );?></div>
<div class="subcontent" id="subcontent-countries">
<ul>
<? if ( is_array( $this -> values['countries'] ) ): foreach ( $this -> values['countries'] as $country ):?>
<li <? if ( ++$j > 5 ):?> style="display: none;"<? endif;?>>
<input class="checkbox country_select" type="checkbox" name="c2[]" value="<?= $country['id'];?>" <? if ( in_array( $country['id'], $this -> values['f_countries'] ) ):?>checked="checked"<? endif;?>><?= $country['name'];?>
</li>
<? endforeach; endif;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-countries">więcej</a>
</div>
<div class="subtitle toggle" content="voivodeships">Województwo (tylko Polska)</div>
<div class="subcontent" id="subcontent-voivodeships">
<ul>
<? if ( is_array( $this -> voivodeships ) ): foreach ( $this -> voivodeships as $voivodeship ):?>
<li <? if ( ++$k > 5 ):?> style="display: none;"<? endif;?>>
<input class="checkbox voivodeships_select" type="checkbox" name="v[]" value="<?= $voivodeship['id'];?>" <? if ( in_array( $voivodeship['id'], $this -> f_voivodeships ) ):?>checked="checked"<? endif;?>><?= $voivodeship['name'];?>
</li>
<? endforeach; endif;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-voivodeships">więcej</a>
</div>
<div class="subtitle toggle" content="time"><?= ucfirst( $lang['oferty-z-okresu'] );?></div>
<div class="subcontent" id="subcontent-time">
<ul>
<li>
<input class="checkbox" type="radio" name="t" value="0" <? if ( !$this -> values['f_time'] ):?>checked="checked"<? endif;?>> <?= $lang['wszystkie'];?>
</li>
<li>
<input class="checkbox" type="radio" name="t" value="1" value="1" <? if ( $this -> values['f_time'] == 1 ):?>checked="checked"<? endif;?>> <?= $lang['filtr-okres-1'];?>
</li>
<li>
<input class="checkbox" type="radio" name="t" value="2" value="2" <? if ( $this -> values['f_time'] == 2 ):?>checked="checked"<? endif;?>> <?= $lang['filtr-okres-2'];?>
</li>
<li>
<input class="checkbox" type="radio" name="t" value="3" value="3" <? if ( $this -> values['f_time'] == 3 ):?>checked="checked"<? endif;?>> <?= $lang['filtr-okres-3'];?>
</li>
<li>
<input class="checkbox" type="radio" name="t" value="4" value="4" <? if ( $this -> values['f_time'] == 4 ):?>checked="checked"<? endif;?>> <?= $lang['filtr-okres-4'];?>
</li>
<li style="display: none;">
<input class="checkbox" type="radio" name="t" value="5" value="5" <? if ( $this -> values['f_time'] == 5 ):?>checked="checked"<? endif;?>> <?= $lang['filtr-okres-5'];?>
</li>
<li style="display: none;">
<input class="checkbox" type="radio" name="t" value="6" value="6" <? if ( $this -> values['f_time'] == 6 ):?>checked="checked"<? endif;?>> <?= $lang['filtr-okres-6'];?>
</li>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-time">więcej</a>
</div>
<div class="subtitle toggle" content="work-type"><?= ucfirst( \S::lang( 'rodzaj-pracy' ) );?></div>
<div class="subcontent" id="subcontent-work-type">
<ul>
<? foreach ( $this -> values['work_types'] as $key => $val ):?>
<li <? if ( ++$l > 4 ):?> style="display: none;"<? endif;?>>
<input class="checkbox work_type_select" type="checkbox" name="wt[]" value="<?= $key;?>" <? if ( in_array( $key, $this -> values['f_work_type'] ) ):?>checked="checked"<? endif;?>> <?= $val;?>
</li>
<? endforeach;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-work-type">więcej</a>
</div>
<div class="subtitle toggle" content="other">Inne kryteria</div>
<div class="subcontent" id="subcontent-other">
<ul>
<li>
<input class="checkbox" type="checkbox" name="wl" <? if ( $this -> values['f_without_language'] ):?>checked="checked"<? endif;?>> bez znajomości języka obcego
</li>
<li>
<input class="checkbox" type="checkbox" name="we" <? if ( $this -> values['f_without_experience'] ):?>checked="checked"<? endif;?>> bez doświadczenia
</li>
<li>
<input class="checkbox" type="checkbox" name="fc" <? if ( $this -> values['f_for_couples'] ):?>checked="checked"<? endif;?>> dla par
</li>
<li>
<input class="checkbox" type="checkbox" name="ap" <? if ( $this -> f_accommodation_provided ):?>checked="checked"<? endif;?>> zapewnione zakwaterowanie
</li>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-other">więcej</a>
</div>
</div>
<input type="submit" class="btn btn-success pull-right mt10" value="<?= $lang['zatwierdz'];?>">
</form>
</div>
</div>
<div class="col-12 col-sm-8 col-md-9">
<div class="adverts-filtr-text">
<? if ( $this -> values['f_categories'] or $this -> values['f_countries'] or $this -> f_voivodeships or $this -> values['f_time'] or $this -> values['f_work_type'] or $this -> values['f_without_language'] or $this -> values['f_without_experience'] or $this -> values['f_for_couples'] or $this -> f_accommodation_provided ):?>
Oferty pracy:
<? foreach ( $this -> values['f_categories'] as $category ):?><strong><?= \front\factory\Globelus::get_category_name( $category );?></strong>, <? endforeach;?>
<? if ( $this -> values['f_countries'] ):?>
kraje:
<? foreach ( $this -> values['f_countries'] as $country ):?><strong><?= str_replace( '-', '', \front\factory\Globelus::get_country_name( $country ) );?></strong>, <? endforeach;?>
<? endif;?>
<? foreach ( $this -> f_voivodeships as $voivodeship ):?><strong><?= \front\factory\Globelus::get_voivodeship_name( $voivodeship );?></strong>, <? endforeach;?>
<? if ( $this -> values['f_time'] == 1 ):?>z okresu: <strong><?= $lang['filtr-okres-1'];?></strong>, <? endif;?>
<? if ( $this -> values['f_time'] == 2 ):?>z okresu: <strong><?= $lang['filtr-okres-2'];?></strong>, <? endif;?>
<? if ( $this -> values['f_time'] == 3 ):?>z okresu: <strong><?= $lang['filtr-okres-3'];?></strong>, <? endif;?>
<? if ( $this -> values['f_time'] == 4 ):?>z okresu: <strong><?= $lang['filtr-okres-4'];?></strong>, <? endif;?>
<? if ( $this -> values['f_time'] == 5 ):?>z okresu: <strong><?= $lang['filtr-okres-5'];?></strong>, <? endif;?>
<? if ( $this -> values['f_time'] == 6 ):?>z okresu: <strong><?= $lang['filtr-okres-6'];?></strong>, <? endif;?>
<? if ( $this -> values['f_work_type'] and ( count( $this -> values['f_work_type'] ) > 1 or count( $this -> values['f_work_type'] ) == 1 and $this -> values['f_work_type'][0] != 0 ) ):?>
<?
$work_types = \front\factory\Globelus::work_types();
?>
rodzaj pracy:
<? foreach ( $this -> values['f_work_type'] as $work_type ):?><strong><?= $work_types[ $work_type ];?></strong>, <? endforeach;?>
<? endif;?>
<? if ( $this -> values['f_without_language'] or $this -> values['f_without_experience'] or $this -> values['f_for_couples'] or $this -> f_accommodation_provided ):?>
inne:
<? endif;?>
<? if ( $this -> values['f_without_language'] ):?><strong><?= $lang['bez-znajomosci-jezyka'];?></strong>, <? endif;?>
<? if ( $this -> values['f_without_experience'] ):?><strong><?= $lang['bez-doswiadczenia'];?></strong>, <? endif;?>
<? if ( $this -> values['f_for_couples'] ):?><strong><?= $lang['dla-par'];?></strong>, <? endif;?>
<? if ( $this -> f_accommodation_provided ):?><strong>zapewnione zakwaterowanie</strong>, <? endif;?>
<? endif;?>
</div>
<? if ( is_array( $this -> values['adverts'] ) and count( $this -> values['adverts']) ):?>
<? foreach ( $this -> values['adverts'] as $advert ):?>
<div class="advert-entry <? if ( $advert['highlight'] ):?>highlight<? endif;?>">
<? if ( $advert['highlight'] ):?><div id="highlight-text">Oferta wyróżniona</div><? endif;?>
<div class="row">
<div class="col-12 col-lg-2">
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $advert['user_id'] ) ) ):?>
<img src="/logo/<?= $advert['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</div>
<div class="col-12 col-lg-10">
<div class="row">
<div class="col-12 col-lg-9">
<a class="title" href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" title="Ogłoszenie: <?= addslashes( $advert['title'] );?>"><?= $advert['title'];?></a>
</div>
<div class="col-12 col-lg-3 date-add">
<?= date( 'Y-m-d', strtotime( $advert['date_active'] ) );?>
<div class="flag">
<? if ( file_exists( 'upload/filemanager/flags/' . \S::seo( $advert['country'] ) . '.jpg' ) ):?>
<img src="/upload/filemanager/flags/<?= \S::seo( $advert['country'] );?>.jpg">
<? endif;?>
</div>
</div>
</div>
<div class="info">
<span class="place">
<a href="/oferty-pracy/<?= \S::seo( $advert['country'], true );?>" title="praca <?= $adver['country'];?>"><?= $advert['country'];?></a> - <?= $advert['city'];?>
</span> | <a href="/pracodawca/<?= $advert['user_id'];?>/<?= \S::seo( $advert['firm_name_profile'] );?>" class="firm"><?= $advert['firm_name_profile'];?></a> |
<span class="category">
<a href="/oferty-pracy/<?= \S::seo( $advert['category'], true );?>" title="praca <?= $advert['category'];?>"><?= $advert['category'];?></a>
</span>
</div>
<div class="icons row no-gutters">
<div class="col-12">
<? if ( $advert['salary'] ):?>
<div class="icon">
<img src="/layout/images/oferta-wynagrodzenie-gray.svg">
<?= $advert['salary'];?>
</div>
<? endif;?>
<? if ( $advert['overtime'] ):?>
<div class="icon small">
<img src="/layout/images/nadgodziny-gray.svg">
<?= $advert['overtime_quantity'];?>
</div>
<? endif;?>
<? if ( $advert['accommodation'] ):?>
<div class="icon small">
<img src="/layout/images/zakwaterowanie-gray.svg">
<?= $advert['accommodation_cost'];?>
</div>
<? endif;?>
<? if ( $advert['travel_refund'] ):?>
<div class="icon">
<img src="/layout/images/przejazd-gray.svg">
refundacja przejazdu
</div>
<? endif;?>
<? if ( $advert['from_now'] ):?>
<div class="icon">
<img src="/layout/images/praca-od-zaraz-gray.svg">
<?= \S::lang( 'praca-od-zaraz' );?>
</div>
<? endif;?>
<? if ( $advert['work_type'] ):?>
<div class="icon small">
<img src="/layout/images/oferta-rodzaj-umowy-gray.svg">
<? $work_type = \front\factory\Globelus::work_types(); echo $work_type[ $advert['work_type'] ];?>
</div>
<? endif;?>
<? if ( $advert['without_experience'] ):?>
<div class="icon small">
<img src="/layout/images/oferta-doswiadczenie-gray.svg">
<?= \S::lang( 'bez-doswiadczenia' );?>
</div>
<? endif;?>
<? if ( $advert['without_language'] ):?>
<div class="icon">
<img src="/layout/images/bez-znajomosci-jezyka-gray.svg">
<?= \S::lang( 'bez-znajomosci-jezyka' );?>
</div>
<? endif;?>
<? if ( $advert['for_couples'] ):?>
<div class="icon small">
<img src="/layout/images/oferta-dla-par-gray.svg">
<?= \S::lang( 'dla-par' );?>
</div>
<? endif;?>
<? if ( $advert['outside_ue'] ):?>
<div class="icon small">
<img src="/layout/images/ue-gray.svg">
dla obywateli spoza UE
</div>
<? endif;?>
<? if ( $advert['without_driving_license'] ):?>
<div class="icon small">
<img src="/layout/images/prawojazdy-gray.svg">
bez prawa jazdy
</div>
<? endif;?>
</div>
</div>
<div class="text-right">
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" class="btn btn-success"><?= $lang['szczegoly-oferty'];?></a>
</div>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<div class="alert"><?= $lang['brak-ogloszen-o-prace'];?></div>
<? endif;?>
<?
if ( \S::get( 'cp' ) == 1 )
{
$query_string = preg_replace( '/\/oferty-pracy/', '', $_SERVER['REQUEST_URI'] );
$query_string = preg_replace( '/\//', '', $query_string );
$query_string = preg_replace( '/\?/', '', $query_string );
}
else
{
$query_string = preg_replace( '/oferty-pracy/', '', $_SERVER['REQUEST_URI'] );
$query_string = preg_replace( '/\/([0-9]*)/', '', $query_string );
$query_string = preg_replace( '/\?/', '', $query_string );
$query_string = preg_replace( '/\//', '', $query_string );
}
if ( strpos( $query_string, $this -> values['category_name'] ) !== false )
$query_string = str_replace( $this -> values['category_name'], '', $query_string );
if ( strpos( $query_string, $this -> values['country_name'] ) !== false )
$query_string = str_replace( $this -> values['country_name'], '', $query_string );
if ( $this -> values['f_for_couples'] )
$query_string = str_replace( 'dla-par', '', $query_string );
if ( $this -> values['f_without_experience'] )
$query_string = str_replace( 'bez-doswiadczenia', '', $query_string );
if ( $this -> values['f_without_language'] )
$query_string = str_replace( 'bez-jezyka', '', $query_string );
if ( $this -> values['f_salary'] )
$query_string = str_replace( 'z-podanym-wynagrodzeniem', '', $query_string );
$document_uri = explode( '?', $_SERVER['REQUEST_URI'], 2 );
$document_uri = $document_uri[0];
$url = substr( $document_uri, 1, strlen( $document_uri ) );
$url_tmp = explode( '/', $url );
if ( (int)$url_tmp[ count( $url_tmp ) - 1 ] ) {
$url = '';
for ( $i = 0; $i < count( $url_tmp ) - 1; $i++ ) {
$url .= $url_tmp[$i];
if ( $i != count( $url_tmp ) - 2 )
$url .= '/';
}
}
if ( ( $this -> values['adverts_count'] / \front\factory\GlobelusAdverts::advert_list_limit ) > 1 ):
echo \front\view\Globelus::pager(
$url,
ceil( $this -> values['adverts_count'] / \front\factory\GlobelusAdverts::advert_list_limit ),
\S::get( 'cp' ),
$query_string
);
endif;
?>
[DODATKOWA_TRESC]
</div>
</div>
<script class="footer" type="text/javascript">
$( function()
{
if ( $(document).width() < 768 )
{
$( 'body' ).on( click_event, '.advert-filtr .title', function()
{
if ( $( '.advert-filtr .content' ).is( ':visible' ) )
{
$( this ).children( 'i' ).addClass( 'fa-chevron-down' ).removeClass( 'fa-chevron-up' );
$( '.advert-filtr .content' ).hide();
}
else
{
$( this ).children( 'i' ).addClass( 'fa-chevron-up' ).removeClass( 'fa-chevron-down' );
$( '.advert-filtr .content' ).show();
}
});
}
<? if ( $this -> values['f_categories'] ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-categories' ).show();
<? endif;?>
<? if ( $this -> f_voivodeships ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-voivodeships' ).show();
<? endif;?>
<? if ( $this -> values['f_countries'] ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-countries' ).show();
<? endif;?>
<? if ( $this -> values['f_time'] ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-time' ).show();
<? endif;?>
<? if ( $this -> values['f_work_type'] ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-work-type' ).show();
<? endif;?>
<? if ( $this -> values['f_salary'] or $this -> values['f_without_language'] or $this -> values['f_without_experience'] or $this -> values['f_for_couples'] ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-other' ).show();
<? endif;?>
$( 'body' ).on( click_event, '.advert-filtr div.toggle', function(e)
{
var content_id = $( this ).attr( 'content' );
if ( $( '#subcontent-' + content_id ).is( ':visible' ) )
{
$( '#subcontent-' + content_id ).hide();
$( this ).children( 'i' ).removeClass( 'fa-chevron-up' ).addClass( 'fa-chevron-down' );
}
else
{
$( '#subcontent-' + content_id ).show();
$( this ).children( 'i' ).removeClass( 'fa-chevron-down' ).addClass( 'fa-chevron-up' );
}
return false;
});
$( 'body' ).on( 'click', '.seo-additional-text .btn', function(e)
{
e.preventDefault();
if ( $( '.seo-additional-text .row:nth-child(2)' ).hasClass( 'hidden' ) )
{
$( '.seo-additional-text .row:nth-child(2)' ).removeClass( 'hidden' );
$( this ).html( 'mniej' );
}
else
{
$( '.seo-additional-text .row:nth-child(2)' ).addClass( 'hidden' );
$( this ).html( 'więcej' );
}
});
$( '.voivodeships_select' ).on( 'ifClicked', '', function()
{
if ( $( this ).val() == 1 && $( this ).iCheck('check') )
{
$( '.voivodeships_select' ).each( function()
{
if ( $( this ).val() != 1 )
$( this ).iCheck('uncheck');
});
}
else
{
$( '.voivodeships_select[value="1"]' ).removeAttr('checked').iCheck('update');
}
});
$( '.work_type_select' ).on( 'ifClicked', '', function()
{
if ( $( this ).val() == 0 && $( this ).iCheck('check') )
{
$( '.work_type_select' ).each( function()
{
if ( $( this ).val() != 0 )
$( this ).iCheck('uncheck');
});
}
else
{
$( '.work_type_select[value="0"]' ).removeAttr('checked').iCheck('update');
}
});
$( '.country_select' ).on( 'ifClicked', '', function()
{
if ( $( this ).val() == 75 && $( this ).iCheck('check') )
{
$( '.country_select' ).each( function()
{
if ( $( this ).val() != 75 )
$( this ).iCheck('uncheck');
})
}
else if ( $( this ).val() == 77 && $( this ).iCheck('check') )
{
$( '.country_select' ).each( function()
{
if ( $( this ).val() != 77 )
{
$( this ).iCheck('uncheck');
}
})
}
else
{
$( '.country_select[value="75"]' ).removeAttr('checked').iCheck('update');
$( '.country_select[value="77"]' ).removeAttr('checked').iCheck('update');
}
});
$( 'body' ).on( 'click', '.show-more', function(e)
{
e.preventDefault();
var content_id = $( this ).attr( 'content' );
$( '#' + content_id + ' li' ).show();
$( this ).removeClass( 'show-more' ).addClass( 'show-less' ).html( 'mniej' );
});
$( 'body' ).on( 'click', '.show-less', function(e)
{
e.preventDefault();
var content_id = $( this ).attr( 'content' );
$( '#' + content_id + ' li' ).each( function( i )
{
if ( i > 4 )
$( this ).hide();
});
$( this ).removeClass( 'show-less' ).addClass( 'show-more' ).html( 'więcej' );
});
});
</script>

View File

@@ -0,0 +1,51 @@
<? global $lang;?>
<? if ( is_array( $this -> adverts ) and count( $this -> adverts ) ):?>
<? foreach ( $this -> adverts as $advert ):?>
<div class="advert-entry main-page <? if ( $advert['highlight'] ):?>highlight<? endif;?>">
<div class="row no-gutters">
<div class="col-12 col-md-9">
<h2>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" title="Ogłoszenie: <?= addslashes( $advert['title'] );?>"><?= $advert['title'];?></a>
</h2>
</div>
<div class="col-12 col-md-3 date-add">
<?= date( 'Y-m-d', strtotime( $advert['date_add'] ) );?>
<div class="flag">
<? if ( file_exists( 'upload/filemanager/flags/' . \S::seo( $advert['country'] ) . '.jpg' ) ):?>
<img src="/upload/filemanager/flags/<?= \S::seo( $advert['country'] );?>.jpg">
<? endif;?>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="info">
<span class="place">
<a href="/oferty-pracy/<?= \S::seo( $advert['country'], true );?>" title="praca <?= $advert['country'];?>"><?= $advert['country'];?></a> - <?= $advert['city'];?>
</span> |
<span class="firm"><?= $advert['firm_name_profile'];?></span> |
<span class="category">
<a href="/oferty-pracy/<?= \S::seo( $advert['category'], true );?>" title="praca <?= $advert['category'];?>"><?= $advert['category'];?></a>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-1 col-md-2">
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $advert['user_id'] ) ) ):?>
<img src="/logo/<?= $advert['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-11 col-md-10">
<div class="short-text">
<?= mb_substr( strip_tags( $advert['text'] ), 0, 100, 'UTF-8' );?>...
</div>
</div>
</div>
</div>
<? endforeach;?>
<? endif;?>

View File

@@ -0,0 +1,51 @@
<? global $lang;?>
<? if ( is_array( $this -> adverts ) and count( $this -> adverts ) ):?>
<? foreach ( $this -> adverts as $advert ):?>
<div class="advert-entry main-page <? if ( $advert['highlight'] ):?>highlight<? endif;?>">
<div class="row no-gutters">
<div class="col-12 col-md-9">
<h2>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" title="Ogłoszenie: <?= addslashes( $advert['title'] );?>"><?= $advert['title'];?></a>
</h2>
</div>
<div class="col-12 col-md-3 date-add">
<?= date( 'Y-m-d', strtotime( $advert['date_add'] ) );?>
<div class="flag">
<? if ( file_exists( 'upload/filemanager/flags/' . \S::seo( $advert['country'] ) . '.jpg' ) ):?>
<img src="/upload/filemanager/flags/<?= \S::seo( $advert['country'] );?>.jpg">
<? endif;?>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="info">
<span class="place">
<a href="/oferty-pracy/<?= \S::seo( $advert['country'], true );?>" title="praca <?= $advert['country'];?>"><?= $advert['country'];?></a> - <?= $advert['city'];?>
</span> |
<span class="firm"><?= $advert['firm_name_profile'];?></span> |
<span class="category">
<a href="/oferty-pracy/<?= \S::seo( $advert['category'], true );?>" title="praca <?= $advert['category'];?>"><?= $advert['category'];?></a>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-1 col-md-2">
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $advert['user_id'] ) ) ):?>
<img src="/logo/<?= $advert['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-11 col-md-10">
<div class="short-text">
<?= mb_substr( strip_tags( $advert['text'] ), 0, 100, 'UTF-8' );?>...
</div>
</div>
</div>
</div>
<? endforeach;?>
<? endif;?>

View File

@@ -0,0 +1,35 @@
<? if ( is_array( $this -> categories ) and count( $this -> categories ) ):?>
<div id="categories-adverts">
<ul>
<? foreach ( $this -> categories as $category ):?>
<li <? if ( ++$i > 5 ):?>class="more hidden"<? endif;?>>
<a href="/oferty-pracy/<?= \S::seo( $category['name'], true );?>" title="Oferty pracy <?= $category['name'];?>">
<?= $category['name'];?>
</a>
</li>
<? endforeach;?>
</ul>
<? if ( count( $this -> categories ) > 5 ):?>
<a href="#" class="toggle"><?= \S::lang( 'rozwin' );?></a>
<? endif;?>
</div>
<? endif; ?>
<script class="footer" type="text/javascript">
$( function()
{
$( 'body' ).on( click_event, '#categories-adverts .toggle', function()
{
if ( $( this ).hasClass( 'active' ) )
{
$( this ).removeClass( 'active' ).html( '<?= \S::lang( 'rozwin' );?>' );
$( '#categories-adverts .more' ).addClass( 'hidden' );
}
else
{
$( this ).addClass( 'active' ).html( '<?= \S::lang( 'zwin' );?>' );
$( '#categories-adverts .more' ).removeClass( 'hidden' );
}
return false;
});
});
</script>

View File

@@ -0,0 +1,35 @@
<? if ( is_array( $this -> countries ) and count( $this -> countries ) ):?>
<div id="countries-adverts">
<ul>
<? foreach ( $this -> countries as $country ):?>
<li <? if ( ++$i > 5 ):?>class="more hidden"<? endif;?>>
<a href="/oferty-pracy/<?= \S::seo( $country['name'] );?>" title="Oferty pracy <?= $country['name'];?>">
<?= \S::lang( 'praca' );?> <?= $country['name'];?>
</a>
</li>
<? endforeach;?>
</ul>
<? if ( count( $this -> countries ) > 5 ):?>
<a href="#" class="toggle"><?= \S::lang( 'rozwin' );?></a>
<? endif;?>
</div>
<? endif; ?>
<script class="footer" type="text/javascript">
$( function()
{
$( 'body' ).on( click_event, '#countries-adverts .toggle', function()
{
if ( $( this ).hasClass( 'active' ) )
{
$( this ).removeClass( 'active' ).html( '<?= \S::lang( 'rozwin' );?>' );
$( '#countries-adverts .more' ).addClass( 'hidden' );
}
else
{
$( this ).addClass( 'active' ).html( '<?= \S::lang( 'zwin' );?>' );
$( '#countries-adverts .more' ).removeClass( 'hidden' );
}
return false;
});
});
</script>

View File

@@ -0,0 +1,39 @@
<? if ( is_array( $this -> firms ) and count( $this -> firms ) ):?>
<div id="firms-adverts">
<ul>
<? foreach ( $this -> firms as $firm ):?>
<li <? if ( ++$i > 5 ):?>class="more hidden"<? endif;?>>
<form method="GET" action="/oferty-pracy">
<input type="hidden" name="filtr" value="true">
<input type="hidden" name="k" value="<?= htmlspecialchars( $firm['firm_name_profile'] );?>">
<a href="#" onclick="$( this ).parent( 'form' ).submit(); return false;">
<?= $firm['firm_name_profile'];?>
</a>
</form>
</li>
<? endforeach;?>
</ul>
<? if ( count( $this -> firms ) > 5 ):?>
<a href="#" class="toggle"><?= \S::lang( 'rozwin' );?></a>
<? endif;?>
</div>
<? endif; ?>
<script class="footer" type="text/javascript">
$( function()
{
$( 'body' ).on( click_event, '#firms-adverts .toggle', function()
{
if ( $( this ).hasClass( 'active' ) )
{
$( this ).removeClass( 'active' ).html( '<?= \S::lang( 'rozwin' );?>' );
$( '#firms-adverts .more' ).addClass( 'hidden' );
}
else
{
$( this ).addClass( 'active' ).html( '<?= \S::lang( 'zwin' );?>' );
$( '#firms-adverts .more' ).removeClass( 'hidden' );
}
return false;
});
});
</script>

View File

@@ -0,0 +1,68 @@
<? global $lang;?>
<div>
<div class="mini-buttons" id="buttons">
<a href="/panel-kandydata/profil" class="btn">
<?= $lang['moj-profil'];?>
</a>
<a href="/panel-kandydata/wyslane-aplikacje" class="btn">
<?= $lang['wyslane-aplikacje'];?>
</a>
<a href="#" class="btn active">
<?= $lang['obserwowane-oferty-pracy'];?>
</a>
<a href="/panel-kandydata/ustawienia-konta" class="btn">
<?= $lang['ustawienia-konta'];?>
</a>
</div>
<div class="mini-box fluid mb15">
<div class="title">
<?= ucfirst( $lang['obserwowane-oferty-pracy'] );?>
</div>
<div class="subtitle mb0">
<?= ucfirst( $lang['obserwowane-oferty-pracy-podtytul'] );?>
</div>
</div>
<? if ( is_array( $this -> adverts ) and count( $this -> adverts ) ):?>
<? foreach ( $this -> adverts as $advert ):?>
<div class="advert-entry">
<div class="row">
<div class="col-12 col-sm-2">
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $advert['user_id'] ) ) ):?>
<img src="/logo/<?= $advert['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
<div class="flag">
<? if ( file_exists( 'images/flags/' . \S::seo( $advert['country'] ) . '.jpg' ) ):?>
<img src="/images/flags/<?= \S::seo( $advert['country'] );?>.jpg">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-10">
<div class="row">
<div class="col-12 col-sm-9">
<h2>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" target="_blank" title="Ogłoszenie: <?= addslashes( $advert['title'] );?>"><?= $advert['title'];?></a>
</h2>
</div>
<div class="col-12 col-sm-3 date-add">
<?= date( 'Y-m-d', strtotime( $advert['date_add'] ) );?>
</div>
</div>
<div class="info">
<span class="place"><?= $advert['country'];?> - <?= $advert['city'];?></span> | <span class="firm"><?= $advert['firm_name_profile'];?></span> | <span class="category"><?= $advert['category'];?></span>
</div>
<div class="short-text">
<?= mb_substr( strip_tags( $advert['text'] ), 0, 150, 'UTF-8' );?>...
</div>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" target="_blank" class="btn btn-success"><?= $lang['szczegoly-oferty'];?></a>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<div class="alert alert-danger mt20"><?= $lang['panel-kandydata-brak-obserwowanych-ofert-pracy'];?></div>
<? endif;?>
</div>

View File

@@ -0,0 +1,64 @@
<script type="text/javascript" class="footer">
$( function()
{
$.alert(
{
title: 'Oferty pracy',
icon: 'fa fa-exclamation',
content: 'Dodawanie CV dostępne jest tylko dla zalogowanych kandydatów.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {
document.location.href = '<?= $_SERVER['HTTP_REFERER'];?>';
}
},
cancel:
{
text: 'Zaloguj się',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {
document.location.href = '/logowanie';
}
}
}
});
});
</script>
<div class="box" id="new-offers">
<div class="container">
<div class="title">
[PHP]echo \S::lang( 'polecane-oferty-pracy' );[/PHP]
</div>
<div class="row">
<div class="col-12 col-md-6">
[PHP]echo \front\controls\GlobelusAdverts::main_page_adverts(4);[/PHP]
</div>
<div class="col-12 col-md-6">
[PHP]include 'templates_user/globelus/main-adverts.php';[/PHP]
</div>
</div>
</div>
</div>
<div class="box" id="jakiej-pracy-szukasz">
<div class="container">
<div class="row">
<div class="col-12">
<a href="/jakiej-pracy-szukasz">
<img src="/layout/images/jakiej-pracy-szukasz.jpg" alt="" style="width: 100%;">
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,49 @@
<? global $lang;?>
<div>
<div class="mini-buttons" id="buttons">
<a href="/panel-kandydata/profil" class="btn">
<?= $lang['moj-profil'];?>
</a>
<a href="#" class="btn active">
<?= $lang['wyslane-aplikacje'];?>
</a>
<a href="/panel-kandydata/obserwowane-oferty" class="btn">
<?= $lang['obserwowane-oferty-pracy'];?>
</a>
<a href="/panel-kandydata/ustawienia-konta" class="btn">
<?= $lang['ustawienia-konta'];?>
</a>
</div>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst( $lang['wyslane-aplikacje'] );?>
</div>
</div>
<? if ( is_array( $this -> answers ) and count( $this -> answers ) ):?>
<? foreach ( $this -> answers as $answer ):?>
<div class="answer <? if ( !$answer['displayed'] ):?>nondisplayed<? else:?>displayed<? endif?>">
<div class="row">
<div class="col-12">
<div class="img logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $answer['user_id'] ) ) ):?>
<img src="/logo/<?= $answer['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
<div class="content">
<div class="title">
<a href="/oferta/<?= $answer['id'];?>/<?= \S::seo( $answer['title'], true );?>/" class="name" target="_blank"><?= $answer['title'];?></a> <span class="date-add"><?= date( 'Y-m-d H:i', strtotime( $answer['date_add'] ) );?></span>
</div>
<div class="text">
<?= nl2br( $answer['text'] );?>
</div>
</div>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<div class="alert alert-danger mt20"><?= $lang['panel-kandydata-brak-aplikacji'];?></div>
<? endif;?>
</div>

View File

@@ -0,0 +1,685 @@
<? global $lang;?>
<div id="user-panel">
<div class="mini-buttons" id="buttons">
<div class="btn active">
<?= $lang[ 'moj-profil' ];?>
</div>
<a href="/panel-kandydata/wyslane-aplikacje" class="btn">
<?= $lang[ 'wyslane-aplikacje' ];?>
</a>
<a href="/panel-kandydata/obserwowane-oferty" class="btn">
<?= $lang[ 'obserwowane-oferty-pracy' ];?>
</a>
<a href="/panel-kandydata/ustawienia-konta" class="btn">
<?= $lang[ 'ustawienia-konta' ];?>
</a>
</div>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst( $lang[ 'edycja-profilu' ] );?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content profil">
<form method="POST" action="/globelusCandidates/data_save/" enctype="multipart/form-data">
<div class="step-title">
<?= ucfirst( $lang[ 'krok' ] );?> 1 - <span><?= $lang[ 'kandydat-profil-krok-1-opis' ];?></span>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="name" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'imie' ] );?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="name" name="name" class="form-control" value="<?= htmlspecialchars( $this -> g_user[ 'name' ] );?>">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="surname" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'nazwisko' ] );?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="surname" name="surname" class="form-control" value="<?= htmlspecialchars( $this -> g_user[ 'surname' ] );?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'adres-email' ] );?>:</label>
<div class="col-12 col-sm-8 input-icon">
<input type="text" id="email" name="email" class="form-control" value="<?= htmlspecialchars( $this -> g_user[ 'email' ] );?>" readonly="readonly">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="phone" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'telefon' ] );?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="phone" name="phone" class="form-control" value="<?= htmlspecialchars( $this -> g_user[ 'phone' ] );?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="date_of_birth" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'data-urodzenia' ] );?>:</label>
<div class="col-12 col-sm-8 input-icon date_of_birth">
<input type="text" id="date_of_birth" name="date_of_birth" class="form-control date-birth" value="<? if ( \front\factory\Globelus::validate_date( $this -> g_user[ 'date_of_birth' ] ) ) echo date( 'd.m.Y', strtotime( $this -> g_user[ 'date_of_birth' ] ) );?>">
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="sex" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'plec' ] );?>:</label>
<div class="col-12 col-sm-8">
<select id="sex" name="sex" class="form-control">
<option value="">--- wybierz ---</option>
<option value="0" <? if ( $this -> g_user[ 'sex' ] === '0' ):?>selected="selected"<? endif;?>><?= $lang[ 'kobieta' ];?></option>
<option value="1" <? if ( $this -> g_user[ 'sex' ] === '1' ):?>selected="selected"<? endif;?>><?= $lang[ 'mezczyzna' ];?></option>
</select>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= ucfirst( $lang[ 'krok' ] );?> 2 - <span><?= $lang[ 'kandydat-profil-krok-2-opis' ];?></span>
</div>
<div class="row important">
<div class="col-12">
<div class="info">Wypełnij aby zwiększyć swoją szansę na znalezienie poszukiwanej pracy.</div>
<div class="form-group row">
<label form="positions" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'w-jakim-zawodzie-szukasz-pracy' ] );?></label>
<div class="col-12">
<? if ( is_array( $this -> g_user[ 'positions' ] ) ):?>
<? foreach ( $this -> g_user[ 'positions' ] as $position ):?>
<? $position_counter++;?>
<div class="row positions positions_<?= $position_counter;?>" counter="<?= $position_counter;?>">
<div class="col-12 col-md-6 mb5">
<select counter="<?= $position_counter;?>" name="positions[]" <? if ( $this -> g_user[ 'inexperience' ] ):?>readonly="readonly"<? endif;?> class="form-control positions" placeholder="wybierz stanowisko">
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<? if ( is_array( $this -> positions ) ): foreach ( $this -> positions as $position_single ):?>
<option value="<?= $position_single['id']; ?>" <? if ( $position_single['id'] == $position['id_position'] ):?>selected="selected" <? endif; ?>><?= htmlspecialchars( $position_single['name'] );?></option>
<? endforeach; endif;?>
</select>
</div>
<div class="col-12 col-md-6 mb5">
<select name="positions_experience[]" counter="<?= $position_counter;?>" <? if ( $this -> g_user[ 'inexperience' ] ):?>readonly="readonly"<? endif;?> class="form-control positions_experience">
<option value="">--- wybierz doświadczenie ---</option>
<?
$positions_experience = \front\factory\Globelus::positions_experience();
if ( is_array( $positions_experience ) ): foreach ( $positions_experience as $key => $val ):
?>
<option value="<?= $key;?>" <? if ( $position[ 'experience' ] == $key ):?>selected="selected"<? endif;?>><?= $val;?></option>
<?
endforeach;
endif;
?>
</select>
</div>
</div>
<? endforeach;?>
<? if ( $position_counter < 5 ):?>
<? $position_counter++;?>
<div class="row positions positions_<?= $position_counter;?>" counter="<?= $position_counter;?>">
<div class="col-12 col-md-6 mb5">
<select counter="<?= $position_counter;?>" name="positions[]" <? if ( $this -> g_user[ 'inexperience' ] ):?>readonly="readonly"<? endif;?> class="form-control positions" placeholder="wybierz stanowisko">
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<? if ( is_array( $this -> positions ) ): foreach ( $this -> positions as $position_single ):?>
<option value="<?= $position_single['id']; ?>"><?= htmlspecialchars( $position_single['name'] );?></option>
<? endforeach; endif;?>
</select>
</div>
<div class="col-12 col-md-6 mb5">
<select name="positions_experience[]" counter="<?= $position_counter;?>" <? if ( $this -> g_user[ 'inexperience' ] ):?>readonly="readonly"<? endif;?> class="form-control positions_experience">
<option value="">--- wybierz doświadczenie ---</option>
<?
$positions_experience = \front\factory\Globelus::positions_experience();
if ( is_array( $positions_experience ) ): foreach ( $positions_experience as $key => $val ):
?>
<option value="<?= $key;?>"><?= $val;?></option>
<?
endforeach;
endif;
?>
</select>
</div>
</div>
<? endif;?>
<? endif;?>
</div>
</div>
<div class="form-group row">
<div class="col-12">
<input type="checkbox" name="inexperience" id="inexperience" <? if ( $this -> g_user[ 'inexperience' ] ):?>checked="checked"<? endif;?>> <?= $lang[ 'nie-posiadam-doswiadczenia' ];?>
</div>
</div>
</div>
</div>
<div class="row options important">
<div class="col-12">
<div class="info">Wypełnij aby zwiększyć swoją szansę na znalezienie poszukiwanej pracy.</div>
<div class="form-group row">
<label form="categories" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'w-jakiej-branzy-szukasz-pracy' ] );?></label>
</div>
<? $i = 1;?>
<? if ( is_array( $this -> categories ) ): foreach ( $this -> categories as $category ):?>
<? $i++;?>
<? if ( $i % 2 == 0 ):?>
<div class="row">
<? endif;?>
<div class="col-12 col-sm-6">
<input type="checkbox" name="categories[]" <?
foreach ( $this -> g_user[ 'categories' ] as $user_category ): if ( $category[ 'id' ] == $user_category[ 'id' ] )
echo 'checked="checked"';
endforeach;
?> value="<?= $category[ 'id' ];?>"> <?= $category[ 'name' ];?>
</div>
<? if ( $i % 2 == 1 ):?>
</div>
<? endif;?>
<?
endforeach;
endif;
?>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="languages" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'jakie-znasz-jezyki' ] );?></label>
<div class="col-12">
<? if ( is_array( $this -> g_user[ 'languages' ] ) ):?>
<? foreach ( $this -> g_user[ 'languages' ] as $language ):?>
<? $j++;?>
<div class="row languages languages_<?= $j;?>" counter="<?= $j;?>">
<div class="col-12 col-md-6 mb5" <? if ( $j > 1 and!$language[ 'language' ] ):?>style="display: none;"<? endif;?>>
<input type="text" counter="<?= $j;?>" name="languages[]" class="form-control" placeholder="<?= $lang[ 'jezyk' ];?>" value="<?= htmlspecialchars( $language[ 'language' ] );?>">
</div>
<div class="col-12 col-md-6 mb5" <? if ( $j > 1 and!$language[ 'experience' ] ):?>style="display: none;"<? endif;?>>
<select name="languages_experience[]" counter="<?= $j;?>" class="form-control">
<option value="">--- <?= $lang[ 'wybierz' ];?> ---</option>
<?
$languages_experience = \front\factory\Globelus::languages_experience();
if ( is_array( $languages_experience ) ): foreach ( $languages_experience as $key => $val ):
?>
<option value="<?= $key;?>" <? if ( $language[ 'experience' ] == $key ):?>selected="selected"<? endif;?>><?= $val;?></option>
<?
endforeach;
endif;
?>
</select>
</div>
</div>
<? endforeach;?>
<? if ( $j < 3 ):?>
<? $j++;?>
<div class="row languages languages_<?= $j;?>" counter="<?= $j;?>">
<div class="col-12 col-md-6 mb5">
<input type="text" counter="<?= $j;?>" name="languages[]" class="form-control" placeholder="<?= $lang[ 'jezyk' ];?>" value="">
</div>
<div class="col-12 col-md-6 mb5" <? if ( $j > 1 and!$language[ 'experience' ] ):?>style="display: none;"<? endif;?>>
<select name="languages_experience[]" counter="<?= $j;?>" class="form-control">
<option value="">--- <?= $lang[ 'wybierz' ];?> ---</option>
<?
$languages_experience = \front\factory\Globelus::languages_experience();
if ( is_array( $languages_experience ) ): foreach ( $languages_experience as $key => $val ):
?>
<option value="<?= $key;?>"><?= $val;?></option>
<?
endforeach;
endif;
?>
</select>
</div>
</div>
<? endif;?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="countries" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'w-jakim-kraju-szukasz-pracy' ] );?> (max. 6)</label>
<div class="col-12">
<select name="countries[]" class="form-control countries" multiple placeholder="<?= $lang[ 'podaj-kraj' ];?>">
<?
$countries = \front\factory\Globelus::countries();
if ( is_array( $countries ) ): foreach ( $countries as $country ):
?>
<option value="<?= $country[ 'id' ];?>" <? if ( in_array( $country[ 'name' ], $this -> g_user[ 'countries' ] ) ):?>selected="selected"<? endif;?>><?= $country[ 'name' ];?></option>
<?
endforeach;
endif;
?>
</select>
</div>
</div>
</div>
</div>
<div class="row voivodeships">
<div class="col-12">
<div class="form-group row">
<label form="voivodeships" class="col-12 text-left text-bold">W jakim województwie szukasz pracy?</label>
<div class="col-12">
<select name="voivodeships[]" class="form-control voivodeships" multiple placeholder="--- wybierz województwo ---">
<? $voivodeships = \front\factory\Globelus::get_voivodeships_list(); if ( is_array( $voivodeships ) ): foreach ( $voivodeships as $voivodeship ):?>
<option value="<?= $voivodeship[ 'id' ];?>" <? if ( in_array( $voivodeship[ 'name' ], $this -> g_user[ 'voivodeships' ] ) ):?>selected="selected"<? endif;?>><?= $voivodeship[ 'name' ];?></option>
<? endforeach; endif;?>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="status_of_availability" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'dostepnosc' ] );?>:</label>
<div class="col-12 col-md-6">
<select name="status_of_availability" id="status_of_availability" class="form-control" placeholder="<?= $lang[ 'wybierz' ];?>">
<?
$status = \front\factory\Globelus::availability_status();
if ( is_array( $status ) ): foreach ( $status as $key => $val ):
?>
<option value="<?= $key;?>" <? if ( $this -> g_user[ 'status_of_availability' ] == $key ):?>selected="selected"<? endif;?>><?= $val;?></option>
<?
endforeach;
endif;
?>
</select>
</div>
<div class="col-12 col-md-6">
<div id="date-of-availability-content" <? if ( $this -> g_user[ 'status_of_availability' ] != 2 ):?>style="display: none;"<? endif;?>>
<div class="form-group row">
<div class="col-12 col-md-6 input-icon date_of_availability">
<input type="text" id="date_of_availability" name="date_of_availability" class="form-control date" value="<? if ( $this -> g_user[ 'date_of_availability' ] and $this -> g_user[ 'date_of_availability' ] != '0000-00-00' ) echo htmlspecialchars( $this -> g_user[ 'date_of_availability' ] );?>">
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="experience_abroad" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'czy-masz-doswiadczenie-w-pracy-za-granica' ] );?></label>
<div class="col-12">
<select name="experience_abroad" class="form-control">
<option value="">--- wybierz ---</option>
<option value="0" <? if ( $this -> g_user[ 'experience_abroad' ] === '0' ):?>selected="selected"<? endif;?>>nie</option>
<option value="1" <? if ( $this -> g_user[ 'experience_abroad' ] === '1' ):?>selected="selected"<? endif;?>>tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="accommodation" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'czy-potrzebujesz-zakwaterowania' ] );?></label>
<div class="col-12">
<select name="accommodation" class="form-control">
<option value="">--- wybierz ---</option>
<option value="0" <? if ( $this -> g_user[ 'accommodation' ] === '0' ):?>selected="selected"<? endif;?>>nie</option>
<option value="1" <? if ( $this -> g_user[ 'accommodation' ] === '1' ):?>selected="selected"<? endif;?>>tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="driving_license" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'czy-posiadasz-prawo-jazdy' ] );?></label>
<div class="col-12">
<select name="driving_license" class="form-control">
<option value="">--- wybierz ---</option>
<option value="0" <? if ( $this -> g_user[ 'driving_license' ] === '0' ):?>selected="selected"<? endif;?>>nie</option>
<option value="1" <? if ( $this -> g_user[ 'driving_license' ] === '1' ):?>selected="selected"<? endif;?>>tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="own_car" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'czy-dysponujesz-wlasnym-samochodem' ] );?></label>
<div class="col-12">
<select name="own_car" class="form-control">
<option value="">--- wybierz ---</option>
<option value="0" <? if ( $this -> g_user[ 'own_car' ] === '0' ):?>selected="selected"<? endif;?>>nie</option>
<option value="1" <? if ( $this -> g_user[ 'own_car' ] === '1' ):?>selected="selected"<? endif;?>>tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="own_car" class="col-12 text-left text-bold"><?= ucfirst( $lang[ 'kandydat-edycja-inne' ] );?></label>
<div class="col-12">
<textarea name="other_information" id="other_information"><?= $this -> g_user[ 'other_information' ];?></textarea>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= ucfirst( $lang[ 'krok' ] );?> 3 - <span><?= $lang[ 'kandydat-profil-krok-3-opis' ];?></span>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="cv" class="col-12 col-sm-4"><?= strtoupper( $lang[ 'cv' ] );?> (max. 5mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="cv" name="cv" <? if ( !file_exists( 'files/cv/' . $this -> g_user[ 'cv_hash' ]{0} . '/' . $this -> g_user[ 'cv_hash' ]{1} . '/' . $this -> g_user[ 'cv_hash' ] ) ):?>required<? endif;?>>
<? if ( file_exists( \front\factory\GlobelusCandidates::cv_url( $this -> g_user[ 'id' ] ) ) ):?><a href="/cv/<?= $this -> g_user[ 'id' ];?>/<?= \S::get_token();?>/" class="mt10 ib"><?= $lang[ 'zobacz-aktualne-cv' ];?></a><? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="avatar" class="col-12 col-sm-4"><?= ucfirst( $lang[ 'zdjecie' ] );?> (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="avatar" name="avatar">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<div class="col-12 mt20">
<a href="/panel-kandydata/profil" class="btn btn-danger mr15"><?= ucfirst( $lang[ 'anuluj' ] );?></a>
<input type="submit" value="<?= ucfirst( $lang[ 'zatwierdz-zmiany' ] );?>" class="btn btn-success">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/datepicker/css/bootstrap-datepicker.standalone.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/selectize/css/selectize.bootstrap3.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/summernote/summernote-lite.css">
<script class="footer" type="text/javascript" src="/plugins/summernote/summernote-lite.js"></script>
<script class="footer" type="text/javascript" src="/plugins/summernote/lang/summernote-pl-PL.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/moment/moment.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/moment/pl.js"></script>
<script class="footer" type="text/javascript" src="/plugins/datepicker/js/bootstrap-datepicker.js"></script>
<script class="footer" type="text/javascript" src="/plugins/datepicker/locales/bootstrap-datepicker.pl.min.js"></script>
<script class="footer" type="text/javascript" src="/plugins/selectize/js/selectize.js"></script>
<script class="footer" type="text/javascript" src="/plugins/jquery-validation/core.js"></script>
<script class="footer" type="text/javascript" src="/plugins/jquery-validation/localization/messages_pl.js"></script>
<script class="footer" type="text/javascript">
$( function ( )
{
<? for ( $z = 1; $z <= $position_counter; $z++ ):?>
$( '.positions_<?= $z;?> select.positions' ).selectize({
maxItems: 1
});
<? endfor;?>
$( 'body' ).on( 'change', '.countries', function()
{
if ( $.inArray( "1", $( this ).val() ) > -1 )
{
$( '.row.voivodeships' ).show();
}
else
{
$( '.row.voivodeships' ).hide();
}
});
$( '#other_information' ).summernote( {
height: 200,
lang: 'pl-PL',
toolbar: [
['font', ['bold', 'underline', 'clear']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']]
]
} );
$( 'body' ).on( 'submit', '#user-panel form', function( e )
{
var validExtensions = [ "doc", "pdf", "docx", "rtf", "jpeg", "jpg", "png", "odt" ];
var extension = $( '#user-panel form #cv' ).val( ).split( '.' ).pop( );
if ( extension != '' && validExtensions.indexOf( extension ) == - 1 )
{
e.preventDefault( );
$.alert({
itle: '<?= ucfirst( $lang[ 'blad' ] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang[ 'cv-niedozwolony-format-pliku' ];?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons: {
confirm: {
text: '<?= $lang[ 'zamknij' ];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function( ) {}
}
}
});
}
if (
$( "#user-panel form #avatar" )[0].files.length
&&
$( '#user-panel form #avatar' )[0].files[0].type != 'image/jpeg'
&&
$( '#user-panel form #avatar' )[0].files[0].type != 'image/png' )
{
e.preventDefault( );
$.alert(
{
title: '<?= ucfirst( $lang[ 'blad' ] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang[ 'zdjecie-niedozwolony-format-pliku' ];?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang[ 'zamknij' ];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function( ) {}
}
}
} );
}
} );
$( 'body' ).on( click_event, '.input-icon .fa', function( )
{
$( this ).parent( ).children( 'input' ).focus( );
} );
$( 'body' ).on( click_event, '#inexperience', function( )
{
if ( $( this ).is( ':checked' ) )
$( '.positions select' ).attr( 'readonly', 'readonly' );
else
$( '.positions select' ).removeAttr( 'readonly' );
} );
/* dodaj kolejne stanowiska */
$( 'body' ).on( 'change', '.positions select', function( )
{
var counter = parseInt( $( this ).attr( 'counter' ) );
if ( counter < 5 && $( '.positions_' + counter + ' select.positions' ).val( ) !== '' && $( '.positions_' + counter + ' select.positions_experience' ).val( ) !== '' && !$( '.positions_' + ( counter + 1 ) ).length )
{
$( '.positions_' + counter ).after( '<div class="row positions_' + ( counter + 1 ) + ' positions" counter="' + ( counter + 1 ) + '">'
+ '<div class="col-12 col-md-6 mb5">'
+ '<select counter="' + ( counter + 1 ) + '" name="positions[]" class="form-control positions" placeholder="wybierz stanowisko">'
+ '<option value="">--- <?= $lang['wybierz']; ?> ---</option>'
<? if ( is_array( $this -> positions ) ): foreach ( $this -> positions as $position_single ):?>
+ '<option value="<?= $position_single['id']; ?>"><?= htmlspecialchars( $position_single['name'] );?><\/option>'
<? endforeach; endif;?>
+ '<\/select>'
+ '<\/div>'
+ '<div class="col-12 col-md-6 mb5">'
+ '<select name="positions_experience[]" counter="' + ( counter + 1 ) + '" class="form-control">'
+ '<option value="">--- <?= $lang[ 'wybierz' ];?> ---<\/option>'
<? $positions_experience = \front\factory\Globelus::positions_experience(); if ( is_array( $positions_experience ) ): foreach ( $positions_experience as $key => $val ):?>
+ '<option value="<?= $key;?>"><?= $val;?><\/option>'
<? endforeach; endif;?>
+ '<\/select>'
+ '<\/div>'
+ '<\/div>' );
$( '.positions_' + ( counter + 1 ) + ' select.positions' ).selectize({
maxItems: 1
});
};
} );
$( 'body' ).on( 'change', '.languages input, .languages select', function( )
{
var counter = parseInt( $( this ).attr( 'counter' ) );
if (
counter < 3
&&
$( '.languages_' + counter + ' input' ).val( ) !== ''
&&
$( '.languages_' + counter + ' select' ).val( ) !== ''
&&
!$( '.languages_' + ( counter + 1 ) ).length )
{
$( '.languages_' + counter ).after( '<div class="row languages_' + ( counter + 1 ) + ' languages" counter="' + ( counter + 1 ) + '">'
+ '<div class="col-12 col-md-6 mb5">'
+ '<input type="text" counter="' + ( counter + 1 ) + '" name="languages[]" class="form-control" placeholder="<?= $lang[ 'jezyk' ];?>" value="">'
+ '<\/div>'
+ '<div class="col-12 col-md-6 mb5">'
+ '<select name="languages_experience[]" counter="' + ( counter + 1 ) + '" class="form-control">'
+ '<option value="">--- <?= $lang[ 'wybierz' ];?> ---</option>'
<?
$languages_experience = \front\factory\Globelus::languages_experience();
if ( is_array( $languages_experience ) ): foreach ( $languages_experience as $key => $val ):
?>
+ '<option value="<?= $key;?>"><?= $val;?></option>'
<?
endforeach;
endif;
?>
+ '<\/select>'
+ '<\/div>'
+ '<\/div>' );
};
} );
jQuery.validator.addMethod( "customphone", function( phone_number, element ) {
return this.optional( element ) || phone_number.match( /^(\+[0-9]{2}|)( |)(([0-9]{9})|([0-9]{3} [0-9]{3} [0-9]{3}))$/ );
}, "Podaj prawidłowy numer telefonu" );
$( "#user-panel form" ).validate( {
focusInvalid: false,
invalidHandler: function( form, validator ) {
if ( !validator.numberOfInvalids( ) )
return;
$( 'html, body' ).animate( {
scrollTop: $( validator.errorList[0].element ).offset( ).top
}, 500 );
},
errorPlacement: function( error, element ) {
$( element )
.closest( "div" )
.append( error );
},
errorElement: "span",
rules: {
'name': { required: true },
'surname': { required: true },
'categories[]': { required: true },
'positions[]': { required: {
depends: function( elem ) {
return !$( '#inexperience' ).is( ':checked' );
}
} },
'positions_experience[]': { required: {
depends: function( elem ) {
return !$( '#inexperience' ).is( ':checked' );
}
} },
'cv': { required: {
depends: function( elem ) {
return $( '#cv' ).attr( 'required' ) ? true : false;
}
}
}
},
messages: {
'categories[]': { required: 'Wybierz co najmniej jedną branżę' },
}
} );
$( 'input[type="text"].date-birth' ).datepicker( {
format: "dd.mm.yyyy",
language: 'pl'
} );
$( 'input[type="text"].date' ).datepicker( {
format: "yyyy-mm-dd",
language: 'pl'
} );
$( 'body' ).on( click_event, '.date_of_birth .fa-calendar', function( e ){
e.preventDefault( );
return false;
} );
$( 'body' ).on( click_event, '.date_of_availability .fa-calendar', function( e ){
e.preventDefault( );
return false;
} );
$( '.countries' ).selectize( {
maxItems: 6
} );
$( 'select.voivodeships' ).selectize();
$( 'body' ).on( 'change', '#status_of_availability', function( )
{
var status = $( this ).val( );
if ( status != 2 )
$( '#date-of-availability-content' ).hide( );
else
$( '#date-of-availability-content' ).show( );
} );
if ( $.inArray( "1", $( '.countries' ).val() ) > -1 )
{
$( '.row.voivodeships' ).show();
}
else
{
$( '.row.voivodeships' ).hide();
}
} );
</script>

View File

@@ -0,0 +1,290 @@
<? global $lang;?>
<? if ( !$this -> g_user['profile_completed'] and !$this -> g_user['type'] and 'a' == 'b' ):?>
<div id="incomplete_profile" class="mini-box fluid">
<div class="row">
<div class="col-12">
<p><strong>Możesz juz aplikować na oferty pracy!</strong></p>
<p><a href="/oferty-pracy" class="btn btn-success">oferty pracy</a></p>
<p class="text-red">Ale uwaga!</p>
<p>Doradzamy, abyś uzupełnił swój <strong>Profil Kandydata</strong>, bo to da Ci:<br />
&bull; więcej bezpośrednich propozycji pracy<br />
&bull; jeszcze szybsze aplikowanie (formularz aplikacyjny będzie <strong>automatycznie</strong> uzupełniony o <strong>Twoje dane</strong> oraz <strong>CV</strong>)</p>
</div>
</div>
</div>
<? endif;?>
<div id="user-panel">
<div class="mini-buttons" id="buttons">
<div class="btn active">
<?= $lang['moj-profil'];?>
</div>
<a href="/panel-kandydata/wyslane-aplikacje" class="btn">
<?= $lang['wyslane-aplikacje'];?>
</a>
<a href="/panel-kandydata/obserwowane-oferty" class="btn">
<?= $lang['obserwowane-oferty-pracy'];?>
</a>
<a href="/panel-kandydata/ustawienia-konta" class="btn">
<?= $lang['ustawienia-konta'];?>
</a>
</div>
<div class="mini-box fluid">
<div class="title">
<? $refresh_diff = \S::date_diff( date( 'Y-m-d H:i:s', strtotime( $this -> g_user['last_refresh'] ) ), date( 'Y-m-d H:i:s' ), 60 * 60 * 24 );?>
<? $active_diff = \S::date_diff( date( 'Y-m-d H:i:s' ), date( 'Y-m-d H:i:s', strtotime( $this -> g_user['active_to'] ) ), 60 * 60 * 24 );?>
<?= ucfirst( $lang['moj-profil'] );?>
<span class="info"><?= ucfirst( $lang['wyswietlenia-profilu'] );?>: <strong><?= $this -> g_user['visits'];?></strong></span>
<span class="info"><?= ucfirst( $lang['konto-aktywne-do'] );?>: <strong><?= $this -> g_user['active_to'];?></strong><? if ( $active_diff <= 7 ):?><a class="btn btn-success btn-xs" href="/panel-kandydata/przedluz"><?= $lang['przedluz'];?></a><? endif;?></span>
</div>
<div class="subtitle">
<?= $this -> g_user['visible'] ? '<a href="/panel-kandydata/wylacz-profil" class="btn btn-danger btn-profile">' . $lang['wylacz-profil'] . '</a>' : '<a href="/panel-kandydata/publikuj-profil" class="btn btn-success btn-profile"><b>Udostępnij</b> swój profil pracodawcom zarejestrowanym na globelus.pl</a>';?>
<a href="/panel-kandydata/edycja-profilu" class="btn btn-dark ml5"><?= $lang['edytuj-profil'];?></a>
<? if ( $refresh_diff >= 5 ):?><a class="btn btn-success" href="/panel-kandydata/odswiez"><?= $lang['odswiez'];?></a><? endif;?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content profil">
<div class="row">
<div class="col-12">
<div class="avatar-container">
<div class="name"><?= htmlspecialchars( $this -> g_user['surname'] );?> <?= htmlspecialchars( $this -> g_user['name'] );?></div>
<div class="avatar">
<? if ( file_exists( \front\factory\GlobelusCandidates::avatar_url( $this -> g_user['id'] ) ) ):?>
<img src="/avatar/<?= $this -> g_user['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['imie'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['name'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['nazwisko'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['surname'] );?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['data-urodzenia'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( $this -> g_user['date_of_birth'] ) echo htmlspecialchars( date( 'd.m.Y', strtotime( $this -> g_user['date_of_birth'] ) ) );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['plec'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> g_user['sex'] == '1' )
echo $lang['mezczyzna'];
else if ( $this -> g_user['sex'] == '0' )
echo $lang['kobieta'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['adres-email'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['email'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['telefon'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['phone'] );?>
</div>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['staz-pracy'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( !$this -> g_user['inexperience'] ):?>
<? $positions_experience = \front\factory\Globelus::positions_experience();?>
<? foreach ( $this -> g_user['positions'] as $position ):?>
<p><?= $position['position'];?><? if ( $position['id_position'] ):?><?= \front\factory\Globelus::position_name( $position['id_position'] );?><? endif;?> - <?= $positions_experience[ $position['experience'] ];?></p>
<? endforeach;?>
<? else:?>
<?= $lang['brak-doswiadczenia'];?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['w-jakiej-branzy-szukam-pracy'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( $this -> g_user['categories'] ): foreach ( $this -> g_user['categories'] as $category ):
echo $category['name'];
if ( $category != end( $this -> g_user['categories'] ) )
echo ', ';
endforeach; endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['jakie-znam-jezyki'] );?>:</label>
<div class="col-12 col-sm-8">
<? $languages_experience = \front\factory\Globelus::languages_experience();?>
<? foreach ( $this -> g_user['languages'] as $language ):?>
<p><?= $language['language'];?> - <?= $languages_experience[ $language['experience'] ];?></p>
<? endforeach;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['gdzie-szukam-pracy'] );?>:</label>
<div class="col-12 col-sm-8">
<? foreach ( $this -> g_user['countries'] as $country ):?>
<?= $country;?><? if ( $country != end ( $this -> g_user['countries'] ) ):?>,<? endif;?>
<? endforeach;?>
<? if ( count( $this -> g_user['voivodeships'] ) ):?>
<br/>
<? foreach ( $this -> g_user['voivodeships'] as $voivodeship ):?>
<?= $voivodeship;?><? if ( $voivodeship != end ( $this -> g_user['voivodeships'] ) ):?>,<? endif;?>
<? endforeach;?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['dostepnosc'] );?>:</label>
<div class="col-12 col-sm-8">
<? $availability_status = \front\factory\Globelus::availability_status();?>
<?= $availability_status[ $this -> g_user['status_of_availability'] ];?> <? if ( $this -> g_user['status_of_availability'] == 2 ): echo '-<b>' . $this -> g_user['date_of_availability'] . '</b>'; endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['doswiadczenie-w-pracy-za-granica'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> g_user['experience_abroad'] == '1' )
echo $lang['tak'];
else if ( $this -> g_user['experience_abroad'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['czy-potrzebuje-zakwaterowania'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> g_user['accommodation'] == '1' )
echo $lang['tak'];
else if ( $this -> g_user['accommodation'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['prawo-jazdy'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> g_user['driving_license'] == '1' )
echo $lang['tak'];
else if ( $this -> g_user['driving_license'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['wlasny-samochod'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> g_user['own_car'] == '1' )
echo $lang['tak'];
else if ( $this -> g_user['own_car'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['cv'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( file_exists( \front\factory\GlobelusCandidates::cv_url( $this -> g_user['id'] ) ) ):?><a href="/cv/<?= $this -> g_user['id'];?>/<?= \S::get_token();?>/"><?= $lang['zobacz-aktualne-cv'];?></a><? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['dodatkowe-informacje'] );?>:</label>
<div class="col-12 col-sm-8">
<?= $this -> g_user['other_information'];?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,129 @@
<? global $lang;?>
<div id="user-panel">
<div class="mini-buttons" id="buttons">
<a href="/panel-kandydata/profil" class="btn">
<?= $lang['moj-profil'];?>
</a>
<a href="/panel-kandydata/wyslane-aplikacje" class="btn">
<?= $lang['wyslane-aplikacje'];?>
</a>
<a href="/panel-kandydata/obserwowane-oferty" class="btn">
<?= $lang['obserwowane-oferty-pracy'];?>
</a>
<div class="btn active">
<?= $lang['ustawienia-konta'];?>
</div>
</div>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst( $lang['ustawienia-konta'] );?>
</div>
<div class="subtitle">
<?= $lang['ustawienia-konta-podtytul'];?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content profil">
<form method="POST" action="/globelusCandidates/change_password/">
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="current_password" class="col-12 col-sm-4"><?= ucfirst( $lang['obecne-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="current_password" name="current_password" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="new_password" class="col-12 col-sm-4"><?= ucfirst( $lang['nowe-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="new_password" name="new_password" pattern="^\S{6,}$" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="repeat_new_password" class="col-12 col-sm-4"><?= ucfirst( $lang['powtorz-nowe-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="repeat_new_password" name="repeat_new_password" pattern="^\S{6,}$" class="form-control" oninput="check_match(this)">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<div class="col-12 col-sm-8 offset-sm-4 mt20">
<input type="submit" value="<?= ucfirst( $lang['zmien-haslo'] );?>" class="btn btn-success">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<hr/>
<div class="subtitle">
<?= $lang['usuwanie-konta-podtytul'];?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<a href="#" class="btn btn-danger account-delete"><?= ucfirst( $lang['usun-konto'] );?></a>
</div>
</div>
</div>
</div>
<script class="footer" type="text/javascript">
$( function()
{
$( 'body' ).on( click_event, '.account-delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['potwierdz-usuniecie-konta'];?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href="/globelusUser/delete_account/";
}
}
}
});
});
});
function check_match(input)
{
if ( input.value !== document.getElementById( 'new_password' ).value )
input.setCustomValidity( '<?= $lang['podane-hasla-sa-rozne' ];?>');
else
input.setCustomValidity('');
}
</script>

View File

@@ -0,0 +1,60 @@
<script type="text/javascript" class="footer">
$( function()
{
$.alert(
{
title: 'Oferty pracy',
icon: 'fa fa-exclamation',
content: '<?= \S::lang( 'baza-cv-komunikat' );?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {
<? if ( strpos( $_SERVER['HTTP_REFERER'], '/panel-pracodawcy/odpowiedzi-na-ogloszenia' ) !== false or strpos( $_SERVER['HTTP_REFERER'], '/panel-pracodawcy/odpowiedzi/' ) !== false ):?>
window.close();
<? else:?>
document.location.href = '<?= $_SERVER['HTTP_REFERER'];?>';
<? endif;?>
}
}
}
});
});
</script>
<div class="box" id="new-offers">
<div class="container">
<div class="title">
[PHP]echo \S::lang( 'polecane-oferty-pracy' );[/PHP]
</div>
<div class="row">
<div class="col-12 col-md-6">
[PHP]echo \front\controls\GlobelusAdverts::main_page_adverts(4);[/PHP]
</div>
<div class="col-12 col-md-6">
[PHP]include 'templates_user/globelus/main-adverts.php';[/PHP]
</div>
</div>
</div>
</div>
<div class="box" id="jakiej-pracy-szukasz">
<div class="container">
<div class="row">
<div class="col-12">
<a href="/jakiej-pracy-szukasz">
<img src="/layout/images/jakiej-pracy-szukasz.jpg" alt="" style="width: 100%;">
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,236 @@
<? global $lang;?>
<div class="candidate-details">
<div class="top">
<div class="avatar-container">
<h1 class="name"><?= htmlspecialchars( $this -> candidate['surname'] );?> <?= htmlspecialchars( $this -> candidate['name'] );?></h1>
<div class="avatar">
<? if ( file_exists( \front\factory\GlobelusCandidates::avatar_url( $this -> candidate['id'] ) ) ):?>
<img src="/avatar/<?= $this -> candidate['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
</div>
<div class="info">
<?= $lang['tel.'];?> <?= $this -> candidate['phone'];?> | <?= $lang['email'];?>: <a href="mailto:<?= $this -> candidate['email'];?>"><?= $this -> candidate['email'];?></a>
</div>
<div class="info-second">
<?= $lang['plec'];?>:
<strong>
<?
if ( $this -> candidate['sex'] == '1' )
echo $lang['mezczyzna'];
else if ( $this -> candidate['sex'] == '0' )
echo $lang['kobieta'];
else
echo '-';
?>
</strong>
<? if ( $this -> candidate['date_of_birth'] and $this -> candidate['date_of_birth'] != '1970-01-01' ):?>
, <?= $lang['wiek'];?>: <strong><?= $age = \S::date_diff( $this -> candidate['date_of_birth'], date( 'Y-m-d H:i:s' ), 60 * 60 * 24 * 365.25 );?> <?= \front\factory\Globelus::age_word_translations( $age );?></strong>
<? endif;?>
</div>
<? if ( $this -> g_user and $this -> g_user['type'] ):?>
<form method="POST" action="<? if ( in_array( $this -> candidate['id'], $this -> g_user['candidates'] ) ):?>/globelusFirms/candidate_remove_from_favorite/<? else:?>/globelusFirms/candidate_add_to_favorite/<? endif;?>" id="candidate-favorite">
<input type="hidden" name="redirect_url" value="<?= $_SERVER['REQUEST_URI'];?>">
<input type="hidden" name="candidate_id" value="<?= $this -> candidate['id'];?>">
<a href="#" <? if ( in_array( $this -> candidate['id'], $this -> g_user['candidates'] ) ):?>class="active"<? endif;?> onclick="$( '#candidate-favorite' ).submit(); return false;">
<i class="fa fa-star" title="<? if ( in_array( $this -> candidate['id'], $this -> g_user['candidates'] ) ):?><?= $lang['usun-z-obserwowanych'];?><? else:?><?= $lang['dodaj-do-obserwowanych'];?><? endif;?>"></i>
<? if ( in_array( $this -> candidate['id'], $this -> g_user['candidates'] ) ):?><?= $lang['usun-z-obserwowanych'];?><? else:?><?= $lang['dodaj-do-obserwowanych'];?><? endif;?>
</a>
</form>
<? endif;?>
</div>
<div class="content">
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4">Chętnie podejmę pracę na stanowisku:</label>
<div class="col-12 col-sm-8">
<? if ( !$this -> candidate['inexperience'] ):?>
<? $positions_experience = \front\factory\Globelus::positions_experience();?>
<?
if ( is_array( $this -> candidate['positions'] ) and count( $this -> candidate['positions'] ) ):
echo '<p class="mb0">';
foreach ( $this -> candidate['positions'] as $position ):
echo ' ● <strong>'; if ( !$position['id_position'] ) echo $position['position']; if ( $position['id_position'] ) echo \front\factory\Globelus::position_name( $position['id_position'] ); echo '</strong>'; if ( $position['experience'] ) echo ' - ' . $lang['moj-staz-na-tym-stanowisku'] . ' ' . $positions_experience[ $position['experience'] ];
if ( $position != end( $cv['positions'] ) )
echo '<br />';
endforeach;
echo '</p>';
endif;
?>
<? else:?>
<?= $lang['brak-doswiadczenia'];?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['szukam-pracy-w'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( is_array( $this -> candidate['categories'] ) and count( $this -> candidate['categories'] ) ):?>
<? foreach ( $this -> candidate['categories'] as $category ):?>
<?= $category['name'];?><? if ( $category != end( $this -> candidate['categories'] ) ) echo ', ';?>
<? endforeach;?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['mowie-w-nastepujacych-jezykach'] );?>:</label>
<div class="col-12 col-sm-8">
<? $languages_experience = \front\factory\Globelus::languages_experience();?>
<? foreach ( $this -> candidate['languages'] as $language ):?>
<p><?= $language['language'];?> - <?= $languages_experience[ $language['experience'] ];?></p>
<? endforeach;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['szukam-pracy-w'] );?>:</label>
<div class="col-12 col-sm-8">
<? foreach ( $this -> candidate['countries'] as $country ):?>
<?= $country;?><? if ( $country != end ( $this -> candidate['countries'] ) ):?>,<? endif;?>
<? endforeach;?>
<? if ( count( $this -> candidate['voivodeships'] ) ):?>
<br/>
<? foreach ( $this -> candidate['voivodeships'] as $voivodeship ):?>
<?= $voivodeship;?><? if ( $voivodeship != end ( $this -> candidate['voivodeships'] ) ):?>,<? endif;?>
<? endforeach;?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['moja-dostepnosc'] );?>:</label>
<div class="col-12 col-sm-8">
<? $availability_status = \front\factory\Globelus::availability_status();?>
<?= $availability_status[ $this -> candidate['status_of_availability'] ];?>
<? if ( $this -> candidate['status_of_availability'] == 2 ):?>
<p><span class="text-danger">Jestem <?= $this -> candidate['sex'] ? 'dostępny' : 'dostępna';?> od:</span> <strong><?= $this -> candidate['date_of_availability'];?></strong></p>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['posiadam-doswiadczenie-w-pracy-za-granica'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> candidate['experience_abroad'] == '1' )
echo $lang['tak'];
else if ( $this -> candidate['experience_abroad'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['potrzebuje-zakwaterowanie'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> candidate['accommodation'] == '1' )
echo $lang['tak'];
else if ( $this -> candidate['accommodation'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['mam-prawo-jazdy'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> candidate['driving_license'] == '1' )
echo $lang['tak'];
else if ( $this -> candidate['driving_license'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['mam-wlasny-samochod-do-dyspozycji'] );?>:</label>
<div class="col-12 col-sm-8">
<?
if ( $this -> candidate['own_car'] == '1' )
echo $lang['tak'];
else if ( $this -> candidate['own_car'] == '0' )
echo $lang['nie'];
else
echo '-';
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['cv'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( file_exists( \front\factory\GlobelusCandidates::cv_url( $this -> candidate['id'] ) ) ):?><a href="/cv/<?= $this -> candidate['id'];?>/<?= \S::get_token();?>/"><?= $lang['zobacz-aktualne-cv'];?></a><? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['dodatkowe-informacje'] );?>:</label>
<div class="col-12 col-sm-8">
<?= $this -> candidate['other_information'];?>
</div>
</div>
</div>
</div>
<div class="row mb15">
<div class="col-12 col-md-10">
<div class="form-group row">
<label class="col-12 col-sm-4">Notatka od Globelus.pl:</label>
<div class="col-12 col-sm-8">
<?= $this -> candidate['notes'];?>
</div>
</div>
</div>
</div>
<? if ( $this -> prev_profile ):?>
<a href="<?= $this -> prev_profile;?>" id="prev-cv" class="btn btn-system"><?= $lang['poprzedni-kandydat'];?></a>
<? endif;?>
<? if ( $this -> next_profile ):?>
<a href="<?= $this -> next_profile;?>" id="next-cv" class="btn btn-system"><?= $lang['nastepny-kandydat'];?></a>
<? endif;?>
</div>
<a href="javascript:history.go(-1);" class="btn btn-dark btn-back"><?= $lang['wstecz'];?></a>
</div>
<? \front\factory\GlobelusCandidates::profile_visits_increase( $this -> candidate['id'], $this -> g_user['id'] );?>

View File

@@ -0,0 +1,62 @@
<script type="text/javascript" class="footer">
$( function()
{
$.alert(
{
title: 'Dodstęp do bazy kandydatów',
icon: 'fa fa-exclamation',
content: 'Dostęp do bazy kandydatów mogą uzyskać wyłącznie zarejestrowani i zalogowani pracodawcy.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {}
},
cancel:
{
text: 'Zaloguj się',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {
document.location.href = '/logowanie';
}
}
}
});
});
</script>
<div class="box" id="new-offers">
<div class="container">
<div class="title">
[PHP]echo \S::lang( 'polecane-oferty-pracy' );[/PHP]
</div>
<div class="row">
<div class="col-12 col-md-6">
[PHP]echo \front\controls\GlobelusAdverts::main_page_adverts(4);[/PHP]
</div>
<div class="col-12 col-md-6">
[PHP]include 'templates_user/globelus/main-adverts.php';[/PHP]
</div>
</div>
</div>
</div>
<div class="box" id="jakiej-pracy-szukasz">
<div class="container">
<div class="row">
<div class="col-12">
<a href="/jakiej-pracy-szukasz">
<img src="/layout/images/jakiej-pracy-szukasz.jpg" alt="" style="width: 100%;">
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,379 @@
<? global $lang, $globelus_settings;?>
<? $positions_experience = \front\factory\Globelus::positions_experience();?>
<? if ( is_array( $this -> g_user['categories'] ) and count( $this -> g_user['categories'] ) ):?>
<div id="main-alert">
<? foreach ( $this -> g_user['categories'] as $category ):?>
<?
$categories_name .= \front\factory\Globelus::category_name( $category );
if ( $category != end( $this -> g_user['categories'] ) )
$categories_name .= ', ';
?>
<? endforeach;?>
<?= str_replace( '[KATEGORIA]', $categories_name, $lang['baza-kandydatow-komunikat'] );?>
</div>
<? endif;?>
<div class="row">
<div class="col-12 col-sm-4 col-md-3">
<div class="advert-filtr">
<form method="GET" action="/baza-cv/">
<input type="hidden" name="filtr" value="true">
<div class="title">Wyszukaj kandydata</div>
<div class="content">
<div class="subtitle"><?= ucfirst( $lang['slowo-kluczowe'] );?></div>
<div class="subcontent" style="display: block;">
<input type="text" name="k" class="form-control" value="<?= htmlspecialchars( $this -> keyword );?>" placeholder="<?= $lang['wpisz-szukane-slowo-kluczowe'];?>">
</div>
<div class="subtitle">Stanowisko</div>
<div class="subcontent">
<select class="form-control positions" name="id_position" placeholder="--- wybierz ---">
<option value="">--- wybierz ---</option>
<? if ( is_array( $this -> positions ) ): foreach ( $this -> positions as $position_single ):?>
<option value="<?= $position_single['id']; ?>" <? if ( $this -> position_selected == $position_single['id'] ):?>selected="selected"<? endif;?>><?= htmlspecialchars( $position_single['name'] );?></option>
<? endforeach; endif;?>
</select>
</div>
<div class="subtitle toggle" content="categories"><?= ucfirst( $lang['kategorie'] );?></div>
<div class="subcontent" id="subcontent-categories">
<ul>
<? if ( is_array( $this -> categories ) ): foreach ( $this -> categories as $category ):?>
<li <? if ( ++$j > 5 ):?> style="display: none;"<? endif;?>>
<input class="checkbox" type="checkbox" name="c2[]" value="<?= $category['id'];?>" <? if ( in_array( $category['id'], $this -> categories_selected ) ):?>checked="checked"<? endif;?>><?= $category['name'];?>
</li>
<? endforeach; endif;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-categories">więcej</a>
</div>
<div class="subtitle toggle" content="countries"><?= ucfirst( $lang['kraj'] );?></div>
<div class="subcontent" id="subcontent-countries">
<ul>
<? if ( is_array( $this -> countries ) ): foreach ( $this -> countries as $country ):?>
<li <? if ( ++$i > 5 ):?> style="display: none;"<? endif;?>>
<input type="checkbox" name="c1[]" value="<?= $country['id'];?>" <? if ( in_array( $country['id'], $this -> countries_selected ) ):?>checked="checked"<? endif;?>><?= $country['name'];?>
</li>
<? endforeach; endif;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-countries">więcej</a>
</div>
<div class="subtitle toggle" content="voivodeships">Województwo (tylko Polska)</div>
<div class="subcontent" id="subcontent-voivodeships">
<ul>
<? if ( is_array( $this -> voivodeships ) ): foreach ( $this -> voivodeships as $voivodeship ):?>
<li <? if ( ++$k > 5 ):?> style="display: none;"<? endif;?>>
<input class="checkbox" type="checkbox" name="v[]" value="<?= $voivodeship['id'];?>" <? if ( in_array( $voivodeship['id'], $this -> voivodeships_selected ) ):?>checked="checked"<? endif;?>><?= $voivodeship['name'];?>
</li>
<? endforeach; endif;?>
</ul>
<a href="#" class="btn btn-primary show-more" content="subcontent-voivodeships">więcej</a>
</div>
<div class="subtitle toggle" content="availability"><?= ucfirst( $lang['dostepnosc'] );?></div>
<div class="subcontent" id="subcontent-availability">
<ul>
<li>
<input type="radio" name="a" value="0" <? if ( !$this -> time_selected ):?>checked="checked"<? endif;?>> <?= $lang['wszyscy'];?>
</li>
<?
$status = \front\factory\Globelus::availability_status();
if ( is_array( $status ) ): foreach ( $status as $key => $val ):?>
<li>
<input type="radio" name="a" value="<?= $key;?>" <? if ( $this -> availability_selected == $key ):?>checked="checked"<? endif;?>> <?= $val;?>
</li>
<? endforeach; endif;
?>
</ul>
</div>
</div>
<input type="submit" class="btn btn-success pull-right mt10" value="<?= $lang['zatwierdz'];?>">
</form>
</div>
</div>
<div class="col-12 col-sm-8 col-md-9">
<? if ( is_array( $this -> cv_list ) and count( $this -> cv_list ) ):?>
<? foreach ( $this -> cv_list as $cv ):?>
<div class="cv-entry <? if ( $cv['highlight'] ):?>highlight<? endif;?>">
<? if ( $cv['highlight'] ):?><div id="highlight-text">Kandydat wyróżniony</div><? endif;?>
<div class="row">
<div class="col-12 col-sm-2">
<div class="img">
<? if ( file_exists( \front\factory\GlobelusCandidates::avatar_url( $cv['id'] ) ) ):?>
<img src="/avatar/<?= $cv['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-10">
<div class="row">
<div class="col-12 col-sm-8">
<h2>
<a href="/kandydat/<?= $cv['id'];?>/<?= \S::seo( $cv['surname'] . ' ' . $cv['name'], true );?>/" title="Kandydat: <?= addslashes( $cv['surname'] . ' ' . $cv['name'] );?>"><?= $cv['surname'] . ' ' . $cv['name'];?></a>
</h2>
</div>
<div class="col-12 col-sm-4 sex-and-birth">
<?= $lang['plec'];?>:
<?
if ( $cv['sex'] == '1' )
echo $lang['mezczyzna'];
else if ( $cv['sex'] == '0' )
echo $lang['kobieta'];
else
echo '-';
?>
<? if ( $cv['date_of_birth'] and $cv['date_of_birth'] != '1970-01-01' ):?>
, <?= $lang['wiek'];?>: <?= $age = \S::date_diff( $cv['date_of_birth'], date( 'Y-m-d H:i:s' ), 60 * 60 * 24 * 365.25 );?> <?= \front\factory\Globelus::age_word_translations( $age );?>
<? endif;?>
</div>
</div>
<div class="info">
<?= $lang['tel.'];?> <?= $cv['phone'];?>, <?= $lang['email'];?>: <a href="mailto:<?= $cv['email'];?>"><?= $cv['email'];?></a>
</div>
<div class="info-2">
<?
if ( is_array( $cv['positions'] ) and count( $cv['positions'] ) ):
echo '<p class="mb0">Chętnie podejmę pracę na stanowisku:<br />';
foreach ( $cv['positions'] as $position ):
echo ' ● <strong>'; if ( !$position['id_position'] ) echo $position['position']; if ( $position['id_position'] ) echo \front\factory\Globelus::position_name( $position['id_position'] ); echo '</strong>'; if ( $position['experience'] ) echo ' - ' . $lang['moj-staz-na-tym-stanowisku'] . ' ' . $positions_experience[ $position['experience'] ];
if ( $position != end( $cv['positions'] ) )
echo '<br />';
endforeach;
echo '</p>';
endif;
?>
</div>
<div class="info-2">
<?= $cv['sex'] ? $lang['ostatnio-szukal-pracy'] : $lang['ostatnio-szukala-pracy'];?>: <strong><?= $cv['last_refresh'] ? date( 'Y-m-d', strtotime( $cv['last_refresh'] ) ) : date( 'Y-m-d', strtotime( $cv['register_date'] ) );?></strong>
</div>
<div class="short-text">
<?= $advert['short_text'];?>
</div>
<a href="/kandydat/<?= $cv['id'];?>/<?= \S::seo( $cv['surname'] . ' ' . $cv['name'], true );?>/" class="btn btn-success"><?= $lang['profil-kandydata'];?></a>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<? if ( !is_array( $this -> g_user['categories'] ) or !count( $this -> g_user['categories'] ) ):?>
<div class="mini-box">
<div class="row">
<div class="col-12">
<form method="POST" action="/globelusCv/activate_access/" enctype="multipart/form-data" id="cv-access">
<p>Obecnie nie posiadasz wykupionego dostępu do bazy kandydatów.<br/>Dostęp na <b>30 dni</b> to koszt <b><?= $this -> gsettings['pkt-dostep-baza-kandydatow'];?></b> punktów.</p>
<p class="text-red" style="font-weight: 600">Wybierz 3 kategorie i aktywuj dostęp.</p>
<div class="row">
<?
$categories[0] = '--- brak przypisanej kategorii ---';
if ( is_array( $this -> categories ) and count( $this -> categories ) ): foreach ( $this -> categories as $category ):
echo '<div class="col-6">';
echo '<input type="checkbox" name="categories[]" class="checkbox cv-checkbox" value="' . $category['id'] . '"> ';
echo $category['name'];
echo '</div>';
endforeach; endif;
?>
</div>
<p>&nbsp;</p>
<p><button type="submit" class="btn btn-danger">Aktywuj dostep do bazy kandydatów</button></p>
</form>
</div>
</div>
</div>
<? else:?>
<div class="alert"><?= $lang['baza-cv-komunikat-brak-wynikow'];?>.</div>
<? endif;?>
<? endif;?>
<?
if ( \S::get( 'cp' ) == 1 )
{
$query_string = preg_replace( '/\/baza-cv/', '', $_SERVER['REQUEST_URI'] );
$query_string = preg_replace( '/\//', '', $query_string );
}
else
$query_string = preg_replace( '/\/baza-cv\/([0-9]*)\//', '', $_SERVER['REQUEST_URI'] );
if ( ( $this -> cv_count / \front\factory\GlobelusCv::cv_list_limit ) > 1 ):
echo \front\view\Globelus::pager(
'baza-cv',
ceil( $this -> cv_count / \front\factory\GlobelusCv::cv_list_limit ),
$this -> current_page,
$query_string
);
endif;
?>
</div>
</div>
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/selectize/css/selectize.bootstrap3.css">
<script class="footer" type="text/javascript" src="/plugins/selectize/js/selectize.js"></script>
<script class="footer" type="text/javascript">
$( function()
{
$( '.positions' ).selectize({
maxItems: 1
});
$( 'body' ).on( 'click', '#cv-access .btn', function( e )
{
e.preventDefault();
<? if ( \front\factory\GlobelusFirms::get_firm_points( $this -> g_user['id'] ) < $globelus_settings['pkt-dostep-baza-kandydatow'] ):?>
$.alert(
{
title: 'Dodstęp do bazy kandydatów',
icon: 'fa fa-exclamation',
content: 'Nie posiadasz wystarczającej ilości punktów aby aktywować dostęp do bazy kandydatów.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
<? endif;?>
var checked = $( "input.cv-checkbox:checked" ).length;
if ( checked === 0 )
{
$.alert(
{
title: 'Dodstęp do bazy kandydatów',
icon: 'fa fa-exclamation',
content: 'Wybierz conajmniej jedną kategorię.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
if ( checked > 3 )
{
$.alert(
{
title: 'Dodstęp do bazy kandydatów',
icon: 'fa fa-exclamation',
content: 'Możesz wybrać maksymalnie <b>3 kategorie.<\/b>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
$.alert(
{
title: 'Dodstęp do bazy kandydatów',
icon: 'fa fa-exclamation',
content: 'Dostęp do bazy kandydatów kosztuje <b><?= $globelus_settings['pkt-dostep-baza-kandydatow'];?> punktów<\/b>, zostaną one pobrane z Twojego konta.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
$( '#cv-access' ).submit();
}
}
}
});
});
<? if ( $this -> categories_selected ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-categories' ).show();
<? endif;?>
<? if ( $this -> voivodeships_selected ):?>
if ( $(document).width() >= 768 )
$( '#subcontent-voivodeships' ).show();
<? endif;?>
$( 'body' ).on( click_event, '.advert-filtr div.toggle', function(e)
{
var content_id = $( this ).attr( 'content' );
if ( $( '#subcontent-' + content_id ).is( ':visible' ) )
{
$( '#subcontent-' + content_id ).hide();
$( this ).children( 'i' ).removeClass( 'fa-chevron-up' ).addClass( 'fa-chevron-down' );
}
else
{
$( '#subcontent-' + content_id ).show();
$( this ).children( 'i' ).removeClass( 'fa-chevron-down' ).addClass( 'fa-chevron-up' );
}
return false;
});
$( 'body' ).on( 'click', '.show-more', function(e)
{
e.preventDefault();
var content_id = $( this ).attr( 'content' );
$( '#' + content_id + ' li' ).show();
$( this ).removeClass( 'show-more' ).addClass( 'show-less' ).html( 'mniej' );
});
$( 'body' ).on( 'click', '.show-less', function(e)
{
e.preventDefault();
var content_id = $( this ).attr( 'content' );
$( '#' + content_id + ' li' ).each( function( i )
{
if ( i > 4 )
$( this ).hide();
});
$( this ).removeClass( 'show-less' ).addClass( 'show-more' ).html( 'więcej' );
});
});
</script>

View File

@@ -0,0 +1,24 @@
<? global $lang;?>
<div class="mini-buttons" id="buttons">
<a href="/panel-pracodawcy/profil" class="btn <?= $this -> active == 'moj-profil' ? 'active' : '';?>">
<?= $lang['moj-profil'];?>
</a>
<a href="/panel-pracodawcy/ogloszenia" class="btn <?= $this -> active == 'ogloszenia' ? 'active' : '';?>">
<?= $lang['ogloszenia'];?>
</a>
<a href="/panel-pracodawcy/odpowiedzi-na-ogloszenia" class="btn <?= $this -> active == 'cv' ? 'active' : '';?>">
CV
</a>
<a href="/panel-pracodawcy/proponowani-kandydaci" class="btn btn-red <?= $this -> active == 'proponowani-kandydaci' ? 'active' : '';?>">
proponowani kandydaci
</a>
<a href="/panel-pracodawcy/obserwowani-kandydaci" class="btn <?= $this -> active == 'obserwowani-kandydaci' ? 'active' : '';?>" style="display:none;">
<?= $lang['obserwowani-kandydaci'];?>
</a>
<a href="/panel-pracodawcy/ustawienia-konta" class="btn <?= $this -> active == 'ustawienia-konta' ? 'active' : '';?>">
<?= $lang['ustawienia-konta'];?>
</a>
<a href="/panel-pracodawcy/zakup-punktow" class="btn <?= $this -> active == 'zakup-punktow' ? 'active' : '';?>">
zakup punktów
</a>
</div>

View File

@@ -0,0 +1,609 @@
<? global $lang, $globelus_settings; ?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'ogloszenia'
] );?>
</div>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst($lang['dodaj-ogloszenie']); ?>
<span class="pull-right text-danger small">
Posiadasz <?= (int)$this->user_points; ?> pkt. <a href="/panel-pracodawcy/zakup-punktow">Doładuj konto.</a>
</span>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content profil">
<form id="advert-add" method="POST" action="/globelusFirms/advert_save/" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?= $this->advert['id']; ?>">
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="title" class="col-12 col-sm-4"><?= ucfirst($lang['tytul-ogloszenia']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" required id="title" name="title" class="form-control" value="<?= htmlspecialchars($this->advert['title']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="category" class="col-12 col-sm-4"><?= ucfirst($lang['branza']); ?>:</label>
<div class="col-12 col-sm-8">
<select name="category" id="category" required class="form-control">
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<?
$categories = \front\factory\GlobelusAdverts::categories();
if (is_array($categories)) : foreach ($categories as $category) : ?>
<option value="<?= $category['id']; ?>" <? if ($category['id'] == $this->advert['category_id']) : ?>selected="selected" <? endif; ?>><?= $category['name']; ?></option>
<? endforeach;
endif;
?>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="position" class="col-12 col-sm-4">Stanowisko:</label>
<div class="col-12 col-sm-8">
<select name="position" id="position" required class="form-control">
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<? if ( is_array( $this -> positions ) ): foreach ( $this -> positions as $position ):?>
<option value="<?= $position['id']; ?>" <? if ( $position['id'] == $this -> advert['id_position'] ):?>selected="selected" <? endif; ?>><?= htmlspecialchars( $position['name'] );?></option>
<? endforeach; endif;?>
</select>
</div>
</div>
</div>
</div>
<hr />
<div class="step-title"><?= ucfirst($lang['miejsce-zatrudnienia']); ?></div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="country" class="col-12 col-sm-4"><?= ucfirst($lang['kraj']); ?>:</label>
<div class="col-12 col-sm-8">
<select name="country" id="country" required class="form-control">
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<?
$countries = \front\factory\Globelus::countries();
if (is_array($countries)) : foreach ($countries as $country) :
if ($country['name'] != '- dowolny -') : ?>
<option value="<?= $country['id']; ?>" <? if ($country['id'] == $this->advert['country_id']) : ?>selected="selected" <? endif; ?>><?= $country['name']; ?></option>
<? endif;
endforeach;
endif;
?>
</select>
</div>
</div>
</div>
</div>
<div class="row voivodeship">
<div class="col-12">
<div class="form-group row">
<label form="region" class="col-12 col-sm-4"><?= ucfirst($lang['region']); ?>/<?= ucfirst($lang['wojewodztwo']); ?>:</label>
<div class="col-12 col-sm-8">
<select name="id_voivodeship" id="id_voivodeship" class="form-control">
<option value="">--- wybierz województwo ---</option>
<? foreach ($this->voivodeships as $voivodeship) : ?>
<option value="<?= $voivodeship['id']; ?>" <? if ($voivodeship['id'] == $this->advert['id_voivodeship']) : ?>selected="selected" <? endif; ?>><?= $voivodeship['name']; ?></option>
<? endforeach; ?>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="city" class="col-12 col-sm-4"><?= ucfirst($lang['miasto']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" required name="city" value="<?= htmlspecialchars($this->advert['city']); ?>">
</div>
</div>
</div>
</div>
<hr />
<div class="step-title"><?= ucfirst(\S::lang('dodatkowe-informacje')); ?></div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="region" class="col-12 col-sm-4"><?= ucfirst(\S::lang('proponowane-wynagrodzenie')); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control number" name="salary" value="<?= htmlspecialchars($this->advert['salary']); ?>" required="required">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="work_type" class="col-12 col-sm-4"><?= ucfirst(\S::lang('rodzaj-pracy')); ?>:</label>
<div class="col-12 col-sm-8">
<select name="work_type" class="form-control" required="required">
<option value="0">--- <?= $lang['wybierz']; ?> ---</option>
<?
$types = \front\factory\Globelus::work_types();
if (is_array($types)) : foreach ($types as $key => $val) : ?>
<option value="<?= $key; ?>" <? if ($key == $this->advert['work_type']) : ?>selected="selected" <? endif; ?>><?= $val; ?></option>
<? endforeach;
endif;
?>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="without_language" class="col-12 col-sm-4"><?= ucfirst(\S::lang('oferta-dla-osob-bez-znajomosc-jezyka')); ?>:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="without_language" value="0" class="checkbox" <? if (!$this->advert['without_language']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="without_language" value="1" class="checkbox" <? if ($this->advert['without_language']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="without_experience" class="col-12 col-sm-4"><?= ucfirst(\S::lang('oferta-dla-osob-bez-doswiadczenia')); ?>:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="without_experience" value="0" class="checkbox" <? if (!$this->advert['without_experience']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="without_experience" value="1" class="checkbox" <? if ($this->advert['without_experience']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="for_couples" class="col-12 col-sm-4"><?= ucfirst(\S::lang('oferta-dla-par')); ?>:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="for_couples" value="0" class="checkbox" <? if (!$this->advert['for_couples']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="for_couples" value="1" class="checkbox" <? if ($this->advert['for_couples']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="from_now" class="col-12 col-sm-4">Pomoc z zakwaterowaniem?:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="accommodation" value="0" class="checkbox accommodation" <? if (!$this->advert['accommodation']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="accommodation" value="1" class="checkbox accommodation" <? if ($this->advert['accommodation']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="accommodation_cost" class="col-12 col-sm-4">Jaki koszt dla pracownika?:</label>
<div class="col-12 col-sm-8 pt7">
<input type="text" class="form-control" name="accommodation_cost" id="accommodation_cost" value="<?= htmlspecialchars($this->advert['accommodation_cost']); ?>" <? if ($this->advert['travel_refund']) : ?>required="required" <? endif; ?>>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="overtime" class="col-12 col-sm-4">Gwarancja godzin:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="overtime" value="0" class="checkbox overtime" <? if (!$this->advert['overtime']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="overtime" value="1" class="checkbox overtime" <? if ($this->advert['overtime']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="overtime_quantity" class="col-12 col-sm-4">Ile godzin gwarantuje pracodawca?:</label>
<div class="col-12 col-sm-8 pt7">
<input type="text" class="form-control" id="overtime_quantity" name="overtime_quantity" value="<?= htmlspecialchars($this->advert['overtime_quantity']); ?>" <? if ($this->advert['overtime']) : ?>required="required" <? endif; ?>>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="travel_refund" class="col-12 col-sm-4">Pracodawca refunduje przejazd/przelot:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="travel_refund" value="0" class="checkbox" <? if (!$this->advert['travel_refund']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="travel_refund" value="1" class="checkbox" <? if ($this->advert['travel_refund']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="outside_ue" class="col-12 col-sm-4">Praca dla obywateli spoza UE:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="outside_ue" value="0" class="checkbox" <? if (!$this->advert['outside_ue']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="outside_ue" value="1" class="checkbox" <? if ($this->advert['outside_ue']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="without_driving_license" class="col-12 col-sm-4">Oferta bez prawa jazdy:</label>
<div class="col-12 col-sm-8 pt7">
<input type="radio" name="without_driving_license" value="0" class="checkbox" <? if (!$this->advert['without_driving_license']) : ?>checked="checked" <? endif; ?> />nie
<input type="radio" name="without_driving_license" value="1" class="checkbox" <? if ($this->advert['without_driving_license']) : ?>checked="checked" <? endif; ?> />tak
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
Zdjęcie nad ogłoszeniem
<br>
<span>
<small>Ważna informacja: jeśli chcesz, aby ta grafika była widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu dodaj ją w Profilu Pracodawcy.</small>
</span>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="advert-img-top" class="col-12 col-sm-4">Zdjęcie (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="advert-img-top" name="advert-img-top">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="advert-img-top">
<? if (file_exists(\front\factory\GlobelusFirms::advert_add_img_top_url($this->advert['id']))) :?>
<img src="/advert_add_img_top/<?= $this->advert['id']; ?>/<?= \S::get_token(); ?>" style="max-width: 200px;">
<a class="btn btn-danger advert-img-top_delete" href="#">Usuń zdjęcie</a>
<? endif; ?>
</div>
</div>
</div>
</hr>
<hr>
<div class="step-title">
Zdjęcie pod ogłoszeniem
<br>
<span>
<small>Ważna informacja: jeśli chcesz, aby ta grafika była widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu dodaj ją w Profilu Pracodawcy.</small>
</span>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="advert-img-bottom" class="col-12 col-sm-4">Zdjęcie (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="advert-img-bottom" name="advert-img-bottom">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="advert-img-bottom">
<? if (file_exists(\front\factory\GlobelusFirms::advert_add_img_bottom_url($this->advert['id']))) :?>
<img src="/advert_add_img_bottom/<?= $this->advert['id']; ?>/<?= \S::get_token(); ?>" style="max-width: 200px;">
<a class="btn btn-danger advert-img-bottom_delete" href="#">Usuń zdjęcie</a>
<? endif; ?>
</div>
</div>
</div>
</hr>
<hr>
<div class="step-title"><?= ucfirst($lang['tresc-ogloszenia-opis-wymagania']); ?></div>
<div class="subtitle warrning"><?= ucfirst($lang['tresc-ogloszenia-ostrzezenie']); ?></div>
<div class="row">
<div class="col-12">
<textarea name="text" id="text"><?= $this->advert['text']; ?></textarea>
<p class="hidden editor-error">Proszę uzupełnić treść ogłoszenia.</p>
</div>
</div>
<div class="row mt-3">
<div class="col-12">
<div class="form-group row">
<label form="application_link" class="col-12 col-sm-4">Link do własnego formularza aplikacji:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="aplication_link" value="<?= htmlspecialchars($this->advert['aplication_link']);?>">
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">Osoba rekrutująca na stanowisko</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="contact_person" class="col-12 col-sm-4"><?= ucfirst($lang['osoba-do-kontaktu']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="contact_person" value="<?= $this->advert['id'] ? htmlspecialchars($this->advert['contact_person']) : htmlspecialchars($this->user['contact_person_1']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst($lang['email']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="email" value="<?= $this->advert['id'] ? htmlspecialchars($this->advert['email']) : htmlspecialchars($this->user['email_1']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="phone" class="col-12 col-sm-4"><?= ucfirst($lang['telefon']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="phone" value="<?= $this->advert['id'] ? htmlspecialchars($this->advert['phone']) : htmlspecialchars($this->user['phone_1']); ?>">
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="contact_person2" class="col-12 col-sm-4"><?= ucfirst($lang['osoba-do-kontaktu']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="contact_person2" value="<?= $this->advert['id'] ? htmlspecialchars($this->advert['contact_person2']) : htmlspecialchars($this->user['contact_person_2']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="email2" class="col-12 col-sm-4"><?= ucfirst($lang['email']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="email2" value="<?= $this->advert['id'] ? htmlspecialchars($this->advert['email2']) : htmlspecialchars($this->user['email_2']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="phone2" class="col-12 col-sm-4"><?= ucfirst($lang['telefon']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="phone2" value="<?= $this->advert['id'] ? htmlspecialchars($this->advert['phone2']) : htmlspecialchars($this->user['phone_2']); ?>">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<div class="col-12 mt20">
<a href="/panel-pracodawcy/ogloszenia" class="btn btn-danger mr15"><?= ucfirst($lang['anuluj']); ?></a>
<input type="submit" value="<?= ucfirst($lang['zapisz']); ?>" class="btn btn-success">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/summernote/summernote-lite.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/selectize/css/selectize.bootstrap3.css">
<script class="footer" type="text/javascript" src="/plugins/popper.js"></script>
<script class="footer" type="text/javascript" src="/plugins/summernote/summernote-lite.js"></script>
<script class="footer" type="text/javascript" src="/plugins/summernote/lang/summernote-pl-PL.js"></script>
<script class="footer" type="text/javascript" src="/plugins/selectize/js/selectize.js"></script>
<script class="footer" type="text/javascript">
$(function() {
$( '#category' ).selectize({
maxItems: 1
});
$( '#country' ).selectize({
maxItems: 1
});
$( '#position' ).selectize({
maxItems: 1
});
$('body').on('change', '#country', function() {
if ($(this).val() == '1')
$('.row.voivodeship').show();
else
$('.row.voivodeship').hide();
});
$('#country').trigger("change");
$('.accommodation').on('ifChecked', function(event) {
if ($(this).attr("value") == "0")
$("#accommodation_cost").removeAttr('required');
if ($(this).attr("value") == "1")
$("#accommodation_cost").attr('required', 'required');
});
$('.overtime').on('ifChecked', function(event) {
if ($(this).attr("value") == "0")
$("#overtime_quantity").removeAttr('required');
if ($(this).attr("value") == "1")
$("#overtime_quantity").attr('required', 'required');
});
$('body').on('submit', '#advert-add', function(e) {
var text = $("#text").summernote('code');
text = text.replace(/(<([^>]+)>)/ig, '');
text = text.replace(/&nbsp;/g, '');
if ($.trim(text) === '') {
$('#text').parent('.col-12').children('.note-editor').addClass('error');
$('#text').parent('.col-12').children('.editor-error').removeClass('hidden');
$('html, body').animate({
scrollTop: $('#text').parent('.col-12').children('.note-editor').offset().top
}, 100);
e.preventDefault();
} else {
$('#text').parent('.col-12').children('.note-editor').removeClass('error');
$('#text').parent('.col-12').children('.editor-error').addClass('hidden');
}
var work_type = $( 'select[name="work_type"]' ).val();
if ( work_type == 0 )
{
$( 'select[name="work_type"]' ).addClass( 'error' );
$( 'select[name="work_type"]' ).focus();
e.preventDefault();
}
else
{
$( 'select[name="work_type"]' ).removeClass( 'error' );
}
});
$('#text').summernote({
height: 200,
lang: 'pl-PL',
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['height', ['height']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']]
]
});
});
/*usuwanie zdjecia top */
$( function()
{
$( 'body' ).on( click_event, '.advert-img-top_delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: 'Czy napewno chcesz usunąć zdjęcie górne?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
$.ajax(
{
type: 'POST',
url: '/globelusFirms/delete_advert_img_top/',
data:
{
id: <?= (int)$this -> advert['id'];?>
},
beforeSend: function() {},
success: function( response )
{
var data = jQuery.parseJSON( response );
if ( data.result == 'ok' ) {
const img_header = document.querySelector(".advert-img-top");
img_header.classList.add("img-hide");
}
}
});
}
}
}
});
});
});
/*usuwanie zdjecia bottom */
$( function()
{
$( 'body' ).on( click_event, '.advert-img-bottom_delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: 'Czy napewno chcesz usunąć zdjęcie dolne?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
$.ajax(
{
type: 'POST',
url: '/globelusFirms/delete_advert_img_bottom/',
data:
{
id: <?= (int)$this -> advert['id'];?>
},
beforeSend: function() {},
success: function( response )
{
var data = jQuery.parseJSON( response );
if ( data.result == 'ok' ) {
const img_header = document.querySelector(".advert-img-bottom");
img_header.classList.add("img-hide");
}
}
});
}
}
}
});
});
});
</script>

View File

@@ -0,0 +1,181 @@
<? global $lang;?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'ogloszenia'
] );?>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst( $lang['lista-odpowiedzi'] );?>
</div>
<div class="subtitle mb0">
<?= ucfirst( $lang['lista-odpowiedzi-do-ogloszenia'] );?>: <strong><?= $this -> advert['title'];?></strong>
</div>
</div>
<? if ( is_array( $this -> answers ) and count( $this -> answers ) ):?>
<? foreach ( $this -> answers as $answer ):?>
<div class="answer <? if ( !$answer['displayed'] ):?>nondisplayed<? else:?>displayed<? endif?>">
<div class="row">
<div class="col-12">
<div class="img">
<? if ( $answer['user_id'] and file_exists( \front\factory\GlobelusCandidates::avatar_url( $answer['user_id'] ) ) ):?>
<img src="/avatar/<?= $answer['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
<div class="content">
<div class="title">
<span class="name"><?= $answer['surname'] . ' ' . $answer['name'];?></span>
<a href="#" class="delete text-danger" answer-id="<?= $answer['id'];?>"><?= \S::lang( 'usun' );?></a>
<span class="date-add"><?= date( 'Y-m-d H:i', strtotime( $answer['date_add'] ) );?></span>
</div>
<div class="info">
<?= $lang['tel.'];?> <?= $answer['phone'];?> |
<?= $lang['email'];?> <a href="mailto:<?= $answer['email'];?>"><?= $answer['email'];?></a> |
<? if ( ( $answer['cv'] and file_exists( $answer['cv'] ) ) || ( !$answer['cv'] and $answer['user_id'] and file_exists( \front\factory\GlobelusCandidates::cv_url( $answer['user_id'] ) ) ) ):?>
<?
if ( !$answer['cv'] and $answer['user_id'] and file_exists( \front\factory\GlobelusCandidates::cv_url( $answer['user_id'] ) ) )
$cv_url = '/cv/' . $answer['user_id'] . '/' . \S::get_token() . '/';
else if ( $answer['cv'] and file_exists( $answer['cv'] ) )
$cv_url = '/cv-tmp/' . $answer['id'] . '/' . \S::get_token() . '/';
?>
<a href="<?= $cv_url;?>" class="cv" answer-id="<?= $answer['id'];?>">
<i class="fa fa-file-text"></i> <?= $lang['pobierz-cv'];?>
</a>
<? endif;?>
<? if ( $answer['user_id'] ):?>
| <a href="/kandydat/<?= $answer['user_id'];?>/<?= ( !$answer['surname'] and !$answer['name'] ) ? 'u' : \S::seo( $answer['surname'] . ' ' . $answer['name'] );?>/" target="_blank" answer-id="<?= $answer['id'];?>" class="visit-user"><?= $lang['zobacz-profil-kandydata-w-bazie-kandydatow'];?></a>
<? endif;?>
</div>
<div class="text">
<?= nl2br( $answer['text'] );?>
</div>
</div>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<div class="alert alert-danger mt20"><?= $lang['panel-pracodawcy-brak-odpowiedzi'];?></div>
<? endif;?>
<div class="row">
<div class="col-12 mt20">
<a href="/panel-pracodawcy/ogloszenia" class="btn btn-danger mr15"><?= ucfirst( $lang['wstecz'] );?></a>
</div>
</div>
</div>
<script class="footer" type="text/javascript">
$( function() {
$( 'body' ).on( 'click', '.cv', function(e) {
e.preventDefault();
var answer = $( this ).parents( '.answer' );
var href = $( this ).attr( 'href' );
var answer_id = $( this ).attr( 'answer-id' );
$.ajax(
{
type: 'POST',
cache: false,
url: '/GlobelusFirms/set_answer_as_displayed/',
data:
{
answer_id: answer_id
},
beforeSend: function() {},
success: function( data )
{
var win = window.open( href, '_blank' );
win.focus();
answer.removeClass( 'nondisplayed' ).addClass( 'displayed' );
}
});
});
$( 'body' ).on( 'click', '.visit-user', function(e) {
e.preventDefault();
<? if ( !is_array( $this -> g_user['categories'] ) or !count( $this -> g_user['categories'] ) ):?>
$.alert({
title: 'Oferty pracy',
icon: 'fa fa-exclamation',
content: '<?= \S::lang( 'baza-cv-komunikat' );?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {
}
}
}
});
<? else:?>
var answer = $( this ).parents( '.answer' );
var href = $( this ).attr( 'href' );
var answer_id = $( this ).attr( 'answer-id' );
$.ajax(
{
type: 'POST',
cache: false,
url: '/GlobelusFirms/set_answer_as_displayed/',
data:
{
answer_id: answer_id
},
beforeSend: function() {},
success: function( data )
{
var win = window.open( href, '_blank' );
win.focus();
answer.removeClass( 'nondisplayed' ).addClass( 'displayed' );
}
});
<? endif;?>
});
$( 'body' ).on( 'click', '#user-panel .answer .delete', function()
{
var answer_id = $( this ).attr( 'answer-id' );
$.alert(
{
title: '<?= ucfirst( \S::lang( 'potwierdz' ) );?>',
icon: 'fa fa-exclamation',
content: '<?= \S::lang( 'potwierdz-usuniecie-odpowiedzi' );?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zatwierdz' );?>',
btnClass: 'btn-danger',
keys: ['enter'],
action: function()
{
document.location.href="/GlobelusFirms/answer_delete/advert_id=<?= $this -> advert['id'];?>&answer_id=" + answer_id;
}
},
cancel:
{
text: '<?= \S::lang( 'anuluj' );?>',
action: function() {}
}
}
});
return false;
});
});
</script>

View File

@@ -0,0 +1,736 @@
<? global $lang, $globelus_settings;?>
<link class="footer" rel="stylesheet" type="text/css" href="/libraries/framework/vendor/plugins/datatables/media/css/dataTables.plugins.css">
<link class="footer" rel="stylesheet" type="text/css" href="/libraries/framework/vendor/plugins/datatables/media/css/dataTables.bootstrap.css">
<script class="footer" type="text/javascript">
var dir = '/plugins/grid';
</script>
<script class="footer" src="/libraries/framework/vendor/jquery/jquery_ui/jquery-ui.min.js"></script>
<script class="footer" src="/libraries/framework/vendor/plugins/moment/moment.js"></script>
<script class="footer" src="/libraries/framework/vendor/plugins/moment/pl.js"></script>
<script class="footer" src="/libraries/framework/vendor/plugins/datepicker/js/bootstrap-datetimepicker.js"></script>
<script class="footer" src="/libraries/framework/vendor/plugins/daterange/daterangepicker.js"></script>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'ogloszenia'
] );?>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst( $lang['moje-ogloszenia'] );?>
<span class="pull-right text-danger small">
Posiadasz <?= (int)$this -> firm_points;?> pkt. <a href="/panel-pracodawcy/zakup-punktow">Doładuj konto.</a>
</span>
</div>
<div class="subtitle">
<?= $lang['moje-ogloszenia-podtytul'];?>
<? if ( $this -> user['profile_completed'] ):?>
<a href="/panel-pracodawcy/dodaj-ogloszenie" class="btn btn-success btn-add-advert"><?= $lang['dodaj-ogloszenie'];?></a>
<? endif;?>
</div>
<? if ( !$this -> user['profile_completed'] ):?>
<div class="alert alert-danger">Aby móc dodawać ogłoszenia uzupełnij podstawowe dane o firmie.</div>
<? endif;?>
<p class="legend hidden">
<span style="color: #2cbd2b;">Na zielono oznaczono ogłoszenia wyróżnione na górze listy ogłoszeń. Koszt wyróżnienia ogłoszenia: <strong><?= $globelus_settings['pkt-polecanie-ogloszenia'];?> pkt.</strong></span><br />
<span style="color: #f70;">Na pomarańczowo oznaczono ogłoszenia polecane na stronie głównej. Koszt polecenia ogłoszenia: <strong><?= $globelus_settings['pkt-polecanie-ogloszenia'];?> pkt.</strong></span><br />
<span>Koszt odświeżenia ogłoszenia: <strong><?= $globelus_settings['pkt-odswiezenie-ogloszenia'];?> pkt.</strong></span>
</p>
<div class="row">
<div class="col-12">
<div class="content profil">
<div class="row">
<?
if ( $this -> user['profile_completed'] ):
global $database;
$gdb = [
'database_type' => 'mysql',
'database_name' => $database['name'],
'server' => $database['host'],
'username' => $database['user'],
'password' => $database['password'],
'charset' => 'utf8'
];
include 'plugins/grid/gdb.min.php';
include 'plugins/grid/grid.php';
include 'plugins/grid/grid-view.php';
$grid = new \grid( 'ogloszenia-' . $this -> user['id'] );
$grid -> gdb_opt = $gdb;
$grid -> lp = true;
$grid -> sql = 'SELECT '
. 'ga.id, title, ga.visible, date_add, ga.visits, ga.active_to, ga.highlight, ga.highlight_to, ga.main_page_to, ga.old, main_page, ga.last_refresh, refresh_count, highlight_left, main_page_left, '
. 'disabled_by_admin, additional_promotion, '
. '( SELECT COUNT(0) FROM globelus_adverts_answers WHERE advert_id = ga.id AND deleted = 0 ) AS answers, '
. '( SELECT COUNT(0) FROM globelus_adverts_answers WHERE advert_id = ga.id AND displayed = 0 AND deleted = 0 ) AS answers_nondisplayed, '
. 'IF ( ga.last_refresh IS NOT NULL, ga.last_refresh, ga.date_add ) AS date_refresh '
. 'FROM '
. 'globelus_adverts AS ga '
. 'LEFT JOIN globelus_adverts_categories AS gac ON gac.id = category_id '
. 'INNER JOIN globelus_users AS gu ON ga.user_id = gu.id '
. 'WHERE '
. 'user_id = ' . (int)$this -> user['id'] . ' '
. '[where] '
. 'ORDER BY '
. '[order_p1] [order_p2]';
$grid -> sql_count = 'SELECT '
. 'COUNT(0) '
. 'FROM '
. 'globelus_adverts AS ga '
. 'LEFT JOIN globelus_adverts_categories AS gac ON gac.id = category_id '
. 'INNER JOIN globelus_users AS gu ON ga.user_id = gu.id '
. 'WHERE '
. 'user_id = ' . (int)$this -> user['id'] . ' '
. '[where] ';
$grid -> debug = false;
$grid -> context_menu = false;
$grid -> condensed = true;
$grid -> multiselect = true;
$grid -> hide_columns = false;
$grid -> order = [ 'column' => 'date_refresh', 'type' => 'DESC' ];
$grid -> search = [
[ 'name' => 'Tytuł', 'db' => 'title', 'type' => 'text' ],
[ 'name' => 'Widoczne', 'db' => 'ga.visible', 'column' => 'visible', 'type' => 'select', 'replace' => [ 'array' => [ 0 => 'nie', 1 => 'tak' ] ] ],
[ 'name' => 'Wyróżnione', 'db' => 'ga.highlight', 'column' => 'highlight', 'type' => 'select', 'replace' => [ 'array' => [ 0 => 'nie', 1 => 'tak' ] ] ],
[ 'name' => 'Polecone', 'db' => 'ga.main_page', 'column' => 'main_page', 'type' => 'select', 'replace' => [ 'array' => [ 0 => 'nie', 1 => 'tak' ] ] ]
];
$grid -> columns_view = [
[
'name' => 'Lp.',
'th' => [ 'class' => 'g-lp' ],
'td' => [ 'class' => 'g-center' ],
'autoincrement' => true
], [
'name' => 'Tytuł',
'db' => 'title',
'sort' => true,
'th' => [ 'style' => 'min-width: 400px;' ],
'php' =>
'if ( [additional_promotion] ) { '
. 'echo "<i class=\'fa fa-star text-blue\'></i> "; '
. '} '
. 'echo "<a href=\'/oferta/[id]/" . \\S::seo( \'[title]\', true ) . "\' target=\'blank\'>" '
. ' . addslashes( mb_substr( \'[title]\', 0, 60, \'UTF-8\' ) ); '
. 'if ( strlen( \'[title]\' ) > 60 ) echo "..."; echo "</a>"; '
. 'if ( "[highlight]" )'
. ' echo "<p class=\'small\'>Ogłoszenie wyróżnione do <b>[highlight_to]</b></p>";'
. 'if ( "[main_page]" )'
. ' echo "<p class=\'small\'>Ogłoszenie polecone na stronie głównej do <b>[main_page_to]</b></p>";'
. 'if ( [disabled_by_admin] ) '
. 'echo "<p class=\'info text-danger text-italic\' style=\'font-size: 12px;\'>Ogłoszenie wyłączone przez administratora.</p>";'
], [
'name' => 'Ważność',
'db' => 'active_to',
'sort' => true,
'th' => [ 'style' => 'min-width: 100px;' ],
'php' => 'if ( [old] ) { '
. 'echo "ogłoszenie wygasłe"; '
. '} else { '
. 'if ( "[active_to]" != null ) { '
. 'echo date( "Y-m-d", strtotime( "[active_to]" ) ); '
. '} else { '
. 'echo "bezterminowo"; '
. '} '
. '}'
], [
'name' => 'Wyś.',
'td' => [ 'class' => 'g-center' ],
'db' => 'visits',
'sort' => true
], [
'name' => 'CV',
'td' => [ 'class' => 'g-center' ],
'db' => 'answers',
'sort' => true,
'php' => 'echo "<a href=\'/panel-pracodawcy/odpowiedzi/[id]\' class=\'btn"; if ( [answers_nondisplayed] ) echo " btn-danger "; else echo " btn-gray "; echo "pull-right\'>[answers]</a>"; '
], [
'name' => 'Widoczne',
'db' => 'visible',
'replace' => [ 'array' => [ 0 => '<span style="color: #FF0000;">nie</span>', 1 => 'tak' ] ],
'td' => [ 'class' => 'g-center' ],
'th' => [ 'class' => 'g-center', 'style' => 'width: 100px;' ],
'sort' => true
], [
'name' => 'Wyróźnione',
'db' => 'highlight',
'replace' => [ 'array' => [ 0 => '<span style="color: #FF0000;">nie</span>', 1 => 'tak' ] ],
'td' => [ 'class' => 'g-center' ],
'th' => [ 'class' => 'g-center', 'style' => 'width: 100px;' ],
'sort' => true
], [
'name' => 'Polecone',
'db' => 'main_page',
'replace' => [ 'array' => [ 0 => '<span style="color: #FF0000;">nie</span>', 1 => 'tak' ] ],
'td' => [ 'class' => 'g-center' ],
'th' => [ 'class' => 'g-center', 'style' => 'width: 100px;' ],
'sort' => true
], [
'name' => 'Opcje',
'th' => [ 'style' => 'width: 150px;' ],
'tr_second' => true,
'php' =>
// 'if ( "[last_refresh]" == null or \front\factory\GlobelusFirms::get_firm_points( ' . $this -> user['id'] . ' ) < ' . $globelus_settings['pkt-odswiezenie-ogloszenia'] . ' ) '
// . ' $refresh_diff = \S::date_diff( date( \'Y-m-d H:i:s\', strtotime( "[date_add]" ) ), date( \'Y-m-d H:i:s\' ), 60 * 60 * 24 ); '
// . 'else '
// . '$refresh_diff = \S::date_diff( date( \'Y-m-d H:i:s\', strtotime( "[last_refresh]" ) ), date( \'Y-m-d H:i:s\' ), 60 * 60 * 24 ); '
// . 'if ( [refresh_count] < 10 and \'[active_to]\' > date( \'Y-m-d\' ) and \front\factory\GlobelusFirms::get_firm_points( ' . $this -> user['id'] . ' ) >= ' . $globelus_settings['pkt-odswiezenie-ogloszenia'] . ' ) { '
// . 'if ( $refresh_diff >= 5 ) { '
// . 'echo "<p><a href=\'/panel-pracodawcy/odswiez-ogloszenie/[id]/\' style=\'color: #000;\'>odśwież (" . ( 10 - [refresh_count] ) . ")</a></p>"; '
// . '} '
// . '}'
//sprawdzanie czy ogłoszenie nie jest wygasłe
'if ( [old] ) {'
. 'echo "<a href=\'#\' class=\'btn btn-sm btn-dark btn-disabled\'>ogłoszenie wygasłe</a>";'
. '}'
//sprawdzanie ilości punktów
. 'if ( [disabled_by_admin] ) { '
. '$class = \'btn-disabled\'; $title = \'Ogłoszenie zostało wyłączone przez administratora.\'; '
. '} else { '
. 'if ( ![visible] ) { '
. '$class = \'btn-disabled\'; $title = \'Nie można odświeżyć ogłoszenia, które nie jest opublikowane.\';'
. '} else { '
. 'if ( ' . $this -> firm_points . ' < ' . $globelus_settings['pkt-odswiezenie-ogloszenia'] . ' ) { '
. '$class = \'btn-disabled\'; $title = \'Nie posiadasz wystarczającej liczby punktów, aby odświeżyć ogłoszenie.\';'
. '} else {'
//sprawdzanie czy ogłoszenie nie jest wygasłe
. 'if ( \'[active_to]\' < date( \'Y-m-d\' ) or [old] ) { '
. '$class = \'btn-disabled\'; $title = \'Ogłoszenia wygasłego nie można odświeżyć.\';'
. '} else { '
//sprawdzanie kiedy ogłoszenie było ostatnio odświeżone
. 'if ( "[last_refresh]" == null ) '
. '$refresh_diff = \S::date_diff( date( \'Y-m-d H:i:s\', strtotime( "[date_add]" ) ), date( \'Y-m-d H:i:s\' ), 60 * 60 * 24 ); '
. 'else '
. '$refresh_diff = \S::date_diff( date( \'Y-m-d H:i:s\', strtotime( "[last_refresh]" ) ), date( \'Y-m-d H:i:s\' ), 60 * 60 * 24 ); '
. 'if ( $refresh_diff < 1 ) { '
. '$class = \'btn-disabled\'; $title = \'Ogłoszenie można odświeżać nie częściej niż co 24 godziny.\';'
. '} else {'
. '$class = \'\'; $title = \'\'; '
. '} '
. '} '
. '} '
. '} '
. '} '
. 'if ( $title ) '
. 'echo "<span class=\'container-tooltip\' data-tippy-content=\'" . $title . "\'><a href=\'#\' class=\'advert-refresh btn btn-primary btn-sm " . $class . "\' advert-id=\'[id]\'>odśwież</a></span>"; '
. 'else '
. 'echo "<a href=\'#\' class=\'advert-refresh btn btn-primary btn-sm " . $class . "\' advert-id=\'[id]\'>odśwież</a>"; '
. 'if ( "[last_refresh]" )'
. '$add_diff = \S::date_diff( date( "Y-m-d H:i:s", strtotime( "[last_refresh]" ) ), date( "Y-m-d H:i:s" ), 60 * 60 * 24 ); '
. 'else '
. '$add_diff = \S::date_diff( date( "Y-m-d H:i:s", strtotime( "[date_add]" ) ), date( "Y-m-d H:i:s" ), 60 * 60 * 24 ); '
//dodatkowa promocja - sprawdzenie czy ogłoszenie jest opublikowane
. 'if ( [disabled_by_admin] ) { '
. '$class4 = \'btn-disabled\'; $title4 = \'Ogłoszenie zostało wyłączone przez administratora.\'; '
. '} else { '
. 'if ( ![visible] ) { '
. '$class4 = \'btn-disabled\'; $title4 = \'Nie można włączyć dodatkowej promocji ogłoszenia, które nie jest opublikowane.\'; '
. '} else {'
//dodatkowa promocja - sprawdzenie czy ogłoszenie nie ma już włączonęj dodatkowej promocji
. 'if ( [additional_promotion] ) { '
. '$class4 = \'btn-disabled\'; $title4 = \'Ogłoszenie ma już włączoną dodatkową promocję.\'; '
. '} else {'
//dodatkowa promocja - sprawdzenie ilości dostępnych punktów
. 'if ( ' . $this -> firm_points . ' < ' . $globelus_settings['pkt-dodatkowa-promocja-ogloszenia'] . ' ) { '
. '$class4 = \'btn-disabled\'; $title4 = \'Nie posiadasz wystarczającej ilości punktów, aby włączyć dodatkową promocję ogłoszenia.\'; '
. '} '
. 'else {'
. '$class4 = \'\'; $title4 = \'\'; '
. '} '
. '} '
. '} '
. '} '
//przycisk dodatkowej promocji
. 'if ( $title4 ) '
. 'echo "<span class=\'container-tooltip\' data-tippy-content=\'" . $title4 . "\'>" '
. '. "<a href=\'#\' class=\'advert_highlight btn btn-primary btn-sm " . $class4 . "\' advert-id=\'[id]\'>dodatkowa promocja</a>" '
. '. "</span>"; '
. 'else '
. 'echo "<a href=\'#\' class=\'advert-additional-promotion btn btn-primary btn-sm\' advert-id=\'[id]\'>dodatkowa promocja</a>"; '
//wyróżnienie - sprawdzanie czy ogłoszenie jest opublikowane
. 'if ( [disabled_by_admin] ) { '
. '$class2 = \'btn-disabled\'; $title2 = \'Ogłoszenie zostało wyłączone przez administratora.\'; '
. '} else { '
. 'if ( ![visible] ) { '
. '$class2 = \'btn-disabled\'; $title2 = \'Nie można włączyć wyróżnienia ogłoszenia, które nie jest opublikowane.\'; '
. '} '
. 'else {'
//wyróznienie - sprawdzenie czy ogłoszenie nie jest już wyróżnione
. 'if ( [highlight] ) { '
. '$class2 = \'btn-disabled\'; $title2 = \'Ogłoszenie jest już wyróżnione.\'; '
. '} '
. 'else {'
//wyróżnienie - sprawdzenie ilości dostępnych punktów
. 'if ( ' . $this -> firm_points . ' < ' . $globelus_settings['pkt-wyroznienie-ogloszenia'] . ' ) { '
. '$class2 = \'btn-disabled\'; $title2 = \'Nie posiadasz wystarczającej ilości punktów, aby włączyć wyróżnienie ogłoszenie.\'; '
. '} '
. 'else {'
. '$class2 = \'\'; $title2 = \'\'; '
. '} '
. '} '
. '} '
. '} '
//przycisk wyróżnienie
. 'if ( $title2 ) '
. 'echo "<span class=\'container-tooltip\' data-tippy-content=\'" . $title2 . "\'>" '
. '. "<a href=\'#\' class=\'advert_highlight btn btn-primary btn-sm " . $class2 . "\' advert-id=\'[id]\'>włącz wyróżnienie</a>" '
. '. "</span>"; '
. 'else '
. 'echo "<a href=\'#\' class=\'advert_highlight btn btn-primary btn-sm\' advert-id=\'[id]\'>włącz wyróżnienie</a>"; '
//polecenie - sprawdzenie czy ogłoszenie jest opulikowane
. 'if ( [disabled_by_admin] ) { '
. '$class3 = \'btn-disabled\'; $title3 = \'Ogłoszenie zostało wyłączone przez administratora.\'; '
. '} else { '
. 'if ( ![visible] ) { '
. '$class3 = \'btn-disabled\'; $title3 = \'Nie można włączyć polecenia ogłoszenia, które nie jest opublikowane.\'; '
. '} '
. 'else {'
//polecenie - sprawdzenie czy ogłoszenie nie jest już polecane
. 'if ( [main_page] ) { '
. '$class3 = \'btn-disabled\'; $title3 = \'Ogłoszenie jest już polecane na stronie głónej.\'; '
. '} '
. 'else {'
//wyróżnienie - sprawdzenie ilości dostępnych punktów
. 'if ( ' . $this -> firm_points . ' < ' . $globelus_settings['pkt-wyroznienie-ogloszenia'] . ' ) { '
. '$class3 = \'btn-disabled\'; $title3 = \'Nie posiadasz wystarczającej ilości punktów, aby wyróżnić ogłoszenie.\'; '
. '} '
. 'else {'
. '$class3 = \'\'; $title3 = \'\'; '
. '} '
. '} '
. '} '
. '} '
//przycisk polecenie
. 'if ( $title3 ) '
. 'echo "<span class=\'container-tooltip\' data-tippy-content=\'" . $title3 . "\'>" '
. '. "<a href=\'#\' class=\'advert_main_page btn btn-primary btn-sm " . $class3 . "\' advert-id=\'[id]\'>włącz polecenie</a>" '
. '. "</span>"; '
. 'else '
. 'echo "<a href=\'#\' class=\'advert_main_page btn btn-primary btn-sm\' advert-id=\'[id]\'>włącz polecenie</a>"; '
. 'if ( ![disabled_by_admin] ) { '
. 'if ( \'[active_to]\' >= date( \'Y-m-d\' ) ) { '
. 'if ( [visible] ) '
. 'echo "<a href=\'#\' class=\'btn btn-sm btn-primary advert-disable\' advert-id=\'[id]\'>wyłącz ogłoszenie</a>"; '
. 'else { '
//sprawdzenie ile ktoś ma ogłoszeń
. 'if ( ' . $this -> adverts_count . ' >= ' . $globelus_settings['limit-ogloszen'] . ' ) { '
. 'if ( ' . $this -> firm_points . ' < ' . $globelus_settings['pkt-dodanie-ogloszenia-powyzej-limitu'] . ' ) { '
. 'echo "<span class=\'container-tooltip\' data-tippy-content=\'Niestety posiadasz zbyt mało punktów aby opublikować nowe ogłoszenie.\'>" '
. '. "<a href=\'#\' class=\'advert-public btn btn-primary btn-sm btn-disabled\' advert-id=\'[id]\'>publikuj</a>" '
. '. "</span>"; '
. '} else { '
. 'echo "<a href=\'#\' class=\'btn btn-sm btn-primary advert-public\' advert-id=\'[id]\'>publikuj</a>"; '
. '} '
. '} '
. 'else {'
. 'echo "<a href=\'#\' class=\'btn btn-sm btn-primary advert-public\' advert-id=\'[id]\'>publikuj</a>"; '
. '} '
. '} '
. '} '
. 'echo \'<a href="/panel-pracodawcy/edytuj-ogloszenie/[id]" class="btn btn-sm btn-primary advert-edit" title="edytuj" style="font-size: 12px;">edytuj</a>\';'
. '} '
. 'echo \'<a href="#" class="btn btn-primary advert-delete" advert-id="[id]" title="usuń">usuń</a>\'; '
]
];
$grid -> buttons = [
[
'class' => 'btn-danger multi-disable',
'label' => 'Wyłącz',
'url' => '/globelusFirms/multi_disable/'
], [
'class' => 'btn-danger multi-delete',
'label' => 'Usuń',
'url' => '/globelusFirms/multi_delete/'
]
];
echo $grid -> draw();
endif;
?>
</div>
</div>
</div>
</div>
</div>
</div>
<script class="footer" src="/libraries/framework/vendor/plugins/datatables/media/js/jquery.dataTables.js"></script>
<script class="footer" src="/libraries/framework/vendor/plugins/datatables/media/js/dataTables.bootstrap.js"></script>
<script class="footer" type="text/javascript">
$( function()
{
tippy('[data-tippy-content]', {
theme: 'material'
});
$( 'body' ).on( click_event, '.advert-additional-promotion', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
$.alert(
{
title: 'Dodatkowa promocja ogłoszenia',
icon: 'fa fa-exclamation',
content: 'Dodatkowa promocja ogłoszenia kosztuje <b><?= $globelus_settings['pkt-dodatkowa-promocja-ogloszenia'];?> punktów<\/b>, zostaną one pobrane z Twojego konta.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href='/globelusFirms/advert_additional_promotion/advert-id=' + advert_id;
}
}
}
});
});
$( 'body' ).on( click_event, '.advert_highlight', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
$.alert(
{
title: 'Wyróżnienie ogłoszenia',
icon: 'fa fa-exclamation',
content: 'Wyróżnienie ogłoszenia kosztuje <b><?= $globelus_settings['pkt-wyroznienie-ogloszenia'];?> punktów<\/b>, zostaną one pobrane z Twojego konta.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href='/globelusFirms/advert_highlight_enable/advert-id=' + advert_id;
}
}
}
});
});
$( 'body' ).on( click_event, '.advert-refresh', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
$.alert(
{
title: 'Odświeżenie ogłoszenia',
icon: 'fa fa-exclamation',
content: 'Odświeżenie ogłoszenia kosztuje <b><?= $globelus_settings['pkt-odswiezenie-ogloszenia'];?> punkt<\/b>, zostanie on pobrany z Twojego konta.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href = '/panel-pracodawcy/odswiez-ogloszenie/' + advert_id + '/';
}
}
}
});
});
$( 'body' ).on( click_event, '.multi-delete', function(e)
{
var ids = getCheckedIds( 'ogloszenia-<?= $this -> user['id'];?>' );
var href = $( this ).attr( 'href' );
$.alert(
{
title: 'Usunięcie ogłoszeń',
icon: 'fa fa-exclamation',
content: 'Na pewno chcesz usunąć wybrane ogłoszenia?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-red',
keys: ['enter'],
action: function()
{
$.ajax({
type: 'POST',
cache: false,
url: href,
data: {
ids: ids
},
beforeSend: function() {},
success: function( data ) {
document.location.reload();
}
});
}
}
}
});
return false;
});
$( 'body' ).on( click_event, '.multi-disable', function(e)
{
var ids = getCheckedIds( 'ogloszenia-<?= $this -> user['id'];?>' );
var href = $( this ).attr( 'href' );
$.alert(
{
title: 'Wyłączenie ogłoszeń',
icon: 'fa fa-exclamation',
content: 'Na pewno chcesz wyłączyć wybrane ogłoszenia?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-red',
keys: ['enter'],
action: function()
{
$.ajax({
type: 'POST',
cache: false,
url: href,
data: {
ids: ids
},
beforeSend: function() {},
success: function( data ) {
document.location.reload();
}
});
}
}
}
});
return false;
});
$( 'body' ).on( click_event, '.advert-disable', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
$.alert(
{
title: 'Wyłączenie ogłoszenia',
icon: 'fa fa-exclamation',
content: '<?= $lang['potwierdz-wylaczenie-ogloszenia'];?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-red',
keys: ['enter'],
action: function()
{
document.location.href='/globelusFirms/advert_disable/advert-id=' + advert_id;
}
}
}
});
});
$( 'body' ).on( click_event, '.advert-public', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
<? if ( $this -> adverts_count >= $globelus_settings['limit-ogloszen'] and $this -> firm_points >= $globelus_settings['pkt-dodanie-ogloszenia-powyzej-limitu'] ):?>
$.alert(
{
title: 'Publikowanie ogłoszenia',
icon: 'fa fa-exclamation',
content: 'Posiadasz już opulikowanych <b><?= $this -> adverts_count;?> ogłoszeń<\/b>.<br>Każde nowe opublikowane ogłoszenie to koszt <b><?= $globelus_settings['pkt-dodanie-ogloszenia-powyzej-limitu'];?> punktów.<\/b>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href='/globelusFirms/advert_enable/advert-id=' + advert_id;
}
}
}
});
<? endif;?>
<? if ( $this -> adverts_count < $globelus_settings['limit-ogloszen'] ):?>
document.location.href='/globelusFirms/advert_enable/advert-id=' + advert_id;
<? endif;?>
});
$( 'body' ).on( click_event, '.advert_main_page', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
$.alert(
{
title: 'Polecenie ogłoszenia',
icon: 'fa fa-exclamation',
content: 'Włączenie polecenia ogłoszenia kosztuje <b><?= $globelus_settings['pkt-polecanie-ogloszenia'];?> punktów<\/b>, zostaną one pobrane z Twojego konta.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href='/globelusFirms/advert_main_page_enable/advert-id=' + advert_id;
}
}
}
});
});
$( 'body' ).on( click_event, '.advert-delete', function(e)
{
e.preventDefault();
var advert_id = $( this ).attr( 'advert-id' );
$.alert(
{
title: 'Usunięcie ogłoszenia',
icon: 'fa fa-exclamation',
content: 'Na pewno chcesz usunąć wybrane ogłoszenie?<br/><strong>Tej operacji nie można cofnąć.</strong>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-danger',
keys: ['enter'],
action: function()
{
document.location.href='/globelusFirms/advert_delete/advert-id=' + advert_id;
}
}
}
});
});
});
</script>

View File

@@ -0,0 +1,61 @@
<script type="text/javascript" class="footer">
$.alert(
{
title: 'Oferty pracy',
icon: 'fa fa-exclamation',
content: 'Dodawanie ogłoszeń dostępne jest tylko dla zalogowanych pracodawców.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {
document.location.href = '<?= $_SERVER['HTTP_REFERER'];?>';
}
},
cancel:
{
text: 'Zaloguj się',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {
document.location.href = '/logowanie';
}
}
}
});
</script>
<div class="box" id="new-offers">
<div class="container">
<div class="title">
[PHP]echo \S::lang( 'polecane-oferty-pracy' );[/PHP]
</div>
<div class="row">
<div class="col-12 col-md-6">
[PHP]echo \front\controls\GlobelusAdverts::main_page_adverts(4);[/PHP]
</div>
<div class="col-12 col-md-6">
[PHP]include 'templates_user/globelus/main-adverts.php';[/PHP]
</div>
</div>
</div>
</div>
<div class="box" id="jakiej-pracy-szukasz">
<div class="container">
<div class="row">
<div class="col-12">
<a href="/jakiej-pracy-szukasz">
<img src="/layout/images/jakiej-pracy-szukasz.jpg" alt="" style="width: 100%;">
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,61 @@
<script type="text/javascript" class="footer">
$.alert(
{
title: 'Oferty pracy',
icon: 'fa fa-exclamation',
content: 'Oferty pracy mogą dodawać wyłącznie zarejestrowani i zalogowani pracodawcy.',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {
document.location.href = '<?= $_SERVER['HTTP_REFERER'];?>';
}
},
cancel:
{
text: 'Zaloguj się',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {
document.location.href = '/logowanie';
}
}
}
});
</script>
<div class="box" id="new-offers">
<div class="container">
<div class="title">
[PHP]echo \S::lang( 'polecane-oferty-pracy' );[/PHP]
</div>
<div class="row">
<div class="col-12 col-md-6">
[PHP]echo \front\controls\GlobelusAdverts::main_page_adverts(4);[/PHP]
</div>
<div class="col-12 col-md-6">
[PHP]include 'templates_user/globelus/main-adverts.php';[/PHP]
</div>
</div>
</div>
</div>
<div class="box" id="jakiej-pracy-szukasz">
<div class="container">
<div class="row">
<div class="col-12">
<a href="/jakiej-pracy-szukasz">
<img src="/layout/images/jakiej-pracy-szukasz.jpg" alt="" style="width: 100%;">
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,182 @@
<? global $lang;?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'cv'
] );?>
<div class="mini-box fluid">
<div class="title">
Lista CV
</div>
</div>
<? if ( is_array( $this -> answers ) and count( $this -> answers ) ):?>
<? foreach ( $this -> answers as $answer ):?>
<div class="answer <? if ( !$answer['displayed'] ):?>nondisplayed<? else:?>displayed<? endif?>">
<div class="row">
<div class="col-12">
<div class="img">
<? if ( $answer['user_id'] and file_exists( \front\factory\GlobelusCandidates::avatar_url( $answer['user_id'] ) ) ):?>
<img src="/avatar/<?= $answer['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
<div class="content">
<div class="title">
<p>Ogłoszenie: <b><?= $answer['title'];?></b></p>
<span class="name"><?= $answer['surname'] . ' ' . $answer['name'];?></span>
<a href="#" class="delete text-danger" answer-id="<?= $answer['id'];?>"><?= \S::lang( 'usun' );?></a>
<span class="date-add"><?= date( 'Y-m-d H:i', strtotime( $answer['date_add'] ) );?></span>
</div>
<div class="info">
<?= $lang['tel.'];?> <?= $answer['phone'];?> |
<?= $lang['email'];?> <a href="mailto:<?= $answer['email'];?>"><?= $answer['email'];?></a> |
<? if ( ( $answer['cv'] and file_exists( $answer['cv'] ) ) || ( !$answer['cv'] and $answer['user_id'] and file_exists( \front\factory\GlobelusCandidates::cv_url( $answer['user_id'] ) ) ) ):?>
<?
if ( !$answer['cv'] and $answer['user_id'] and file_exists( \front\factory\GlobelusCandidates::cv_url( $answer['user_id'] ) ) )
$cv_url = '/cv/' . $answer['user_id'] . '/' . \S::get_token() . '/';
else if ( $answer['cv'] and file_exists( $answer['cv'] ) )
$cv_url = '/cv-tmp/' . $answer['id'] . '/' . \S::get_token() . '/';
?>
<a href="<?= $cv_url;?>" class="cv" answer-id="<?= $answer['id'];?>">
<i class="fa fa-file-text"></i> <?= $lang['pobierz-cv'];?>
</a>
<? endif;?>
<? if ( $answer['user_id'] ):?>
| <a href="/kandydat/<?= $answer['user_id'];?>/<?= ( !$answer['surname'] and !$answer['name'] ) ? 'u' : \S::seo( $answer['surname'] . ' ' . $answer['name'] );?>/" target="_blank" answer-id="<?= $answer['id'];?>" class="visit-user"><?= $lang['zobacz-profil-kandydata-w-bazie-kandydatow'];?></a>
<? endif;?>
</div>
<div class="text">
<?= nl2br( $answer['text'] );?>
</div>
</div>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<div class="alert alert-danger mt20"><?= $lang['panel-pracodawcy-brak-odpowiedzi'];?></div>
<? endif;?>
<div class="row">
<div class="col-12 mt20">
<a href="/panel-pracodawcy/ogloszenia" class="btn btn-danger mr15"><?= ucfirst( $lang['wstecz'] );?></a>
</div>
</div>
</div>
<script class="footer" type="text/javascript">
$( function()
{
$( 'body' ).on( 'click', '.cv', function(e)
{
e.preventDefault();
var answer = $( this ).parents( '.answer' );
var href = $( this ).attr( 'href' );
var answer_id = $( this ).attr( 'answer-id' );
$.ajax(
{
type: 'POST',
cache: false,
url: '/GlobelusFirms/set_answer_as_displayed/',
data:
{
answer_id: answer_id
},
beforeSend: function() {},
success: function( data )
{
var win = window.open( href, '_blank' );
win.focus();
answer.removeClass( 'nondisplayed' ).addClass( 'displayed' );
}
});
});
$( 'body' ).on( 'click', '.visit-user', function(e)
{
e.preventDefault();
<? if ( !is_array( $this -> g_user['categories'] ) or !count( $this -> g_user['categories'] ) ):?>
$.alert({
title: 'Oferty pracy',
icon: 'fa fa-exclamation',
content: '<?= \S::lang( 'baza-cv-komunikat' );?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn',
keys: ['enter'],
action: function() {
}
}
}
});
<? else:?>
var answer = $( this ).parents( '.answer' );
var href = $( this ).attr( 'href' );
var answer_id = $( this ).attr( 'answer-id' );
$.ajax(
{
type: 'POST',
cache: false,
url: '/GlobelusFirms/set_answer_as_displayed/',
data:
{
answer_id: answer_id
},
beforeSend: function() {},
success: function( data )
{
var win = window.open( href, '_blank' );
win.focus();
answer.removeClass( 'nondisplayed' ).addClass( 'displayed' );
}
});
<? endif;?>
});
$( 'body' ).on( 'click', '#user-panel .answer .delete', function()
{
var answer_id = $( this ).attr( 'answer-id' );
$.alert(
{
title: '<?= ucfirst( \S::lang( 'potwierdz' ) );?>',
icon: 'fa fa-exclamation',
content: '<?= \S::lang( 'potwierdz-usuniecie-odpowiedzi' );?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= \S::lang( 'anuluj' );?>',
action: function() {}
},
confirm:
{
text: '<?= \S::lang( 'zatwierdz' );?>',
btnClass: 'btn-danger',
keys: ['enter'],
action: function()
{
document.location.href="/GlobelusFirms/answer_delete/answer_id=" + answer_id;
}
}
}
});
return false;
});
});
</script>

View File

@@ -0,0 +1,98 @@
<? global $lang;?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'zakup-punktow'
] );?>
<div class="mini-box fluid">
<div class="title">
Zakup punktów
<span class="pull-right text-danger small">
Posiadasz <?= (int)\front\factory\GlobelusFirms::get_firm_points( $this -> user['id'] );?> pkt. <a href="/panel-pracodawcy/zakup-punktow">Doładuj konto.</a>
</span>
</div>
<? if ( !$this -> user['profile_completed'] ):?>
<div class="alert alert-danger">Aby doładować konto musisz uzupełnić Swój profil. <a href="/panel-pracodawcy/profil">Przejdź do profilu</a>.</div>
<? else:?>
<div class="subtitle">
Wybierz jeden z dostępnych pakietów i zwiększ ilość posiadanych punktów.
</div>
<div class="row">
<div class="col-lg-5">
<div class="row">
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=2"><strong><?= $this -> gsettings['pkt-pakiet-2-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-2-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=3"><strong><?= $this -> gsettings['pkt-pakiet-3-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-3-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=4"><strong><?= $this -> gsettings['pkt-pakiet-4-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-4-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=5"><strong><?= $this -> gsettings['pkt-pakiet-5-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-5-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=6"><strong><?= $this -> gsettings['pkt-pakiet-6-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-6-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=7"><strong><?= $this -> gsettings['pkt-pakiet-7-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-7-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
<div class="col-12 points-prices">
<div class="content">
<div class="row">
<div class="col-12">
<a href="/panel-pracodawcy/zakup-punktow/pakiet=8"><strong><?= $this -> gsettings['pkt-pakiet-8-ilosc'];?></strong> punktów za <strong><?= number_format( $this -> gsettings['pkt-pakiet-8-cena'], 2, ',', ' ' );?></strong> zł</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-7 lg-hm">
<?=\front\view\Scontainers::scontainer( 6 );?>
</div>
</div>
<? endif;?>
<div class="row">
<div class="col-12">
<?=\front\view\Scontainers::scontainer( 5 );?>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,50 @@
<div class="new-order">
<div class="title">
Płatność za zamówienie
</div>
<div class="text">
Wybrałeś pakiet <b><?= $this -> gsettings['pkt-pakiet-' . $this -> package . '-ilosc'];?> punktów</b>.<br/>
Za chwilę zostaniesz przekierowany do strony <b>Tpay.com</b> gdzie będziesz mógł dokonać płatności.
</div>
</div>
<?
$url = 'https://secure.tpay.com';
if ( $_SERVER['SERVER_NAME'] == 'www.globelus.pro24.com.pl' )
$id = '1010';
else
$id = '50184';
if ( $_SERVER['SERVER_NAME'] == 'www.globelus.pro24.com.pl' )
$code = 'demo';
else
$code = '42mYboa8982hg6W9';
$url .= '?id=' . $id;
$url .= '&kwota=' . str_replace( ',', '.', $this -> gsettings['pkt-pakiet-' . $this -> package . '-cena'] );
$url .= '&opis=' . urlencode( 'Zakup pakietu ' . $this -> gsettings['pkt-pakiet-' . $this -> package . '-ilosc'] . ' punktów.' );
if ( $_SERVER['SERVER_NAME'] == 'www.globelus.pro24.com.pl' )
$url .= '&wyn_email=' . urlencode( 'biuro@project-pro.pl' );
else
$url .= '&wyn_email=' . urlencode( 'kontakt@globelus.pl' );
if ( $_SERVER['SERVER_NAME'] == 'www.globelus.pro24.com.pl' )
$url .= '&email=' . urlencode( 'pyziak84@gmail.com' );
else
$url .= '&email=' . urlencode( $this -> user['email'] );
$url .= '&nazwisko=' . urlencode( $this -> user['firm_name'] );
$url .= '&crc=' . $this -> hash;
$url .= '&result_url=' . urlencode( 'https://' . $_SERVER['SERVER_NAME'] . '/panel-pracodawcy/zakup-punktow/status' );
$url .= '&return_url=' . urlencode( 'https://' . $_SERVER['SERVER_NAME'] . '/panel-pracodawcy/zakup-punktow/platnosc-prawidlowa' );
$url .= '&return_error_url=' . urlencode( 'https://' . $_SERVER['SERVER_NAME'] . '/panel-pracodawcy/zakup-punktow/platnosc-nieprawidlowa' );
$url .= '&md5sum=' . md5( $id . '&' . str_replace( ',', '.', $this -> gsettings['pkt-pakiet-' . $this -> package . '-cena'] ) . '&' . $this -> hash . '&' . $code );
?>
<script class="footer" type="text/javascript">
$( function() {
console.log( '<?= $url;?>' );
setTimeout( function(){
document.location.href = '<?= $url;?>';
}, 1000 );
});
</script>

View File

@@ -0,0 +1,194 @@
<? global $lang, $g_user;?>
<div class="firm-details">
<div class="top">
<div class="row">
<div class="col-12">
<div class="logo-container">
<div class="name"><?= htmlspecialchars( $this -> firm['firm_name_profile'] );?></div>
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $this -> firm['id'] ) ) ):?>
<img src="/logo/<?= $this -> firm['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="col-12">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['firma'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['firm_name_profile'] );?>
</div>
</div>
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['numer-identyfikacji-podatkowej'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['nip_vat'] );?>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= $lang['pracodawca-profil-krok-2-opis'];?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['telefon'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( !$this -> g_user ):?>
<a href="/logowanie">Zaloguj się aby zobaczyć numer telefonu</a>
<? else:?>
<?= htmlspecialchars( $this -> firm['phone'] );?>
<? endif;?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['adres-email'] );?>:</label>
<div class="col-12 col-sm-8">
<? if ( !$this -> g_user ):?>
<a href="/logowanie">Zaloguj się aby zobaczyć adres email</a>
<? else:?>
<?= htmlspecialchars( $this -> firm['email'] );?>
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['strona-www'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['www'] );?>
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= $lang['pracodawca-profil-krok-3-opis'];?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['kraj'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['country'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['region'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['region'] );?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['miasto'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['city'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['kod-pocztowy'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['postal_code'] );?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['ulica'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['street'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['nr-budynku-lokalu'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> firm['apartment_number'] );?>
</div>
</div>
</div>
</div>
</div>
<div class="content">
<div class="row">
<div class="col-12">
<div class="step-title">
<?= ucfirst( $lang['krotki-opis-firmy'] );?>
</div>
<?
$text = $this -> firm['other_information'];
$text = preg_replace('/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i', ' <a href="/logowanie">Zaloguj się aby zobaczyć adres email</a> ', $text );
$text = preg_replace('/(\+[0-9]{11}|\+[0-9]{2} [0-9]{9}|\+[0-9]{2} [0-9]{3} [0-9]{3} [0-9]{3}|\+[0-9]{2} [0-9]{3}-[0-9]{3}-[0-9]{3})/i', ' <a href="/logowanie">Zaloguj się aby zobaczyć numer telefonu</a> ', $text );
echo $text;
?>
</div>
</div>
</div>
<div class="adverts-title">Wszystkie oferty tego pracodawcy</div>
<? if ( is_array( $this -> adverts ) and count( $this -> adverts ) ):?>
<? foreach ( $this -> adverts as $advert ):?>
<div class="advert-entry <? if ( $advert['highlight'] ):?>highlight<? endif;?>">
<? if ( $advert['highlight'] ):?><div id="highlight-text">Oferta wyróżniona</div><? endif;?>
<div class="row">
<div class="col-12 col-sm-3 col-md-2">
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $advert['user_id'] ) ) ):?>
<img src="/logo/<?= $advert['user_id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-9 col-md-10">
<div class="row">
<div class="col-12 col-md-9">
<h2>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" title="Ogłoszenie: <?= addslashes( $advert['title'] );?>"><?= $advert['title'];?></a>
</h2>
</div>
<div class="col-12 col-md-3 date-add">
<?= date( 'Y-m-d', strtotime( $advert['date_add'] ) );?>
<div class="flag">
<? if ( file_exists( 'upload/filemanager/flags/' . \S::seo( $advert['country'] ) . '.jpg' ) ):?>
<img src="/upload/filemanager/flags/<?= \S::seo( $advert['country'] );?>.jpg">
<? endif;?>
</div>
</div>
</div>
<div class="info">
<a href="/oferty-pracy/<?= \S::seo( $advert['country'], true );?>" class="place" title="praca <?= $adver['country'];?>"><?= $advert['country'];?></a> - <?= $advert['city'];?></span> | <a href="/pracodawca/<?= $advert['user_id'];?>/<?= \S::seo( $advert['firm_name_profile'] );?>" class="firm"><?= $advert['firm_name_profile'];?></a> | <a href="/oferty-pracy/<?= \S::seo( $advert['category'], true );?>" class="category" title="praca <?= $advert['category'];?>"><?= $advert['category'];?></a>
</div>
<div class="short-text">
<?= mb_substr( strip_tags( $advert['text'] ), 0, 150, 'UTF-8' );?>...
</div>
<a href="/oferta/<?= $advert['id'];?>/<?= \S::seo( $advert['title'], true );?>" class="btn btn-success"><?= $lang['szczegoly-oferty'];?></a>
</div>
</div>
</div>
<? endforeach;?>
<? endif;?>
<a href="javascript:history.back()" class="btn btn-dark btn-back"><?= $lang['wstecz'];?></a>
</div>

View File

@@ -0,0 +1,36 @@
<div class="firms-alphabet-filtr">
<?
echo "<a href='/pracodawcy' id='all'>wszystkie</a>";
foreach ( range('a', 'z' ) as $i ):
echo "<a href='/pracodawcy/$i'"; if ( $i == $this -> letter ) echo "class='active'"; echo ">$i</a>";
endforeach;
?>
</div>
<div class="firms-list">
<div class="row">
<? if ( is_array( $this -> firms_list ) and count( $this -> firms_list ) ): foreach ( $this -> firms_list as $firm ):?>
<div class="col-12 col-sm-4">
<a class="firm-entry" href="/pracodawca/<?= $firm['id'];?>/<?= \S::seo( $firm['firm_name_profile'], true );?>">
<h2><?= $firm['firm_name'];?></h2>
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $firm['id'] ) ) ):?>
<img src="/logo/<?= $firm['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</a>
</div>
<? endforeach; endif;?>
</div>
</div>
<?
$this -> letter ? $link = 'pracodawcy/' . $this -> letter : $link = 'pracodawcy';
if ( ( $this -> firms_count / \front\factory\GlobelusFirms::firm_list_limit ) > 1 ):
echo \front\view\Globelus::pager(
$link,
ceil( $this -> firms_count / \front\factory\GlobelusFirms::firm_list_limit ),
$this -> current_page
);
endif;
?>

View File

@@ -0,0 +1,56 @@
<? global $lang;?>
<div>
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'obserwowani-kandydaci'
] );?>
<div class="mini-box fluid mb15">
<div class="title">
<?= ucfirst( $lang['obserwowani-kandydaci'] );?>
<span class="pull-right text-danger small">
Posiadasz <?= (int)\front\factory\GlobelusFirms::get_firm_points( $this -> user['id'] );?> pkt. <a href="/panel-pracodawcy/zakup-punktow">Doładuj konto.</a>
</span>
</div>
<div class="subtitle mb0">
<?= ucfirst( $lang['obserwowani-kandydaci-podtytul'] );?>
</div>
</div>
<? if ( is_array( $this -> candidates ) and count( $this -> candidates ) ):?>
<? foreach ( $this -> candidates as $candidate ):?>
<div class="cv-entry">
<div class="row">
<div class="col-12 col-sm-2">
<div class="img">
<? if ( file_exists( \front\factory\GlobelusCandidates::avatar_url( $candidate['id'] ) ) ):?>
<img src="/avatar/<?= $candidate['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-10">
<div class="row">
<div class="col-12 col-sm-9">
<h2>
<a href="/kandydat/<?= $candidate['id'];?>/<?= \S::seo( $candidate['surname'] . ' ' . $candidate['name'], true );?>/" target="_blank" title="Kandydat: <?= addslashes( $candidate['surname'] . ' ' . $candidate['name'] );?>"><?= $candidate['surname'] . ' ' . $candidate['name'];?></a>
</h2>
</div>
<div class="col-12 col-sm-3 sex-and-birth">
<?= $lang['plec'];?>: <?= !$candidate['sex'] ? $lang['kobieta'] : $lang['mezczyzna'];?><br />
<?= $lang['wiek'];?>: <?= $age = \S::date_diff( $candidate['date_of_birth'], date( 'Y-m-d H:i:s' ), 60 * 60 * 24 * 365.25 );?> <?= \front\factory\Globelus::age_word_translations( $age );?>
</div>
</div>
<div class="info">
<?= $lang['tel.'];?> <?= $candidate['phone'];?> | <?= $lang['email'];?>: <a href="mailto:<?= $candidate['email'];?>"><?= $candidate['email'];?></a>
</div>
<div class="short-text">
<?= $advert['short_text'];?>
</div>
<a href="/kandydat/<?= $candidate['id'];?>/<?= \S::seo( $candidate['surname'] . ' ' . $candidate['name'], true );?>/" target="_blank" class="btn btn-success"><?= $lang['profil-kandydata'];?></a>
</div>
</div>
</div>
<? endforeach;?>
<? else:?>
<div class="alert alert-danger mt20"><?= $lang['panel-pracodawcy-brak-obserwowanych-kandydatow'];?></div>
<? endif;?>
</div>

View File

@@ -0,0 +1,9 @@
<div class="new-order">
<div class="title red">
Zamówienie nieopłacone
</div>
<div class="text">
<p>Twoje zamówienie niestety nie zostało opłacone. Spróbuj ponownie lub skontaktuj się z nami.</p>
<a href="/panel-pracodawcy/profil" class="btn btn-primary">Wróć do panelu pracodawcy</a>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="new-order">
<div class="title">
Zamówienie zostało opłacone
</div>
<div class="text">
<p>Twoje zamówienie zostało opłacone. Punkty niedługo pojawią się na Twoim koncie.</p>
<a href="/panel-pracodawcy/profil" class="btn btn-primary">Wróć do panelu pracodawcy</a>
</div>
</div>

View File

@@ -0,0 +1,573 @@
<? global $lang; ?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'moj-profil'
] );?>
</div>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst($lang['edycja-profilu']); ?>
</div>
<div class="row">
<div class="col-12">
<div class="content profil">
<form method="POST" action="/globelusFirms/data_save/" enctype="multipart/form-data">
<div class="step-title">
<?= $lang['pracodawca-profil-krok-1-opis']; ?>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="firm_name" class="col-12 col-sm-4"><?= ucfirst($lang['nazwa-firmy']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="firm_name" name="firm_name" required class="form-control" value="<?= htmlspecialchars($this->g_user['firm_name']); ?>">
</div>
</div>
</div>
<div class="col-12">
<div class="form-group row">
<label form="firm_name_profile" class="col-12 col-sm-4"><?= ucfirst($lang['nazwa-firmy-publikowana-na-portalu']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="firm_name_profile" name="firm_name_profile" required class="form-control" value="<?= htmlspecialchars($this->g_user['firm_name_profile']); ?>">
</div>
</div>
</div>
<div class="col-12">
<div class="form-group row">
<label form="nip" class="col-12 col-sm-4"><?= ucfirst($lang['numer-identyfikacji-podatkowej']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="nip_vat" name="nip_vat" class="form-control" required value="<?= htmlspecialchars($this->g_user['nip_vat']); ?>">
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= $lang['pracodawca-profil-krok-2-opis']; ?>
</div>
<div class="row">
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="phone" class="col-12 col-sm-4"><?= ucfirst($lang['telefon']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="phone" class="form-control" required value="<?= htmlspecialchars($this->g_user['phone']); ?>">
</div>
</div>
</div>
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst($lang['adres-email']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="email" class="form-control" readonly="readonly" value="<?= htmlspecialchars($this->g_user['email']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="www" class="col-12 col-sm-4"><?= ucfirst($lang['strona-www']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="www" class="form-control" value="<?= htmlspecialchars($this->g_user['www']); ?>">
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= $lang['pracodawca-profil-krok-3-opis']; ?>
</div>
<div class="row">
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="country_id" class="col-12 col-sm-4"><?= ucfirst($lang['kraj']); ?></label>
<div class="col-12 col-sm-8">
<select name="country_id" class="form-control" required placeholder="<?= $lang['kraj']; ?>">
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<?
$countries = \front\factory\Globelus::countries();
if (is_array($countries)) : foreach ($countries as $country) : ?>
<option value="<?= $country['id']; ?>" <? if ($this->g_user['country_id'] == $country['id']) : ?>selected="selected" <? endif; ?>><?= $country['name']; ?></option>
<? endforeach;
endif;
?>
</select>
</div>
</div>
</div>
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="region" class="col-12 col-sm-4"><?= ucfirst($lang['region']); ?>/<?= ucfirst($lang['wojewodztwo']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="region" required class="form-control" value="<?= htmlspecialchars($this->g_user['region']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="city" class="col-12 col-sm-4"><?= ucfirst($lang['miasto']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="city" required class="form-control" value="<?= htmlspecialchars($this->g_user['city']); ?>">
</div>
</div>
</div>
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="postal_code" class="col-12 col-sm-4"><?= ucfirst($lang['kod-pocztowy']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="postal_code" required class="form-control" value="<?= htmlspecialchars($this->g_user['postal_code']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="street" class="col-12 col-sm-4"><?= ucfirst($lang['ulica']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="street" required class="form-control" value="<?= htmlspecialchars($this->g_user['street']); ?>">
</div>
</div>
</div>
<div class="col-12 col-sm-6">
<div class="form-group row">
<label form="apartment_number" required class="col-12 col-sm-4"><?= ucfirst($lang['nr-budynku-lokalu']); ?></label>
<div class="col-12 col-sm-8">
<input type="text" name="apartment_number" class="form-control" value="<?= htmlspecialchars($this->g_user['apartment_number']); ?>">
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= $lang['pracodawca-profil-krok-4-opis']; ?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="logo" class="col-12 col-sm-4"><?= ucfirst($lang['logo']); ?> (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="logo" name="logo">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="img_logo">
<? if (file_exists(\front\factory\GlobelusFirms::logo_url($this->g_user['id']))) :?>
<img src="/logo/<?= $this->g_user['id']; ?>/<?= \S::get_token(); ?>" style="max-width: 200px;">
<a class="btn btn-danger img_logo_delete" href="#">Usuń zdjęcie</a>
<? endif; ?>
</div>
</div>
</div>
<hr />
<div class="step-title">
Zdjęcie nad ogłoszeniem<br>
<p><span><small>Ważna informacja: ta grafika będzie widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu i zmienić ją będzie można tylko w Profilu Pracodawcy.</small></span></p>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="img-header" class="col-12 col-sm-4">Zdjęcie (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="img-header" name="img-header">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="img_header">
<? if (file_exists(\front\factory\GlobelusFirms::img_header_url($this->g_user['id']))) :?>
<img src="/img_header/<?= $this->g_user['id']; ?>/<?= \S::get_token(); ?>" style="max-width: 200px;">
<a class="btn btn-danger img_header_delete" href="#">Usuń zdjęcie</a>
<? endif; ?>
</div>
</div>
</div>
<hr />
<hr />
<div class="step-title">
Zdjęcie pod ogłoszeniem
<p><span><small>Ważna informacja: ta grafika będzie widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu i zmienić ją będzie można tylko w Profilu Pracodawcy.</small></span></p>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="img-bottom" class="col-12 col-sm-4">Zdjęcie (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="img-bottom" name="img-bottom">
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="img_bottom">
<? if (file_exists(\front\factory\GlobelusFirms::img_bottom_url($this->g_user['id']))) :?>
<img src="/img_bottom/<?= $this->g_user['id']; ?>/<?= \S::get_token(); ?>" style="max-width: 200px;">
<a class="btn btn-danger img_bottom_delete" href="#">Usuń zdjęcie</a>
<? endif; ?>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= ucfirst($lang['krotki-opis-firmy']); ?>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<div class="col-12">
<textarea name="other_information" id="other_information"><?= $this->g_user['other_information']; ?></textarea>
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= ucfirst(\S::lang('osoby-do-kontaktu')); ?>
<p><span><small>Ważna informacja: dane osób rekrutujących będą widoczne jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu, ale w momencie dodawania ogłoszenia będzie można je zedytować.</small></span></p>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="contact_person_1" class="col-12 col-sm-4"><?= ucfirst($lang['osoba-do-kontaktu']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="contact_person_1" value="<?= htmlspecialchars($this->g_user['contact_person_1']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="email_1" class="col-12 col-sm-4"><?= ucfirst($lang['email']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="email_1" value="<?= htmlspecialchars($this->g_user['email_1']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="phone_1" class="col-12 col-sm-4"><?= ucfirst($lang['telefon']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="phone_1" value="<?= htmlspecialchars($this->g_user['phone_1']); ?>">
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="contact_person_2" class="col-12 col-sm-4"><?= ucfirst($lang['osoba-do-kontaktu']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="contact_person_2" value="<?= htmlspecialchars($this->g_user['contact_person_2']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="email_2" class="col-12 col-sm-4"><?= ucfirst($lang['email']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="email_2" value="<?= htmlspecialchars($this->g_user['email_2']); ?>">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="phone_2" class="col-12 col-sm-4"><?= ucfirst($lang['telefon']); ?>:</label>
<div class="col-12 col-sm-8">
<input type="text" class="form-control" name="phone_2" value="<?= htmlspecialchars($this->g_user['phone_2']); ?>">
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= \S::lang('klauzula'); ?>
<p><span><small>Ważna informacja: klauzula będzie widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu i zmienić ją będzie można tylko w Profilu Pracodawcy.</small></span></p>
</div>
<div class="subtitle warrning"></div>
<div class="row">
<div class="col-12">
<textarea name="clauses" id="clauses"><?= $this->g_user['clauses']; ?></textarea>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<div class="col-12 mt20">
<a href="/panel-pracodawcy/profil" class="btn btn-danger mr15"><?= ucfirst($lang['anuluj']); ?></a>
<input type="submit" value="<?= ucfirst($lang['zatwierdz-zmiany']); ?>" class="btn btn-success">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<link class="footer" rel="stylesheet" type="text/css" href="/libraries/framework/vendor/plugins/datepicker/css/bootstrap-datetimepicker.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/selectize/css/selectize.bootstrap3.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/summernote/summernote-lite.css">
<script class="footer" type="text/javascript" src="/plugins/summernote/summernote-lite.js"></script>
<script class="footer" type="text/javascript" src="/plugins/summernote/lang/summernote-pl-PL.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/moment/moment.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/moment/pl.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/datepicker/js/bootstrap-datetimepicker.js"></script>
<script class="footer" type="text/javascript" src="/plugins/selectize/js/selectize.js"></script>
<script class="footer" type="text/javascript">
$(function() {
$('#other_information').summernote({
height: 200,
lang: 'pl-PL',
toolbar: [
['font', ['bold', 'underline', 'clear']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']]
]
});
$('#text, #clauses').summernote({
height: 200,
lang: 'pl-PL',
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['height', ['height']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']]
]
});
$('body').on('submit', '#user-panel form', function(e) {
if ($("#user-panel form #logo")[0].files.length && !($('#user-panel form #logo')[0].files[0].size < 125000)) {
e.preventDefault();
$.alert({
title: '<?= ucfirst($lang['blad']); ?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['plik-logo-jest-zbyt-duzy']; ?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons: {
confirm: {
text: '<?= $lang['zamknij']; ?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
});
$('body').on(click_event, '.input-icon .fa', function() {
$(this).parent().children('input').focus();
});
$('body').on(click_event, '#inexperience', function() {
if ($(this).is(':checked'))
$('.positions_0 input, .positions_0 select').removeAttr('required').attr('readonly', 'readonly');
else
$('.positions_0 input, .positions_0 select').attr('required', 'required').removeAttr('readonly');
});
$('input[type="text"].date').datetimepicker({
format: "YYYY-MM-DD",
pickTime: false
});
$('.countries').selectize({
maxItems: 6
});
});
/*usuwanie loga */
$( function()
{
$( 'body' ).on( click_event, '.img_logo_delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: 'Czy napewno chcesz usunąć logo?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
$.ajax(
{
type: 'POST',
url: '/globelusFirms/delete_logo/',
data:
{
user_id: <?= $this -> g_user['id'];?>
},
beforeSend: function() {},
success: function( response )
{
var data = jQuery.parseJSON( response );
if ( data.result == 'ok' ) {
const img_logo = document.querySelector(".img_logo");
img_logo.classList.add("img-hide");
}
}
});
}
}
}
});
});
});
/*usuwanie zdjecia header */
$( function()
{
$( 'body' ).on( click_event, '.img_header_delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: 'Czy napewno chcesz usunąć zdjęcie górne?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
$.ajax(
{
type: 'POST',
url: '/globelusFirms/delete_img_header/',
data:
{
user_id: <?= $this -> g_user['id'];?>
},
beforeSend: function() {},
success: function( response )
{
var data = jQuery.parseJSON( response );
if ( data.result == 'ok' ) {
const img_header = document.querySelector(".img_header");
img_header.classList.add("img-hide");
}
}
});
}
}
}
});
});
});
/*usuwanie zdjecia bottom */
$( function()
{
$( 'body' ).on( click_event, '.img_bottom_delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: 'Czy napewno chcesz usunąć zdjęcie dolne?',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
$.ajax(
{
type: 'POST',
url: '/globelusFirms/delete_img_bottom/',
data:
{
user_id: <?= $this -> g_user['id'];?>
},
beforeSend: function() {},
success: function( response )
{
var data = jQuery.parseJSON( response );
if ( data.result == 'ok' ) {
const img_bottom = document.querySelector(".img_bottom");
img_bottom.classList.add("img-hide");
}
}
});
}
}
}
});
});
});
</script>

View File

@@ -0,0 +1,218 @@
<? global $lang;?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'moj-profil'
] );?>
<div class="mini-box fluid">
<div class="title">
<?= $this -> g_user['firm_name_profile'] != '' ? htmlspecialchars( $this -> g_user['firm_name_profile'] ) : 'Twój profil'?>
<span class="pull-right text-danger small">
Posiadasz <?= \front\factory\GlobelusFirms::get_firm_points( $this -> g_user['id'] );?> pkt. <a href="/panel-pracodawcy/zakup-punktow">Dokup więcej.</a>
</span>
</div>
<div class="subtitle">
<?= $lang['moj-profil-podtytul-pracodawca'];?>
<a href="/panel-pracodawcy/edycja-profilu" class="btn btn-success"><?= $lang['edytuj-profil'];?></a>
</div>
<div class="row">
<div class="col-12">
<div class="content profil">
<div class="row">
<div class="col-12">
<div class="logo-container">
<div class="name"><?= htmlspecialchars( $this -> g_user['firm_name'] );?></div>
<div class="logo">
<? if ( file_exists( \front\factory\GlobelusFirms::logo_url( $this -> g_user['id'] ) ) ):?>
<img src="/logo/<?= $this -> g_user['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-logo.jpg">
<? endif;?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['nazwa-firmy'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['firm_name'] );?>
</div>
</div>
</div>
<div class="col-12">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['nazwa-firmy-publikowana-na-portalu'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['firm_name_profile'] );?>
</div>
</div>
</div>
<div class="col-12">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['numer-identyfikacji-podatkowej'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['nip_vat'] );?>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= $lang['pracodawca-profil-krok-2-opis'];?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['telefon'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['phone'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['adres-email'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['email'] );?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['strona-www'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['www'] );?>
</div>
</div>
</div>
</div>
<hr />
<div class="step-title">
<?= $lang['pracodawca-profil-krok-3-opis'];?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['kraj'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['country'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['region'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['region'] );?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['miasto'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['city'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['kod-pocztowy'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['postal_code'] );?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['ulica'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['street'] );?>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label class="col-12 col-sm-4"><?= ucfirst( $lang['nr-budynku-lokalu'] );?>:</label>
<div class="col-12 col-sm-8">
<?= htmlspecialchars( $this -> g_user['apartment_number'] );?>
</div>
</div>
</div>
</div>
<hr/>
<div class="row">
<div class="col-12">
<div class="step-title">
<?= ucfirst( \S::lang( 'osoby-do-kontaktu' ) );?>
<p><span><small>Ważna informacja: dane osób rekrutujących będą widoczne jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu, ale w momencie dodawania ogłoszenia będzie można je zedytować.</small></span></p>
</div>
<div class="form-group row">
<div class="col-md-6">
<?= $this -> g_user['contact_person_1'];?><br />
<?= $this -> g_user['email_1'];?><br />
<?= $this -> g_user['phone_1'];?>
</div>
<div class="col-md-6">
<?= $this -> g_user['contact_person_2'];?><br />
<?= $this -> g_user['email_2'];?><br />
<?= $this -> g_user['phone_2'];?>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= ucfirst( $lang['krotki-opis-firmy'] );?>
</div>
<div class="row">
<div class="col-12">
<?= $this -> g_user['other_information'];?>
</div>
</div>
<hr/>
<div class="step-title">
<?= ucfirst( \S::lang( 'klauzula' ) );?>
<p><span><small>Ważna informacja: klauzula będzie widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu i zmienić ją będzie można tylko w Profilu Pracodawcy.</small></span></p>
</div>
<div class="row">
<div class="col-12">
<?= $this -> g_user['clauses'];?>
</div>
</div>
<?
$img_header_url = \front\factory\GlobelusFirms::img_header_url( $this -> g_user['id'] );
if ( file_exists( $img_header_url ) ):?>
<hr/>
<div class="step-title">
Zdjęcie nad ogłoszeniem
<p><span><small>Ważna informacja: klauzula będzie widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu i zmienić ją będzie można tylko w Profilu Pracodawcy.</small></span></p>
</div>
<div class="image_header"><img src="/img_header/<?= $this->g_user['id'];?>/<?= \S::get_token();?>"></div>
<?
endif;
?>
<?
$img_bottom_url = \front\factory\GlobelusFirms::img_bottom_url( $this -> g_user['id'] );
if ( file_exists( $img_bottom_url ) ):?>
<hr/>
<div class="step-title">
Zdjęcie pod ogłoszeniem
<p><span><small>Ważna informacja: klauzula będzie widoczna jednocześnie we wszystkich ogłoszeniach publikowanych z tego profilu i zmienić ją będzie można tylko w Profilu Pracodawcy.</small></span></p>
</div>
<div class="image_bottom"><img src="/img_bottom/<?= $this->g_user['id'];?>/<?= \S::get_token();?>"></div>
<?
endif;
?>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,118 @@
<? global $lang;?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'ustawienia-konta'
] );?>
<div class="mini-box fluid">
<div class="title">
<?= ucfirst( $lang['ustawienia-konta'] );?>
</div>
<div class="subtitle">
<?= $lang['ustawienia-konta-podtytul'];?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content profil">
<form method="POST" action="/globelusFirms/change_password/">
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="current_password" class="col-12 col-sm-4"><?= ucfirst( $lang['obecne-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="current_password" name="current_password" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="new_password" class="col-12 col-sm-4"><?= ucfirst( $lang['nowe-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="new_password" name="new_password" pattern="^\S{6,}$" class="form-control">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="repeat_new_password" class="col-12 col-sm-4"><?= ucfirst( $lang['powtorz-nowe-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="repeat_new_password" name="repeat_new_password" pattern="^\S{6,}$" class="form-control" oninput="check_match(this)">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<div class="col-12 col-sm-8 offset-sm-4 mt20">
<input type="submit" value="<?= ucfirst( $lang['zmien-haslo'] );?>" class="btn btn-success">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<hr/>
<div class="subtitle">
<?= $lang['usuwanie-konta-podtytul'];?>
</div>
<div class="row">
<div class="col-12 col-md-6">
<a href="#" class="btn btn-danger account-delete"><?= ucfirst( $lang['usun-konto'] );?></a>
</div>
</div>
</div>
</div>
<script class="footer" type="text/javascript">
$( function()
{
$( 'body' ).on( click_event, '.account-delete', function()
{
$.alert(
{
title: '<?= ucfirst( $lang['potwierdz'] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['potwierdz-usuniecie-konta'];?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
cancel:
{
text: '<?= $lang['anuluj'];?>',
action: function() {}
},
confirm:
{
text: '<?= $lang['zatwierdz'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function()
{
document.location.href="/globelusUser/delete_account/";
}
}
}
});
});
});
function check_match(input)
{
if ( input.value !== document.getElementById( 'new_password' ).value )
input.setCustomValidity( '<?= $lang['podane-hasla-sa-rozne' ];?>');
else
input.setCustomValidity('');
}
</script>

View File

@@ -0,0 +1,93 @@
<? global $lang;?>
<div id="user-panel">
<?= \Tpl::view( 'globelus/firms/_partials/menu', [
'active' => 'proponowani-kandydaci'
] );?>
<!--<div class="form-group row">
<label form="sex" class="col-12" style="text-align: left;">Wybierz ogłoszenie:</label>
<div class="col-12">
<select class="form-control" onchange="document.location.href='/panel-pracodawcy/proponowani-kandydaci?aid=' + $( this ).val();">
<option value="0">--- wszystkie ogłoszenia ---</option>
<? foreach ( $this -> adverts as $advert ):?>
<option value="<?= $advert['id'];?>" <? if ( $this -> current_advert == $advert['id'] ):?>selected="selected"<? endif;?>><?= $advert['title'];?></option>
<? endforeach;?>
</select>
</div>
</div>-->
<div class="mini-box fluid">
<?
if ( is_array( $this -> candidates ) and count( $this -> candidates ) ):
foreach ( $this -> candidates as $candidate_id ):
$candidate = \front\factory\GlobelusUser::user_details( $candidate_id );
?>
<div class="cv-entry <? if ( $candidate['highlight'] ):?>highlight<? endif;?>">
<? if ( $candidate['highlight'] ):?><div id="highlight-text">Kandydat wyróżniony</div><? endif;?>
<div class="row">
<div class="col-12 col-sm-2">
<div class="img">
<? if ( file_exists( \front\factory\GlobelusCandidates::avatar_url( $candidate['id'] ) ) ):?>
<img src="/avatar/<?= $candidate['id'];?>/<?= \S::get_token();?>">
<? else:?>
<img src="/images/no-avatar.png">
<? endif;?>
</div>
</div>
<div class="col-12 col-sm-10">
<div class="row">
<div class="col-12 col-sm-8">
<h2>
<a href="/proponowany-kandydat/<?= $candidate['id'];?>/<?= \S::seo( $candidate['surname'] . ' ' . $candidate['name'], true );?>/" title="Kandydat: <?= addslashes( $candidate['surname'] . ' ' . $candidate['name'] );?>"><?= $candidate['surname'] . ' ' . $candidate['name'];?></a>
</h2>
</div>
<div class="col-12 col-sm-4 sex-and-birth">
<?= $lang['plec'];?>:
<?
if ( $candidate['sex'] == '1' )
echo $lang['mezczyzna'];
else if ( $candidate['sex'] == '0' )
echo $lang['kobieta'];
else
echo '-';
?>
<? if ( $candidate['date_of_birth'] and $candidate['date_of_birth'] != '1970-01-01' ):?>
, <?= $lang['wiek'];?>: <?= $age = \S::date_diff( $candidate['date_of_birth'], date( 'Y-m-d H:i:s' ), 60 * 60 * 24 * 365.25 );?> <?= \front\factory\Globelus::age_word_translations( $age );?>
<? endif;?>
</div>
</div>
<div class="info">
<?= $lang['tel.'];?> <?= $candidate['phone'];?>, <?= $lang['email'];?>: <a href="mailto:<?= $candidate['email'];?>"><?= $candidate['email'];?></a>
</div>
<div class="info-2">
<?
if ( is_array( $candidate['positions'] ) and count( $candidate['positions'] ) ):
echo '<p class="mb0">Chętnie podejmę pracę na stanowisku:<br />';
foreach ( $candidate['positions'] as $position ):
if ( !$position['id_position'] )
continue;
echo ' ● <strong>' . \front\factory\Globelus::position_name( $position['id_position'] ) . '</strong>'; if ( $position['experience'] ) echo ' - ' . $lang['moj-staz-na-tym-stanowisku'] . ' ' . $this -> positions_experience[ $position['experience'] ];
if ( $position != end( $candidate['positions'] ) )
echo '<br />';
endforeach;
echo '</p>';
endif;
?>
</div>
<div class="info-2">
<?= $candidate['sex'] ? $lang['ostatnio-szukal-pracy'] : $lang['ostatnio-szukala-pracy'];?>: <strong><?= $candidate['last_refresh'] ? date( 'Y-m-d', strtotime( $candidate['last_refresh'] ) ) : date( 'Y-m-d', strtotime( $candidate['register_date'] ) );?></strong>
</div>
<div class="short-text">
<?= $advert['short_text'];?>
</div>
<a href="/proponowany-kandydat/<?= $candidate['id'];?>/<?= \S::seo( $candidate['surname'] . ' ' . $candidate['name'], true );?>/" class="btn btn-success" target="_blank"><?= $lang['profil-kandydata'];?></a>
</div>
</div>
</div>
<? endforeach;
else:
?>
<div class="alert alert-danger">Brak proponowanych kandydatów</div>
<?
endif;?>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<div id="mini-banners">
<a href="/oferty-pracy/polska?filtr=t&k=&c2%5B%5D=1&t=3&wt=0" class="banner banner-01">
<div class="img">
<img src="/upload/filemanager/mini-baner-01.png" alt="">
</div>
<div class="text">
<h2>Najnowsze <strong>oferty pracy</strong> w Polsce</h2>
</div>
</a>
<a href="/oferty-pracy/dowolny-zagranica?filtr=t&k=&c2%5B%5D=77&t=3&wt=0" class="banner banner-02">
<div class="text">
<h2>Najnowsze <strong>oferty pracy</strong> za granicą</h2>
</div>
<div class="img">
<img src="/upload/filemanager/mini-baner-04.png" alt="">
</div>
</a>
<a href="/oferty-pracy/zagranica?filtr=t&k=&c2%5B%5D=77&t=3&wt=0&we=on" class="banner banner-03">
<div class="img">
<img src="/upload/filemanager/mini-baner-03.png" alt="">
</div>
<div class="text">
<h2>Oferty pracy<br /><strong>za granicą</strong> bez doświadczenia</h2>
</div>
</a>
<a href="/oferty-pracy/zagranica?filtr=t&k=&c2%5B%5D=77&t=3&wt=0&wl=on" class="banner banner-04">
<div class="text">
<h2>Oferty pracy<br /><strong>za granicą</strong> bez znajomości języka</h2>
</div>
<div class="img">
<img src="/upload/filemanager/mini-baner-02.png" alt="">
</div>
</a>
</div>

View File

@@ -0,0 +1,40 @@
<? global $lang;?>
<ul class="pager">
<? if ( $this -> current_page > 1 ):?>
<li>
<a href="/<?= $this -> link;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['pierwsza'];?></a>
</li>
<li>
<? if ( $this -> current_page - 1 > 1 ):?>
<a href="/<?= $this -> link;?>/<?= $this -> current_page - 1;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['poprzednia'];?></a>
<? else:?>
<a href="/<?= $this -> link;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['poprzednia'];?></a>
<? endif;?>
</li>
<? else:?>
<li>
<a href="#" class="inactive"><?= $lang['pierwsza'];?></a>
</li>
<li>
<a href="#" class="inactive"><?= $lang['poprzednia'];?></a>
</li>
<? endif;?>
<li>
<span><?= $this -> current_page;?> <?= $lang['z'];?> <?= $this -> count_pages;?></span>
</li>
<? if ( $this -> current_page < $this -> count_pages ):?>
<li>
<a href="/<?= $this -> link;?>/<?= $this -> current_page + 1;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['nastepna'];?></a>
</li>
<li>
<a href="/<?= $this -> link;?>/<?= $this -> count_pages;?><? if ( $this -> query_string ) echo '?' . $this -> query_string;?>"><?= $lang['ostatnia'];?></a>
</li>
<? else:?>
<li>
<a href="#" class="inactive"><?= $lang['nastepna'];?></a>
</li>
<li>
<a href="#" class="inactive"><?= $lang['ostatnia'];?></a>
</li>
<? endif;?>
</ul>

View File

@@ -0,0 +1,27 @@
<?
global $lang;
$countries = \front\factory\Globelus::countries();
?>
<form method="GET" action="/oferty-pracy" id="simple-search">
<input type="hidden" name="filtr" value="true">
<div class="content first">
<input type="text" name="k" class="form-control" value="" placeholder="słowo kluczowe, stanowisko, miasto, pracodawca">
<select name="c2[]">
<? foreach ( $countries as $country ):?>
<option value="<?= $country['id']; ?>"><?= $country['name'];?></option>
<? endforeach;?>
</select>
<a class="btn btn-success" onclick="$( '#simple-search' ).submit(); return false;"><i class="fa fa-search"></i><?= $lang['szukaj-pracy'];?></a>
</div>
<div class="content">
<div class="row checkboxes">
<div class="col-12 col-md-6">
<input type="checkbox" class="checkbox-white" name="wl" /> bez znajomości języka obcego
</div>
<div class="col-12 col-md-6">
<input type="checkbox" class="checkbox-white" name="we" /> bez doświadczenia
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,107 @@
<?
global $gClient, $lang, $accessToken, $helper, $redirectURL, $fbPermissions;
if ( !$gClient -> getAccessToken() )
{
$authUrl = $gClient -> createAuthUrl();
$btn_google = '<a href="' . filter_var( $authUrl, FILTER_SANITIZE_URL ).'" class="google-login">' . ucfirst( $lang['zaloguj-sie'] ) . '</a>';
}
if ( !$accessToken )
{
$loginURL = $helper -> getLoginUrl( $redirectURL, $fbPermissions );
$btn_facebook = '<a href="' . htmlspecialchars( $loginURL ).'" class="facebook-login">' . ucfirst( $lang['zaloguj-sie'] ) . '</a>';
}
?>
<div id="user-login">
<div class="row">
<div class="col-12 col-lg-5">
<div id="promo">
<h2>Kandydacie warto być u nas zalogowanym!</h2>
<div class="row no-gutters mb15">
<div class="col-2 col-sm-2 col-md-1 col-lg-2">
<i class="far fa-clock"></i>
</div>
<div class="col-10 col-sm-10 col-md-11 col-lg-10">
<div class='text'>
<strong>Szybkie aplikowanie na oferty</strong><br />
<small>(formularz aplikacyjny automatycznie uzupełniony Twoimi danymi oraz cv)</small>
</div>
</div>
</div>
<div class="row no-gutters mb15">
<div class="col-2 col-sm-2 col-md-1 col-lg-2">
<i class="fas fa-archive"></i>
</div>
<div class="col-10 col-sm-10 col-md-11 col-lg-10">
<div class='text'>
<strong>Archiwum aplikacji</strong><br />
<small>(historia wysłanych aplikacji zawsze pod ręką)</small>
</div>
</div>
</div>
<div class="row no-gutters mb15">
<div class="col-2 col-sm-2 col-md-1 col-lg-2">
<i class="fas fa-star"></i>
</div>
<div class="col-10 col-sm-10 col-md-11 col-lg-10">
<div class='text'>
<strong>Obserwowane aplikacje</strong><br />
<small>(interesujące aplikacje w jednym miejscu)</small>
</div>
</div>
</div>
<div class="row no-gutters mb15">
<div class="col-2 col-sm-2 col-md-1 col-lg-2">
<i class="far fa-address-card"></i>
</div>
<div class="col-10 col-sm-10 col-md-11 col-lg-10">
<div class='text'>
<strong>Dostęp do pełnych danych kontaktowych pracodawców</strong><br />
</div>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-7">
<div class="mini-box">
<div class="title">
<?= ucfirst( $lang['logowanie'] );?>
</div>
<div class="subtitle">
<?= ucfirst( $lang['logowanie-podytul'] );?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content user">
<form method="POST" action="/globelusUser/signin/" id="f-user-login">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst( $lang['email'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="email" name="email" required id="email" class="form-control">
</div>
</div>
<div class="form-group row">
<label form="password" class="col-12 col-sm-4"><?= ucfirst( $lang['haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" name="password" required id="password" class="form-control">
</div>
</div>
<div class="form-group row">
<div class="col-12 col-sm-8 offset-sm-4">
<input type="submit" value="<?= ucfirst( $lang['zaloguj-sie'] );?>" class="btn btn-success">
<? $btn_google . $btn_facebook;?>
<div class="clearfix"></div>
<span><?= $lang['nie-pamietasz-hasla'];?> <a href="/odzyskiwanie-hasla"><?= ucfirst( $lang['nowe-haslo'] );?></a></span><br />
<span><big><?= $lang['nie-masz-konta'];?> <a href="/rejestracja"><?= ucfirst( $lang['zarejestruj-sie'] );?></a>. Rejestracja zarówno dla pracodawców jak i kandydatów jest całkowicie <strong>darmowa</strong>.</big></span>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,30 @@
<? global $lang;?>
<div id="user-login">
<div class="mini-box">
<div class="title">
<?= ucfirst( $lang['odzyskiwanie-hasla'] );?>
</div>
<div class="subtitle"><?= ucfirst( $lang['odzyskiwanie-hasla-podtytul'] );?></div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content user">
<form method="POST" action="/globelusUser/send_email_password_recovery/">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst( $lang['email'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="email" name="email" required id="email" class="form-control">
</div>
</div>
<div class="form-group row">
<div class="col-12 col-sm-8 offset-sm-4">
<input type="submit" value="<?= ucfirst( $lang['wyslij'] );?>" class="btn btn-success">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,237 @@
<?
global $gClient, $lang, $accessToken, $helper, $redirectURL, $fbPermissions;
if ( !$gClient -> getAccessToken() )
{
$authUrl = $gClient -> createAuthUrl();
$btn_google = '<a href="' . str_replace( 'g_register%3D0', 'g_register%3D1', filter_var( $authUrl, FILTER_SANITIZE_URL ) ) . '" class="google-login">' . ucfirst( $lang['zarejestruj-sie'] ) . '</a>';
}
if ( !$accessToken )
{
$loginURL = $helper -> getLoginUrl( $redirectURL, $fbPermissions );
$btn_facebook = '<a href="' . str_replace( 'f_register%3D0', 'f_register%3D1', htmlspecialchars( $loginURL ) ) . '" class="facebook-login">' . ucfirst( $lang['zarejestruj-sie'] ) . '</a>';
}
?>
<div id="user-register">
<div class="mini-buttons" id="buttons">
<div class="btn btn-user">
<?= $lang['rejestracja-jako-kandydat'];?>
</div>
<div class="btn btn-firm">
<?= $lang['rejestracja-jako-pracodawca'];?>
</div>
</div>
<div class="mini-box">
<div class="title">
<?= $lang['konto-kandydata'];?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="content user">
<form method="POST" action="/" id="f-user-register">
<input type="hidden" id="type" name="type" value="0">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst( $lang['email'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="email" required id="email" class="form-control">
</div>
</div>
<div class="form-group row">
<label form="password" class="col-12 col-sm-4"><?= ucfirst( $lang['haslo'] );?> (<?= $lang['min'];?> 6 <?= $lang['znakow'];?>):</label>
<div class="col-12 col-sm-8">
<input type="password" required id="password" pattern="^\S{6,}$" class="form-control">
</div>
</div>
<div class="form-group row">
<label form="password" class="col-12 col-sm-4"><?= ucfirst( $lang['powtorz-haslo'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="password" required id="password-repeat" pattern="^\S{6,}$" class="form-control" oninput="check_match(this)">
</div>
</div>
<div class="form-group row agremment">
<div class="col-12 col-sm-8 offset-sm-4">
<input type="checkbox" required id="agremment">
<?
$text = str_replace( '[LINK-REGULAMIN]', '<a href="/regulamin">' . $lang['regulamin'] . '</a>', $lang['rejestracja-akceptacja-regulaminu'] );
echo $text = str_replace( '[LINK-POLITYKA-PRYWATNOSCI]', '<a href="/polityka-prywatnosci">' . $lang['polityke-prywatnosci'] . '</a>', $text );
?>
</div>
</div>
<div class="form-group row agremment-profile">
<div class="col-12 col-sm-8 offset-sm-4">
<input type="checkbox" required id="agremment-profile"> <?= $lang['rejestracja-zgoda-na-wyswietlenie-profilu'];?>
</div>
</div>
<div class="form-group row agremment-marketing">
<div class="col-12 col-sm-8 offset-sm-4">
<input type="checkbox" required id="agremment-marketing"> Wyrażam zgodę na kontakt mailowy i/lub telefoniczny ze strony globelus.pl
</div>
</div>
<div class="form-group row">
<div class="col-12 col-sm-8 offset-sm-4 mt20">
<input type="submit" value="<?= ucfirst( $lang['zarejestruj-sie'] );?>" class="btn btn-success">
<? $btn_google . $btn_facebook;?>
<div class="clearfix"></div>
<span><?= $lang['masz-juz-konto'];?> <a href="/logowanie"><?= ucfirst( $lang['zaloguj-sie'] );?></a></span>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script class="footer" type='text/javascript'>
$( function()
{
var hash = document.URL.substr( document.URL.indexOf( '#' ) + 1 );
if ( hash === 'pracodawca' )
{
$( '#user-register .title' ).html( '<?= $lang['konto-pracodawcy'];?>' );
$( '#f-user-register .agremment-profile' ).hide();
$( '#f-user-register #type' ).val( 1 );
$( '#f-user-register #agremment-profile' ).removeAttr( 'required' );
}
$( 'body' ).on( click_event, '#user-register #buttons .btn', function()
{
if ( $( this ).hasClass( 'btn-firm' ) )
{
$( '#user-register .title' ).html( '<?= $lang['konto-pracodawcy'];?>' );
$( '#f-user-register .agremment-profile' ).hide();
$( '#f-user-register #type' ).val( 1 );
$( '#f-user-register #agremment-profile' ).removeAttr( 'required' );
var url = $( '.google-login' ).attr( 'href' ).toString();
url = url.replace( 'g_type%3D0', 'g_type%3D1' );
$( '.google-login' ).attr( 'href', url );
var url_fb = $( '.facebook-login' ).attr( 'href' ).toString();
url_fb = url_fb.replace( 'f_type%3D0', 'f_type%3D1' );
$( '.facebook-login' ).attr( 'href', url_fb );
}
if ( $( this ).hasClass( 'btn-user' ) )
{
$( '#user-register .title' ).html( '<?= $lang['konto-kandydata'];?>' );
$( '#f-user-register .agremment-profile' ).show();
$( '#f-user-register #type' ).val( 0 );
$( '#f-user-register #agremment-profile' ).attr( 'required', 'required' );
var url = $( '.google-login' ).attr( 'href' );
url = url.replace( 'g_type%3D1', 'g_type%3D0' );
$( '.google-login' ).attr( 'href', url );
var url_fb = $( '.facebook-login' ).attr( 'href' ).toString();
url_fb = url_fb.replace( 'f_type%3D1', 'f_type%3D0' );
$( '.facebook-login' ).attr( 'href', url_fb );
}
});
$( 'body' ).on( 'submit', '#f-user-register', function(e)
{
e.preventDefault();
$.ajax(
{
type: 'POST',
cache: false,
url: '/globelusUser/signup/',
data:
{
email: $( '#f-user-register #email' ).val(),
password: $( '#f-user-register #password' ).val(),
type: $( '#f-user-register #type' ).val(),
agremment_profile: $( '#f-user-register #agremment-profile' ).val(),
agremment_marketing: $( '#f-user-register #agremment-marketing' ).val()
},
beforeSend: function() {
},
success: function( data )
{
response = jQuery.parseJSON( data );
if ( response.status == 'bad2' )
{
$.alert(
{
title: '<?= ucfirst( $lang['informacja'] );?>',
icon: 'fa fa-exclamation',
content: response.msg,
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: 'Zaloguj się',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {
document.location.href = '/logowanie';
}
}
},
onClose: function ()
{
if ( response.status === 'ok' )
document.location.href = '/logowanie';
}
});
}
else
{
$.alert(
{
title: '<?= ucfirst( $lang['informacja'] );?>',
icon: 'fa fa-exclamation',
content: response.msg,
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
},
onClose: function ()
{
if ( response.status === 'ok' )
document.location.href = '/logowanie';
}
});
}
}
});
return false;
});
});
function check_match(input)
{
if ( input.value !== document.getElementById( 'password' ).value )
input.setCustomValidity( '<?= $lang['podane-hasla-sa-rozne' ];?>');
else
input.setCustomValidity('');
}
</script>

View File

@@ -0,0 +1,21 @@
<? global $lang;?>
<? if ( !$this -> g_user ):?>
<a href="/rejestracja" id="sign-up">
<?= $lang['zarejestruj-sie'];?>
</a>
<a href="/logowanie" id="sign-in">
<?= $lang['zaloguj-sie'];?>
</a>
<? else:?>
<a href="/globelusUser/logout/" id="logout">
<?= $lang['wyloguj-sie'];?>
</a>
<a href="<?= $this -> g_user['type'] ? '/panel-pracodawcy/profil' : '/panel-kandydata/profil';?>" id="user-panel">
<?= $this -> g_user['type'] ? $lang['panel-pracodawcy'] : $lang['panel-kandydata'];?>
</a>
<? if ( $this -> g_user['type'] and is_array( $this -> g_user['categories'] ) and count( $this -> g_user['categories'] ) ):?>
<div id="mini-menu">
<a href="/baza-cv"><i class="fa fa-file-text"></i>Baza kandydatów</a>
</div>
<? endif;?>
<? endif;?>

View File

@@ -0,0 +1,25 @@
<?
$out = '<a ';
$out .= 'class="btn ' . $this -> params['class'] . '" ';
if ( $this -> params['style'] )
$out .= 'style="' . $this -> params['style'] . '" ';
if ( $this -> params['js'] )
$out .= 'onclick="' . htmlspecialchars( $this -> params['js'] ) . '" ';
if ( $this -> params['url'] )
$out .= 'href="' . htmlspecialchars( $this -> params['url'] ) . '" ';
if ( $this -> params['id'] )
$out .= 'id="' . $this -> params['id'] . '" ';
if ( $this -> params['title'] )
$out .= 'title="' . htmlspecialchars( $this -> params['title'] ) . '" ';
$out .= '>';
if ( $this -> params['icon'] )
$out .= '<i class="fa ' . $this -> params['icon'] . ' mr5"></i>';
$out .= $this -> params['text'];
$out .= '</a>';
echo $out;

View File

@@ -0,0 +1,46 @@
<div id="menu-container-<?= $this -> menu['id'];?>">
<?= \front\view\Menu::pages( $this -> menu['pages'], 0, $this -> current_page );?>
</div>
<? if ( $this -> menu['id'] == 1 ):?>
<script class="footer" type="text/javascript">
var windowsize = $(window).width();
$(window).resize(function() {
windowsize = $(window).width();
});
$( 'body' ).on( click_event, '#mobile-menu-btn', function()
{
if ( windowsize <= 767 )
{
if ( $( this ).hasClass( 'active' ) )
{
$( this ).removeClass( 'active' );
$( '#main-menu' ).removeClass( 'visible' );
$( '#mobile-menu-btn i' ).addClass( 'fa-bars' ).removeClass( 'fa-times' );
}
else
{
$( this ).addClass( 'active' );
$( '#main-menu' ).addClass( 'visible' );
$( '#mobile-menu-btn i' ).removeClass( 'fa-bars' ).addClass( 'fa-times' );
}
}
});
$( 'body' ).on( click_event, '#menu-container-<?= $this -> menu['id'];?> > ul > li > a', function(e)
{
if ( windowsize <= 767 )
{
if ( $( this ).parent().hasClass( 'parent' ) )
e.preventDefault();
if ( !$( this ).parent().hasClass( 'active' ) )
{
$( '#menu-container-<?= $this -> menu['id'];?> > ul > li' ).removeClass( 'active' );
$( this ).parent().addClass( 'active' );
}
}
});
</script>
<? endif;?>

View File

@@ -0,0 +1,59 @@
<?
if ( is_array( $this -> pages ) )
{
$settings = \front\factory\Settings::settings_details();
echo '<ul class="level-' . $this -> level . ' clear">';
foreach ( $this -> pages as $page )
{
$url = "";
if ($settings['links_structure'])
{
if ($page['language']['seo_link'])
{
$url = '/'.\admin\factory\Pages::google_url_preview($page['id'], $page['language']['title'], $page['language']['lang_id'], 0, 0, $page['language']['seo_link']);
}
else
{
$url = '/'. \admin\factory\Pages::google_url_preview($page['id'], $page['language']['title'], $page['language']['lang_id'], 0, 0, 0);
}
}
else
$page['language']['seo_link'] ? $url = '/' . $page['language']['seo_link'] : $url = '/s-' . $page['id'] . '-' . \S::seo( $page['language']['title'] );
if ( $page['page_type'] == 3 and $page['language']['link'] )
$url = $page['language']['link'];
unset( $children );
if ( is_array( $page['pages'] ) ): foreach ( $page['pages'] as $page_tmp ):
$children[] = $page_tmp['id'];
endforeach; endif;
echo '<li id="link-' . $page['id'] . '" class="';
if ($page['id'] == $this -> current_page )
echo ' active';
if( is_array( $page['pages'] ) and in_array( $this -> current_page, $children ) )
echo ' open';
if ( is_array( $page['pages'] ) )
echo ' parent';
echo '">';
echo '<a href="';
if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() and $url != '#' and $page['page_type'] != 3 )
echo '/' . \S::get_session( 'current-lang' );
echo $url . '"'; if ( $page['language']['noindex'] ) echo 'rel="nofollow"'; echo ' title="' . $page['language']['title'] . '"'; if ( is_array( $page['pages'] ) ) echo "class='menu-trigger'"; echo '>';
echo $page['language']['title'];
if ( is_array( $page['pages'] ) )
echo '<i class="fa fa-caret-down"></i>';
echo '</a>';
echo \front\view\Menu::pages( $page['pages'], $this -> level + 1, $this -> current_page );
echo '</li>';
}
echo '</ul>';
}
?>

View File

@@ -0,0 +1,26 @@
<?
if ( is_array( $this -> pages ) )
{
echo '<ul class="level-' . $this -> level . '" id="submenu-' . $this -> page_id . '">';
foreach ( $this -> pages as $page )
{
$page['language']['seo_link'] ? $url = '/' . $page['language']['seo_link'] : $url = '/s-' . $page['id'] . '-' . \S::seo( $page['language']['title'] );
if ( $page['page_type'] == 3 and $page['link'] )
$url = $page['link'];
echo '<li id="link-' . $page['id'] . '" class="'; if ( $page['id'] == $this -> current_page ) echo ' active'; echo '">';
echo '<a href="';
if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() and $url != '#' )
echo '/' . \S::get_session( 'current-lang' );
echo $url . '"'; if ( $page['language']['noindex'] ) echo 'rel="nofollow"'; echo ' title="' . $page['language']['title'] . '"'; if ( is_array( $page['pages'] ) ) echo "class='menu-trigger'"; echo '>';
echo $page['language']['title'];
if ( is_array( $page['pages'] ) )
echo '<i class="fa fa-chevron-down"></i>';
echo '</a>';
echo \front\view\Menu::submenu( $page['pages'], $this -> current_page, $this -> page_id, $this -> level + 1 );
echo '</li>';
}
echo '</ul>';
}

View File

@@ -0,0 +1,27 @@
<script type="text/javascript">
$.alert(
{
title: '<?= $this -> alert['title'];?>',
icon: 'fa fa-exclamation',
content: '<?= $this -> alert['message'];?>',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
<? if ( $this -> alert['autoclose'] ):?>
autoClose: 'confirm|<?= $this -> alert['autoclose'] * 1000;?>',
<? endif;?>
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= \S::lang( 'zamknij' );?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
</script>

View File

@@ -0,0 +1,196 @@
<? global $settings, $lang, $config;?>
<? if ( $settings['google_maps'] and $settings['firm_adress'] ):?>
<script class="footer" type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&key=<?=$settings['google_map_key']?>"></script>
<script class="footer" type="text/javascript">
google.maps.event.addDomListener(window, 'load', init);
function init() {
var mapOptions = {
zoom: 15,
scrollwheel: false
};
var mapElement = document.getElementById('google-map');
var map = new google.maps.Map(mapElement, mapOptions);
var myLatLng = { lat: 50.079740, lng: 22.103477 };
map.setCenter( myLatLng );
var marker = new google.maps.Marker({
map: map,
position: myLatLng
});
}
</script>
<div id='google-map'></div>
<? endif;?>
<div class="row">
<div class="col-12 col-md-6">
<div id="contact-additional-info"><?= $settings['additional_info'];?></div>
</div>
<div class="col-12 col-md-6">
<? if ( $settings['contact_form'] ):?>
<form class="form-horizontal" id="contact-form">
<div id="contact-form">
<div class="form-group">
<label for="name" class="col-12"><?= ucfirst( $lang['imie-i-nawzisko-lub-nazwa-firmy'] );?> <span class='red'>*</span>:</label>
<div class="col-12">
<input type='text' id="name" name="name" class="form-control" required />
</div>
</div>
<div class="form-group">
<label for="emai" class="col-12"><?= ucfirst( $lang['email'] );?> <span class='red'>*</span>:</label>
<div class="col-12">
<input type='text' id="email" name="email" class="form-control" required />
</div>
</div>
<div class="form-group">
<label for="emai" class="col-12"><?= ucfirst( $lang['nr-telefonu'] );?>:</label>
<div class="col-12">
<input type='text' id="phone" name="phone" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="subject" class="col-12"><?= ucfirst( $lang['temat'] );?>:</label>
<div class="col-12">
<input type='text' id="subject" name="subject" value="Zapytanie ze strony <?= preg_replace( '#^(http(s)?://)?w{3}\.#', '$1', $_SERVER['SERVER_NAME'] );?>" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="text" class="col-12"><?= ucfirst( $lang['wiadomosc'] );?> <span class='red'>*</span>:</label>
<div class="col-12">
<textarea id="text" name="text" required class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-12">
<a class='btn btn-success' id="contact-form-send" onclick="send_message(); return false;"><?= $lang['wyslij-wiadomosc'];?></a>
</div>
</div>
</div>
</form>
<? endif;?>
</div>
</div>
<script class="footer" type="text/javascript">
function send_message()
{
var email = $.trim( $( '#contact-form #email' ).val() );
var name = $.trim( $( '#contact-form #name' ).val() );
var phone = $.trim( $( '#contact-form #phone' ).val() );
var subject = $.trim( $( '#contact-form #subject' ).val() );
var text = $.trim( $( '#contact-form #text' ).val() );
if ( email === '' || name === '' || text === '' )
{
$.alert(
{
title: '<?= ucfirst( $lang['blad'] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['prosze-uzupelnic-wymagane-pola'];?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
$.ajax(
{
type: 'POST',
cache: false,
url: '/',
data:
{
a: 'contact_form_send',
email: email,
name: name,
phone: phone,
subject: subject,
text: text
},
beforeSend: function()
{
alert1 = $.alert(
{
title: '<?= ucfirst( $lang['informacja'] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['prosze-czekac'];?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
},
success: function( data )
{
response = jQuery.parseJSON( data );
if ( response.status === 'ok' )
{
var msg = '<?= $lang['wiadomosc-zostala-wyslana'];?>';
$( '#contact-form input, #contact-form textarea' ).each( function()
{
$( this ).val( '' );
});
}
else
var msg = '<?= $lang['wiadomosc-niezostala-wyslana'];?>';
alert1.close();
$.alert(
{
title: '<?= ucfirst( $lang['informacja'] );?>',
icon: 'fa fa-exclamation',
content: msg,
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
});
return false;
}
</script>

View File

@@ -0,0 +1,35 @@
<link rel="stylesheet" href="/layout/include/cookie.css">
<div id="cookie-information">
<div class="container">
<div class="row">
<div class="col-12">
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. <a href="#" onclick="cookie_close(); return false;">[akceptuję]</a>
</div>
</div>
</div>
</div>
<script class="footer" type="text/javascript">
function cookie_close()
{
$.ajax(
{
type: 'POST',
cache: false,
url: '/ajax.php',
data:
{
a: 'cookie_close'
},
beforeSend: function()
{
$( '#cookie-information' ).remove();
},
success: function( data )
{
$( '#cookie-information' ).remove();
}
});
}
</script>

View File

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

View File

@@ -0,0 +1,556 @@
<? global $lang;?>
<?
$td = \S::get_session( 'td' );
$positions = \front\factory\Globelus::get_positions_list();
?>
<div id="user-panel">
<div class="mini-box fluid" style="padding: 0; border: 0;">
<div class="content profil">
<form method="POST" action="/globelusCandidates/new_candidate/" enctype="multipart/form-data">
<div class="step-title">
<?= ucfirst( $lang['krok'] );?> 1 - <span><?= $lang['kandydat-profil-krok-1-opis'];?></span>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="name" class="col-12 col-sm-4"><?= ucfirst( $lang['imie'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="name" name="name" class="form-control" value="<?= $td['p']['name'];?>" required >
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="surname" class="col-12 col-sm-4"><?= ucfirst( $lang['nazwisko'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="surname" name="surname" class="form-control" value="<?= $td['p']['surname'];?>" required >
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="email" class="col-12 col-sm-4"><?= ucfirst( $lang['adres-email'] );?>:</label>
<div class="col-12 col-sm-8 input-icon">
<input type="text" id="email" name="email" class="form-control" value="" value="<?= $td['p']['email'];?>" required >
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="phone" class="col-12 col-sm-4"><?= ucfirst( $lang['telefon'] );?>:</label>
<div class="col-12 col-sm-8">
<input type="text" id="phone" name="phone" class="form-control" value="<?= $td['p']['phone'];?>" required >
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="date_of_birth" class="col-12 col-sm-4"><?= ucfirst( $lang['data-urodzenia'] );?>:</label>
<div class="col-12 col-sm-8 input-icon date_of_birth">
<input type="text" id="date_of_birth" name="date_of_birth" class="form-control date-birth" value="<?= $td['p']['date_of_birth'];?>" required >
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="sex" class="col-12 col-sm-4"><?= ucfirst( $lang['plec'] );?>:</label>
<div class="col-12 col-sm-8">
<select id="sex" name="sex" class="form-control">
<option value="">--- wybierz ---</option>
<option value="0" <?= $td['p']['sex'] === '0' ? 'selected' : '';?>><?= $lang['kobieta'];?></option>
<option value="1" <?= $td['p']['sex'] === '1' ? 'selected' : '';?>><?= $lang['mezczyzna'];?></option>
</select>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= ucfirst( $lang['krok'] );?> 2 - <span><?= $lang['kandydat-profil-krok-2-opis'];?></span>
</div>
<div class="row important">
<div class="col-12">
<div class="info">Wypełnij aby zwiększyć swoją szansę na znalezienie poszukiwanej pracy.</div>
<div class="form-group row">
<label form="positions" class="col-12 text-left text-bold"><?= ucfirst( $lang['w-jakim-zawodzie-szukasz-pracy'] );?></label>
<div class="col-12">
<div class="row positions positions_1" counter="1">
<div class="col-12 col-md-6 mb5">
<select counter="1" name="positions[]" class="form-control positions" placeholder="wybierz stanowisko" required>
<option value="">--- <?= $lang['wybierz']; ?> ---</option>
<? if ( is_array( $positions ) ): foreach ( $positions as $position_single ):?>
<option value="<?= $position_single['id']; ?>"><?= htmlspecialchars( $position_single['name'] );?></option>
<? endforeach; endif;?>
</select>
</div>
<div class="col-12 col-md-6 mb5">
<select name="positions_experience[]" counter="1" class="form-control" required >
<option value="">--- wybierz doświadczenie ---</option>
<?
$positions_experience = \front\factory\Globelus::positions_experience();
if ( is_array( $positions_experience ) ): foreach ( $positions_experience as $key => $val ):?>
<option value="<?= $key;?>"><?= $val;?></option>
<? endforeach; endif;
?>
</select>
</div>
</div>
</div>
</div>
<div class="form-group row">
<div class="col-12">
<input type="checkbox" name="inexperience" id="inexperience"> <?= $lang['nie-posiadam-doswiadczenia'];?>
</div>
</div>
</div>
</div>
<div class="row options important">
<div class="col-12">
<div class="info">Wypełnij aby zwiększyć swoją szansę na znalezienie poszukiwanej pracy.</div>
<div class="form-group row">
<label form="categories" class="col-12 text-left text-bold"><?= ucfirst( $lang['w-jakiej-branzy-szukasz-pracy'] );?></label>
</div>
<? $i_urf = 1;?>
<? if ( is_array( $categories = \front\factory\GlobelusAdverts::categories() ) ): foreach ( $categories as $category ):?>
<? $i_urf++;?>
<? if ( $i_urf%2 == 0):?>
<div class="row">
<? endif;?>
<div class="col-12 col-sm-6">
<input type="checkbox" name="categories[]" value="<?= $category['id'];?>" required > <?= $category['name'];?>
</div>
<? if ( $i_urf%2 == 1 ):?>
</div>
<? endif;?>
<? endforeach; endif;?>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="languages" class="col-12 text-left text-bold"><?= ucfirst( $lang['jakie-znasz-jezyki'] );?></label>
<div class="col-12">
<div class="row languages languages_1" counter="1">
<div class="col-12 col-md-6 mb5">
<input type="text" counter="1" name="languages[]" class="form-control" placeholder="<?= $lang['jezyk'];?>" value="" required >
</div>
<div class="col-12 col-md-6 mb5">
<select name="languages_experience[]" counter="1" class="form-control" required >
<option value="">--- <?= $lang['wybierz'];?> ---</option>
<?
$languages_experience = \front\factory\Globelus::languages_experience();
if ( is_array( $languages_experience ) ): foreach ( $languages_experience as $key => $val ):?>
<option value="<?= $key;?>"><?= $val;?></option>
<? endforeach; endif;
?>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="countries" class="col-12 text-left text-bold"><?= ucfirst( $lang['w-jakim-kraju-szukasz-pracy'] );?> (max. 6)</label>
<div class="col-12">
<select name="countries[]" class="form-control countries" multiple placeholder="<?= $lang['podaj-kraj'];?>" required >
<?
$countries = \front\factory\Globelus::countries();
if ( is_array( $countries ) ): foreach ( $countries as $country ):?>
<option value="<?= $country['id'];?>"><?= $country['name'];?></option>
<? endforeach; endif;
?>
</select>
</div>
</div>
</div>
</div>
<div class="row voivodeships" style="display: none;">
<div class="col-12">
<div class="form-group row">
<label form="voivodeships" class="col-12 text-left text-bold">W jakim województwie szukasz pracy?</label>
<div class="col-12">
<select name="voivodeships[]" class="form-control voivodeships" multiple placeholder="--- wybierz województwo ---">
<? $voivodeships = \front\factory\Globelus::get_voivodeships_list(); if ( is_array( $voivodeships ) ): foreach ( $voivodeships as $voivodeship ):?>
<option value="<?= $voivodeship[ 'id' ];?>"><?= $voivodeship[ 'name' ];?></option>
<? endforeach; endif;?>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="status_of_availability" class="col-12 text-left text-bold"><?= ucfirst( $lang['dostepnosc'] );?>:</label>
<div class="col-12 col-md-6">
<select name="status_of_availability" id="status_of_availability" class="form-control" placeholder="<?= $lang['wybierz'];?>">
<?
$status = \front\factory\Globelus::availability_status();
if ( is_array( $status ) ): foreach ( $status as $key => $val ):?>
<option value="<?= $key;?>"><?= $val;?></option>
<? endforeach; endif;
?>
</select>
</div>
<div class="col-12 col-md-6">
<div id="date-of-availability-content" style="display: none;">
<div class="form-group row">
<div class="col-12 col-md-6 input-icon date_of_availability">
<input type="text" id="date_of_availability" name="date_of_availability" class="form-control date" value="">
<i class="fa fa-calendar"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="experience_abroad" class="col-12 text-left text-bold"><?= ucfirst( $lang['czy-masz-doswiadczenie-w-pracy-za-granica'] );?></label>
<div class="col-12">
<select name="experience_abroad" class="form-control" required >
<option value="">--- wybierz ---</option>
<option value="0">nie</option>
<option value="1">tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="accommodation" class="col-12 text-left text-bold"><?= ucfirst( $lang['czy-potrzebujesz-zakwaterowania'] );?></label>
<div class="col-12">
<select name="accommodation" class="form-control" required >
<option value="">--- wybierz ---</option>
<option value="0">nie</option>
<option value="1">tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="driving_license" class="col-12 text-left text-bold"><?= ucfirst( $lang['czy-posiadasz-prawo-jazdy'] );?></label>
<div class="col-12">
<select name="driving_license" class="form-control" required >
<option value="">--- wybierz ---</option>
<option value="0">nie</option>
<option value="1">tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="own_car" class="col-12 text-left text-bold"><?= ucfirst( $lang['czy-dysponujesz-wlasnym-samochodem'] );?></label>
<div class="col-12">
<select name="own_car" class="form-control" required >
<option value="">--- wybierz ---</option>
<option value="0">nie</option>
<option value="1">tak</option>
</select>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="form-group row">
<label form="other_information" class="col-12 text-left text-bold"><?= ucfirst( $lang['kandydat-edycja-inne'] );?></label>
<div class="col-12">
<textarea name="other_information" id="other_information"></textarea>
</div>
</div>
</div>
</div>
<hr/>
<div class="step-title">
<?= ucfirst( $lang['krok'] );?> 3 - <span><?= $lang['kandydat-profil-krok-3-opis'];?></span>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="cv" class="col-12 col-sm-4"><?= strtoupper( $lang['cv'] );?> (max. 5mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="cv" name="cv" required >
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<label form="avatar" class="col-12 col-sm-4"><?= ucfirst( $lang['zdjecie'] );?> (max. 1mb):</label>
<div class="col-12 col-sm-8 pt10">
<input type="file" id="avatar" name="avatar">
</div>
</div>
</div>
</div>
<div class="form-group row agremment-profile">
<div class="col-12">
<input type="checkbox" id="agremment-profile" name="agremment_profile" required > <?= $lang['rejestracja-zgoda-na-wyswietlenie-profilu'];?>
</div>
</div>
<div class="form-group row agremment-marketing">
<div class="col-12">
<input type="checkbox" id="agremment-marketing" name="agremment_marketing" required > Wyrażam zgodę na kontakt mailowy i/lub telefoniczny ze strony globelus.pl
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<div class="form-group row">
<div class="col-12 mt20">
<input type="submit" value="<?= ucfirst( $lang['zatwierdz'] );?>" class="btn btn-success">
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/datepicker/css/bootstrap-datepicker.standalone.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/selectize/css/selectize.bootstrap3.css">
<link class="footer" rel="stylesheet" type="text/css" href="/plugins/summernote/summernote-lite.css">
<script class="footer" type="text/javascript" src="/plugins/summernote/summernote-lite.js"></script>
<script class="footer" type="text/javascript" src="/plugins/summernote/lang/summernote-pl-PL.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/moment/moment.js"></script>
<script class="footer" type="text/javascript" src="/libraries/framework/vendor/plugins/moment/pl.js"></script>
<script class="footer" type="text/javascript" src="/plugins/datepicker/js/bootstrap-datepicker.js"></script>
<script class="footer" type="text/javascript" src="/plugins/datepicker/locales/bootstrap-datepicker.pl.min.js"></script>
<script class="footer" type="text/javascript" src="/plugins/selectize/js/selectize.js"></script>
<script class="footer" type="text/javascript">
$( function()
{
$( '.positions_1 select.positions' ).selectize({
maxItems: 1
});
$( 'body' ).on( 'submit', '#user-panel form', function( e )
{
if(
$( "#user-panel form #cv" )[0].files.length
&&
$( '#user-panel form #cv' )[0].files[0].type != 'application/msword'
&&
$( '#user-panel form #cv' )[0].files[0].type != 'application/rtf'
&&
$( '#user-panel form #cv' )[0].files[0].type != 'text/pdf'
&&
$( '#user-panel form #cv' )[0].files[0].type != 'application/pdf'
&&
$( '#user-panel form #cv' )[0].files[0].type != 'application/vnd.oasis.opendocument.text'
&&
$( '#user-panel form #cv' )[0].files[0].type != 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
&&
$( '#user-panel form #cv' )[0].files[0].type != 'image/jpeg' )
{
e.preventDefault();
$.alert(
{
title: '<?= ucfirst( $lang['blad'] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['cv-niedozwolony-format-pliku'];?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
if(
$( "#user-panel form #avatar" )[0].files.length
&&
$( '#user-panel form #avatar' )[0].files[0].type != 'image/jpeg'
&&
$( '#user-panel form #avatar' )[0].files[0].type != 'image/png' )
{
e.preventDefault();
$.alert(
{
title: '<?= ucfirst( $lang['blad'] );?>',
icon: 'fa fa-exclamation',
content: '<?= $lang['zdjecie-niedozwolony-format-pliku'];?>',
type: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
columnClass: 'large',
theme: 'modern',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
});
$( '#other_information' ).summernote({
height: 200,
lang: 'pl-PL',
toolbar: [
['font', ['bold', 'underline', 'clear']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']]
]
});
$( 'body' ).on( 'change', '#status_of_availability', function()
{
var status = $( this ).val();
if ( status != 2 )
$( '#date-of-availability-content' ).hide();
else
$( '#date-of-availability-content' ).show();
});
$( 'body' ).on( click_event, '.input-icon .fa', function()
{
$( this ).parent().children( 'input' ).focus();
});
$( 'body' ).on( click_event, 'input[name="categories[]"]', function()
{
if ( $( this ).is( ':checked' ) )
$( 'input[name="categories[]"]' ).removeAttr( 'required' );
else
$( 'input[name="categories[]"]' ).attr( 'required', 'required' );
});
$( 'body' ).on( click_event, '#inexperience', function()
{
if ( $( this ).is( ':checked' ) )
$( '.positions select' ).attr( 'readonly', 'readonly' );
else
$( '.positions select' ).removeAttr( 'readonly' );
});
/* dodaj kolejne stanowiska */
$( 'body' ).on( 'change', '.positions select', function( )
{
var counter = parseInt( $( this ).attr( 'counter' ) );
if ( counter < 3 && $( '.positions_' + counter + ' select.positions' ).val( ) !== '' && $( '.positions_' + counter + ' select.positions_experience' ).val( ) !== '' && !$( '.positions_' + ( counter + 1 ) ).length )
{
$( '.positions_' + counter ).after( '<div class="row positions_' + ( counter + 1 ) + ' positions" counter="' + ( counter + 1 ) + '">'
+ '<div class="col-12 col-md-6 mb5">'
+ '<select counter="' + ( counter + 1 ) + '" name="positions[]" class="form-control positions" placeholder="wybierz stanowisko">'
+ '<option value="">--- <?= $lang['wybierz']; ?> ---</option>'
<? if ( is_array( $positions ) ): foreach ( $positions as $position_single ):?>
+ '<option value="<?= $position_single['id']; ?>"><?= htmlspecialchars( $position_single['name'] );?><\/option>'
<? endforeach; endif;?>
+ '<\/select>'
+ '<\/div>'
+ '<div class="col-12 col-md-6 mb5">'
+ '<select name="positions_experience[]" counter="' + ( counter + 1 ) + '" class="form-control">'
+ '<option value="">--- <?= $lang[ 'wybierz' ];?> ---<\/option>'
<? $positions_experience = \front\factory\Globelus::positions_experience(); if ( is_array( $positions_experience ) ): foreach ( $positions_experience as $key => $val ):?>
+ '<option value="<?= $key;?>"><?= $val;?><\/option>'
<? endforeach; endif;?>
+ '<\/select>'
+ '<\/div>'
+ '<\/div>' );
$( '.positions_' + ( counter + 1 ) + ' select.positions' ).selectize({
maxItems: 1
});
};
});
$( 'body' ).on( 'change', '.languages input, .languages select', function()
{
var counter = parseInt( $( this ).attr( 'counter' ) );
if (
counter < 3
&&
$( '.languages_' + counter + ' input' ).val() !== ''
&&
$( '.languages_' + counter + ' select' ).val() !== ''
&&
!$( '.languages_' + ( counter + 1 ) ).length )
{
$( '.languages_' + counter ).after( '<div class="row languages_' + ( counter + 1 ) + ' languages" counter="' + ( counter + 1 ) + '">'
+ '<div class="col-12 col-md-6 mb5">'
+ '<input type="text" counter="' + ( counter + 1 ) + '" name="languages[]" class="form-control" placeholder="<?= $lang['jezyk'];?>" value="">'
+ '<\/div>'
+ '<div class="col-12 col-md-6 mb5">'
+ '<select name="languages_experience[]" counter="' + ( counter + 1 ) + '" class="form-control">'
+ '<option value="">--- <?= $lang['wybierz'];?> ---</option>'
<?
$languages_experience = \front\factory\Globelus::languages_experience();
if ( is_array( $languages_experience ) ): foreach ( $languages_experience as $key => $val ):?>
+ '<option value="<?= $key;?>"><?= $val;?></option>'
<? endforeach; endif;
?>
+ '<\/select>'
+ '<\/div>'
+ '<\/div>' );
};
});
$( 'input[type="text"].date-birth' ).datepicker({
format: "dd.mm.yyyy",
language: 'pl'
});
$( 'input[type="text"].date' ).datepicker({
format: "yyyy-mm-dd",
language: 'pl'
});
$( '.countries' ).selectize({
maxItems: 6
});
$( 'select.voivodeships' ).selectize();
$( 'body' ).on( 'change', '.countries', function()
{
if ( $.inArray( "1", $( this ).val() ) > -1 )
{
$( '.row.voivodeships' ).show();
}
else
{
$( '.row.voivodeships' ).hide();
}
});
});
</script>