first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<?php echo $username; ?>
|
||||
6
apps/backend/modules/stUser/templates/_company.php
Normal file
6
apps/backend/modules/stUser/templates/_company.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php use_helper('stText'); ?>
|
||||
<?php if($company && $company!="-"): ?>
|
||||
<?php echo '<a class="list_tooltip" href="'.st_url_for('stUser/edit?id='.$id).'" title="'.$company.'">'.truncate_text($company, '30', '...').'</a>'; ?>
|
||||
<?php else: ?>
|
||||
<?php echo "-"; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @var sfGuardUser $sf_guard_user
|
||||
*/
|
||||
?>
|
||||
<div>
|
||||
<?php if ($sf_guard_user->getDefaultUserBillingData()): ?>
|
||||
<?php st_include_partial('user_data', array('user_data' => $sf_guard_user->getDefaultUserBillingData())); ?>
|
||||
<?php echo st_get_admin_button('edit', __('Edytuj'), "@stUser?action=userDataBillingEdit&user_id=".$sf_guard_user->getId()) ?>
|
||||
<?php else: ?>
|
||||
<?php echo st_get_admin_button('edit', __("Uzupełnij dane"), "@stUser?action=userDataBillingEdit&user_id=".$sf_guard_user->getId()); ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @var sfGuardUser $sf_guard_user
|
||||
*/
|
||||
?>
|
||||
<div>
|
||||
<?php if ($sf_guard_user->getDefaultUserDeliveryData()): ?>
|
||||
<?php st_include_partial('user_data', array('user_data' => $sf_guard_user->getDefaultUserDeliveryData())); ?>
|
||||
<?php echo st_get_admin_button('edit', __('Edytuj'), "@stUser?action=userDataDeliveryEdit&user_id=".$sf_guard_user->getId()) ?>
|
||||
<?php else: ?>
|
||||
<?php echo st_get_admin_button('edit', __("Uzupełnij dane"), "@stUser?action=userDataDeliveryEdit&user_id=".$sf_guard_user->getId()); ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo st_tokenizer_input_tag($options['control_name'], array(), $defaults, array('tokenizer' => array('preventDuplicates' => true, 'hintText' => __('Wpisz nazwę szukanej grupy'))));
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo input_tag('filters[filter_company]', isset($filters['filter_company']) ? $filters['filter_company'] : '', 'size=15') ?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo input_tag('filters[filter_full_name]', isset($filters['filter_full_name']) ? $filters['filter_full_name'] : '', 'size=15') ?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php echo select_tag('filters[is_admin_confirm]', options_for_select(array(1 => __('tak', array(), 'stAdminGeneratorPlugin'), 0 => __('nie', array(), 'stAdminGeneratorPlugin')), isset($filters['is_admin_confirm']) ? $filters['is_admin_confirm'] : null, array (
|
||||
'include_custom' => __("---", null, 'stAdminGeneratorPlugin'),
|
||||
)), array (
|
||||
)) ?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use_helper('stWholesale');
|
||||
|
||||
echo wholesale_group_select_tag('filters[wholesale_list]', isset($filters['wholesale_list']) ? $filters['wholesale_list'] : null, array('include_custom' => '---'));
|
||||
9
apps/backend/modules/stUser/templates/_fullName.php
Normal file
9
apps/backend/modules/stUser/templates/_fullName.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php use_helper('stTooltip'); ?>
|
||||
<?php if($full_name && $full_name!='-'): ?>
|
||||
<a class="list_tooltip bs-d-inline-flex bs-align-items-center align-middle" href="<?php echo st_url_for('stUser/edit?id='.$id) ?>" title="<?php echo $full_name ?>">
|
||||
<?php echo st_admin_get_icon('user', ['class' => 'bs-me-1', 'style' => 'min-width: 20px']) ?>
|
||||
<?php echo st_admin_truncate_text($full_name) ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php echo ""; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo link_to($user->getUsername(), 'stUser/edit?id='.$user->getId())?>
|
||||
@@ -0,0 +1,2 @@
|
||||
<span style="font-size: 14px;"><?php echo $user->getPoints()." ".$points_shortcut;?></span>
|
||||
<?php echo link_to(__('zmień'), 'stUser/pointsEdit?id='.$user->getId())?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
if($user->getPointsAvailable()==1){
|
||||
echo "<b style='color:green;'>".__('włączona')."</b> / ";
|
||||
echo link_to(__('wyłącz'), 'stUser/pointsAvailable?on=0&user_id='.$user->getId());
|
||||
} else{
|
||||
echo "<b style='color:red;'>".__('wyłączona')."</b> / ";
|
||||
echo link_to(__('włącz'), 'stUser/pointsAvailable?on=1&user_id='.$user->getId());
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php if(stPoints::isReleasePointsSystemForUser($user->getId())=="release_on"){
|
||||
echo "<b style='color:green;'>".__('osiągnięty')."</b>";
|
||||
echo " (".link_to(__('dezaktywuj'), 'stUser/pointsRelease?on=0&user_id='.$user->getId()).")";
|
||||
}elseif(stPoints::isReleasePointsSystemForUser($user->getId())=="release_off"){
|
||||
echo __('nieokreślony');
|
||||
}else{
|
||||
echo __('do aktywacji brak').": <b style='color:red;'>".stPoints::isReleasePointsSystemForUser($user->getId())." ".$points_shortcut."</b>";
|
||||
echo " (".link_to(__('aktywuj'), 'stUser/pointsRelease?on=1&user_id='.$user->getId()).")";
|
||||
}
|
||||
?>
|
||||
6
apps/backend/modules/stUser/templates/_isDefault.php
Normal file
6
apps/backend/modules/stUser/templates/_isDefault.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php if($user_data->getIsDefault()==1): ?>
|
||||
<?php echo st_admin_checkbox_tag('user_data[is_default]', $user_data->getIsDefault(), $user_data->getIsDefault(), array('disabled' => 'disabled')); ?>
|
||||
<?php echo input_hidden_tag('user_data[is_default]', '1'); ?>
|
||||
<?php else: ?>
|
||||
<?php echo st_admin_checkbox_tag('user_data[is_default]', 1, $user_data->getIsDefault()); ?>
|
||||
<?php endif; ?>
|
||||
3
apps/backend/modules/stUser/templates/_last_login.php
Normal file
3
apps/backend/modules/stUser/templates/_last_login.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
echo $sf_guard_user->getLastLogin() ? st_format_date($sf_guard_user->getLastLogin()) : __('Brak');
|
||||
@@ -0,0 +1 @@
|
||||
<textarea class="support" style="width: 300px;" id="sf_guard_user_operation_description" name="sf_guard_user[operation_description]"><?php echo $description; ?></textarea>
|
||||
1
apps/backend/modules/stUser/templates/_password.php
Normal file
1
apps/backend/modules/stUser/templates/_password.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php echo input_password_tag('sf_guard_user[password]', '', array('control_name' => 'sf_guard_user[password]', 'value' => '')) ?>
|
||||
1
apps/backend/modules/stUser/templates/_passwordBis.php
Normal file
1
apps/backend/modules/stUser/templates/_passwordBis.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php echo input_password_tag('sf_guard_user[password_bis]', '', array('control_name' => 'sf_guard_user[password_bis]')) ?>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php use_helper('stWidgets'); ?>
|
||||
|
||||
<?php echo st_open_widget('User', __('Klienci')) ?>
|
||||
|
||||
<div style="float:right;">
|
||||
|
||||
<?php echo __('Ostatnie', null, 'stBackendMain'); ?>:
|
||||
|
||||
<?php if($date_type == "day"): ?>
|
||||
<b><?php echo link_to_remote(__('24h', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=day',)) ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo link_to_remote(__('24h', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=day',)) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($date_type == "week"): ?>
|
||||
<b><?php echo link_to_remote(__('7 dni', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=week',)) ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo link_to_remote(__('7 dni', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=week',)) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($date_type == "month"): ?>
|
||||
<b><?php echo link_to_remote(__('miesiąc', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=month',)) ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo link_to_remote(__('miesiąc', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=month',)) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($date_type == "lastlog"): ?>
|
||||
<b><?php echo link_to_remote(__('logowanie', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=lastlog',)) ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo link_to_remote(__('logowanie', null, 'stBackendMain'), array('update'=>'register-user-widget', 'url'=>'stUser/registerUserWidget?date_type=lastlog',)) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo st_link_to(__('Nowi Klienci'), 'stUser/'); ?> (<?php echo $userQuantity; ?>)
|
||||
|
||||
|
||||
<table class="st_record_list" cellspacing="0" width="100%">
|
||||
<tbody>
|
||||
|
||||
<?php if($userInfo!=""): ?>
|
||||
|
||||
<?php foreach ($userInfo as $index => $user): ?>
|
||||
<tr class="<?php
|
||||
$date = explode(" ",$user['created_at']);
|
||||
if($date[0]== date('Y-m-d')){ echo ' st_row-new';}else{
|
||||
echo $index % 2 ? 'st_row-highlight' : 'st_row-no-highlight';
|
||||
};
|
||||
?>">
|
||||
|
||||
<td>
|
||||
<div style="text-align: left">
|
||||
<?php if ($user['id']): ?>
|
||||
|
||||
<?php if ($user['company']!=""): ?>
|
||||
<?php echo $user['company'] ?>
|
||||
<?php else: ?>
|
||||
<?php echo $user['fullname'] ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($user['id']): ?>
|
||||
<?php echo st_external_link_to(truncate_text($user['username'], 25), 'user/edit?id=' . $user['id']) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<tr><td><?php __('Brak klientów') ?></td></tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php echo st_close_widget();?>
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php echo input_hidden_tag('discount_user[sf_guard_user_id]',$forward_parameters['user_id'])?>
|
||||
<?php echo ($discount_user->getSfGuardUser())?$discount_user->getSfGuardUser()->getUsername():sfGuardUserPeer::retrieveByPk($forward_parameters['user_id'])->getUsername(); ?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php if($id != ""): ?>
|
||||
<?php if($admin_confirm == 1): ?>
|
||||
<span style="color: green;"><?php echo __("Dane zostały zweryfikowane.") ?></span>
|
||||
<?php echo input_hidden_tag('partner_data[is_admin_confirm]', 1); ?>
|
||||
<?php else: ?>
|
||||
<span style="color: red;"><?php echo link_to(__("Oznacz klienta jako zweryfikowanego."),"/user/updateAdminConfirm?id=".$id) ?></span>
|
||||
<?php echo input_hidden_tag('partner_data[is_admin_confirm]', 0); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
9
apps/backend/modules/stUser/templates/_userConfirm.php
Normal file
9
apps/backend/modules/stUser/templates/_userConfirm.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php if($id != ""): ?>
|
||||
<?php if($confirm == 1): ?>
|
||||
<span style="color: green;"><?php echo __("Dane zostały potwierdzone.") ?></span>
|
||||
<?php echo input_hidden_tag('partner_data[is_confirm]', 1); ?>
|
||||
<?php else: ?>
|
||||
<span style="color: red;"><?php echo link_to(__("Zatwierdz dane."),"/user/updateConfirm?id=".$id) ?></span>
|
||||
<?php echo input_hidden_tag('partner_data[is_confirm]', 0); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
13
apps/backend/modules/stUser/templates/_userInfo.php
Normal file
13
apps/backend/modules/stUser/templates/_userInfo.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php if($id != ""): ?>
|
||||
|
||||
<div style="width: 200px;margin-top: 11px;float: left;">
|
||||
<h3><?php echo __('Dane bilingowe') ?></h3>
|
||||
<?php st_include_partial('user_data', array('user_data' => $user_data_billing)); ?>
|
||||
</div>
|
||||
<div style="width: 240px;margin-top: 11px;margin-left: 30px; float: left;">
|
||||
<h3><?php echo __('Dane dostawy') ?></h3>
|
||||
<?php st_include_partial('user_data', array('user_data' => $user_data_delivery)); ?>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
|
||||
<?php endif; ?>
|
||||
1
apps/backend/modules/stUser/templates/_userOrder.php
Normal file
1
apps/backend/modules/stUser/templates/_userOrder.php
Normal file
@@ -0,0 +1 @@
|
||||
<?php echo link_to(__("Pokaż zamówienia klienta."),"/order?filters[filter_client]=".$username) ?>
|
||||
63
apps/backend/modules/stUser/templates/_userPoints.php
Normal file
63
apps/backend/modules/stUser/templates/_userPoints.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php use_helper('stCurrency'); ?>
|
||||
<?php if($id != "" && $transactions):
|
||||
?>
|
||||
|
||||
<table cellspacing="0" cellpadding="3" class="st_record_list">
|
||||
<tr>
|
||||
<th style='text-align:center;width:140px;'><?php echo __('Data') ?></th>
|
||||
<th style='text-align:right; width:70px;'><?php echo __('Operacja') ?></th>
|
||||
<th style='text-align:right; width:70px;'><?php echo __('Stan konta') ?></th>
|
||||
<th style='text-align:center; width:200px;'><?php echo __('Zmienił') ?></th>
|
||||
<th style='text-align:center; width:225px;'><?php echo __('Opis') ?> </th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
foreach ($transactions as $transaction) {
|
||||
$i++;
|
||||
|
||||
if($i <= 5){
|
||||
echo "<tr>";
|
||||
echo "<td style='text-align:center;'>".$transaction -> getCreatedAt()."</td>";
|
||||
|
||||
$change = $transaction -> getChangePointsVarchar();
|
||||
if ($change{0} == "-") {
|
||||
echo "<td style='text-align:right;'><span style='color:red'>" . $transaction -> getChangePointsVarchar() . "</span></td>";
|
||||
} else {
|
||||
echo "<td style='text-align:right;'><span style='color:green'>" . $transaction -> getChangePointsVarchar() . "</span></td>";
|
||||
}
|
||||
|
||||
echo "<td style='text-align:right;'>" . $transaction -> getPoints(). "</td>";
|
||||
|
||||
if($transaction -> getAdminId() && !$transaction -> getOrderId()){
|
||||
echo "<td style='text-align:center;'>" . link_to(__($transaction ->getSfGuardUserRelatedByAdminId() -> getUsername()),"sfGuardUser/edit?id=".$transaction ->getSfGuardUserRelatedByAdminId() -> getId()). "</td>";
|
||||
}
|
||||
|
||||
if($transaction -> getOrderId()){
|
||||
echo "<td style='text-align:center;'>" . link_to(__("Zam").": ".$transaction ->getOrderNumber(),"/order/edit?id=".$transaction ->getOrderId()). "</td>";
|
||||
}
|
||||
|
||||
$i18n = sfContext::getInstance() -> getI18n();
|
||||
|
||||
echo "<td style='text-align:center;'>" . $i18n -> __($transaction -> getDescription()). "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
if($i == 5){
|
||||
?>
|
||||
|
||||
<tr><th style='text-align:center;'><a href="/backend.php/user/userPointsList/user_id/<?php echo $user->getId(); ?>/type/desc/page/1"> <?php echo __('pokaż starsze'); ?> </a></th><th style='text-align:center;' colspan="4"></th></tr>
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<?php else: ?>
|
||||
<?php echo __('Brak operacji na koncie') ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1 @@
|
||||
<textarea class="support" style="width: 300px;" id="sf_guard_user_operation_description" name="sf_guard_user[operation_description]"><?php echo $description; ?></textarea>
|
||||
@@ -0,0 +1 @@
|
||||
<input type="text" class="support" size="7" value="<?php echo $points; ?>" id="sf_guard_user_points" name="sf_guard_user[user_points]">
|
||||
35
apps/backend/modules/stUser/templates/_user_data.php
Normal file
35
apps/backend/modules/stUser/templates/_user_data.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<address style="font-style: normal">
|
||||
<?php if ($user_data->getCompany()) : ?>
|
||||
<p>
|
||||
<?php echo $user_data->getCompany(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<p>
|
||||
<span class="st_order-address-name" style="font-weight: bold;"><?php echo $user_data->getFullName(); ?></span>
|
||||
</p>
|
||||
<p style="padding: 8px 0px;">
|
||||
<span class="st_order-address-street"><?php echo $user_data->getAddress(); ?></span><br />
|
||||
<?php if ($user_data->getAddressMore()) : ?>
|
||||
<span class="st_order-address-street"><?php echo $user_data->getAddressMore(); ?></span><br />
|
||||
<?php endif; ?>
|
||||
<?php if ($user_data->getRegion()) : ?>
|
||||
<span class="st_order-address-street"><?php echo $user_data->getRegion(); ?></span><br />
|
||||
<?php endif; ?>
|
||||
<span class="st_order-address-code"><?php echo $user_data->getCode() ?></span>
|
||||
<span class="st_order-address-town"><?php echo $user_data->getTown() ?></span>,
|
||||
<span class="st_order-address-country"><?php echo $user_data->getcountries() ?></span>
|
||||
<?php if ($user_data->getPesel()) : ?>
|
||||
<br><span class="st_order-address-town"><?php echo __('PESEL') ?> <?php echo $user_data->getPesel(); ?></span>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo __('Tel') ?>.: <?php echo $user_data->getPhone() ?>
|
||||
</p>
|
||||
<?php if ($user_data->getIsBilling() == 1) : ?>
|
||||
<?php if ($user_data->getVatNumber()) : ?>
|
||||
<p>
|
||||
<?php echo __('NIP') ?>: <?php echo $user_data->getVatNumber() ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</address>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
// auto-generated by sfPropelAdmin
|
||||
// date: 2013/11/26 10:43:46
|
||||
?>
|
||||
<?php $list_mode = $sf_user->getAttribute('userPointsList.mode', null, 'soteshop/stAdminGenerator/stUser/config'); ?>
|
||||
|
||||
<?php if ($list_mode != 'edit'): ?>
|
||||
<td class="column_created_at" style="">
|
||||
|
||||
<?php echo ($user_points->getCreatedAt() !== null && $user_points->getCreatedAt() !== '') ? st_format_date($user_points->getCreatedAt(), "dd-MM-yyyy H:mm") : '' ?>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td class="column_created_at" style="">
|
||||
<?php echo ($user_points->getCreatedAt() !== null && $user_points->getCreatedAt() !== '') ? st_format_date($user_points->getCreatedAt(), "dd-MM-yyyy H:mm") : '' ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($list_mode != 'edit'): ?>
|
||||
<td class="column_change_points_varchar" style="">
|
||||
|
||||
<?php echo $user_points->getChangePointsVarchar() ?>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td class="column_change_points_varchar" style="">
|
||||
<?php echo $user_points->getChangePointsVarchar() ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($list_mode != 'edit'): ?>
|
||||
<td class="column_points" style="">
|
||||
|
||||
<?php echo $user_points->getPoints() ?>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td class="column_points" style="">
|
||||
<?php echo $user_points->getPoints() ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($list_mode != 'edit'): ?>
|
||||
<td class="column_change" style="">
|
||||
|
||||
<?php echo st_points_change($user_points); ?>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td class="column_change" style="">
|
||||
<?php echo st_points_change($user_points, $list_mode); ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php if ($list_mode != 'edit'): ?>
|
||||
<td class="column_description" style="">
|
||||
|
||||
<?php
|
||||
$i18n = sfContext::getInstance() -> getI18n();
|
||||
echo $i18n -> __($user_points->getDescription());
|
||||
?>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td class="column_description" style="">
|
||||
<?php
|
||||
$i18n = sfContext::getInstance() -> getI18n();
|
||||
echo $i18n -> __($user_points->getDescription());
|
||||
?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
3
apps/backend/modules/stUser/templates/_username.php
Normal file
3
apps/backend/modules/stUser/templates/_username.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php use_helper('stTooltip'); ?>
|
||||
|
||||
<?php echo '<a class="list_tooltip" href="'.st_url_for('stUser/edit?id='.$id).'" title="'.$username.'">'.link_to(truncate_text($username, '70', '...'), 'stUser/edit?id='.$id); ?>
|
||||
3
apps/backend/modules/stUser/templates/_wholesale.php
Normal file
3
apps/backend/modules/stUser/templates/_wholesale.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
use_helper('stWholesale');
|
||||
echo wholesale_group_select_tag('sf_guard_user[wholesale]', $sf_guard_user->getWholesale());
|
||||
@@ -0,0 +1 @@
|
||||
<?php echo $sf_guard_user->getWholesale() ? ucfirst($sf_guard_user->getWholesale()) : ' ' ?>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php use_helper('I18N', 'Text', 'stAdminGenerator', 'Object', 'ObjectAdmin', 'stDate', 'stProductImage','stCurrency') ?>
|
||||
<?php use_helper('stWidgets'); ?>
|
||||
|
||||
<div class="list_filters">
|
||||
<div style="float:right;">
|
||||
|
||||
<?php echo __('Ostatnie', null, 'stBackendMain'); ?>:
|
||||
|
||||
<?php if($date_type == "day"): ?>
|
||||
<b><?php echo st_link_to(__('24h', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=day'); ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo st_link_to(__('24h', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=day'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($date_type == "week"): ?>
|
||||
<b><?php echo st_link_to(__('7 dni', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=week'); ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo st_link_to(__('7 dni', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=week'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($date_type == "month"): ?>
|
||||
<b><?php echo st_link_to(__('miesiąc', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=month'); ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo st_link_to(__('miesiąc', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=month'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($date_type == "lastlog"): ?>
|
||||
<b><?php echo st_link_to(__('logowanie', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=lastlog'); ?></b>
|
||||
<?php else: ?>
|
||||
<?php echo st_link_to(__('logowanie', null, 'stBackendMain'),'stUser/registerUserWidget?date_type=lastlog'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php echo st_link_to(__('Nowi Klienci'), 'stUser/'); ?> (<?php echo $userQuantity; ?>)
|
||||
|
||||
</div>
|
||||
|
||||
<?php if($userInfo!=""): ?>
|
||||
<div id="sf_admin_container">
|
||||
<table class="st_record_list" cellspacing="0" width="100%">
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($userInfo as $index => $user): ?>
|
||||
<tr class="<?php
|
||||
$date = explode(" ",$user['created_at']);
|
||||
if($date[0]== date('Y-m-d')){ echo ' st_row-new';}else{
|
||||
echo $index % 2 ? 'st_row-highlight' : 'st_row-no-highlight';
|
||||
};
|
||||
?>">
|
||||
|
||||
<td>
|
||||
<div style="text-align: left">
|
||||
<?php if ($user['id']): ?>
|
||||
|
||||
<?php if ($user['company']!=""): ?>
|
||||
<?php echo $user['company'] ?>
|
||||
<?php else: ?>
|
||||
<?php echo $user['fullname'] ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($user['id']): ?>
|
||||
<?php echo st_external_link_to(truncate_text($user['username'], 25), 'user/edit?id=' . $user['id']) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php endforeach ; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<p style="text-align: center; margin-top: 20px"><?php echo __('Brak klientów') ?></p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@@ -0,0 +1,309 @@
|
||||
<!-- http://templates.mailchimp.com/resources/inline-css/ -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<head style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
|
||||
<meta name="viewport" content="width=device-width" style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<title style="margin: 0;padding: 0;font-family: Arial, sans-serif;">ZURBemails</title>
|
||||
|
||||
<style style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
|
||||
/* -------------------------------------
|
||||
GLOBAL
|
||||
------------------------------------- */
|
||||
* {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
* { font-family: Arial, sans-serif; }
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.collapse {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
body {
|
||||
-webkit-font-smoothing:antialiased;
|
||||
-webkit-text-size-adjust:none;
|
||||
width: 100%!important;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------
|
||||
ELEMENTS
|
||||
------------------------------------- */
|
||||
a { color: #<?php echo $mail_config->get('link_color'); ?>;}
|
||||
|
||||
.btn {
|
||||
text-decoration:none;
|
||||
color: #FFF;
|
||||
background-color: #666;
|
||||
padding:10px 16px;
|
||||
font-weight:bold;
|
||||
margin-right:10px;
|
||||
text-align:center;
|
||||
cursor:pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
p.callout {
|
||||
padding:15px;
|
||||
background-color:#ECF8FF;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.callout a {
|
||||
font-weight:bold;
|
||||
color: #2BA6CB;
|
||||
}
|
||||
|
||||
table.social {
|
||||
|
||||
background-color: #ebebeb;
|
||||
|
||||
}
|
||||
.social .soc-btn {
|
||||
padding: 3px 7px;
|
||||
font-size:12px;
|
||||
margin-bottom:10px;
|
||||
text-decoration:none;
|
||||
color: #FFF;font-weight:bold;
|
||||
display:block;
|
||||
text-align:center;
|
||||
}
|
||||
a.fb { background-color: #3B5998!important; }
|
||||
a.tw { background-color: #1daced!important; }
|
||||
a.gp { background-color: #DB4A39!important; }
|
||||
a.ms { background-color: #000!important; }
|
||||
|
||||
.sidebar .soc-btn {
|
||||
display:block;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
HEADER
|
||||
------------------------------------- */
|
||||
table.head-wrap { width: 100%;}
|
||||
|
||||
.header.container table td.logo { padding: 15px; }
|
||||
.header.container table td.label { padding: 15px; padding-left:0px;}
|
||||
|
||||
|
||||
/* -------------------------------------
|
||||
BODY
|
||||
------------------------------------- */
|
||||
table.body-wrap { width: 100%;}
|
||||
|
||||
|
||||
/* -------------------------------------
|
||||
FOOTER
|
||||
------------------------------------- */
|
||||
table.footer-wrap { width: 100%; clear:both!important;
|
||||
}
|
||||
.footer-wrap .container td.content p { border-top: 1px solid rgb(215,215,215); padding-top:15px;}
|
||||
.footer-wrap .container td.content p {
|
||||
font-size:10px;
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------
|
||||
TYPOGRAPHY
|
||||
------------------------------------- */
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-family: Arial, sans-serif; line-height: 1.1; margin-bottom:15px; color:#000;
|
||||
}
|
||||
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-size: 60%; color: #6f6f6f; line-height: 0; text-transform: none; }
|
||||
|
||||
h1 { font-weight:200; font-size: 44px;}
|
||||
h2 { font-weight:200; font-size: 37px;}
|
||||
h3 { font-weight:500; font-size: 27px;}
|
||||
h4 { font-weight:500; font-size: 23px;}
|
||||
h5 { font-weight:900; font-size: 17px;}
|
||||
h6 { font-weight:900; font-size: 14px; text-transform: uppercase; color:#444;}
|
||||
|
||||
.collapse { margin:0!important;}
|
||||
|
||||
p, ul {
|
||||
margin-bottom: 10px;
|
||||
font-weight: normal;
|
||||
font-size:12px;
|
||||
line-height:1.6;
|
||||
}
|
||||
p.lead { font-size:17px; }
|
||||
p.last { margin-bottom:0px;}
|
||||
|
||||
ul li {
|
||||
margin-left:5px;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/* -------------------------------------
|
||||
SIDEBAR
|
||||
------------------------------------- */
|
||||
ul.sidebar {
|
||||
background:#ebebeb;
|
||||
display:block;
|
||||
list-style-type: none;
|
||||
}
|
||||
ul.sidebar li { display: block; margin:0;}
|
||||
ul.sidebar li a {
|
||||
text-decoration:none;
|
||||
color: #666;
|
||||
padding:10px 16px;
|
||||
/* font-weight:bold; */
|
||||
margin-right:10px;
|
||||
/* text-align:center; */
|
||||
cursor:pointer;
|
||||
border-bottom: 1px solid #777777;
|
||||
border-top: 1px solid #FFFFFF;
|
||||
display:block;
|
||||
margin:0;
|
||||
}
|
||||
ul.sidebar li a.last { border-bottom-width:0px;}
|
||||
ul.sidebar li a h1,ul.sidebar li a h2,ul.sidebar li a h3,ul.sidebar li a h4,ul.sidebar li a h5,ul.sidebar li a h6,ul.sidebar li a p { margin-bottom:0!important;}
|
||||
|
||||
|
||||
|
||||
/* ---------------------------------------------------
|
||||
RESPONSIVENESS
|
||||
Nuke it from orbit. It's the only way to be sure.
|
||||
------------------------------------------------------ */
|
||||
|
||||
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
|
||||
.container {
|
||||
display:block!important;
|
||||
max-width:600px!important;
|
||||
margin:0 auto!important; /* makes it centered */
|
||||
clear:both!important;
|
||||
}
|
||||
|
||||
/* This should also be a block element, so that it will fill 100% of the .container */
|
||||
.content {
|
||||
padding:15px;
|
||||
max-width:600px;
|
||||
margin:0 auto;
|
||||
display:block;
|
||||
}
|
||||
|
||||
/* Let's make sure tables in the content area are 100% wide */
|
||||
.content table { width: 100%; }
|
||||
|
||||
|
||||
/* Odds and ends */
|
||||
.column {
|
||||
width: 300px;
|
||||
float:left;
|
||||
}
|
||||
.social .column tr td { padding: 15px; }
|
||||
|
||||
.user_data .column tr td { padding-bottom: 15px; }
|
||||
|
||||
.column-wrap {
|
||||
padding:0!important;
|
||||
margin:0 auto;
|
||||
max-width:600px!important;
|
||||
}
|
||||
.column table { width:100%;}
|
||||
|
||||
.social .column {
|
||||
width: 280px;
|
||||
min-width: 279px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.user_data .column {
|
||||
width: 280px;
|
||||
min-width: 279px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
/* Be sure to place a .clear element after each set of columns, just to be safe */
|
||||
.clear { display: block; clear: both; }
|
||||
|
||||
|
||||
/* -------------------------------------------
|
||||
PHONE
|
||||
For clients that support media queries.
|
||||
Nothing fancy.
|
||||
-------------------------------------------- */
|
||||
@media only screen and (max-width: 600px) {
|
||||
|
||||
a[class="btn"] { display:block!important; margin-bottom:10px!important; background-image:none!important; margin-right:0!important;}
|
||||
|
||||
div[class="column"] { width: auto!important; float:none!important;}
|
||||
|
||||
table.social div[class="column"] {
|
||||
width:auto!important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;-webkit-font-smoothing: antialiased;-webkit-text-size-adjust: none;height: 100%;width: 100%!important;">
|
||||
|
||||
<!-- HEADER -->
|
||||
<table class="head-wrap" bgcolor="#<?php echo $mail_config->get('bg_header_color'); ?>" style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;width: 100%;">
|
||||
<tr style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;">
|
||||
<td style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;"></td>
|
||||
<td class="header container" style="margin: 0 auto!important;padding: 0;font-family: Arial, sans-serif;font-size: 12px;display: block!important;max-width: 600px!important;clear: both!important;">
|
||||
|
||||
<div class="content" style="margin: 0 auto;padding: 15px;font-family: Arial, sans-serif;font-size: 12px;max-width: 600px;display: block;">
|
||||
<table bgcolor="#<?php echo $mail_config->get('bg_header_color'); ?>" style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;width: 100%;">
|
||||
<tr style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;">
|
||||
<td style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;"><?php if ($mail_config->get('logo')!=""): ?><img src="http://<?php echo $sf_request->getHost(); ?>/uploads<?php echo $mail_config->get('logo'); ?>?version=1" style="margin: 0;padding: 0;font-family: Arial, sans-serif;font-size: 12px;max-width: 100%; max-height: 50px;"><?php endif; ?></td>
|
||||
<td align="right" style="margin: 0;padding: 0;font-family: Arial, sans-serif;"><h6 class="collapse" style="margin: 0!important;padding: 0;font-family: "helveticaneue-light": ;, ": ;helvetica neue light": ;helvetica neue": ;, helvetica, arial, ": ;lucida grande": ;, sans-serif: ;line-height: 1.1;margin-bottom: 15px;color: #444;font-weight: 900;font-size: 14px;text-transform: uppercase;"><?php echo date('d-m-Y H:i'); ?></h6></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td style="margin: 0;padding: 0;font-family: Arial, sans-serif;"></td>
|
||||
</tr>
|
||||
</table><!-- /HEADER -->
|
||||
<table class="body-wrap" cellpadding="0" cellspacing="0" style="margin: 0;padding: 0;font-family: Arial, sans-serif;width: 100%;">
|
||||
<tr style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<td style="margin: 0;padding: 0;font-family: Arial, sans-serif;"></td>
|
||||
<td class="container" bgcolor="#FFFFFF" style="margin: 0 auto!important;padding: 0;font-family: Arial, sans-serif;display: block!important;max-width: 600px!important;clear: both!important;">
|
||||
|
||||
<div class="content" style="margin: 0 auto;padding: 15px;font-family: Arial, sans-serif;max-width: 600px;display: block;">
|
||||
<table cellpadding="0" cellspacing="0" style="margin: 0;padding: 0;font-family: Arial, sans-serif;width: 100%;">
|
||||
<tr style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<td style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<p style="font-size: 12px;margin: 0;padding: 0;font-family: Arial, sans-serif;margin-bottom: 10px;font-weight: normal;line-height: 1.6;"><?php echo $head; ?></p>
|
||||
|
||||
<h4 style="margin: 0;padding: 0;font-family: "helveticaneue-light": ;, ": ;helvetica neue light": ;helvetica neue": ;, helvetica, arial, ": ;lucida grande": ;, sans-serif: ;line-height: 1.1;margin-bottom: 15px;color: #000;font-weight: 500;font-size: 23px;"><?php echo __('Weryfikacja danych klienta') ?></h4>
|
||||
</br>
|
||||
|
||||
<p style="font-size: 12px;margin: 0;padding: 0;font-family: Arial, sans-serif;margin-bottom: 10px;font-weight: normal;line-height: 1.6;"><?php echo $content; ?></p>
|
||||
|
||||
<!-- social & contact -->
|
||||
<table class="social" width="100%" style="margin: 0;padding: 0;font-family: Arial, sans-serif;background-color: #<?php echo $mail_config->get('bg_footer_color'); ?>;width: 100%;">
|
||||
<tr style="margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<td style="font-size: 12px;margin: 0;padding: 0;font-family: Arial, sans-serif;">
|
||||
<?php echo $foot; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table><!-- /social & contact -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- /content -->
|
||||
|
||||
</td>
|
||||
<td style="margin: 0;padding: 0;font-family: Arial, sans-serif;"></td>
|
||||
</tr>
|
||||
</table><!-- /BODY -->
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php use_helper('stUrl') ?>
|
||||
|
||||
<?php echo stHtml2Text::convert($content); ?>
|
||||
Reference in New Issue
Block a user