Beispiel #1
0
 function tax($recipient)
 {
     global $currency_code;
     $user = $this->getuser($recipient);
     return DTreg::displayRate($user->TableFee->tax, $currency_code);
 }
Beispiel #2
0
        } else {
            $minimum_amount = $this->event->partial_amount;
        }
        ?>
                 <input type="" readonly="readonly" value="<?php 
        echo $minimum_amount;
        ?>
" name="paying_amount" />

                  ( <?php 
        echo JText::_('DT_DEPOSIT_AMOUNT');
        ?>
 = 

               <?php 
        echo DTreg::displayRate($this->event->partial_amount, $currency_code);
        ?>
 )

               </td>

             </tr>

             <?php 
    } else {
        ?>

              <input type="hidden" name ="paying_amount" value="<?php 
        echo $this->paying_amount;
        ?>
" />
//	case 2:
$html .= " " . $tuser->fields[$lastname->id];
//	break;
//	case 3:
//	$html .= $profile->username;
//	break;
//}
if ($registrant_cb_linked == 1 && $user->user_id > 0) {
    $html .= '</a>';
}
$html .= "</td>";
if ($registrant_username == 1 && $cb_integrated > 0) {
    $html .= '<td>';
    if ($registrant_cb_linked == 1 && $user->user_id > 0) {
        if ($cb_integrated == 2) {
            $html .= '<a  href="' . JRoute::_('index.php?option=com_community&view=profile&userid=' . $user->user_id . '&Itemid=' . DTreg::getcomItemId('com_community'), $xhtml_url) . '">';
        } else {
            $html .= '<a  href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user='******'&Itemid=' . DTreg::getcomItemId('com_comprofiler'), $xhtml_url) . '">';
        }
    }
    if ($user->user_id > 0) {
        $html .= $profile->username;
    } else {
        $html .= '&nbsp;';
    }
    if ($registrant_cb_linked == 1 && $user->user_id > 0) {
        $html .= '</a>';
    }
    $html .= '</td>';
}
echo $html;
Beispiel #4
0
      </tr>
       <tr>

         <td>

           <?php 
echo JText::_('DT_AMOUNT');
?>

         </td>

         <td>

           <input type="text" name="User[Fee][fee]" value="<?php 
echo DTreg::showprice($tUser->TableFee->fee);
?>
" class="inputbox" />

         </td><td>&nbsp;</td>

      </tr>

      <tr><td><?php 
echo JText::_('DT_PAYMENT_METHOD');
?>
:</td><td> <?php 
echo JHTML::_('select.genericlist', DtHtml::options($pMethods, JText::_("DT_SELECT_PAY_OPTIONS")), 'User[Fee][payment_method]', ' ', 'value', 'text', isset($tUser->fee->payment_method) ? $tUser->fee->payment_method : 0);
?>
</td><td>&nbsp;</td></tr>
                echo "<br />" . $this->discountCodeError;
            }
        }
        if ($feeObj->latefee > 0) {
            echo "<br />" . JText::_('DT_LATE_FEE') . ": " . DTreg::displayRate($feeObj->latefee, $currency_code);
        }
        if ($feeObj->customfee != 0 && $feeObj->customfee != "" && is_array($feeObj->fieldfee)) {
            foreach ($feeObj->fieldfee as $key => $feefield) {
                if ($feefield['fee'] != 0) {
                    echo "<br />" . $feefield['field']->label . ": " . DTreg::displayRate($feefield['fee'], $currency_code);
                }
            }
        }
        if ($feeObj->tax > 0 && $show_price_tax) {
            echo "<br />" . JText::_('DT_TAX') . ": " . DTreg::displayRate($feeObj->tax, $currency_code);
        }
        if ($feeObj->changefee > 0) {
            echo "<br />" . JText::_('DT_CHANGE_FEE') . ": " . DTreg::displayRate($feeObj->changefee, $currency_code);
        }
        if ($feeObj->cancelfee > 0) {
            echo "<br />" . JText::_('DT_CHANGE_FEE') . ": " . DTreg::displayRate($feeObj->cancelfee, $currency_code);
        }
        ?>
