echo $AppUI->_('Billing Code');
?>
</th>
        <th><?php 
echo $AppUI->_('Value');
?>
</th>
        <th><?php 
echo $AppUI->_('Description');
?>
</th>
</tr>

<?php 
for ($s = 0; $s < count($billingcodes); $s++) {
    showcodes($billingcodes[$s], 1);
}
?>

<tr>
        <td>&nbsp;</td>
        <td><input type="text" name="billingcode_name" value=""></td>
        <td><input type="text" name="billingcode_value" value=""></td>
        <td><input type="text" name="billingcode_desc" value=""</td>
</tr>

<tr>
        <td align="left"><input class="button"  type="button" value="<?php 
echo $AppUI->_('back');
?>
" onClick="javascript:history.back(-1);" /></td>
Example #2
0
echo $AppUI->_('Billing Code');
?>
</th>
	<th><?php 
echo $AppUI->_('Value');
?>
</th>
	<th><?php 
echo $AppUI->_('Description');
?>
</th>
</tr>

<?php 
foreach ($billingcodes as $code) {
    echo showcodes($code);
}
if (isset($_GET['billingcode_id'])) {
    $q->addQuery('*');
    $q->addTable('billingcode');
    $q->addWhere('billingcode_id = ' . (int) w2PgetParam($_GET, 'billingcode_id', 0));
    list($obj) = $q->loadList();
    echo '
<tr>
	<td>&nbsp;<input type="hidden" name="billingcode_id" value="' . w2PgetParam($_GET, 'billingcode_id', 0) . '" /></td>
	<td><input type="text" class="text" name="billingcode_name" value="' . $obj['billingcode_name'] . '" /></td>
	<td><input type="text" class="text" name="billingcode_value" value="' . $obj['billingcode_value'] . '" /></td>
	<td><input type="text" class="text" name="billingcode_desc" value="' . $obj['billingcode_desc'] . '" /></td>
</tr>';
} else {
    ?>
Example #3
0
echo $AppUI->_('Billing Code');
?>
</th>
	<th><?php 
echo $AppUI->_('Value');
?>
</th>
	<th><?php 
echo $AppUI->_('Description');
?>
</th>
</tr>

<?php 
foreach ($billingcodes as $code) {
    showcodes($code);
}
if (isset($_GET['billingcode_id'])) {
    $q->addQuery('*');
    $q->addTable('billingcode');
    $q->addWhere('billingcode_id = ' . (int) w2PgetParam($_GET, 'billingcode_id', 0));
    list($obj) = $q->loadList();
    echo '
<tr>
	<td>&nbsp;<input type="hidden" name="billingcode_id" value="' . w2PgetParam($_GET, 'billingcode_id', 0) . '" /></td>
	<td><input type="text" class="text" name="billingcode_name" value="' . $obj['billingcode_name'] . '" /></td>
	<td><input type="text" class="text" name="billingcode_value" value="' . $obj['billingcode_value'] . '" /></td>
	<td><input type="text" class="text" name="billingcode_desc" value="' . $obj['billingcode_desc'] . '" /></td>
</tr>';
} else {
    ?>