diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-05-18 17:30:03 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-05-18 17:30:03 +0000 |
| commit | f59c23ed800fdd0ec0dcadcff8e87e5e74e98cac (patch) | |
| tree | 6007ff7574d55aae875e275a5c210aa4a3046352 /views/mods/mod_productvariants | |
| parent | 290552dd2f9d49663a552d63acfc844560db7303 (diff) | |
- Aufgeräumt
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5490 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productvariants')
| -rw-r--r-- | views/mods/mod_productvariants/admin_edit.phtml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 4896638..ef11894 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -15,18 +15,18 @@ <thead>
<tr>
- <?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
+ <?php $colspan = 1; if (wpsg_isSizedInt($this->view['product_id'])) { $colspan ++; ?>
<th class="col_active"></th>
<?php } ?>
<th class="col_id"><?php echo __('Id', 'wpsg'); ?></th>
<th class="col1"><?php echo __('Name', 'wpsg'); ?></th>
- <?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
+ <?php if (wpsg_isSizedInt($this->view['product_id'])) { $colspan += 3; ?>
<th class="col_artnr"><?php echo __('Artikelnummer', 'wpsg'); ?></th>
<th class="col_price"><?php echo __('Preis', 'wpsg'); ?></th>
<th class="col_stock"><?php echo __('Lagerbestand', 'wpsg'); ?></th>
- <?php } else { ?>
+ <?php } else { $colspan ++; ?>
<th class="col_action"></th>
<?php } ?>
@@ -114,15 +114,14 @@ <?php } ?>
</tr>
-
- <?php /* ?>
+
<tr>
<td class="col_id"> </td>
- <td class="col_image" colspan="5">
+ <td class="col_image" colspan="<?php echo $colspan; ?>">
TODO: Bilder
</td>
</tr>
- */ ?>
+
</tbody>
<?php } ?>
|
