<?php
/*
  www.oscGold.com (C) Kamelia-Net Jacek Krysiak
  modul oscGold wer 4.0
*/
?>
<!-- ticket //-->

<?php

if (tep_session_is_registered('customer_id')) {

  $orders_total = tep_count_customer_orders();

  if ($orders_total > 0) {

    $corner_left = 'rounded';
    $corner_right = 'rounded';

    $box_base_name = 'ticket'; // for easy unique box template setup (added BTSv1.2)
    $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)

    $boxHeading = BOX_HEADING_TICKET;

    $boxContent = '<div class="box_kont">';

    $boxContent .=
       '<div class="box_list"><a class="boxLink" href="' . tep_href_link(FILENAME_TICKET_CREATE, '', 'SSL') . '">' . BOX_TICKET_GENERATE . '</a></div>';
    if (file_exists(DIR_WS_TEMPLATES . 'images/infobox/category_line.gif')) {
      $boxContent .= '<div class="box_line">' . tep_image(DIR_WS_TEMPLATES . 'images/infobox/category_line.gif') . '</div>';
    }

    $boxContent .=
       '<div class="box_list"><a class="boxLink" href="' . tep_href_link(FILENAME_TICKET_VIEW, '', 'SSL') . '">' . BOX_TICKET_VIEW . '</a></div>';

    $boxContent .= '</div>';

    include (bts_select('boxes', $box_base_name)); // BTS 1.5

  }
}
?>
<!-- ticket_eof //-->