</div>
          
		<?php 
    }
}
?>

</div>
Beispiel #6
0
 function setfields()
 {
     // echo '<pre>'; print_r($this->cart); print_r($this); exit;
     if (method_exists($this->payEway, 'setCurlPreferences')) {
         $expiry = explode('/', $this->x_exp_date);
         $this->fields['CustomerPostcode'] = $this->zip;
         $this->fields['CardNumber'] = $this->x_card_num;
         $this->fields['CardHoldersName'] = $this->firstname . ' ' . $this->lastname;
         $this->fields['CardExpiryMonth'] = $expiry[0];
         $this->fields['CardExpiryYear'] = $expiry[1];
         $this->fields['CVN'] = $this->x_card_code;
         $this->fields['TotalAmount'] = $this->cart->getAmount();
     }
     $this->fields['MerchantReference'] = $this->confirmNum;
     // $this->fields['CompanyName'] = $this->organization;
     $this->fields['CustomerFirstName'] = $this->firstname;
     $this->fields['InvoiceDescription'] = $this->description;
     $this->fields['CustomerLastName'] = $this->lastname;
     $this->fields['CustomerAddress'] = $this->address;
     $this->fields['CustomerEmail'] = $this->email != "" ? $this->email : '';
     $this->fields['Amount'] = DTreg::numberFormat($this->cart->getAmount(), 2);
     // $this->fields['TrxnNumber'] = '';
     //  $this->fields['Option1'] = '';
     /// $this->fields['Option2'] = '';
     //$this->fields['Option3'] = '';
     // $this->fields['Phone'] = $this->phone;
     // $this->fields['Email'] = $this->email;
     //$this->fields['Credit'] = 0;
     //die;
 }
<?php

global $cb_integrated, $show_moderator, $link_moderator_profile, $xhtml_url;
$row = $this->row;
$muser = $this->getModel('user');
$tuser = $muser->table;
$link = "";
$link = "";
if ($show_moderator != '0' && $row->user_id) {
    $profile = $tuser->TableJUser;
    $profile->load($row->user_id);
    if ($cb_integrated && $link_moderator_profile) {
        $profile->getProfile($row->user_id);
        $hrefarr = array(2 => JRoute::_('index.php?option=com_community&view=profile&userid=' . $row->user_id . '&Itemid=' . DTreg::getcomItemId('com_community'), $xhtml_url), 1 => JRoute::_('index.php?option=com_comprofiler&task=userProfile&user='******'&Itemid=' . DTreg::getcomItemId('com_comprofiler'), $xhtml_url));
        switch ($show_moderator) {
            case '1':
                $text = $profile->name;
                break;
            case 'username':
                $text = $profile->username;
                break;
            case 'name_username':
                $text = $profile->name . ' (' . $profile->username . ')';
                break;
        }
        $href = $hrefarr[$cb_integrated];
        $link = '<a  href="' . $href . '">' . $text . '</a>';
    } else {
        $link = $profile->name;
    }
}
Beispiel #8
0
 <?php 
                echo JText::_('DT_MEMBERS');
                ?>
</a>

					<?php 
            }
        }
        ?>
</td>

             <td align="center"><?php 
        if ($row->cancel == 1) {
            echo DTreg::numberFormat($row->due, 2);
        } else {
            echo DTreg::numberFormat($row->fee - $row->paid_amount, 2);
        }
        ?>

                </td>

                 <td align="center"><?php 
        echo $this->mUser->table->statustxt[$row->user_status];
        ?>
</td>

         </tr>

         <?php 
        $k = 1 - $k;
        $i++;
echo $this->userdata;
?>

 <tr><td><?php 
echo JText::_('DT_REGISTRATION_FEE');
?>
: </td><td><?php 
echo DTreg::displayRate($this->user->fee->fee);
?>
</td></tr>

 <tr><td><?php 
