@@ -14,8 +14,10 @@ |
||
| 14 | 14 | <div> |
| 15 | 15 | <input type="submit" value="<?php e(t('Switch')); ?>" /> <a href="<?php if (isset($_SERVER['HTTP_REFERER'])) : |
| 16 | 16 | e($_SERVER['HTTP_REFERER']); |
| 17 | -else : |
|
| 17 | +else { |
|
| 18 | + : |
|
| 18 | 19 | echo 'index.php'; |
| 20 | +} |
|
| 19 | 21 | endif; ?>"><?php e(t('Cancel')); ?></a> |
| 20 | 22 | </div> |
| 21 | 23 | |
@@ -34,9 +34,12 @@ |
||
| 34 | 34 | <input type="submit" class="save" name="save" value="<?php e(t('select').'...'); ?>" /> |
| 35 | 35 | <a href="<?php url(null); ?>"><?php e(t('Cancel')); ?></a> |
| 36 | 36 | |
| 37 | -<?php else : ?> |
|
| 37 | +<?php else { |
|
| 38 | + : ?> |
|
| 38 | 39 | <fieldset> |
| 39 | - <legend><?php e(t('file')); ?></legend> |
|
| 40 | + <legend><?php e(t('file')); |
|
| 41 | +} |
|
| 42 | +?></legend> |
|
| 40 | 43 | |
| 41 | 44 | <div><?php e(t('currently files in the CSV format are supported')); ?></div> |
| 42 | 45 | |
@@ -130,8 +130,9 @@ |
||
| 130 | 130 | { |
| 131 | 131 | if ( is_dir( $f ) ){ |
| 132 | 132 | foreach ( scandir( $f ) as $item ){ |
| 133 | - if ( !strcmp( $item, '.' ) || !strcmp( $item, '..' ) ) |
|
| 134 | - continue; |
|
| 133 | + if ( !strcmp( $item, '.' ) || !strcmp( $item, '..' ) ) { |
|
| 134 | + continue; |
|
| 135 | + } |
|
| 135 | 136 | $this->deleteUploadDirectory( $f . "/" . $item ); |
| 136 | 137 | } |
| 137 | 138 | rmdir( $f ); |
@@ -55,9 +55,12 @@ |
||
| 55 | 55 | <?php if (isset($product_id)) : ?> |
| 56 | 56 | <input type="hidden" name="product_id" value="<?php e($product_id); ?>" /> |
| 57 | 57 | <input type="submit" name="append_product" value="<?php e(t('Select')); ?>" /> |
| 58 | -<?php else : ?> |
|
| 58 | +<?php else { |
|
| 59 | + : ?> |
|
| 59 | 60 | <select name="action"> |
| 60 | - <option value=""><?php e(t('Choose...')); ?></option> |
|
| 61 | + <option value=""><?php e(t('Choose...')); |
|
| 62 | +} |
|
| 63 | +?></option> |
|
| 61 | 64 | <option value="delete"><?php e(t('Delete selected')); ?></option> |
| 62 | 65 | </select> |
| 63 | 66 | |