Blame view

templates_c/admin/%%53^53E^53EA5302%%catalogs_users.tpl.php 4.02 KB
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  <?php /* Smarty version 2.6.16, created on 2010-01-12 16:54:59
           compiled from catalogs_users.tpl */ ?>
  <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'catalogs_users.tpl', 20, false),)), $this); ?>
  <h3>Çàðåãèñòðèðîâàííûå ïîëüçîâàòåëè</h3>
  
  <table cellpadding="4" cellspacing="1" border="0" bgcolor="#474747">
  <tr bgcolor="#C6F1E1">
  <td width="50">ID#</td>
  <td width="150">Ëîãèí</td>
  <td width="150">Èìÿ</td>
  <td width="150">E-mail</td>
  <td width="80">Äàòà ðåãèñòðàöèè</td>
  <td width="50">Ñêèäêà</td>
  <td width="50" bgcolor="#F9B0AE">Óäàëèòü</td>
  <td width="50" bgcolor="#AEBCF9">Çàêàçû</td>
  </tr>
  <?php unset($this->_sections['i']);
  $this->_sections['i']['name'] = 'i';
  $this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['usersData']['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  $this->_sections['i']['show'] = true;
  $this->_sections['i']['max'] = $this->_sections['i']['loop'];
  $this->_sections['i']['step'] = 1;
  $this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
  if ($this->_sections['i']['show']) {
      $this->_sections['i']['total'] = $this->_sections['i']['loop'];
      if ($this->_sections['i']['total'] == 0)
          $this->_sections['i']['show'] = false;
  } else
      $this->_sections['i']['total'] = 0;
  if ($this->_sections['i']['show']):
  
              for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                   $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                   $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
  $this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
  $this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
  $this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
  $this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
  $this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
  ?>
  <tr bgcolor="#E9EEEC">
  <td width="50" align="center"><a href="<?php echo @URL; ?>
  admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
  &modAction=users&userID=<?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['id']; ?>
  ">#<?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['id']; ?>
  </a></td>
  <td width="150"><?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['login']; ?>
  </td>
  <td width="150"><?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['name']; ?>
  </td>
  <td width="150"><?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['email']; ?>
  </td>
  <td><?php echo ((is_array($_tmp=$this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['mktime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d/%m/%Y") : smarty_modifier_date_format($_tmp, "%d/%m/%Y")); ?>
  </td>
  <td><?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['discount']; ?>
  </td>
  <td><a href="<?php echo @URL; ?>
  admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
  &modAction=users&deleteID=<?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['id']; ?>
  " onClick="return del();">Óäàëèòü</a></td>
  <td><a href="<?php echo @URL; ?>
  admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
  &modAction=orders&userID=<?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['id']; ?>
  "><?php echo $this->_tpl_vars['usersData']['data'][$this->_sections['i']['index']]['count_orders']; ?>
  </a></td>
  </tr>
  <?php endfor; endif; ?>
  </table>
  
  <?php if ($this->_tpl_vars['usersData']['links']): ?><div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['usersData']['links']; ?>
  </div><?php endif; ?>