91 lines
3.9 KiB
PHP
Executable File
91 lines
3.9 KiB
PHP
Executable File
<?php
|
|
/*
|
|
+--------------------------------------------------------------------------
|
|
| CubeCart 4
|
|
| ========================================
|
|
| CubeCart is a Trade Mark of Devellion Limited
|
|
| Copyright Devellion Limited 2006. All rights reserved.
|
|
| Devellion Limited,
|
|
| 5 Bridge Street,
|
|
| Bishops Stortford,
|
|
| HERTFORDSHIRE.
|
|
| CM23 2JU
|
|
| UNITED KINGDOM
|
|
| http://www.devellion.com
|
|
| UK Private Limited Company No. 5323904
|
|
| ========================================
|
|
| Web: http://www.cubecart.com
|
|
| Date: Friday, 15 April 2005
|
|
| Email: info@cubecart.com
|
|
| License Type: CubeCart is NOT Open Source Software and Limitations Apply
|
|
| Licence Info: http://www.cubecart.com/site/faq/license.php
|
|
+--------------------------------------------------------------------------
|
|
| index.inc.php
|
|
| ========================================
|
|
| Canada Post
|
|
+--------------------------------------------------------------------------
|
|
*/
|
|
|
|
##### Include these two line at the beginning of all your module's files #####
|
|
require_once CC_ROOT_DIR.CC_DS.'modules'.CC_DS.'common.inc.php';
|
|
$modLoad = @new ModuleLoader(__FILE__, $config['defaultLang'], $language, $moduleName);
|
|
##############################################################################
|
|
?>
|
|
<?php if ($modLoad->message) echo msg($modLoad->message); ?>
|
|
|
|
<p><a href="http://www.auspost.com.au/"><img src="modules/shipping/AusPost/admin/logo.gif" alt="" border="0" title="" /></a></p>
|
|
|
|
<p class="pageTitle">Australia Post</p>
|
|
|
|
<form action="?_g=<?php echo $_GET['_g']; ?>&module=<?php echo $_GET['module']; ?>" method="post" enctype="multipart/form-data">
|
|
<table border="0" cellspacing="1" cellpadding="3" class="mainTable">
|
|
<tr>
|
|
<td colspan="2" class="tdTitle">Settings</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText"><strong>Status</strong></td>
|
|
<td class="tdText">
|
|
<select name="module[status]">
|
|
<option value="1" <?php if ($modLoad->settings['status'] == true) echo "selected='selected'"; ?>><?php echo $lang['admin_common']['enabled']; ?></option>
|
|
<option value="0" <?php if ($modLoad->settings['status'] == false) echo "selected='selected'"; ?>><?php echo $lang['admin_common']['disabled']; ?></option>
|
|
</select> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText"><strong>Origin Postcode</strong></td>
|
|
<td class="tdText"><input type="text" name="module[postcode]" class="textbox" value="<?php echo $modLoad->settings['postcode']; ?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText"><strong>Box Size</strong></td>
|
|
<td class="tdText">
|
|
<input type="text" name="module[height]" value="<?php echo $modLoad->settings['height']; ?>" class="textbox" size="4" /> x
|
|
<input type="text" name="module[width]" value="<?php echo $modLoad->settings['width']; ?>" class="textbox" size="4" /> x
|
|
<input type="text" name="module[length]" value="<?php echo $modLoad->settings['length']; ?>" class="textbox" size="4" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText"> </td>
|
|
<td class="tdText">height x width x length in cm</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText">Handling Fee</td>
|
|
<td class="tdText"><input name="module[handling]" type="text" value="<?php echo $modLoad->settings['handling']; ?>" class="textbox" size="10" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText">Tax Class</td>
|
|
<td class="tdText">
|
|
<?php
|
|
$tax = $db->select("SELECT * FROM ".$glob['dbprefix']."CubeCart_taxes");
|
|
?>
|
|
<select name="module[tax]">
|
|
<?php for($i=0; $i<count($tax); $i++){ ?>
|
|
<option value="<?php echo $tax[$i]['id']; ?>" <?php if($modLoad->settings['tax'] == $tax[$i]['id']) echo "selected='selected'"; ?>>
|
|
<?php echo $tax[$i]['taxName']; ?> </option>
|
|
<?php } ?>
|
|
</select> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" class="tdText"> </td>
|
|
<td class="tdText"><input type="submit" class="submit" value="<?php echo $lang['admin_common']['update']; ?>" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|