From f993b1595433f7032db52d3753bc3dec156bcbcf Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Sun, 11 Sep 2016 11:04:12 +0000 Subject: - Backend vereinheitlicht / Gutscheinoberfläche angefangen Filterfunktionen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5753 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_gutschein/add.phtml | 149 ++++---- views/mods/mod_gutschein/index.phtml | 494 +++++++++------------------ views/mods/mod_gutschein/settings_edit.phtml | 2 +- 3 files changed, 240 insertions(+), 405 deletions(-) (limited to 'views/mods/mod_gutschein') diff --git a/views/mods/mod_gutschein/add.phtml b/views/mods/mod_gutschein/add.phtml index 68d6862..8328214 100644 --- a/views/mods/mod_gutschein/add.phtml +++ b/views/mods/mod_gutschein/add.phtml @@ -5,66 +5,91 @@ */ ?> -
-

-

-
- - writeBackendMessage(); ?> - -
- - view['mod_gutschein']['value']); ?> - __('Absoluter Betrag', 'wpsg'), - 'p' => __('Prozentual', 'wpsg') - ), $this->view['mod_gutschein']['calc']); ?> - view['mod_gutschein']['start']); ?> - view['mod_gutschein']['end']); ?> - __('Automatisch', 'wpsg'), - '1' => __('Manuell', 'wpsg') - ), wpsg_getStr($this->view['mod_gutschein']['gen']), array('help' => 'wpsg_mod_gutschein_gen')); ?> -
- view['mod_gutschein']['code']), array('help' => 'wpsg_mod_gutschein_code')); ?> + +
+ +
\ No newline at end of file + + + +
+ + writeBackendMessage(); ?> + +
+ +
+ + + view['mod_gutschein']['value']); ?> + __('Absoluter Betrag', 'wpsg'), + 'p' => __('Prozentual', 'wpsg') + ), $this->view['mod_gutschein']['calc']); ?> + + view['mod_gutschein']['start'], array('datepicker' => true)); ?> + view['mod_gutschein']['end'], array('datepicker' => true)); ?> + __('Automatisch', 'wpsg'), + '1' => __('Manuell', 'wpsg') + ), wpsg_getStr($this->view['mod_gutschein']['gen']), array('help' => 'wpsg_mod_gutschein_gen')); ?> +
+ view['mod_gutschein']['code']), array('help' => 'wpsg_mod_gutschein_code')); ?> +
+ view['mod_gutschein']['minvalue']), array('help' => 'wpsg_mod_gutschein_minvalue')); ?> + view['mod_gutschein']['count']); ?> + view['mod_gutschein']['multi']); ?> + view['mod_gutschein']['comment']); ?> + hasMod('wpsg_mod_productgroups') && wpsg_isSizedArray($this->view['wpsg_mod_gutschein']['arProductGroups'])) { ?> + view['wpsg_mod_gutschein']['arProductGroups'], $this->view['mod_gutschein']['productgroups'], array('multiple' => ((sizeof($this->view['wpsg_mod_gutschein']['arProductGroups']) > 5)?5:sizeof($this->view['wpsg_mod_gutschein']['arProductGroups'])), 'help' => 'wpsg_mod_gutschein_productgroups')); ?> + + view['wpsg_mod_gutschein']['arProducts'], @$this->view['mod_gutschein']['products'], array('multiple' => ((sizeof($this->view['wpsg_mod_gutschein']['arProducts']) > 5)?5:sizeof($this->view['wpsg_mod_gutschein']['arProducts'])), 'help' => 'wpsg_mod_gutschein_products')); ?> + + + + +
+ +
+ +
+ + \ No newline at end of file diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml index 03518d2..b126af7 100644 --- a/views/mods/mod_gutschein/index.phtml +++ b/views/mods/mod_gutschein/index.phtml @@ -6,367 +6,177 @@ ?> - - -
- -

-

- - - - -

- - - - - writeBackendMessage(); ?> - -
- - - - - - - - view['arStatus'])) { ?> -
    - view['arStatus'] as $status_id => $status) { ?> -
  • - view['filter']['status']) && $this->view['filter']['status'] == $status_id) { ?> - () | - - () | - -
  • - -
  • - view['filter']['status']) || $this->view['filter']['status'] <= 0) { ?> - (view['countAll']; ?>) - - (view['countAll']; ?>) - -
  • -
- - - - - view['data'] > 0)) { ?> -
-
view['count']); ?> -
- - « - ‹ - view['pages']; ?> - › - » - -
- - - -
-
-
- - -
- -
- - view['data']) && sizeof($this->view['data']) > 0) { ?> - - - - - - - - - - - - - - view['data'] as $g) { ?> - - - - - - - - - - - - - - - - - - - - - - -
" type="checkbox" onclick="markAll(this);"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
. - - get_option('wpsg_currency')); ?> - - - - 0) { ?> -
get_option('wpsg_currency'))); ?>
- -
- - - <?php echo wpsg_hspc($g['comment']); ?> - - - - - 0) { ?> - - -  [M] - -
" type="checkbox" onclick="markAll(this);"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
view['count']); ?> -
- - « - ‹ - view['pages']; ?> - › - » - + + + + + + view['arFilter']['s'])); ?> + +
+ +
- - - -
-
- - " />  -

- -

- - - +
+ + + + view['pages'] > 1) { ?> + + + +
+ + writeBackendMessage(); ?> + +
+ + view['arData']) && sizeof($this->view['arData']) > 0) { ?> + +
+ + + + + + + + + + + + + view['arData'] as $oVoucher) { ?> + + + + + + + + + + +
+ + + + code; ?>start_date); ?>end_date); ?>calc_typ == 'w') echo wpsg_ff($oVoucher->value, $this->get_option('wpsg_currency')); + else if ($oVoucher->calc_typ == 'p') echo wpsg_ff($oVoucher->value, '%'); + + ?> + + comment; if (wpsg_isSizedString($comment)) { ?> + " onclick="return false;" class="glyphicon glyphicon-info-sign admincomment" href="#"> + + + getStatusLabel(); ?> + + getUsed(); if (wpsg_isSizedInt($used)) { ?> + + + + multi === '1') { ?> +  [M] + + +
+ +
+ + + +
+ +
+ + view['pages'] > 1) { ?> + + + + + + + + + + + +
+ \ No newline at end of file diff --git a/views/mods/mod_gutschein/settings_edit.phtml b/views/mods/mod_gutschein/settings_edit.phtml index db2c044..9ffdbd2 100644 --- a/views/mods/mod_gutschein/settings_edit.phtml +++ b/views/mods/mod_gutschein/settings_edit.phtml @@ -5,5 +5,5 @@ */ ?> -get_option('wpsg_mod_gutschein_size'), array ('help' => wpsg_mod_gutschein_size)); ?> +get_option('wpsg_mod_gutschein_size'), array ('help' => 'wpsg_mod_gutschein_size')); ?> get_option('wpsg_mod_gutschein_perPage'), array ('help' => 'wpsg_mod_gutschein_perPage')); ?> \ No newline at end of file -- cgit v1.2.3