$easybill_query = xtc_db_query("SELECT * FROM easybill WHERE orders_id='" . $oID . "'");
    if (xtc_db_num_rows($easybill_query) > 0) {
        $easybill = xtc_db_fetch_array($easybill_query);
        ?>
      <tr>
        <td class="main" valign="top"><b>easyBill:</b></td>
        <td>
          <fieldset>
            <legend><span class="main">easyBill</span></legend>
              <table>
                <tr>
                  <td class="main"><b>Rechnungsnummer:</b></td>
                  <td class="main"><?php 
        echo $easybill['billing_id'];
        ?>
</td>
                </tr>
                <tr>
                  <td class="main"><b>Rechnungsdatum:</b></td>
                  <td class="main"><?php 
        echo xtc_datetime_short($easybill['billing_date']);
        ?>
</td>
                </tr>
              </table>
          </fieldset>
        </td>
      </tr>
    <?php 
    }
}
         $country = xtc_db_fetch_array($country_query);
         $reviews_query = xtc_db_query("SELECT COUNT(*) as number_of_reviews FROM " . TABLE_REVIEWS . " WHERE customers_id = '" . (int) $cInfo->customers_id . "'");
         $reviews = xtc_db_fetch_array($reviews_query);
         $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($info['date_account_created']));
         $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($info['date_account_last_modified']));
         $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_date_short($info['date_last_logon']));
         $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $info['number_of_logons']);
         $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . ' ' . $country['countries_name']);
         $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $reviews['number_of_reviews']);
     } else {
         //EOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box
         $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . xtc_date_short($cInfo->date_account_created));
         $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . xtc_date_short($cInfo->date_account_last_modified));
         // BOF - Tomcraft - 2011-01-16 - Additionally show time for customers last logon time
         //$contents[] = array ('text' => '<br />'.TEXT_INFO_DATE_LAST_LOGON.' '.xtc_date_short($cInfo->date_last_logon));
         $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' ' . xtc_datetime_short($cInfo->date_last_logon));
         // EOF - Tomcraft - 2011-01-16 - Additionally show time for customers last logon time
         $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
         $contents[] = array('text' => '<br />' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
         $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
         //BOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box
     }
     //EOF - DokuMan - 2010-11-02 - Workaround for customer details not showing on iplog-Box
 }
 if ($action == 'iplog') {
     if (isset($_GET['cID'])) {
         $contents[] = array('text' => '<br /><b>IPLOG :');
         $customers_id = xtc_db_prepare_input($_GET['cID']);
         $customers_log_info_array = xtc_get_user_info($customers_id);
         if (xtc_db_num_rows($customers_log_info_array)) {
             while ($customers_log_info = xtc_db_fetch_array($customers_log_info_array)) {
Example #3
0
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
            $contents = array('form' => xtc_draw_form('orders', FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
            $contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
            $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="button" value="' . BUTTON_DELETE . '"><a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . BUTTON_CANCEL . '</a>');
            break;
        default:
            if (is_object($oInfo)) {
                $heading[] = array('text' => '<b>[' . $oInfo->orders_id . ']&nbsp;&nbsp;' . xtc_datetime_short($oInfo->date_purchased) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>');
                if (AFTERBUY_ACTIVATED == 'true') {
                    $contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=afterbuy_send') . '">' . BUTTON_AFTERBUY_SEND . '</a>');
                }
                // RATEPAY START
                include 'includes/ratepay_order_buttons.php';
                // RATEPAY END
                //$contents[] = array('align' => 'center', 'text' => '');
                $contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . xtc_date_short($oInfo->date_purchased));
                if (xtc_not_null($oInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . xtc_date_short($oInfo->last_modified));
                }
                $contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
                // elari added to display product list for selected order
                $order = new order($oInfo->orders_id);
</td>
					<td class="dataTableHeadingContent"><?php 
        echo TEXT_PAYPAL_NETTO;
        ?>
</td>
				</tr>
				<?php 
        while ($conn_data = xtc_db_fetch_array($conn_query)) {
            ?>
					<tr class="dataTableRow">
						<td class="dataTableContent" nowrap><?php 
            echo $paypal->getStatusSymbol($conn_data['payment_status'], $conn_data['txn_type']);
            ?>
</td>
						<td class="dataTableContent" nowrap><?php 
            echo xtc_datetime_short($conn_data['payment_date']);
            ?>
</td>
						<td class="dataTableContent" nowrap><?php 
            echo $conn_data['txn_id'];
            ?>
</td>
						<td class="dataTableContent" nowrap><?php 
            echo $conn_data['payment_type'];
            ?>
</td>
						<td class="dataTableContent" nowrap><?php 
            echo $paypal->getStatusName($conn_data['payment_status'], $conn_data['txn_type']);
            ?>
</td>
						<td class="dataTableContent" nowrap><?php 
</dt>
                            <dd><?php 
                    echo format_price($admin_info_array['transactions'][$t]['relatedResource'][$i]['total'], 1, $admin_info_array['transactions'][$t]['relatedResource'][$i]['currency'], 0, 0);
                    ?>
</dd>
                          </dl>
                          <?php 
                    if ($admin_info_array['transactions'][$t]['relatedResource'][$i]['valid'] != '') {
                        ?>
                            <dl class="pp_txstatus_data_list">
                              <dt><?php 
                        echo TEXT_PAYPAL_TRANSACTIONS_VALID;
                        ?>
</dt>
                              <dd><?php 
                        echo xtc_datetime_short($admin_info_array['transactions'][$t]['relatedResource'][$i]['valid']);
                        ?>
</dd>
                            </dl>
                          <?php 
                    }
                    ?>
                          <dl class="pp_txstatus_data_list">
                            <dt><?php 
                    echo TEXT_PAYPAL_TRANSACTIONS_ID;
                    ?>
</dt>
                            <dd><?php 
                    echo $admin_info_array['transactions'][$t]['relatedResource'][$i]['id'];
                    ?>
</dd>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($_GET['action']) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PAYMENT . '</b>');
            $contents = array('form' => xtc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . xtc_href_link(AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($pInfo)) {
                $heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . ']&nbsp;&nbsp;' . xtc_datetime_short($pInfo->affiliate_payment_date) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . xtc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
            }
            break;
    }
    if (xtc_not_null($heading) && xtc_not_null($contents)) {
        echo '            <td  width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
function shopDatetimeShort($raw_datetime)
{
    return xtc_datetime_short($raw_datetime);
}
                    <td class="dataTableContent txta-r"><b><?php 
        echo $list[$i]['intent'];
        ?>
</b></td>
                    <td class="dataTableContent txta-r"><b><?php 
        echo $list[$i]['state'];
        ?>
</b></td>
                  </tr>
                <?php 
        for ($t = 0, $x = count($list[$i]['transactions']); $t < $x; $t++) {
            for ($r = 0, $z = count($list[$i]['transactions'][$t]['relatedResource']); $r < $z; $r++) {
                ?>
                      <tr class="dataTableRow">
                        <td class="dataTableContent"><?php 
                echo xtc_datetime_short($list[$i]['transactions'][$t]['relatedResource'][$r]['date']);
                ?>
</td>
                        <td class="dataTableContent"><?php 
                echo $list[$i]['transactions'][$t]['relatedResource'][$r]['id'];
                ?>
</td>
                        <td class="dataTableContent txta-r"><?php 
                echo format_price($list[$i]['transactions'][$t]['relatedResource'][$r]['total'], 1, $list[$i]['transactions'][$t]['relatedResource'][$r]['currency'], 0, 0);
                ?>
</td>
                        <td class="dataTableContent txta-r"><?php 
                echo $list[$i]['transactions'][$t]['relatedResource'][$r]['type'];
                ?>
</td>
                        <td class="dataTableContent txta-r"><?php 
                    <div class="smallText col-xs-6 text-right"><?php 
echo $gv_split->display_links($gv_query_numrows, '20', MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</div>
                  </div>
            </div>
<?php 
$heading = array();
$contents = array();
switch ($_GET['action']) {
    case 'release':
        $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . xtc_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));
        $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" style="font-color: red;" onclick="this.blur();" href="' . xtc_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . BUTTON_CONFIRM . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . BUTTON_CANCEL . '</a>');
        break;
    default:
        $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . xtc_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));
        $contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . BUTTON_RELEASE . '</a>');
        break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
    echo '            <div class="col-md-3 hidden-xs hidden-sm pull-right edit-box-class">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </div>' . "\n";
    ?>
    <script>
        //responsive_table
        $('#responsive_table').addClass('col-md-9');
    </script>               
    <?php 
}