echo JText::_('DT_AMOUNT_PAID');
?>
: </td><td><?php 
echo DTreg::displayRate($this->user->fee->paid_amount);
?>
</td></tr>

 <tr><td><?php 
echo JText::_('DT_CONFIRMATION_NUMBER');
?>
: </td><td><?php 
echo $this->user->confirmNum;
?>
</td></tr>

 

  <tr><td><?php 
echo JText::_('DT_PAYMENT_TYPE');
Beispiel #10
0
    $userdata['members'] = $members;
    foreach ($userdata['members'] as $key => $dm) {
    }
    ?>
			 <script type="text/javascript">
			    //DTjQuery("input[name='key']").val('<?php 
    //echo $key;
    ?>
');
			 </script>
			<?php 
}
$TableUser->create($userdata);
$feeObj = new DT_Fee($tEvent, $TableUser);
$juser = JFactory::getUser();
$feeObj->getFee($juser->id);
// pr(get_object_vars($feeObj));
//pr( $feeObj);
if ($feeObj->paid_fee > 0) {
    $memtot = $TableUser->memtot;
    $discount = $feeObj->memberdiscount + $feeObj->birddiscount + $feeObj->discountcodefee;
    ?>
            <strong><?php 
    echo JText::_('TOTAL_REGISTRATION_COST');
    ?>
:</strong> <?php 
    echo DTreg::displayRate($feeObj->paid_fee, $currency_code);
}
?>

</div>
Beispiel #11
0
 $temp[] = null;
 $temp[] = -1;
 $temp[] = 1;
 $temp[] = $event->loc_name;
 $temp[] = $href;
 $temp[] = $event->timeformat == 2 ? 'HH:MM' : 'hh:MM tt';
 if (isset($event->imagepath)) {
     $temp[] = $event->imagepath;
 } else {
     $temp[] = '';
 }
 $temp[] = $cal_configs;
 $temp[] = $eventTable->displaydatecolumnonly();
 if ($eventTable->getIndividualRate($event) > 0) {
     $price = $eventTable->getIndividualRate($event);
     $price = DTreg::displayRate($price, $config->getGlobal('currency_code', 'USD'));
     global $show_price_tax;
     if ($show_price_tax && $eventTable->tax_enable) {
         $price += $price * $event->tax_amount / 100;
     }
 } else {
     $price = JText::_('DT_FREE');
 }
 $temp[] = $price;
 if ($event->max_registrations > 0) {
     $capacity = $event->max_registrations;
 } else {
     $capacity = JText::_('DT_UNLIMITED');
 }
 $temp[] = $capacity;
 $registered = $eventTable->getTotalregistered($event->slabId);
Beispiel #12
0
 function paid_amount($user)
 {
     return DTreg::showprice($user->fee->paid_amount);
 }
Beispiel #13
0
     </tr>
     
     <tr>
     	<td>
       <?php 
    echo JText::_('DT_DUE_PAYMENT');
    ?>
:
     	</td>
     	<td>
       <input type="radio" name="partial_payment" value="full" />
        <input type="hidden" name ="paying_amount" value="<?php 
    echo $paying_amount;
    ?>
" /> &nbsp;<?php 
    echo DTreg::displayRate($paying_amount, $currency_code);
    ?>
     	</td>
     </tr>
     <?php 
} else {
    ?>
           <input type="hidden" name ="paying_amount" value="<?php 
    echo $paying_amount;
    ?>
" /> 
         <?php 
}
?>
     
     <tr>
            if ($feeObj->birddiscount > 0) {
                echo "<br />" . JText::_('DT_BIRD_DISCOUNT') . ": " . DTreg::displayRate($feeObj->birddiscount, $currency_code);
            }
            if ($feeObj->discountcodefee > 0) {
                echo "<br />" . "<strong>" . JText::_('DT_DISCOUNT_CODE_APPLIED') . ": " . DTreg::displayRate($feeObj->discountcodefee, $currency_code) . '</strong>';
            } elseif (isset($this->discountCodeError) && ($this->discountCodeError = "")) {
                echo "<br />" . $this->discountCodeError;
            }
        }
        if ($feeObj->latefee > 0) {
            echo "<br />" . JText::_('DT_LATE_FEE') . ": " . DTreg::displayRate($feeObj->latefee, $currency_code);
        }
        if ($feeObj->customfee != 0 && $feeObj->customfee != "" && is_array($feeObj->fieldfee)) {
            foreach ($feeObj->fieldfee as $key => $feefield) {
                if ($feefield['fee'] != 0) {
                    echo "<br />" . $feefield['field']->label . ": " . DTreg::displayRate($feefield['fee'], $currency_code);
                }
            }
        }
        if ($feeObj->tax > 0 && $show_price_tax) {
            echo "<br />" . JText::_('DT_TAX') . ": " . DTreg::displayRate($feeObj->tax, $currency_code);
        }
        ?>
