Пример #1
0
                <td>
                </td>
                
                <td>
                </td>
                
                <td>
                </td>

            </tr>
	<?php 
} else {
    $i = 0;
    foreach ($commissions_to_pay as $key => $value) {
        $teachername = $guruAdminModelguruCommissions->getTeacherName($value["author_id"]);
        $course_name = $guruAdminModelguruCommissions->getCourseName($value["course_id"]);
        $paypal_or_not = $guruAdminModelguruCommissions->getPaymentOption($value["author_id"]);
        $paypal_email = $guruAdminModelguruCommissions->getPaymentPaypalEmail($value["author_id"]);
        $count_orders = $value["orders"];
        $amount_pending = $value["amount_paid_author"];
        $sum_orders += $count_orders;
        $checked = JHTML::_('grid.id', $i, $value["author_id"] . "-" . $value["course_id"] . "-" . $value["id"] . "-" . $value["currency"]);
        if (isset($total_sum_per_currency[$value["currency"]])) {
            $total_sum_per_currency[$value["currency"]] += $value["amount_paid_author"];
        } else {
            $total_sum_per_currency[$value["currency"]] = $value["amount_paid_author"];
        }
        ?>
		<tr> 
			<td>
Пример #2
0
?>
<i class="icon-menu-2"></i>
            </th>
            <th>
                <?php 
echo JText::_('GURU_VIEW_DETAILS');
?>
            </th>            
        </tr>
    </thead>
    
    <tbody>
    
    <?php 
for ($i = 0; $i < $n; $i++) {
    $teachername = $guruAdminModelguruCommissions->getTeacherName($commissions_paid_teacher[$i]["author_id"]);
    $character = "GURU_CURRENCY_" . $commissions_paid_teacher[$i]["coin"];
    ?>
        <tr> 
           <td>
           		<?php 
    echo '<a href="index.php?option=com_guru&controller=guruAuthor&task=edit&id=' . $commissions_paid_teacher[$i]["author_id"] . '&hidemainmenu=1">' . $teachername[0] . '</a>';
    ?>
           </td>
           
           <td>
           		<?php 
    if ($currencypos == 0) {
        echo JText::_($character) . " " . number_format($commissions_paid_teacher[$i]["total"], 2);
    } else {
        echo number_format($commissions_paid_teacher[$i]["total"], 2) . " " . JText::_($character);