$formObj = new formFactory($title);
//Then Start the form
$formObj->startForm();
?>
 
<table class="adminform">
	<tr> 
		<td width="23%" height="20" valign="top"> 
			<div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_NAME');
?>
:</div>
		</td>
		<td width="77%" height="20"> 
			<input type="text" class="inputbox" name="attribute_name" value="<?php 
$db->sp("attribute_name");
?>
" size="32" maxlength="255" />
		</td>
	</tr>
	<tr> 
		<td width="23%" height="10" valign="top"> 
			<div align="right"><?php 
echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_ORDER');
?>
:</div>
		</td>
		<td width="77%" height="10"> 
			<input type="text" class="inputbox" name="attribute_list" value="<?php 
$db->sp("attribute_list");
?>
Exemplo n.º 2
0
      </td>
    </tr>
    <?php 
    while ($db_items->next_record()) {
        ?>
 
    <tr  class="row0"> 
      <td> <?php 
        $url = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_form&product_id=" . $db_items->f("product_id") . "&product_parent_id={$product_id}";
        echo "<a href=\"" . $sess->url($url) . "\">";
        echo $db_items->f("product_name");
        echo "</a>";
        ?>
                </td>
      <td><?php 
        $db_items->sp("product_sku");
        ?>
 </td>
      <td> <?php 
        $price = $ps_product->get_price($db_items->f("product_id"));
        $url = $_SERVER['PHP_SELF'] . "?page={$modulename}.product_price_list&product_id=" . $db_items->f("product_id") . "&product_parent_id={$product_parent_id}";
        $url .= "&return_args=" . urlencode("page={$page}&product_id={$product_id}");
        echo "<a href=\"" . $sess->url($url) . "\">";
        if ($price) {
            if (!empty($price["item"])) {
                echo $price["product_price"];
            } else {
                echo "none";
            }
        } else {
            echo "none";
$formObj->startForm();
?>

<table class="adminform">
	<tr>
		<td colspan="2"></td>
	</tr>
	<tr>
		<td class="labelcell"><?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_PRICE_NET');
?>
:
      </td>
		<td><input type="text" class="inputbox" name="product_price"
			onkeyup="updateGross();" value="<?php 
$db->sp("product_price");
?>
"
			size="10" maxlength="10" /></td>
	</tr>
	<tr>
		<td class="labelcell">
        <?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_PRICE_GROSS');
?>
:
      </td>
		<td><input type="text" class="inputbox" onkeyup="updateNet();"
			name="product_price_incl_tax" size="10" /></td>
	</tr>
	<tr>
Exemplo n.º 4
0
    $db2->query($q2);
    ?>
 
<div style="width:90%;">
	<fieldset>
		<legend><strong><?php 
    echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_ITEM_ATTRIBUTES_LBL');
    ?>
</strong></legend>
  
		<?php 
    while ($db2->next_record()) {
        ?>
 
			<div class="formLabel"><?php 
        $db2->sp("attribute_name");
        ?>
:</div>
			<div class="formField" ><?php 
        $db2->p("attribute_value");
        ?>
</div>
			<?php 
    }
    ?>
 
	</fieldset>
</div>
<?php 
}
?>