first commit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php $results = array(); ?>
|
||||
|
||||
<?php foreach ($points as $point):
|
||||
?>
|
||||
|
||||
<?php
|
||||
$created_at = explode(" ", $point -> getCreatedAt());
|
||||
$date = explode("-", $created_at[0]);
|
||||
?>
|
||||
|
||||
<?php $row['created_at']=$date[2]."-".$date[1]."-".$date[0]." ".$created_at[1]
|
||||
?>
|
||||
|
||||
<?php
|
||||
$change = $point -> getChangePointsVarchar();
|
||||
if ($change{0} == "-") {
|
||||
$row['change_points'] = "<span style='color:red'>" . $point -> getChangePointsVarchar() . "</span>";
|
||||
} else {
|
||||
$row['change_points'] = "<span style='color:green'>" . $point -> getChangePointsVarchar() . "</span>";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $row['points'] = $point -> getPoints(); ?>
|
||||
|
||||
<?php
|
||||
if ($point -> getAdminId()) {
|
||||
$row['change'] = __('administrator');
|
||||
}
|
||||
|
||||
if ($point -> getOrderId()) {
|
||||
$row['change'] = link_to(__("Zam") . ": " . $point -> getOrderNumber(), "@stOrderListShowForUser?id=" . $point -> getOrderId() . '&hash_code=' . $point -> getOrderHash());
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $row['description'] = __($point -> getDescription()); ?>
|
||||
|
||||
<?php $results[] = $row; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php
|
||||
$config_points = stConfig::getInstance('stPointsBackend');
|
||||
$config_points -> setCulture(sfContext::getInstance() -> getUser() -> getCulture());
|
||||
|
||||
?>
|
||||
|
||||
<?php $smarty -> assign('user_points', stPoints::getLoginStatusPoints()); ?>
|
||||
|
||||
<?php $smarty -> assign('release_points', stPoints::isReleasePointsSystemForUser()); ?>
|
||||
|
||||
<?php $smarty -> assign('points_shortcut', $config_points -> get('points_shortcut', null, true)); ?>
|
||||
|
||||
<?php $smarty -> assign('points_release_value', $config_points -> get('points_release_value')); ?>
|
||||
|
||||
<?php $smarty -> assign('results', $results); ?>
|
||||
|
||||
<?php $smarty->display('points_points_list.html')
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php st_theme_use_stylesheet('stUser.css') ?>
|
||||
|
||||
<?php $smarty->assign('user_panel_icon', st_theme_image_tag('user_panel_icon.png')) ?>
|
||||
|
||||
<?php $smarty->assign('my_account', link_to(__('Moje konto'), 'stUserData/userPanel')) ?>
|
||||
|
||||
<?php $smarty->assign('user_panel_menu', st_get_component('stUserData', 'userPanelMenu')) ?>
|
||||
|
||||
<?php if ($pager->getNbResults()): ?>
|
||||
|
||||
<?php $smarty->assign('pager', $pager->getNbResults()) ?>
|
||||
|
||||
<?php $smarty->assign('pager_results', st_get_partial('stPointsFrontend/points_list', array('points' => $pager->getResults(), 'smarty' => $smarty))) ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$config_points = stConfig::getInstance('stPointsBackend');
|
||||
$config_points -> setCulture(sfContext::getInstance() -> getUser() -> getCulture());
|
||||
?>
|
||||
<?php $smarty -> assign('user_points', stPoints::getLoginStatusPoints()); ?>
|
||||
|
||||
<?php $smarty -> assign('release_points', stPoints::isReleasePointsSystemForUser()); ?>
|
||||
|
||||
<?php $smarty -> assign('points_shortcut', $config_points -> get('points_shortcut', null, true)); ?>
|
||||
|
||||
<?php $smarty -> assign('points_release_value', $config_points -> get('points_release_value')); ?>
|
||||
|
||||
<?php $smarty->display('points_list.html') ?>
|
||||
@@ -0,0 +1,38 @@
|
||||
{set layout="one_column_layout"}
|
||||
|
||||
<div id="st_application-st_basket-index" class="box roundies">
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
<li class="st_first">
|
||||
<a href="/user_data/userPanel">{__ text="Moje konto"}</a>
|
||||
</li>
|
||||
<li class="st_selected">
|
||||
<a href="/points/list">{__ text="Punkty"}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="st_content order_padding">
|
||||
{if isset($pager)}
|
||||
{$pager_results}
|
||||
{else}
|
||||
<div class="roundies box_form">
|
||||
<h3>{__ text="Twoje punkty"}</h3>
|
||||
<div class="content">
|
||||
<br/>
|
||||
{__ text="Aktualnie posiadasz"}: <b>{$user_points} {$points_shortcut}</b>
|
||||
{if $release_points!="release_off" && $release_points!="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów nie został osiągnięty"} - {__ text="do aktywacji brak"}: <b>{$release_points} {$points_shortcut}</b>. <br/>{__ text="Po zgromadzeniu łącznie"} <b>{$points_release_value} {$points_shortcut}</b> {__ text="będzie można dokonywać zakupów za punkty."} <br/>{__ text="Aktywacja jest jednorazowa."}<br/> {__ text="Po przekroczeniu progu aktywacji, korzystanie z systemu punktowego nie będzie ograniczane."}
|
||||
{elseif $release_points=="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów"}: <b>{__ text="osiągnięty"}</b>
|
||||
{/if}
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<div class="roundies box_form">
|
||||
<h3>{__ text="Twoje punkty"}</h3>
|
||||
<div class="content">
|
||||
<br/>
|
||||
{__ text="Aktualnie posiadasz"}: <b>{$user_points} {$points_shortcut}</b>
|
||||
{if $release_points!="release_off" && $release_points!="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów nie został osiągnięty"} - {__ text="do aktywacji brak"}: <b>{$release_points} {$points_shortcut}</b>. <br/>{__ text="Po zgromadzeniu łącznie"} <b>{$points_release_value} {$points_shortcut}</b> {__ text="będzie można dokonywać zakupów za punkty."} <br/>{__ text="Aktywacja jest jednorazowa."}<br/> {__ text="Po przekroczeniu progu aktywacji, korzystanie z systemu punktowego nie będzie ograniczane."}
|
||||
{elseif $release_points=="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów"}: <b>{__ text="osiągnięty"}</b>
|
||||
{/if}
|
||||
<br/><br/>
|
||||
</div></div>
|
||||
|
||||
<div class="roundies box_form">
|
||||
<h3>{__ text="Lista operacji"}</h3>
|
||||
<div class="content">
|
||||
<br/>
|
||||
<table class="st_tabular-list roundies order_table" cellspacing="0" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center; width: 120px;'><span>{__ text="Data"}</span></th>
|
||||
<th style='text-align:right; width: 80px;'><span>{__ text="Operacja"}</span></th>
|
||||
<th style='text-align:right; width: 80px;'><span>{__ text="Stan konta"}</span></th>
|
||||
<th style='text-align:center; width: 200px;'><span>{__ text="Zmienił"}</span></th>
|
||||
<th style='text-align:center;'><span>{__ text="Opis"}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach key=row item=points from=$results}
|
||||
|
||||
<tr>
|
||||
<td>{$points.created_at}</td>
|
||||
<td style='text-align:right;'>{$points.change_points}</td>
|
||||
<td style='text-align:right;'>{$points.points}</td>
|
||||
<td style='text-align:center;'>{$points.change}</td>
|
||||
<td style='text-align:center;'>{$points.description}</td>
|
||||
</tr>
|
||||
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div></div>
|
||||
@@ -0,0 +1,38 @@
|
||||
{set layout="one_column_layout"}
|
||||
|
||||
<div id="st_application-st_basket-index" class="box roundies">
|
||||
<div id="st_navigation_bar-user" class="st_navigation_bar_user">
|
||||
<ul>
|
||||
<li class="st_first">
|
||||
<a href="/user_data/userPanel">{__ text="Moje konto"}</a>
|
||||
</li>
|
||||
<li class="st_selected">
|
||||
<a href="/points/list">{__ text="Punkty"}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="st_content order_padding">
|
||||
{if isset($pager)}
|
||||
{$pager_results}
|
||||
{else}
|
||||
<div class="roundies box_form">
|
||||
<h3>{__ text="Twoje punkty"}</h3>
|
||||
<div class="content">
|
||||
<br/>
|
||||
{__ text="Aktualnie posiadasz"}: <b>{$user_points} {$points_shortcut}</b>
|
||||
{if $release_points!="release_off" && $release_points!="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów nie został osiągnięty"} - {__ text="do aktywacji brak"}: <b>{$release_points} {$points_shortcut}</b>. <br/>{__ text="Po zgromadzeniu łącznie"} <b>{$points_release_value} {$points_shortcut}</b> {__ text="będzie można dokonywać zakupów za punkty."} <br/>{__ text="Aktywacja jest jednorazowa."}<br/> {__ text="Po przekroczeniu progu aktywacji, korzystanie z systemu punktowego nie będzie ograniczane."}
|
||||
{elseif $release_points=="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów"}: <b>{__ text="osiągnięty"}</b>
|
||||
{/if}
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<div class="roundies box_form">
|
||||
<h3>{__ text="Twoje punkty"}</h3>
|
||||
<div class="content">
|
||||
<br/>
|
||||
{__ text="Aktualnie posiadasz"}: <b>{$user_points} {$points_shortcut}</b>
|
||||
{if $release_points!="release_off" && $release_points!="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów nie został osiągnięty"} - {__ text="do aktywacji brak"}: <b>{$release_points} {$points_shortcut}</b>. <br/>{__ text="Po zgromadzeniu łącznie"} <b>{$points_release_value} {$points_shortcut}</b> {__ text="będzie można dokonywać zakupów za punkty."} <br/>{__ text="Aktywacja jest jednorazowa."}<br/> {__ text="Po przekroczeniu progu aktywacji, korzystanie z systemu punktowego nie będzie ograniczane."}
|
||||
{elseif $release_points=="release_on"}
|
||||
<br/>
|
||||
{__ text="Próg aktywacji punktów"}: <b>{__ text="osiągnięty"}</b>
|
||||
{/if}
|
||||
<br/><br/>
|
||||
</div></div>
|
||||
|
||||
<div class="roundies box_form">
|
||||
<h3>{__ text="Lista operacji"}</h3>
|
||||
<div class="content">
|
||||
<br/>
|
||||
<table class="st_tabular-list roundies order_table" cellspacing="0" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center; width: 120px;'><span>{__ text="Data"}</span></th>
|
||||
<th style='text-align:right; width: 80px;'><span>{__ text="Operacja"}</span></th>
|
||||
<th style='text-align:right; width: 80px;'><span>{__ text="Stan konta"}</span></th>
|
||||
<th style='text-align:center; width: 200px;'><span>{__ text="Zmienił"}</span></th>
|
||||
<th style='text-align:center;'><span>{__ text="Opis"}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach key=row item=points from=$results}
|
||||
|
||||
<tr>
|
||||
<td>{$points.created_at}</td>
|
||||
<td style='text-align:right;'>{$points.change_points}</td>
|
||||
<td style='text-align:right;'>{$points.points}</td>
|
||||
<td style='text-align:center;'>{$points.change}</td>
|
||||
<td style='text-align:center;'>{$points.description}</td>
|
||||
</tr>
|
||||
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div></div>
|
||||
Reference in New Issue
Block a user