Exemple #1
0
    function billingform()
    {
        $form = parent::billingform();
        ob_start();
        ?>

             <tr>

		          <td width="31%" ><?php 
        echo JText::_('CARD_NUMBER');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

		         <td width="69%" align="left" ><input type="text" name="billing[x_card_num]" onKeyUp="chknumber(this)" class="inputbox" value="<?php 
        echo isset($this->credircardNo) ? $this->credircardNo : '';
        ?>
" />

		              <br />

		            <?php 
        echo JText::_('CARD_NUMBER_EXPLANATION');
        ?>
</td>

		        </tr>

                 <tr>

		          <td width="31%" ><?php 
        echo JText::_('CARD_EXPIRY_DATE');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

		          <td width="69%" align="left" ><input type="text" name="billing[x_exp_date]" value="<?php 
        echo isset($this->credircardExp) ? $this->credircardExp : '';
        ?>
" class="inputbox" />

		            &nbsp;&nbsp;(mm/yy)</td>

		        </tr>

                 <tr>

		          <td width="31%" ><?php 
        echo JText::_('CVV_CODE');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

		         <td width="69%" align="left" ><input type="text" name="billing[x_card_code]" size="10" onKeyUp="chknumber(this)" class="inputbox" value="<?php 
        echo isset($this->x_card_code) ? $this->x_card_code : '';
        ?>
" />

		            <?php 
        echo JText::_('CVV_CODE_EXPLANATION');
        ?>
 </td>

		        </tr>

		 <?php 
        $html = ob_get_clean();
        return $form . $html;
    }
    function billingform()
    {
        global $cardtype;
        $form = parent::billingform();
        ob_start();
        $size = count($cardtype);
        if ($size == 1) {
            ?>

          <tr>

           <td>

           <input type="radio" style="display:none" name="billing[cardtype]" value="<?php 
            echo $cardtype[0];
            ?>
"  <?php 
            echo "checked";
            ?>
 /></td></tr>

          <?php 
        } else {
            ?>

	    <tr>

             <td width="31%"><?php 
            echo JText::_('CARD_TYPE');
            ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

          <td>

            <?php 
            $options = DtHtml::options($cardtype);
            echo JHTML::_('select.genericlist', $options, 'billing[cardtype]', '', 'value', 'text', $this->cardtype);
            ?>

          </td>

        </tr>

	   <?php 
        }
        ?>

          <tr>

		          <td width="31%"><?php 
        echo JText::_('CARD_NUMBER');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

		         <td width="69%" align="left"><input type="text" name="billing[x_card_num]" class="inputbox" value="<?php 
        echo isset($this->cb_creditcardnumber) ? $this->cb_creditcardnumber : '';
        ?>
" />

		              <br />

		            <?php 
        echo JText::_('CARD_NUMBER_EXPLANATION');
        ?>
</td>

		        </tr>

           <tr>

		          <td width="31%"><?php 
        echo JText::_('CARD_EXPIRY_DATE');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

		          <td width="69%" align="left"><input type="text" name="billing[x_exp_date]" value="<?php 
        echo isset($this->cb_expdate) ? $this->cb_expdate : '';
        ?>
" class="inputbox" />

		            &nbsp;&nbsp;(mm/yy)</td>

		        </tr>

             <tr>

		          <td width="31%"><?php 
        echo JText::_('CVV_CODE');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;*&nbsp;&nbsp;</span></td>

		         <td width="69%" align="left"><input type="text" name="billing[x_card_code]" size="10" class="inputbox" value="<?php 
        echo isset($this->x_card_code) ? $this->x_card_code : '';
        ?>
" />

		            <?php 
        echo JText::_('CVV_CODE_EXPLANATION');
        ?>
</td>

		        </tr>

       <?php 
        $html = ob_get_clean();
        return $form . $html;
    }
Exemple #3
0
    function billingform()
    {
        global $cardtype;
        $form = parent::billingform();
        $size = count($cardtype);
        ob_start();
        ?>
	      <tr><td colspan="2" ><strong><?php 
        echo JText::_('DT_BANK_INFORMATION');
        ?>
</strong><br /></td></tr>
          <tr><td><?php 
        echo JText::_('DT_BANK_ROUTING_NUMBER');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;</span></td>

					<td><input type="text" name="billing[x_bank_aba_code]" onKeyUp="chknumber(this)" class="inputbox"  size="20" maxlength="16" value="<?php 
        echo isset($rowProfile->cb_routingnumber) ? $rowProfile->cb_routingnumber : '';
        ?>
"/></td></tr>

			    <tr><td><?php 
        echo JText::_('DT_BANK_ACCOUNT_NUMBER');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;</span></td>

			        <td><input type="text" name="billing[x_bank_acct_num]" onKeyUp="chknumber(this)" class="inputbox"  size="20" maxlength="16" value="<?php 
        echo isset($rowProfile->cb_acctnumber) ? $rowProfile->cb_acctnumber : '';
        ?>
"/></td></tr>

			    <tr><td><?php 
        echo JText::_('DT_BANK_ACCOUNT_TYPE');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;</span></td>

			        <td>
                    <?php 
        $options = array('CHECKING' => JText::_('DT_BANK_CHECKING'), 'SAVINGS' => JText::_('DT_BANK_SAVINGS'));
        $options = DtHtml::options($options);
        echo JHTML::_('select.genericlist', $options, 'billing[x_bank_acct_type]', '', 'value', 'text', $this->x_bank_acct_type);
        ?>

			        </td></tr>
         <tr><td><?php 
        echo JText::_('DT_BANK_NAME');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;</span></td>

			        <td><input type="text" name="billing[x_bank_name]" class="inputbox" size="30" value="<?php 
        echo isset($rowProfile->cb_bankname) ? $rowProfile->cb_bankname : '';
        ?>
"/></td></tr>

			  	<tr><td><?php 
        echo JText::_('DT_BANK_ACCOUNT_HOLDER');
        ?>
:<span class='dtrequired'>&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;</span></td><td><input type="text" name="billing[x_bank_acct_name]" class="inputbox" size="30" value="<?php 
        echo isset($rowProfile->cb_accountholder) ? $rowProfile->cb_accountholder : '';
        ?>
"/></td></tr>
	<tr><td colspan="2" align="center">&nbsp;</td></tr>


       <?php 
        $html = ob_get_clean();
        return $form . $html;
    }