</div>

		<?php 
    }
}
?>

</div>
Beispiel #15
0
?>

	<?php 
if ($config->getGlobal('price_column')) {
    ?>

				<td align="left" class="eventlist"><nobr>

				<?php 
    if ($eventTable->getIndividualRate($row) > 0) {
        $price = $eventTable->getIndividualRate($row);
        echo DTreg::displayRate($price, $config->getGlobal('currency_code', 'USD'));
        global $show_price_tax;
        if ($show_price_tax && $eventTable->tax_enable) {
            $price += $price * $eventTable->tax_amount / 100;
            echo " (" . JText::_("DT_WITHOUT_TAX") . ")" . "<br />" . DTreg::displayRate($price, $config->getGlobal('currency_code', 'USD')) . " (" . JText::_("DT_WITH_TAX") . ")";
        }
    } else {
        echo JText::_('DT_FREE');
    }
    ?>

				</nobr></td>

			<?php 
}
if ($config->getGlobal('capacity_column')) {
    ?>

				<td align="left" class="eventlist">
Beispiel #16
0
	              <td style="width:200px;">' . $tuser->TableEvent->displayTitle() . ' </td>';
    /*if($config->getGlobal('registrant_username',0)){
      	$html .= '<td>'.$tuser->TableJUser->username.'</td>';
      }*/
    if ($config->getGlobal('upanel_edit_show', 0)) {
        $html .= '<td align="center">' . $edit . '</td>';
    }
    if ($config->getGlobal('upanel_amount_show', 0)) {
        $html .= '<td align="center">' . $amount . '</td>';
    }
    if ($config->getGlobal('upanel_due_show', 0)) {
        $html .= '<td align="center">' . $due . '</td>';
    }
    // if($config->getGlobal('registrant_registered_date',0)){
    $html .= '<td align="center">' . DTreg::showDate($tuser->register_date) . '</td>';
    // }
    if ($config->getGlobal('upanel_pay_show', 0)) {
        if ($tuser->status != -1) {
            $html .= '<td align="center">' . $payment . '</td>';
        } else {
            $html .= '<td align="center">&nbsp;</td>';
        }
    }
    if ($config->getGlobal('upanel_cancel_show', 0)) {
        $html .= '<td align="center">' . $cancel_link . '</td>';
    }
    if ($config->getGlobal('upanel_status_show', 0)) {
        $html .= '<td align="center">' . $tuser->statustxt[$tuser->status] . '</td>';
    }
    $html .= '</tr>';
Beispiel #17
0
?>

 </td>

 <td>

   <?php 
echo DTreg::displayRate($this->registration['fee']['paid_amount'], $config->getGlobal('currency_code', 'USD'));
?>

 </td>
 
 <td>

   <?php 
echo DTreg::displayRate($this->registration['fee']['fee'], $config->getGlobal('currency_code', 'USD'));
?>

 </td>


 <td>

   <a href="<?php 
echo JRoute::_('index.php?option=com_dtregister&controller=event&task=cartRemove&userIndex=' . $this->index);
?>
"  /><img src="<?php 
echo Juri::root();
?>
/components/com_dtregister/assets/images/publish_x.png" border="0" height="16" width="16" alt="Remove"></a>