2009-09-29 22:42:17 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.")
|
|
|
|
/**
|
|
|
|
* Gallery - a web based photo album viewer and editor
|
|
|
|
* Copyright (C) 2000-2009 Bharat Mediratta
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<div class="gBlock">
|
|
|
|
|
|
|
|
<a href="<?= url::site("admin/postage_bands/add_postage_band_form") ?>"
|
2009-12-25 02:05:14 +00:00
|
|
|
class="g-dialog-link g-button-link right ui-icon-left ui-state-default ui-corner-all"
|
2009-12-25 02:03:03 +00:00
|
|
|
title="<?= t("Create a new Postage Band") ?>">
|
2009-09-29 22:42:17 +00:00
|
|
|
<span class="ui-icon ui-icon-circle-plus"></span>
|
|
|
|
<?= t("Add a new Postage Band") ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
<?= t("Postage Bands") ?>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div class="gBlockContent">
|
|
|
|
<table id="gPostageAdminList">
|
|
|
|
<tr>
|
2009-12-25 02:03:03 +00:00
|
|
|
<th><?= t("Name") ?></th>
|
2009-09-29 22:42:17 +00:00
|
|
|
<th><?= t("Flat Rate") ?></th>
|
|
|
|
<th><?= t("Per Item") ?></th>
|
|
|
|
<th><?= t("Actions") ?></th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
<? foreach ($postage_bands as $i => $postage_band): ?>
|
|
|
|
<tr id="gProduct-<?= $postage_band->id ?>" class="<?= text::alternate("gOddRow", "gEvenRow") ?>">
|
|
|
|
<td id="product-<?= $postage_band->id ?>" class="core-info ">
|
|
|
|
<?= html::clean($postage_band->name) ?>
|
|
|
|
</td>
|
2009-12-25 02:03:03 +00:00
|
|
|
<td>
|
|
|
|
<?= basket::formatMoney($postage_band->flat_rate) ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?= basket::formatMoney($postage_band->per_item) ?>
|
|
|
|
</td>
|
|
|
|
<td class="gActions">
|
|
|
|
<a href="<?= url::site("admin/postage_bands/edit_postage_band_form/$postage_band->id") ?>"
|
|
|
|
open_text="<?= t("close") ?>"
|
2009-12-25 02:05:14 +00:00
|
|
|
class="g-panel-link g-button-link ui-state-default ui-corner-all ui-icon-left">
|
|
|
|
<span class="ui-icon ui-icon-pencil"></span>
|
|
|
|
<?= t("edit") ?>
|
|
|
|
</a>
|
2009-09-29 22:42:17 +00:00
|
|
|
|
2009-12-25 02:03:03 +00:00
|
|
|
<a href="<?= url::site("admin/postage_bands/delete_postage_band_form/$postage_band->id") ?>"
|
2009-12-25 02:05:14 +00:00
|
|
|
class="g-dialog-link g-button-link ui-state-default ui-corner-all ui-icon-left">
|
|
|
|
<span class="ui-icon ui-icon-trash"></span>
|
|
|
|
<?= t("delete") ?>
|
|
|
|
</a>
|
2009-12-25 02:03:03 +00:00
|
|
|
</td>
|
2009-09-29 22:42:17 +00:00
|
|
|
|
2009-12-25 02:03:03 +00:00
|
|
|
</tr>
|
2009-09-29 22:42:17 +00:00
|
|
|
<? endforeach ?>
|
2009-12-25 02:03:03 +00:00
|
|
|
</table>
|
2009-09-29 22:42:17 +00:00
|
|
|
</div>
|
|
|
|
|
2009-12-25 02:03:03 +00:00
|
|
|
</div>
|