Exemplo n.º 1
0
 function quote($method = '')
 {
     global $oOrder, $aLang, $shipping_weight, $shipping_num_boxes;
     if (MODULE_SHIPPING_TABLE_MODE == 'price') {
         $oOrder_total = $_SESSION['cart']->show_total();
     } else {
         $oOrder_total = $shipping_weight;
     }
     $table_cost = split("[:,]", MODULE_SHIPPING_TABLE_COST);
     $size = count($table_cost);
     for ($i = 0, $n = $size; $i < $n; $i += 2) {
         if ($oOrder_total <= $table_cost[$i]) {
             $shipping = $table_cost[$i + 1];
             break;
         }
     }
     if (MODULE_SHIPPING_TABLE_MODE == 'weight') {
         $shipping = $shipping * $shipping_num_boxes;
     }
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_table_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_table_text_way'], 'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
     if ($this->tax_class > 0) {
         $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
     }
     if (oos_is_not_null($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
Exemplo n.º 2
0
 function quote($method = '')
 {
     global $oOrder, $aLang, $total_count;
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_selfpickup_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_selfpickup_text_way'], 'cost' => 0)));
     if (!empty($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
Exemplo n.º 3
0
 function quote($method = '')
 {
     global $aLang, $oOrder;
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_hermes_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_hermes_text_way'], 'cost' => MODULE_SHIPPING_HERMES_COST)));
     if ($this->tax_class > 0) {
         $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
     }
     if (!empty($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
Exemplo n.º 4
0
 function quote($method = '')
 {
     global $oOrder, $aLang, $total_count;
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_item_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_item_text_way'], 'cost' => MODULE_SHIPPING_ITEM_COST * $total_count + MODULE_SHIPPING_ITEM_HANDLING)));
     if ($this->tax_class > 0) {
         $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
     }
     if (oos_is_not_null($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
Exemplo n.º 5
0
 function quote($method = '')
 {
     global $aLang, $oOrder;
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_certified_mail_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_certified_mail_text_way'], 'cost' => MODULE_SHIPPING_CERTIFIED_MAIL_COST)));
     if ($this->tax_class > 0) {
         $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
     }
     if (oos_is_not_null($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
 function add($message, $type = 'error')
 {
     if ($type == 'error') {
         $this->errors[] = array('params' => 'class="messageStackError"', 'text' => oos_image(OOS_IMAGES . 'icons/error.gif', ICON_ERROR) . '&nbsp;' . $message);
     } elseif ($type == 'warning') {
         $this->errors[] = array('params' => 'class="messageStackWarning"', 'text' => oos_image(OOS_IMAGES . 'icons/warning.gif', ICON_WARNING) . '&nbsp;' . $message);
     } elseif ($type == 'success') {
         $this->errors[] = array('params' => 'class="messageStackSuccess"', 'text' => oos_image(OOS_IMAGES . 'icons/success.gif', ICON_SUCCESS) . '&nbsp;' . $message);
     } else {
         $this->errors[] = array('params' => 'class="messageStackError"', 'text' => $message);
     }
     $this->size++;
 }
Exemplo n.º 7
0
 function quote($method = '')
 {
     global $oOrder, $aLang, $shipping_weight;
     $weight_cost = preg_split("/[:,]/", MODULE_SHIPPING_WEIGHT_COST);
     if ($shipping_weight > $weight_cost[count($weight_cost) - 2]) {
         $shipping = ($shipping_weight - $weight_cost[count($weight_cost) - 2]) * MODULE_SHIPPING_WEIGHT_STEP + $weight_cost[count($weight_cost) - 1];
     }
     for ($i = 0; $i < count($weight_cost); $i += 2) {
         if ($shipping_weight <= $weight_cost[$i]) {
             $shipping = $weight_cost[$i + 1];
             break;
         }
     }
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_weight_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $aLang['module_shipping_weight_text_way'], 'cost' => $shipping + MODULE_SHIPPING_WEIGHT_HANDLING)));
     if ($this->tax_class > 0) {
         $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
     }
     if (!empty($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
        echo '                  <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . oos_href_link_admin($aFilename['products_expected'], 'page=' . $_GET['page'] . '&pID=' . $products['products_id']) . '\'">' . "\n";
    }
    ?>
                <td class="dataTableContent"><?php 
    echo $products['products_name'];
    ?>
</td>
                <td class="dataTableContent" align="center"><?php 
    echo oos_date_short($products['products_date_available']);
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    if (isset($pInfo) && is_object($pInfo) && $products['products_id'] == $pInfo->products_id) {
        echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif');
    } else {
        echo '<a href="' . oos_href_link_admin($aFilename['products_expected'], 'page=' . $_GET['page'] . '&pID=' . $products['products_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
    }
    ?>
&nbsp;</td>
              </tr>
<?php 
    // Move that ADOdb pointer!
    $products_result->MoveNext();
}
// Close result set
$products_result->Close();
?>
              <tr>
                <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="smallText" valign="top"><?php 
Exemplo n.º 9
0
        echo '                <td class="dataTableContent">' . $currency['title'] . '</td>' . "\n";
    }
    ?>
                <td class="dataTableContent"><?php 
    echo $currency['code'];
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    echo number_format($currency['value'], 8);
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    if (isset($cInfo) && is_object($cInfo) && $currency['currencies_id'] == $cInfo->currencies_id) {
        echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif');
    } else {
        echo '<a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $currency['currencies_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
    }
    ?>
&nbsp;</td>
              </tr>
<?php 
    // Move that ADOdb pointer!
    $currency_result->MoveNext();
}
// Close result set
$currency_result->Close();
?>
              <tr>
                <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="smallText" valign="top"><?php 
Exemplo n.º 10
0
        }
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        if ($newsletters['locked'] > 0) {
            echo oos_image(OOS_IMAGES . 'icons/locked.gif', ICON_LOCKED);
        } else {
            echo oos_image(OOS_IMAGES . 'icons/unlocked.gif', ICON_UNLOCKED);
        }
        ?>
</td>
                <td class="dataTableContent" align="right"><?php 
        if (isset($nInfo) && is_object($nInfo) && $newsletters['newsletters_id'] == $nInfo->newsletters_id) {
            echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
        } else {
            echo '<a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $newsletters['newsletters_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
        }
        ?>
&nbsp;</td>
              </tr>
<?php 
        // Move that ADOdb pointer!
        $newsletters_result->MoveNext();
    }
    // Close result set
    $newsletters_result->Close();
    ?>
              <tr>
                <td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="smallText" valign="top"><?php 
Exemplo n.º 11
0
             $_SESSION['cart']->remove($_POST['products_id'][$i]);
         } else {
             if (DECIMAL_CART_QUANTITY == '1') {
                 $_POST['cart_quantity'][$i] = str_replace(',', '.', $_POST['cart_quantity'][$i]);
             }
             $products_order_min = oos_get_products_quantity_order_min($_POST['products_id'][$i]);
             $products_order_units = oos_get_products_quantity_order_units($_POST['products_id'][$i]);
             if ($_POST['cart_quantity'][$i] >= $products_order_min) {
                 if ($_POST['cart_quantity'][$i] % $products_order_units == 0) {
                     $attributes = $_POST['id'][$_POST['products_id'][$i]] ? $_POST['id'][$_POST['products_id'][$i]] : '';
                     $_SESSION['cart']->add_cart($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $attributes, false, $_POST['to_wl_id'][$i]);
                 } else {
                     $_SESSION['error_cart_msg'] = trim($_SESSION['error_cart_msg']) . '<br />' . trim(oos_image(OOS_IMAGES . 'pixel_trans.gif', '', '11', '10') . $aLang['error_products_quantity_order_min_text'] . ' ' . oos_get_products_name($_POST['products_id'][$i]) . ' - ' . $aLang['error_products_units_invalid'] . ' ' . $_POST['cart_quantity'][$i] . ' - ' . $aLang['products_order_qty_unit_text_cart'] . ' ' . $products_order_units);
                 }
             } else {
                 $_SESSION['error_cart_msg'] = trim($_SESSION['error_cart_msg']) . '<br />' . trim(oos_image(OOS_IMAGES . 'pixel_trans.gif', '', '11', '10') . $aLang['error_products_quantity_order_min_text'] . ' ' . oos_get_products_name($_POST['products_id'][$i]) . ' - ' . $aLang['error_products_quantity_invalid'] . ' ' . $_POST['cart_quantity'][$i] . ' - ' . $aLang['products_order_qty_min_text_cart'] . ' ' . $products_order_min);
             }
         }
     }
     $_SESSION['navigation']->remove_last_page();
     MyOOS_CoreApi::redirect(oos_href_link($goto_file, oos_get_all_get_parameters($parameters), 'NONSSL'));
     break;
 case 'add_product':
     // customer adds a product from the products page
     if (isset($_POST['products_id']) && is_numeric($_POST['products_id'])) {
         if (isset($_POST['edit_product'])) {
             $_SESSION['cart']->remove($_POST['edit_product']);
         }
         $real_ids = $_POST['id'];
         // File_upload
         if (isset($_POST['number_of_uploads']) && is_numeric($_POST['number_of_uploads']) && $_POST['number_of_uploads'] > 0) {
Exemplo n.º 12
0
  function oos_info_image($image, $alt, $width = '', $height = '') {
    if ( ($image) && (file_exists(OOS_ABSOLUTE_PATH . OOS_IMAGES . $image)) ) {
      $image = oos_image(OOS_SHOP_IMAGES . $image, $alt, $width, $height);
    } else {
      $image = TEXT_IMAGE_NONEXISTENT;
    }

    return $image;
  }
Exemplo n.º 13
0
'"><?php 
        echo date(PHP_DATE_TIME_FORMAT, filemtime(OOS_FEEDS_EXPORT_PATH . $entry));
        ?>
</td>
                <td class="dataTableContent" align="right" onclick="document.location.href='<?php 
        echo oos_href_link_admin($aFilename['export_googlebase'], $onclick_link);
        ?>
'"><?php 
        echo number_format(filesize(OOS_FEEDS_EXPORT_PATH . $entry));
        ?>
 bytes</td>
                <td class="dataTableContent" align="right"><?php 
        if (isset($buInfo) && is_object($buInfo) && $entry == $buInfo->file) {
            echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
        } else {
            echo '<a href="' . oos_href_link_admin($aFilename['export_googlebase'], 'file=' . $entry) . '">' . oos_image(OOS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
        }
        ?>
&nbsp;</td>
              </tr>
<?php 
    }
    $dir->close();
}
?>
              <tr>
                <td class="smallText" colspan="3"><?php 
echo TEXT_EXPORT_DIRECTORY . ' ' . OOS_FEEDS_EXPORT_PATH;
?>
</td>
                <td align="right" class="smallText"><?php 
Exemplo n.º 14
0
    function selection() {
      global $oOrder, $aLang;

      for ($i=1; $i<13; $i++) {
        $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
      }

      $today = getdate();
      for ($i=$today['year']; $i < $today['year']+10; $i++) {
        $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
      }


      for ($i = 1; $i < 13; $i ++) {
        $start_month[] = array ('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0,0,0,$i,1,2000)));
      }

      $today = getdate();
      for ($i = $today['year'] - 4; $i <= $today['year']; $i ++) {
        $start_year[] = array ('id' => strftime('%y', mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
      }

      $form_array = array ();

      // Owner
      $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_owner'], 'field' => oos_draw_input_field('cc_owner', $oOrder->billing['firstname'] . ' ' . $oOrder->billing['lastname']))));

      // CC Number
      $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_number'], 'field' => oos_draw_input_field('cc_number'))));


      // Startdate
      if (USE_CC_START == '1') {
        $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_start'], 'field' => oos_draw_pull_down_menu('cc_start_month', $start_month).'&nbsp;'.oos_draw_pull_down_menu('cc_start_year', $start_year))));
      }
      // expire date
      $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('cc_expires_month', $expires_month) . '&nbsp;' . oos_draw_pull_down_menu('cc_expires_year', $expires_year))));


      // CVV
      if (USE_CC_CVV == '1') {
        $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_cvv'], 'field' => oos_draw_input_field('cc_cvv', '', 'size=4 maxlength=4'))));
      }

      if (USE_CC_ISS == '1') {
        $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_issue'], 'field' => oos_draw_input_field('cc_issue', '', 'size=2 maxlength=2'))));
      }


      // cards
      if (MODULE_PAYMENT_CC_ACCEPT_VISA == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_visa.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_MASTERCARD == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_mastercard.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_AMERICANEXPRESS == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_amex.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_DINERSCLUB == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_diners.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_DISCOVERNOVUS == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_discover.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_JCB == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_jcb.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_OZBANKCARD == '1')
        $this->accepted .='';

      $form_array = array_merge(array(array('title'=>$aLang['module_payment_cc_accepted_cards'],'field'=>$this->accepted)),$form_array);

      $selection = array ('id' => $this->code,
                          'module' => $this->title,
                          'fields' => $form_array);

      return $selection;
    }
Exemplo n.º 15
0
</td>
                <td  class="dataTableContent" align="right">&nbsp;</td>
                <td  class="dataTableContent" align="right">
<?php 
        if ($featured['status'] == '1') {
            echo '<a href="' . oos_href_link_admin($aFilename['featured'], 'action=setflag&flag=0&id=' . $featured['featured_id'], 'NONSSL') . '">' . oos_image(OOS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>';
        } else {
            echo '<a href="' . oos_href_link_admin($aFilename['featured'], 'action=setflag&flag=1&id=' . $featured['featured_id'], 'NONSSL') . '">' . oos_image(OOS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a>';
        }
        ?>
</td>
                <td class="dataTableContent" align="right"><?php 
        if (is_object($sInfo) && $featured['featured_id'] == $sInfo->featured_id) {
            echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
        } else {
            echo '<a href="' . oos_href_link_admin($aFilename['featured'], 'page=' . $_GET['page'] . '&fID=' . $featured['featured_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
        }
        ?>
&nbsp;</td>
      </tr>
<?php 
        // Move that ADOdb pointer!
        $featured_result->MoveNext();
    }
    // Close result set
    $featured_result->Close();
    ?>
              <tr>
                <td colspan="4"><table border="0" width="100%" cellpadding="0"cellspacing="2">
                  <tr>
                    <td class="smallText" valign="top"><?php 
Exemplo n.º 16
0
        ?>
      </tr>
      <tr>
<?php 
        if (!$delete_subimage4 && !$remove_subimage4) {
            echo '<td align="center" class="main"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $products_subimage4_name) . '\')">' . ($products_subimage4_name ? oos_image(OOS_SHOP_IMAGES . $products_subimage4_name, $pInfo->products_name, '', '80', 'align="right" hspace="5" vspace="5"') : '') . '</a></td>';
        } else {
            echo '<td></td>';
        }
        if (!$delete_subimage5 && !$remove_subimage5) {
            echo '<td align="center" class="main"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $products_subimage5_name) . '\')">' . ($products_subimage5_name ? oos_image(OOS_SHOP_IMAGES . $products_subimage5_name, $pInfo->products_name, '', '80', 'align="right" hspace="5" vspace="5"') : '') . '</a></td>';
        } else {
            echo '<td></td>';
        }
        if (!$delete_subimage6 && !$remove_subimage6) {
            echo '<td align="center" class="main"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $products_subimage6_name) . '\')">' . ($products_subimage6_name ? oos_image(OOS_SHOP_IMAGES . $products_subimage6_name, $pInfo->products_name, '', '80', 'align="right" hspace="5" vspace="5"') : '') . '</a></td>';
        } else {
            echo '<td></td>';
        }
        ?>
      </tr>
</table>

          </td>
        </tr>
<?php 
        if ($pInfo->products_date_available > date('Y-m-d')) {
            ?>
      <tr>
        <td align="center" class="smallText"><?php 
            echo sprintf(TEXT_PRODUCT_DATE_AVAILABLE, oos_date_long($pInfo->products_date_available));
Exemplo n.º 17
0
         $contents = array('form' => oos_draw_form('reviews', $aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
         $contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
         $contents[] = array('text' => '<br /><b>' . $rInfo->products_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (isset($rInfo) && is_object($rInfo)) {
             $heading[] = array('text' => '<b>' . $rInfo->products_name . '</b>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['reviews'], 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
             $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . oos_date_short($rInfo->date_added));
             if (oos_is_not_null($rInfo->last_modified)) {
                 $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . oos_date_short($rInfo->last_modified));
             }
             $contents[] = array('text' => '<br />' . oos_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
             $contents[] = array('text' => '<br />' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
             $contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . oos_image(OOS_HTTP_SERVER . OOS_SHOP . OOS_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
             $contents[] = array('text' => TEXT_INFO_REVIEW_READ . ' ' . $rInfo->reviews_read);
             $contents[] = array('text' => '<br />' . TEXT_INFO_REVIEW_SIZE . ' ' . $rInfo->reviews_text_size . ' bytes');
             $contents[] = array('text' => '<br />' . TEXT_INFO_PRODUCTS_AVERAGE_RATING . ' ' . number_format($rInfo->average_rating, 2) . '%');
         }
         break;
 }
 if (oos_is_not_null($heading) && oos_is_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
     echo $box->infoBox($heading, $contents);
     echo '            </td>' . "\n";
 }
 ?>
       </tr>
     </table></td>
Exemplo n.º 18
0
 function quote($method = '')
 {
     global $aLang, $oOrder, $shipping_weight, $shipping_num_boxes;
     $dest_country = $oOrder->delivery['country']['iso_code_2'];
     $dest_zone = 0;
     $error = false;
     for ($i = 1; $i <= $this->num_dp; $i++) {
         $countries_table = constant('MODULE_SHIPPING_DP_COUNTRIES_' . $i);
         $country_zones = preg_split("/[,]/", $countries_table);
         if (in_array($dest_country, $country_zones)) {
             $dest_zone = $i;
             break;
         }
     }
     if ($dest_zone == 0) {
         $error = true;
     } else {
         $shipping = -1;
         $dp_cost = constant('MODULE_SHIPPING_DP_COST_' . $i);
         $dp_table = preg_split("/[:,]/", $dp_cost);
         $nArrayCountDP = count($dp_table);
         for ($i = 0; $i < $nArrayCountDP; $i += 2) {
             if ($shipping_weight <= $dp_table[$i]) {
                 $shipping = $dp_table[$i + 1];
                 $shipping_method = $aLang['module_shipping_dp_text_way'] . ' ' . $dest_country . ': ';
                 break;
             }
         }
         if ($shipping == -1) {
             $shipping_cost = 0;
             $shipping_method = $aLang['module_shipping_dp_undefined_rate'];
         } else {
             $shipping_cost = $shipping + MODULE_SHIPPING_DP_HANDLING;
         }
     }
     $this->quotes = array('id' => $this->code, 'module' => $aLang['module_shipping_dp_text_title'], 'methods' => array(array('id' => $this->code, 'title' => $shipping_method . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . ' ' . $aLang['module_shipping_dp_text_units'] . ')', 'cost' => $shipping_cost * $shipping_num_boxes)));
     if ($this->tax_class > 0) {
         $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
     }
     if (!empty($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     if ($error == true) {
         $this->quotes['error'] = $aLang['module_shipping_dp_invalid_zone'];
     }
     return $this->quotes;
 }
Exemplo n.º 19
0
      $contents = array('form' => oos_draw_form('reply', $aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id  . '&action=deleteconfirm'));
      $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
      $contents[] = array('text' => '<br /><b>' . $oInfo->ticket_reply_name . '</b>');
      $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete','delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
      break;

    default:
      if (isset($oInfo) && is_object($oInfo)) {
        $heading[] = array('text' => '<b>' . $oInfo->ticket_reply_name . '</b>');

        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=edit') . '">' . oos_image_swap_button('edit','edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=delete') . '">' . oos_image_swap_button('delete','delete_off.gif', IMAGE_DELETE) . '</a>');

        $ticket_reply_inputs_string = '';
        $languages = oos_get_languages();
        for ($i = 0, $n = count($languages); $i < $n; $i++) {
          $ticket_reply_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_get_ticket_reply_name($oInfo->ticket_reply_id, $languages[$i]['id']);
        }

        $contents[] = array('text' => $ticket_reply_inputs_string);
      }
      break;
  }

  if ( (!empty($heading)) && (!empty($contents) ) ) {
    echo '            <td width="25%" valign="top">' . "\n";

    $box = new box;
    echo $box->infoBox($heading, $contents);

    echo '            </td>' . "\n";
  }
Exemplo n.º 20
0
     } else {
         if ($oEvent->installed_plugin('sefu')) {
             $lc_text = '&nbsp;<a href="' . oos_href_link($aModules['products'], $aFilename['product_info'], 'products_id=' . $listing['products_id']) . '">';
         } else {
             $lc_text = '&nbsp;<a href="' . oos_href_link($aModules['products'], $aFilename['product_info'], ($categories ? 'categories=' . $categories . '&amp;' : '') . 'products_id=' . $listing['products_id']) . '">';
         }
     }
     $lc_image = 'no_picture.gif';
     if (oos_is_not_null($listing['products_image'])) {
         $lc_image = $listing['products_image'];
     } else {
         if (is_readable(OOS_ABSOLUTE_PATH . OOS_IMAGES . 'no_picture_' . $sLanguage . '.gif')) {
             $lc_image = 'no_picture_' . $sLanguage . '.gif';
         }
     }
     $lc_text .= oos_image(OOS_IMAGES . $lc_image, $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
     break;
 case 'PRODUCT_LIST_BUY_NOW':
     $lc_align = 'right';
     if ($_SESSION['member']->group['show_price'] == 1) {
         if (DECIMAL_CART_QUANTITY == '1') {
             $order_min = number_format($listing['products_quantity_order_min'], 2);
         } else {
             $order_min = number_format($listing['products_quantity_order_min']);
         }
         if (PRODUCT_LISTING_WITH_QTY == '1') {
             $lc_text = '<form name="buy_now" action="' . OOS_HTTP_SERVER . OOS_SHOP . 'index.php" method="post">';
             $lc_text .= '<input type="hidden" name="action" value="buy_now">';
             $lc_text .= '<input type="hidden" name="products_id" value="' . $listing['products_id'] . '">';
             $lc_text .= '<input type="hidden" name="mp" value="' . $sMp . '">';
             $lc_text .= '<input type="hidden" name="file" value="' . $sFile . '">';
Exemplo n.º 21
0
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDERS_STATUS . '</b>');
        $contents = array('form' => oos_draw_form('status', $aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $psInfo->products_status_name . '</b>');
        if ($remove_status) {
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        }
        break;
    default:
        if (isset($psInfo) && is_object($psInfo)) {
            $heading[] = array('text' => '<b>' . $psInfo->products_status_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            $products_status_inputs_string = '';
            $languages = oos_get_languages();
            for ($i = 0, $n = count($languages); $i < $n; $i++) {
                $products_status_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_get_products_status_name($psInfo->products_status_id, $languages[$i]['id']);
            }
            $contents[] = array('text' => $products_status_inputs_string);
        }
        break;
}
if (oos_is_not_null($heading) && oos_is_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>
if ( !current_user_can('popup_image_product') )
    oos_redirect_admin(oos_href_link_admin($aFilename['forbiden']));

?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo $products_values['products_name']; ?> - Administration [OOS]</title>
<base href="<?php echo (getenv('HTTPS') == 'on' ? OOS_HTTPS_SERVER : OOS_HTTP_SERVER) . OOS_SHOP; ?>">
<script language="javascript"><!--
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
  self.focus();
}
//--></script>
</head>
<body onload="resize();">
<?php
  if (file_exists(OOS_ABSOLUTE_PATH . OOS_IMAGES . OOS_POPUP_IMAGES . $_GET['bimage'])) {
    $image= OOS_HTTP_SERVER . OOS_SHOP . OOS_IMAGES . OOS_POPUP_IMAGES . $_GET['bimage'];
  } else {
    $image= OOS_HTTP_SERVER . OOS_SHOP . OOS_IMAGES . $_GET['bimage'];
  }
  echo oos_image($image, $products_values['products_name']);
?>
</body>
</html>
<?php require 'includes/oos_nice_exit.php'; ?>
Exemplo n.º 23
0
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_CACHE . ':</b><br />' . oos_draw_input_field('block_cache'));
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_COLUMN . ':</b><br />' . oos_block_select_option(array('left', 'right'), 'block_side'));
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_STATUS . ':</b> ' . oos_draw_pull_down_menu('block_status', $block_status_array));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_LOGIN . '</b> ' . oos_draw_pull_down_menu('block_login_flag', $block_login_flag_array));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_PAGE . '</b><br />' . oos_select_block_to_page());
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_SORT_ORDER . ':</b> ' . oos_draw_input_field('sort_order', '', 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_BLOCK . '</b>');
     $contents = array('form' => oos_draw_form('block', $aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $block_inputs_string = '';
     $languages = oos_get_languages();
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $block_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('block_name[' . $languages[$i]['id'] . ']', oos_get_block_name($bInfo->block_id, $languages[$i]['id']));
     }
     eval('$value_field = ' . $bInfo->set_function . '"' . htmlspecialchars($bInfo->block_side) . '");');
     $contents[] = array('text' => '<br />' . TEXT_BLOCK_NAME . $block_inputs_string);
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_FUNCTION . ':</b><br />' . oos_draw_input_field('function', $bInfo->block_file));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_CACHE . ':</b><br />' . oos_draw_input_field('block_cache', $bInfo->block_cache));
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_COLUMN . ':</b><br />' . $value_field);
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_STATUS . ':</b> ' . oos_draw_pull_down_menu('block_status', $block_status_array, $bInfo->block_status));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_LOGIN . ':</b> ' . oos_draw_pull_down_menu('block_login_flag', $block_login_flag_array, $bInfo->block_login_flag));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_PAGE . ':</b><br />' . oos_show_block_to_page($bInfo->block_id));
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_SORT_ORDER . ':</b><br />' . oos_draw_input_field('sort_order', $bInfo->block_sort_order, 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_BLOCK . '</b>');
     $contents = array('form' => oos_draw_form('block', $aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=deleteconfirm'));
Exemplo n.º 24
0
 function quote($method = '')
 {
     global $oOrder, $aLang, $shipping_weight, $shipping_num_boxes;
     if (!empty($method) && (isset($this->types[$method]) || in_array($method, $this->intl_types))) {
         $this->_setService($method);
     }
     $this->_setMachinable('0');
     $this->_setContainer('None');
     $this->_setSize('REGULAR');
     // usps doesnt accept zero weight
     $shipping_weight = $shipping_weight < 0.1 ? 0.1 : $shipping_weight;
     $shipping_pounds = floor($shipping_weight);
     $shipping_ounces = round(16 * ($shipping_weight - floor($shipping_weight)));
     $this->_setWeight($shipping_pounds, $shipping_ounces);
     $uspsQuote = $this->_getQuote();
     if (is_array($uspsQuote)) {
         if (isset($uspsQuote['error'])) {
             $this->quotes = array('module' => $this->title, 'error' => $uspsQuote['error']);
         } else {
             $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)');
             $methods = array();
             $size = count($uspsQuote);
             for ($i = 0; $i < $size; $i++) {
                 list($type, $cost) = each($uspsQuote[$i]);
                 $methods[] = array('id' => $type, 'title' => isset($this->types[$type]) ? $this->types[$type] : $type, 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
             }
             $this->quotes['methods'] = $methods;
             if ($this->tax_class > 0) {
                 $this->quotes['tax'] = oos_get_tax_rate($this->tax_class, $oOrder->delivery['country']['id'], $oOrder->delivery['zone_id']);
             }
         }
     } else {
         $this->quotes = array('module' => $this->title, 'error' => $aLang['module_shipping_usps_text_error']);
     }
     if (!empty($this->icon)) {
         $this->quotes['icon'] = oos_image($this->icon, $this->title);
     }
     return $this->quotes;
 }
Exemplo n.º 25
0
            } else {
                $children .= '' . $cat[$i]['children'][$j]['title'] . ', ';
            }
        }
        echo substr($children, 0, -2);
        echo '</td> ' . "\n" . '                          </tr>' . "\n" . '                        </table></td>' . "\n" . '                      </tr>' . "\n" . '                    </table></td>' . "\n";
        if ($counter >= $col) {
            echo '                  </tr>' . "\n";
            $counter = 0;
        }
    } elseif ($cat[$i]['access'] == false) {
        $counter++;
        if ($counter < $col) {
            echo '                  <tr>' . "\n";
        }
        echo '                    <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" . '                      <tr>' . "\n" . '                        <td>' . oos_image(OOS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '50', '50') . '</td>' . "\n" . '                        <td><table border="0" cellspacing="0" cellpadding="1">' . "\n" . '                          <tr>' . "\n" . '                            <td class="main_false">' . $cat[$i]['title'] . '</td>' . "\n" . '                          </tr>' . "\n" . '                          <tr>' . "\n" . '                            <td class="sub_false">';
        $children = '';
        for ($j = 0, $k = count($cat[$i]['children']); $j < $k; $j++) {
            $children .= '' . $cat[$i]['children'][$j]['title'] . ', ';
        }
        echo substr($children, 0, -2);
        echo '</td> ' . "\n" . '                          </tr>' . "\n" . '                        </table></td>' . "\n" . '                      </tr>' . "\n" . '                    </table></td>' . "\n";
        if ($counter >= $col) {
            echo '                  </tr>' . "\n";
            $counter = 0;
        }
    }
}
?>
                </table></td>
              </tr>
Exemplo n.º 26
0
      if ($customers['customers_login'] == '1') {
        echo '<a href="' . oos_href_link_admin($aFilename['customers'], 'selected_box=customers&page=' . $_GET['page'] . '&action=setflag&loginflag=0&cID=' . $customers['customers_id']) . '">' . oos_image(OOS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>';
      } else {
        echo '<a href="' . oos_href_link_admin($aFilename['customers'], 'selected_box=customers&page=' . $_GET['page'] . '&action=setflag&loginflag=1&cID=' . $customers['customers_id']) . '">' . oos_image(OOS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a>';
      }

      if (defined('GOOGLE_MAP_API_KEY')) {
?>
                <td class="dataTableContent" align="center"><?php echo '<a href="javascript:popupGoogleMap(\'' . $aFilename['popup_google_map'] . '?query=' . rawurlencode($customers['entry_city']) . '\')">' . oos_image(OOS_IMAGES . 'icon_popup.gif', 'View Google Map'); ?></a>&nbsp;</td>
<?php
      }
?>


                <td class="dataTableContent" align="right"><?php echo oos_date_short($info['date_account_created']); ?></td>
                <td class="dataTableContent" align="right"><?php if (isset($cInfo) && is_object($cInfo) && ($customers['customers_id'] == $cInfo->customers_id) ) { echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID')) . 'cID=' . $customers['customers_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
              </tr>
<?php
      // Move that ADOdb pointer!
      $customers_result->MoveNext();
    }

    // Close result set
    $customers_result->Close();

?>
              <tr>
<?php echo (ACCOUNT_NUMBER == '1' ? '                <td colspan="8">' : '                <td colspan="7">'); ?><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="smallText" valign="top"><?php echo $customers_split->display_count($customers_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS); ?></td>
                    <td class="smallText" align="right"><?php echo $customers_split->display_links($customers_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], oos_get_all_get_params(array('page', 'info', 'x', 'y', 'cID'))); ?></td>
Exemplo n.º 27
0
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_MANUFACTURER . '</b>');
     $contents = array('form' => oos_draw_form('manufacturers', $aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_NAME . '<br />' . oos_draw_input_field('manufacturers_name', $mInfo->manufacturers_name));
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br />' . oos_draw_file_field('manufacturers_image') . '<br />' . $mInfo->manufacturers_image);
     $manufacturer_inputs_string = '';
     $languages = oos_get_languages();
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', oos_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
     $contents = array('form' => oos_draw_form('manufacturers', $aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $mInfo->manufacturers_name . '</b>');
     $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
         $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
Exemplo n.º 28
0
        $rows = 0;
        $categories_box = '';

        while ($categories = $categories_result->fields) {
            $rows++;

            $categories_new = oos_get_path($categories['categories_id'], $categories['parent_id'], $categories['gparent_id']);
            $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

            $categories_box .= '                <td align="center" class="smallText" style="width: ' . $width . '" valign="top"><a href="' . oos_href_link($aPages['shop'], $categories_new) . '">';

            if (!empty($categories['categories_image'])) {
                $categories_box .= oos_image(OOS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />';
            } else {
                $categories_box .= oos_image(OOS_IMAGES . 'trans.gif', $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT, 'style="border: 3px double black"') . '<br />';
            }
            $categories_box .= $categories['categories_name'] . '</a></td>' . "\n";

            if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $categories_result->RecordCount())) {
              $categories_box .= '              </tr>' . "\n";
              $categories_box .= '              <tr>' . "\n";
            }

            // Move that ADOdb pointer!
            $categories_result->MoveNext();
        }


        $new_products_category_id = $nCurrentCategoryId;
        require 'includes/modules/new_products.php';
Exemplo n.º 29
0
        ?>
</td>
                <td class="dataTableContent" align="right">
<?php 
        if ($module->check() > 0) {
            echo '<a href="' . oos_href_link_admin($aFilename['modules'], 'set=' . $_GET['set'] . '&module=' . $class . '&action=remove') . '">' . oos_image(OOS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>';
        } else {
            echo '<a href="' . oos_href_link_admin($aFilename['modules'], 'set=' . $_GET['set'] . '&module=' . $class . '&action=install') . '">' . oos_image(OOS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a>';
        }
        ?>
</td>
                <td class="dataTableContent" align="right"><?php 
        if (isset($mInfo) && is_object($mInfo) && $class == $mInfo->code) {
            echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif');
        } else {
            echo '<a href="' . oos_href_link_admin($aFilename['modules'], 'set=' . $_GET['set'] . '&module=' . $class) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
        }
        ?>
&nbsp;</td>
              </tr>
<?php 
    }
}
ksort($installed_modules);
$configurationtable = $oostable['configuration'];
$check_result = $dbconn->Execute("SELECT configuration_value FROM {$configurationtable} WHERE configuration_key = '" . $module_key . "'");
if ($check_result->RecordCount()) {
    $check = $check_result->fields;
    if ($check['configuration_value'] != implode(';', $installed_modules)) {
        $configurationtable = $oostable['configuration'];
        $dbconn->Execute("UPDATE {$configurationtable} SET configuration_value = '" . implode(';', $installed_modules) . "', last_modified = '" . date("Y-m-d H:i:s", time()) . "' WHERE configuration_key = '" . $module_key . "'");
Exemplo n.º 30
0
if ( !current_user_can('popup_image_news') )
    oos_redirect_admin(oos_href_link_admin($aFilename['forbiden']));

?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo $_GET['title']; ?> - Administration [OOS]</title>
<base href="<?php echo (getenv('HTTPS') == 'on' ? OOS_HTTPS_SERVER : OOS_HTTP_SERVER) . OOS_SHOP; ?>">
<script language="javascript"><!--
var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
  self.focus();
}
//--></script>
</head>
<body onload="resize();">
<?php
  if (file_exists(OOS_ABSOLUTE_PATH . OOS_IMAGES . OOS_POPUP_IMAGES . $_GET['n_image'])) {
    $image = OOS_SHOP_IMAGES . OOS_POPUP_IMAGES . $_GET['n_image'];
  } else {
    $image = OOS_SHOP_IMAGES . $_GET['n_image'];
  }
    echo oos_image($image, $_GET['title']);
?>
</body>
</html>
<?php require 'includes/oos_nice_exit.php'; ?>