コード例 #1
0
$helper_product = new CitruscartHelperProduct();
?>

<div style="width: 100%;">
    <div class="well options">
        <legend>
            <?php 
echo JText::_('COM_CITRUSCART_ADD_NEW_RELATIONSHIP');
?>
        </legend>
        <div id="new_relationship" class="dsc-wrap dsc-table">
            <div class="dsc-row">
                <div class="dsc-cell">

                    <?php 
echo CitruscartSelect::relationship('', 'new_relationship_type');
?>
                </div>
                <div class="dsc-cell">
                    <?php 
DSCModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_citruscart/models');
$model = DSCModel::getInstance('ElementProduct', 'CitruscartModel');
echo $model->fetchElement('new_relationship_productid_to');
echo $model->clearElement('new_relationship_productid_to');
//<input name="new_relationship_productid_to" size="15" type="text" />
?>

                    <input name="new_relationship_productid_from" value="<?php 
echo $row->product_id;
?>
" type="hidden" />