Quick Search:

View

Revision:

Diff

Diff from 1497 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/hpdl/oscommerce/admin/templates/pages/credit_cards/edit.php

Annotated File View

hpdl
1202
1 <?php
2 /*
3   $Id: $
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1453
8   Copyright (c) 2007 osCommerce
hpdl
1202
9
hpdl
1497
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License v2 (1991)
12   as published by the Free Software Foundation.
hpdl
1202
13 */
14
15   $osC_ObjectInfo = new osC_ObjectInfo(osC_CreditCards_Admin::getData($_GET['ccID']));
16 ?>
17
hpdl
1405
18 <h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1>
hpdl
1202
19
20 <?php
21   if ($osC_MessageStack->size($osC_Template->getModule()) > 0) {
22     echo $osC_MessageStack->output($osC_Template->getModule());
23   }
24 ?>
25
hpdl
1475
26 <div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->get('credit_card_name'); ?></div>
hpdl
1202
27 <div class="infoBoxContent">
hpdl
1405
28   <form name="ccEdit" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&ccID=' . $osC_ObjectInfo->get('id') . '&action=save'); ?>" method="post">
hpdl
1202
29
hpdl
1453
30   <p><?php echo $osC_Language->get('introduction_edit_card'); ?></p>
31
hpdl
1202
32   <table border="0" width="100%" cellspacing="0" cellpadding="2">
33     <tr>
hpdl
1453
34       <td width="40%"><?php echo '<b>' . $osC_Language->get('field_name') . '</b>'; ?></td>
hpdl
1202
35       <td width="60%"><?php echo osc_draw_input_field('credit_card_name', $osC_ObjectInfo->get('credit_card_name'), 'style="width: 100%"'); ?></td>
36     </tr>
37     <tr>
hpdl
1453
38       <td width="40%"><?php echo '<b>' . $osC_Language->get('field_pattern') . '</b>'; ?></td>
hpdl
1202
39       <td width="60%"><?php echo osc_draw_input_field('pattern', $osC_ObjectInfo->get('pattern'), 'style="width: 100%"'); ?></td>
40     </tr>
41     <tr>
hpdl
1453
42       <td width="40%"><?php echo '<b>' . $osC_Language->get('field_sort_order') . '</b>'; ?></td>
hpdl
1202
43       <td width="60%"><?php echo osc_draw_input_field('sort_order', $osC_ObjectInfo->get('sort_order'), 'style="width: 100%"'); ?></td>
44     </tr>
45     <tr>
hpdl
1453
46       <td width="40%"><?php echo '<b>' . $osC_Language->get('field_status') . '</b>'; ?></td>
hpdl
1202
47       <td width="60%"><?php echo osc_draw_checkbox_field('credit_card_status', '1', $osC_ObjectInfo->get('credit_card_status')); ?></td>
48     </tr>
49   </table>
50
hpdl
1475
51   <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />'; ?></p>
hpdl
1202
52
53   </form>
54 </div>