Example #1
0
            <table border="0" width="100%" cellspacing="0" cellpadding="2" align="center">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent"><?php 
echo NAVBAR_TITLE;
?>
</td>
              </tr>
              <tr class="dataTableRow">
                <td align="left" class="dataTableContent"><?php 
echo TEXT_MAIN;
?>
</td>
              </tr>
              <tr class="dataTableRow">
                <td align="left"><?php 
echo '&nbsp;<a href="' . oos_href_link_admin($aFilename['default']) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a>&nbsp;';
?>
</td>
              </tr>
            </table>
        </td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>
<!-- body_eof //-->

<?php 
require 'includes/oos_footer.php';
?>
Example #2
0
    /* Re-Post all POST'ed variables */
    reset($_POST);
    while (list($key, $value) = each($_POST)) {
        if (!is_array($_POST[$key])) {
            echo oos_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
        }
    }
    ?>
                <table border="0" width="100%" cellpadding="0" cellspacing="2">
                  <tr>
                    <td><?php 
    echo oos_image_swap_submits('back', 'back_off.gif', IMAGE_BACK, 'name="back"');
    ?>
</td>
                    <td align="right"><?php 
    echo '<a href="' . oos_href_link_admin($aFilename['gv_mail']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a> ' . oos_image_swap_submits('send_mail', 'send_mail_off.gif', IMAGE_SEND_EMAIL);
    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </form></tr>
<?php 
} else {
    ?>
          <tr><?php 
    echo oos_draw_form('mail', $aFilename['gv_mail'], 'action=preview');
    ?>
            <td><table border="0" cellpadding="0" cellspacing="2">
              <tr>
</td>
                    <td class="smallText" align="right"><?php 
echo $products_split->display_links($products_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
$heading = array();
$contents = array();
if (isset($pInfo) && is_object($pInfo)) {
    $heading[] = array('text' => '<b>' . $pInfo->products_name . '</b>');
    $categories = oos_get_product_path($pInfo->products_id);
    $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['categories'], 'pID=' . $pInfo->products_id . '&categories=' . $categories . '&action=new_product') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a>');
    $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_EXPECTED . ' ' . oos_date_short($pInfo->products_date_available));
}
if (!empty($heading) && !empty($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
Example #4
0
        echo oos_draw_hidden_field('products_subimage4', stripslashes($products_subimage4_name));
        echo oos_draw_hidden_field('products_subimage5', stripslashes($products_subimage5_name));
        echo oos_draw_hidden_field('products_subimage6', stripslashes($products_subimage6_name));
        if (isset($_POST['categories_ids'])) {
            $selected_catids = $_POST['categories_ids'];
            foreach ($selected_catids as $current_category_id) {
                echo oos_draw_hidden_field('categories_ids[]', stripslashes($current_category_id));
            }
        }
        echo oos_image_swap_submits('back', 'back_off.gif', IMAGE_BACK, 'name="edit"') . '&nbsp;&nbsp;';
        if (isset($_GET['pID'])) {
            echo oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE);
        } else {
            echo oos_image_swap_submits('insert', 'insert_off.gif', IMAGE_INSERT);
        }
        echo '&nbsp;&nbsp;<a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $_GET['pID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>';
        ?>
</td>
      </form></tr>
<?php 
    }
}
?>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>
<!-- body_eof //-->

<?php 
require 'includes/oos_footer.php';
                    $amount = $currencies->format($amount);
                }
                if ($action == 'voucherdelete') {
                    $contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=confirmdelete&cID=' . $_GET['cID'], 'NONSSL') . '">' . oos_image_swap_button('confirm', 'confirm_off.gif', 'Confirm Delete Voucher') . '</a>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', 'Cancel') . '</a>');
                } else {
                    $prod_details = NONE;
                    if ($cInfo->restrict_to_products) {
                        $prod_details = '<a href="' . oos_href_link_admin($aFilename['listproducts'], 'cID=' . $cInfo->coupon_id) . '" TARGET="_blank" ONCLICK="window.open(\'' . $aFilename['listproducts'] . '?cID=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
                    }
                    $cat_details = NONE;
                    if ($cInfo->restrict_to_categories) {
                        $cat_details = '<a href="' . oos_href_link_admin($aFilename['listcategories'], 'cID=' . $cInfo->coupon_id) . '" TARGET="_blank" ONCLICK="window.open(\'' . $aFilename['listcategories'] . '?cID=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
                    }
                    $coupon_name_result = $dbconn->Execute("SELECT coupon_name\n                                           FROM " . $oostable['coupons_description'] . "\n                                           WHERE coupon_id = '" . $cInfo->coupon_id . "' AND\n                                                 coupon_languages_id = '" . intval($_SESSION['language_id']) . "'");
                    $coupon_name = $coupon_name_result->fields;
                    $contents[] = array('text' => COUPON_NAME . '&nbsp;::&nbsp; ' . $coupon_name['coupon_name'] . '<br />' . COUPON_AMOUNT . '&nbsp;::&nbsp; ' . $amount . '<br />' . COUPON_STARTDATE . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->coupon_start_date) . '<br />' . COUPON_FINISHDATE . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->coupon_expire_date) . '<br />' . COUPON_USES_COUPON . '&nbsp;::&nbsp; ' . $cInfo->uses_per_coupon . '<br />' . COUPON_USES_USER . '&nbsp;::&nbsp; ' . $cInfo->uses_per_user . '<br />' . COUPON_PRODUCTS . '&nbsp;::&nbsp; ' . $prod_details . '<br />' . COUPON_CATEGORIES . '&nbsp;::&nbsp; ' . $cat_details . '<br />' . DATE_CREATED . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->date_created) . '<br />' . DATE_MODIFIED . '&nbsp;::&nbsp; ' . oos_date_short($cInfo->date_modified) . '<br /><br />' . '<center><a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=email&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('email', 'email_off.gif', 'Email Voucher') . '</a>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=voucheredit&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('edit', 'edit_off.gif', 'Edit Voucher') . '</a>' . '<a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=voucherdelete&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('delete', 'delete_off.gif', 'Delete Voucher') . '</a>' . '<br /><a href="' . oos_href_link_admin($aFilename['coupon_admin'], 'action=voucherreport&cID=' . $cInfo->coupon_id, 'NONSSL') . '">' . oos_image_swap_button('report', 'report_off.gif', 'Voucher Report') . '</a></center>');
                }
                break;
        }
        ?>
    <td width="25%" valign="top">
<?php 
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
}
?>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
    $totalAll = 0;
    $first_line = true;
    $skip = false;

    while ($inrec = $result->fields) {

      // If this is a new customer, create the appropriate HTML
      if ($curcus != $inrec['cid']) {
        // output line
        $totalAll += $tprice;
        $cline .= '
                          <tr>
                            <td class="dataTableContent" align="right" colspan="8"><b>' . TABLE_CART_TOTAL . '</b>' . $currencies->format($tprice) . '</td>
                          </tr>
                          <tr>
                            <td colspan="6" align="right"><a href="' . oos_href_link_admin($aFilename['recover_cart_sales'], 'action=delete&customer_id=' . $curcus . '&tdate=' . $tdate) . '">' . oos_image_swap_button('delete','delete_off.gif', IMAGE_DELETE) . '</a></td>
                          </tr>' . "\n";

        if (!empty($curcus) && !$skip) {
          echo $cline;
        }

        // set new cline and curcus
        $curcus = $inrec['cid'];
        if (!empty($curcus)) {
          $tprice = 0;


          // change the color on those we have contacted add customer tag to customers
          $fcolor = RCS_UNCONTACTED_COLOR;
          $checked = 1; // assume we'll send an email
Example #7
0
                             include 'includes/classes/class_' . $class_method[0] . '.php';
                             ${$class_method[0]} = new $class_method[0]();
                         }
                         $keys .= oos_call_function($class_method[1], $value['value'], ${$class_method[0]});
                     } else {
                         $keys .= oos_call_function($use_function, $value['value']);
                     }
                 } else {
                     $keys .= $value['value'];
                 }
                 $keys .= '<br /><br />';
             }
             $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
         }
     } else {
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['plugins'], 'plugin=' . $pInfo->instance . '&action=install') . '">' . oos_image_swap_button('module_install', 'module_install_off.gif', IMAGE_PLUGINS_INSTALL) . '</a>');
     }
 }
 $contents[] = array('text' => $pInfo->description);
 if (!empty($pInfo->preceeds)) {
     $preceeds_string = '<u>Preceeds</u><br />';
     if (is_string($pInfo->preceeds)) {
         $preceeds_string .= $pInfo->preceeds;
     } else {
         foreach ($pInfo->preceeds as $preceeds) {
             $preceeds_string .= $preceeds . '<br />';
         }
     }
     $contents[] = array('text' => $preceeds_string);
 }
 $contents[] = array('text' => $keys);
        if (OOS_PRICE_IS_BRUTTO == '1') {
            echo " - " . TEXT_TAX_INFO . $in_price_netto;
        }
        ?>
&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php 
        echo $attributes_values["price_prefix"];
        ?>
&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php 
        echo '<a href="' . oos_href_link_admin($aFilename['products_attributes'], 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') . '">';
        echo oos_image_swap_button('edit', 'edit_off.gif', IMAGE_UPDATE);
        ?>
</a>&nbsp;&nbsp;<?php 
        echo '<a href="' . oos_href_link_admin($aFilename['products_attributes'], 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL'), '">';
        echo oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE);
        ?>
</a>&nbsp;</td>
<?php 
    }
    $products_attributestable = $oostable['products_attributes'];
    $max_attributes_id_result = $dbconn->Execute("SELECT max(products_attributes_id) + 1 as next_id FROM {$products_attributestable}");
    $max_attributes_id_values = $max_attributes_id_result->fields;
    $next_id = $max_attributes_id_values['next_id'];
    ?>
          </tr>
<?php 
    // Move that ADOdb pointer!
    $attributes->MoveNext();
}
// Close result set
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'confirm':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_NEWSFEED . '</b>');
            $contents = array('form' => oos_draw_form('newsfeed_manager', $aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO . '<br /><br /><b>' . $nmInfo->newsfeed_manager_firstname . ' ' . $nmInfo->newsfeed_manager_lastname . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($nmInfo) && is_object($nmInfo)) {
                $heading[] = array('text' => '<b>' . $nmInfo->newsfeed_manager_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['newsfeed_manager'], oos_get_all_get_params(array('nmID', 'action')) . 'nmID=' . $nmInfo->newsfeed_manager_id . '&action=confirm') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br />' . TEXT_INFO_URL . ' ' . $nmInfo->newsfeed_manager_link);
                $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($nmInfo->newsfeed_manager_date_added));
                $contents[] = array('text' => '<br />' . TEXT_LAST_MODIFIED . ' ' . oos_date_short($nmInfo->newsfeed_manager_last_modified));
                $contents[] = array('text' => '<br />' . TEXT_CACHE_TIME . ' ' . $nmInfo->newsfeed_manager_refresh);
            }
            break;
    }
    if (!empty($heading) && !empty($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        }
        $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['newsfeed_categories'], 'page=' . $_GET['page'] . '&ncID=' . $ncInfo->newsfeed_categories_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_NEWSFEED_CATEGORIES . '</b>');
        $contents = array('form' => oos_draw_form('status', $aFilename['newsfeed_categories'], 'page=' . $_GET['page'] . '&ncID=' . $ncInfo->newsfeed_categories_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $ncInfo->newsfeed_categories_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['newsfeed_categories'], 'page=' . $_GET['page'] . '&ncID=' . $ncInfo->newsfeed_categories_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        }
        break;
    default:
        if (isset($ncInfo) && is_object($ncInfo)) {
            $heading[] = array('text' => '<b>' . $ncInfo->newsfeed_categories_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['newsfeed_categories'], 'page=' . $_GET['page'] . '&ncID=' . $ncInfo->newsfeed_categories_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['newsfeed_categories'], 'page=' . $_GET['page'] . '&ncID=' . $ncInfo->newsfeed_categories_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            $newsfeed_categories_inputs_string = '';
            $languages = oos_get_languages();
            for ($i = 0, $n = count($languages); $i < $n; $i++) {
                $newsfeed_categories_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oosGetNewsfeedCategoriesName($ncInfo->newsfeed_categories_id, $languages[$i]['id']);
            }
            $contents[] = array('text' => $newsfeed_categories_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";
}
Example #11
0
        if (isset($cInfo) && is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DEFAULT_BOXES . $cInfo->admin_boxes_name . '</b>');
            if (substr($cInfo->admin_boxes_id, 0, 1) == 'b') {
                $contents[] = array('text' => '<b>' . $cInfo->admin_boxes_name . ' ' . TEXT_INFO_DEFAULT_BOXES_NOT_INSTALLED . '</b><br />&nbsp;');
                $contents[] = array('text' => TEXT_INFO_DEFAULT_BOXES_INTRO);
            } else {
                $contents = array('form' => oos_draw_form('newfile', $aFilename['admin_files'], 'categories=' . $cInfo->admin_boxes_id . '&action=store_file', 'post', 'enctype="multipart/form-data"'));
                $contents[] = array('align' => 'center', 'text' => oos_image_swap_submits('admin_files', 'admin_files_off.gif', IMAGE_INSERT_FILE));
                $contents[] = array('text' => oos_draw_hidden_field('this_category', $cInfo->admin_boxes_id));
                $contents[] = array('text' => '<br />' . TEXT_INFO_DEFAULT_BOXES_INTRO);
            }
            $contents[] = array('text' => '<br />');
        }
        if (isset($fInfo) && is_object($fInfo)) {
            $heading[] = array('text' => '<b>' . TEXT_INFO_NEW_FILE_BOX . ucfirst(substr_replace($current_box['admin_box_name'], '', -4)) . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['admin_files'], 'categories=' . $_GET['categories'] . '&action=store_file') . '">' . oos_image_swap_button('admin_files', 'admin_files_off.gif', IMAGE_INSERT_FILE) . '</a> <a href="' . oos_href_link_admin($aFilename['admin_files'], 'categories=' . $_GET['categories'] . '&fID=' . $fInfo->admin_files_id . '&action=remove_file') . '">' . oos_image_swap_button('admin_remove', 'admin_remove_off.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br />' . TEXT_INFO_DEFAULT_FILE_INTRO . ucfirst(substr_replace($current_box['admin_box_name'], '', -4)));
        }
}
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>
    </table></td>
<!-- body_text_eof //-->
<table cellpadding="1" cellspacing="1" border="0">
        <tr>
          <td colspan="6"><table cellpadding="3" cellspacing="0" border="0" width="100%">
            <tr class="dataTableHeadingRow">
              <td valign="top" align="center" colspan="2"><span class="pageHeading"><?php 
    echo 'Setting up-sells for: ' . $products_name['products_name'] . ' (Model: ' . $products_name['products_model'] . ') (Product ID: ' . $_GET['add_related_product_ID'] . ')';
    ?>
</span></td>
                </tr>
                <tr class="dataTableHeadingRow">
                  <td align="right"><?php 
    echo oos_info_image($products_name['products_image'], $products_name['products_name']);
    ?>
</td>
                  <td align="right" valign="bottom"><?php 
    echo oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . '<br /><br /><a href="' . oos_href_link_admin($aFilename['up_sell_products'], 'men_id=catalog') . '">' . oos_image_swap_button('cancel', 'cancel_off.gif') . '</a>';
    ?>
</td>
                </tr>
              </table></td>
            </tr>
            <tr class="dataTableHeadingRow">
              <td class="dataTableHeadingContent">&nbsp;<?php 
    echo TABLE_HEADING_PRODUCT_ID;
    ?>
&nbsp;</td>
              <td class="dataTableHeadingContent">&nbsp;<?php 
    echo TABLE_HEADING_PRODUCT_MODEL;
    ?>
&nbsp;</td>
              <td class="dataTableHeadingContent">&nbsp;<?php 
Example #13
0
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TICKET . '</b>');
            $contents = array('form' => oos_draw_form('orders', $aFilename['ticket_view'], oos_get_all_get_params(array('tID', 'action')) . 'tID=' . $tInfo->ticket_id . '&action=deleteconfirm'));
            $contents[] = array('align' => 'left', 'text' => $tInfo->ticket_subject);
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_view'], oos_get_all_get_params(array('tID', 'action')) . 'tID=' . $tInfo->ticket_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            $contents[] = array('form' => '</form>');
            break;
        default:
            if (isset($tInfo) && is_object($tInfo)) {
                $heading[] = array('text' => '<b>[' . $tInfo->ticket_id . ']&nbsp;&nbsp;' . $tInfo->ticket_subject . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['ticket_view'], oos_get_all_get_params(array('tID', 'action')) . 'tID=' . $tInfo->ticket_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['ticket_view'], oos_get_all_get_params(array('tID', 'action')) . 'tID=' . $tInfo->ticket_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br />' . TEXT_DATE_TICKET_CREATED . ' ' . oos_datetime_short($tInfo->ticket_date_created));
                if (oos_is_not_null($tInfo->ticket_date_last_modified)) {
                    $contents[] = array('text' => TEXT_DATE_TICKET_LAST_MODIFIED . ' ' . oos_datetime_short($tInfo->ticket_date_last_modified));
                }
                if (oos_is_not_null($tInfo->ticket_date_last_customer_modified)) {
                    $contents[] = array('text' => TEXT_DATE_TICKET_LAST_CUSTOMER_MODIFIED . ' ' . oos_datetime_short($tInfo->ticket_date_last_customer_modified));
                }
                if (TICKET_USE_STATUS == '1') {
                    $contents[] = array('text' => '<br />' . TEXT_STATUS . ' ' . $ticket_status_array[$tInfo->ticket_status_id]);
                }
                if (TICKET_USE_PRIORITY == '1') {
                    $contents[] = array('text' => '<br />' . TEXT_PRIORITY . ' ' . $ticket_priority_array[$tInfo->ticket_priority_id]);
                }
                if (TICKET_USE_DEPARTMENT == '1') {
                    $contents[] = array('text' => '<br />' . TEXT_DEPARTMENT . ' ' . $ticket_department_array[$tInfo->ticket_department_id]);
Example #14
0
              </tr>
            </table></td>
<?php
  $heading = array();
  $contents = array();
  switch ($action) {
    case 'release':
      $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . oos_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));

      $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin('gv_queue.php','action=confirmrelease&gid='.$gInfo->unique_id,'NONSSL').'">'.oos_image_swap_button('confirm_red','confirm_red_off.gif', IMAGE_CONFIRM) . '</a> <a href="' . oos_href_link_admin('gv_queue.php','action=cancel&gid=' . $gInfo->unique_id,'NONSSL') . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
      break;

    default:
      $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . oos_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));

      $contents[] = array('align' => 'center','text' => '<a href="' . oos_href_link_admin('gv_queue.php','action=release&gid=' . $gInfo->unique_id,'NONSSL'). '">' . oos_image_swap_button('release','release_off.gif', IMAGE_RELEASE) . '</a>');
      break;
   }

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

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

    echo '            </td>' . "\n";
  }
?>
          </tr>
        </table></td>
      </tr>
<?php 
$heading = array();
$contents = array();
switch ($action) {
    case 'edit_process':
        $heading[] = array('text' => '<b>&nbsp;' . TEXT_INFO_HEADING_DEFAULT . '</b>');
        $contents[] = array('text' => TEXT_INFO_INTRO_EDIT_PROCESS . oos_draw_hidden_field('id_info', $myAccount['admin_id']));
        break;
    case 'check_account':
        $heading[] = array('text' => '<b>&nbsp;' . TEXT_INFO_HEADING_CONFIRM_PASSWORD . '</b>');
        $contents[] = array('text' => '&nbsp;' . TEXT_INFO_INTRO_CONFIRM_PASSWORD . oos_draw_hidden_field('id_info', $myAccount['admin_id']));
        if ($_GET['error']) {
            $contents[] = array('text' => '&nbsp;' . TEXT_INFO_INTRO_CONFIRM_PASSWORD_ERROR);
        }
        $contents[] = array('align' => 'center', 'text' => oos_draw_password_field('password_confirmation'));
        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['admin_account']) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a> ' . oos_image_swap_submits('confirm', 'confirm_off.gif', IMAGE_CONFIRM) . '<br />&nbsp');
        break;
    default:
        $heading[] = array('text' => '<b>&nbsp;' . TEXT_INFO_HEADING_DEFAULT . '</b>');
        $contents[] = array('text' => TEXT_INFO_INTRO_DEFAULT);
        if ($myAccount['admin_email_address'] == '*****@*****.**') {
            $contents[] = array('text' => sprintf(TEXT_INFO_INTRO_DEFAULT_FIRST, $myAccount['admin_firstname']) . '<br />&nbsp');
        } elseif ($myAccount['admin_modified'] == '0000-00-00 00:00:00' || $myAccount['admin_logdate'] <= 1) {
            $contents[] = array('text' => sprintf(TEXT_INFO_INTRO_DEFAULT_FIRST_TIME, $myAccount['admin_firstname']) . '<br />&nbsp');
        }
}
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";
echo $referer_split->display_count($referer_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_HTTP_REFERERS);
?>
</td>
                <td class="smallText" align="right"><?php 
echo $referer_split->display_links($referer_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
&nbsp;</td>
              </tr>
            </table></td>
          </tr>

           <tr>
            <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="smallText" valign="top"><?php 
echo '<a href="' . oos_href_link_admin($aFilename['stats_referer'], "action=reset") . '">' . oos_image_swap_button('reset', 'reset_off.gif', IMAGE_RESET) . '</a>';
?>
</td>
              </tr>
            </table></td>
          </tr>


        </table></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>
<!-- body_eof //-->
Example #17
0
<div id="ctr" align="center">
	<div class="login">
		<div class="login-form">
			<img src="images/login.gif" alt="<?php 
echo HEADING_PASSWORD_FORGOTTEN;
?>
" />
			<div class="form-block">
			<div class="clr"></div>
			<div class="smallText"><?php 
echo TEXT_MAIN;
?>
</div>
			<div id="break"></div>
			<div align="left"><a href="<?php 
echo oos_href_link_admin($aFilename['login'], '', 'SSL') . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK);
?>
</a></div> 


		</div>
	</div>
		<div class="login-text">

			<div class="ctr"><img src="images/security.gif" width="64" height="64" alt="security" /></div>
			<p><?php 
echo HEADING_TITLE;
?>
</p>

		</div>
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>&nbsp;' . TEXT_INFO_HEADING_DEFAULT . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id . '&action=edit_member') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id . '&action=del_member') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a><br />&nbsp;');
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_FULLNAME . '</b><br />&nbsp;' . $mInfo->admin_firstname . ' ' . $mInfo->admin_lastname);
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_EMAIL . '</b><br />&nbsp;' . $mInfo->admin_email_address);
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_GROUP . '</b>' . $mInfo->admin_groups_name);
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_CREATED . '</b><br />&nbsp;' . $mInfo->admin_created);
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_MODIFIED . '</b><br />&nbsp;' . $mInfo->admin_modified);
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_LOGDATE . '</b><br />&nbsp;' . $mInfo->admin_logdate);
            $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_LOGNUM . '</b>' . $mInfo->admin_lognum);
            $contents[] = array('text' => '<br />');
        } elseif (isset($gInfo) && is_object($gInfo)) {
            $heading[] = array('text' => '<b>&nbsp;' . TEXT_INFO_HEADING_DEFAULT_GROUPS . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['admin_members'], 'gPath=' . $gInfo->admin_groups_id . '&action=define_group') . '">' . oos_image_swap_button('define', 'define_off.gif', IMAGE_FILE_PERMISSION) . '</a> <a href="' . oos_href_link_admin($aFilename['admin_members'], 'gID=' . $gInfo->admin_groups_id . '&action=edit_group') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['admin_members'], 'gID=' . $gInfo->admin_groups_id . '&action=del_group') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br />' . TEXT_INFO_DEFAULT_GROUPS_INTRO . '<br />&nbsp');
        }
}
if (!empty($heading) && !empty($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
Example #19
0
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php 
    echo ADDING_TITLE;
    ?>
 #<?php 
    echo $oID;
    ?>
</td>
            <td class="pageHeading" align="right"><?php 
    echo oos_draw_separator('trans.gif', 1, HEADING_IMAGE_HEIGHT);
    ?>
</td>
            <td class="pageHeading" align="right"><?php 
    echo '<a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('action'))) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a>';
    ?>
</td>
          </tr>
        </table></td>
      </tr>

<?php 
    //$result = $dbconn->Execute("SELECT products_name, p.products_id, cd.categories_name, ptc.categories_id FROM " . $oostable['products'] . " p LEFT JOIN " . $oostable['products_description'] . " pd ON pd.products_id=p.products_id LEFT JOIN " . $oostable['products_to_categories'] . " ptc ON ptc.products_id=p.products_id LEFT JOIN " . $oostable['categories_description'] . " cd ON cd.categories_id=ptc.categories_id LEFT JOIN " . $oostable['categories_description'] . " x ON x.categories_name=cd.categories_name ORDER BY categories_id");
    $result = $dbconn->Execute("SELECT products_name, p.products_id, cd.categories_name, ptc.categories_id FROM " . $oostable['products'] . " p LEFT JOIN " . $oostable['products_description'] . " pd ON pd.products_id=p.products_id LEFT JOIN " . $oostable['products_to_categories'] . " ptc ON ptc.products_id=p.products_id LEFT JOIN " . $oostable['categories_description'] . " cd ON cd.categories_id=ptc.categories_id ORDER BY categories_id");
    while ($row = $result->fields) {
        extract($row, EXTR_PREFIX_ALL, "db");
        $ProductList[$db_categories_id][$db_products_id] = $db_products_name;
        $CategoryList[$db_categories_id] = $db_categories_name;
        $LastCategory = $db_categories_name;
        // Move that ADOdb pointer!
        $tax_ratestable = $oostable['tax_rates'];
        $productstable = $oostable['products'];
        $sql = "SELECT tr.tax_rate FROM $tax_ratestable tr, $productstable p  WHERE tr.tax_class_id = p.products_tax_class_id  AND p.products_id = '". $attributes_values['products_id'] . "' ";
        $tax_result = $dbconn->Execute($sql);
        $tax = $tax_result->fields;
        $in_price = ($in_price*($tax[tax_rate]+100)/100);
      }
      $in_price= round($in_price,TAX_DECIMAL_PLACES);
?>
            <td align="right" class="smallText">&nbsp;
<?php
        echo $in_price;
        if (OOS_PRICE_IS_BRUTTO == '1') echo " - ". TEXT_TAX_INFO . $in_price_netto;
?>&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php echo $attributes_values["price_prefix"]; ?>&nbsp;</td>
            <td align="center" class="smallText">&nbsp;<?php echo '<a href="' . oos_href_link_admin($aFilename['products_edit_attributes'], 'action=update_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') . '">'; ?><?php echo oos_image_swap_button('edit', 'edit_off.gif', IMAGE_UPDATE); ?></a>&nbsp;&nbsp;<?php echo '<a href="' . oos_href_link_admin($aFilename['products_edit_attributes'], 'action=delete_product_attribute&attribute_id=' . $attributes_values['products_attributes_id'] . '&attribute_page=' . $attribute_page, 'NONSSL') , '">'; ?><?php echo oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE); ?></a>&nbsp;</td>
<?php
    }
    $products_attributestable = $oostable['products_attributes'];
    $max_attributes_id_result = $dbconn->Execute("SELECT max(products_attributes_id) + 1 as next_id FROM $products_attributestable");
    $max_attributes_id_values = $max_attributes_id_result->fields;
    $next_id = $max_attributes_id_values['next_id'];
?>
          </tr>
<?php
    // Move that ADOdb pointer!
    $attributes->MoveNext();
  }

  if ($action != 'update_attribute') {
?>
Example #21
0
    default:
      $customer_status = oos_get_customers_status ($cID);
      $cs_id           = $customer_status['customers_status'];
      $cs_name         = $customer_status['customers_status_name'];
      $cs_image        = $customer_status['customers_status_image'];
      $cs_discount     = $customer_status['customers_status_discount'];
      $cs_ot_discount_flag  = $customer_status['customers_status_ot_discount_flag'];
      $cs_ot_discount       = $customer_status['customers_status_ot_discount'];
      $cs_qty_discounts     = $customer_status['customers_status_qty_discounts'];
      $cs_payment = $customer_status['customers_status_payment'];

      if (isset($cInfo) && is_object($cInfo)) {
        $heading[] = array('text' => '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');

        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a> <a href="' . oos_href_link_admin($aFilename['orders'], 'cID=' . $cInfo->customers_id) . '">' . oos_image_swap_button('orders', 'orders_off.gif', IMAGE_ORDERS) . '</a> <a href="' . oos_href_link_admin($aFilename['mail'], 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . oos_image_swap_button('email', 'email_off.gif', IMAGE_EMAIL) . '</a>');
        $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_catalog_link($aCatalogPage['wishlist'],  'wlid=' . $cInfo->customers_wishlist_link_id) . '">' . oos_image_swap_button('wishlist', 'wishlist_off.gif', IMAGE_WISHLIST) . '</a> <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=editstatus') . '">' . oos_image_swap_button('status', 'status_off.gif', IMAGE_STATUS) . '</a>');

        $manual_infotable = $oostable['manual_info'];
        $sql = "SELECT man_info_id, man_key, status
                FROM $manual_infotable
                WHERE man_info_id = '1'";
        $login_result = $dbconn->Execute($sql);
        $login = $login_result->fields;
        if ($login['status'] != '0') {
          $contents[] = array('align' => 'center', 'text' => oos_draw_login_form('login', $aCatalogPage['login_admin'], 'action=login_admin', 'POST', 'target=_blank') . oos_draw_hidden_field('verif_key', $login['man_key']) . oos_draw_hidden_field('email_address', $cInfo->customers_email_address) . oos_image_swap_submits('login', 'login_off.gif', IMAGE_LOGIN) . '</form>');
        }
        $contents[] = array('text' => '<br />'  . oos_customers_payment($customer_status['customers_status_payment']));
        $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_CREATED . ' ' . oos_date_short($cInfo->date_account_created));
        $contents[] = array('text' => '<br />' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . oos_date_short($cInfo->date_account_last_modified));
        $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' '  . oos_date_short($cInfo->date_last_logon));
        $contents[] = array('text' => '<br />' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
Example #22
0
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
            $contents = array('form' => oos_draw_form('orders', $aFilename['orders'], oos_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 />' . oos_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_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->orders_id . ']&nbsp;&nbsp;' . oos_datetime_short($oInfo->date_purchased) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['orders'], oos_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['invoice'], 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . oos_image_swap_button('invoice', 'invoice_off.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . oos_href_link_admin($aFilename['packingslip'], 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . oos_image_swap_button('packingslip', 'packingslip_off.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');
                $contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . oos_date_short($oInfo->date_purchased));
                if (oos_is_not_null($oInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . oos_date_short($oInfo->last_modified));
                }
                $contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
            }
            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";
    }
    ?>
        $contents = array('form' => oos_draw_form('make_file_now', $aFilename['export_googlebase'], 'action=make_file_now'));
        $contents[] = array('text' => TEXT_INFO_NEW_INFO);
        $contents[] = array('text' => '<br />');
        $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('backup', 'backup_off.gif', IMAGE_BACKUP) . ' <a href="' . oos_href_link_admin($aFilename['export_googlebase'], '') . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
        $contents = array('form' => oos_draw_form('delete', $aFilename['export_googlebase'], 'file=' . $buInfo->file . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br /><b>' . $buInfo->file . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['export_googlebase'], 'file=' . $buInfo->file) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($buInfo) && is_object($buInfo)) {
            $heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['export_googlebase'], 'file=' . $buInfo->file . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br />' . TEXT_INFO_DATE . ' ' . $buInfo->date);
            $contents[] = array('text' => TEXT_INFO_SIZE . ' ' . $buInfo->size);
        }
        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>
Example #24
0
         break;
     case 'upload':
         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
         $contents = array('form' => oos_draw_form('file', $aFilename['file_manager'], 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
         $contents[] = array('text' => TEXT_UPLOAD_INTRO);
         for ($i = 1; $i < 6; $i++) {
             $file_upload .= oos_draw_file_field('file_' . $i) . '<br />';
         }
         $contents[] = array('text' => '<br />' . $file_upload);
         $contents[] = array('align' => 'center', 'text' => '<br />' . ($directory_writeable ? oos_image_swap_submits('upload', 'upload_off.gif', IMAGE_UPLOAD) : '') . ' <a href="' . oos_href_link_admin($aFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (isset($fInfo) && is_object($fInfo)) {
             $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
             if (!$fInfo->is_dir) {
                 $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['file_manager'], 'info=' . urlencode($fInfo->name) . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a>');
             }
             $contents[] = array('text' => '<br />' . TEXT_FILE_NAME . ' <b>' . $fInfo->name . '</b>');
             if (!$fInfo->is_dir) {
                 $contents[] = array('text' => '<br />' . TEXT_FILE_SIZE . ' <b>' . $fInfo->size . '</b>');
             }
             $contents[] = array('text' => '<br />' . TEXT_LAST_MODIFIED . ' ' . $fInfo->last_modified);
         }
 }
 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";
 }
 ?>
Example #25
0
 $contents = array();
 switch ($action) {
     case 'delete':
         $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
         $contents = array('form' => oos_draw_form('newsletters', $aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));
         $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
         $contents[] = array('text' => '<br /><b>' . $nInfo->title . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (isset($nInfo) && is_object($nInfo)) {
             $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
             if ($nInfo->locked > 0) {
                 $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a> <a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . oos_image_swap_button('preview', 'preview_off.gif', IMAGE_PREVIEW) . '</a> <a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . oos_image_swap_button('send', 'send_off.gif', IMAGE_SEND) . '</a> <a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . oos_image_swap_button('unlock', 'unlock_off.gif', IMAGE_UNLOCK) . '</a>');
             } else {
                 $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . oos_image_swap_button('preview', 'preview_off.gif', IMAGE_PREVIEW) . '</a> <a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . oos_image_swap_button('lock', 'lock_off.gif', IMAGE_LOCK) . '</a>');
             }
             $contents[] = array('text' => '<br />' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . oos_date_short($nInfo->date_added));
             if ($nInfo->status == '1') {
                 $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . oos_date_short($nInfo->date_sent));
             }
         }
         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";
 }
 ?>
Example #26
0
     if (!$specials_result->RecordCount()) {
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['specials'], 'pID=' . $pInfo->products_id . '&action=new') . '">' . oos_image_swap_button('specials', 'specials_off.gif', IMAGE_SPECIALS) . '</a>');
     } else {
         $specials = $specials_result->fields;
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['specials'], 'sID=' . $specials['specials_id'] . '&action=edit') . '">' . oos_image_swap_button('specials', 'specials_off.gif', IMAGE_SPECIALS) . '</a>');
     }
 }
 if (defined('MAX_DISPLAY_FEATURED_PRODUCTS')) {
     $featuredtable = $oostable['featured'];
     $query = "SELECT featured_id, products_id, status\r\n                         FROM {$featuredtable} p\r\n                        WHERE status = '1' AND\r\n                              products_id = '" . $pInfo->products_id . "'";
     $featured_result = $dbconn->Execute($query);
     if (!$featured_result->RecordCount()) {
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['featured'], 'pID=' . $pInfo->products_id . '&action=new') . '">' . oos_image_swap_button('featured', 'featured_off.gif', IMAGE_FEATURED) . '</a>');
     } else {
         $featured = $featured_result->fields;
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['featured'], 'fID=' . $featured['featured_id'] . '&action=edit') . '">' . oos_image_swap_button('featured', 'featured_off.gif', IMAGE_FEATURED) . '</a>');
     }
 }
 $contents[] = array('text' => '#' . $pInfo->products_id . ' ' . TEXT_CATEGORIES . ' ' . oos_get_categories_name($current_category_id) . '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($pInfo->products_date_added));
 if (oos_is_not_null($pInfo->products_last_modified)) {
     $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . oos_date_short($pInfo->products_last_modified));
 }
 if (date('Y-m-d') < $pInfo->products_date_available) {
     $contents[] = array('text' => TEXT_DATE_AVAILABLE . ' ' . oos_date_short($pInfo->products_date_available));
 }
 $contents[] = array('text' => '<br /><a href="' . oos_href_link_admin($aFilename['products'], 'categories=' . $categories . '&pID=' . $pInfo->products_id . '&action=new_product_preview&read=only') . '">' . oos_info_image($pInfo->products_image, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />' . $pInfo->products_image);
 $oosPrice = $pInfo->products_price;
 $oosPriceList = $pInfo->products_price_list;
 if (OOS_PRICE_IS_BRUTTO == '1' && ($_GET['read'] == 'only' || $action != 'new_product_preview')) {
     $oosPriceNetto = round($oosPrice, TAX_DECIMAL_PLACES);
     $oosPriceListNetto = round($oosPriceList, TAX_DECIMAL_PLACES);
    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>');
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($mInfo->date_added));
            if (oos_is_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . oos_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => '<br />' . oos_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            $contents[] = array('text' => '<br />' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
        }
        break;
}
if (!empty($heading) && !empty($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
Example #28
0
        if ($mInfo->information_id > 5) {
            $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_INFORMATION . '</b>');
            $contents = array('form' => oos_draw_form('information', $aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO);
            $contents[] = array('text' => '<br /><b>' . $mInfo->information_name . '</b>');
            $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        }
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->information_name . '</b>');
            if ($mInfo->information_id > 5) {
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
            } else {
                $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a>');
            }
            $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($mInfo->date_added));
            if (oos_is_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . oos_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => '<br />' . oos_info_image($mInfo->information_image, $mInfo->information_name));
        }
        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";
}
Example #29
0
                        $class_method = explode('->', $use_function);
                        if (!is_object(${$class_method[0]})) {
                            include 'includes/classes/class_' . $class_method[0] . '.php';
                            ${$class_method[0]} = new $class_method[0]();
                        }
                        $keys .= oos_call_function($class_method[1], $value['value'], ${$class_method[0]});
                    } else {
                        $keys .= oos_call_function($use_function, $value['value']);
                    }
                } else {
                    $keys .= $value['value'];
                }
                $keys .= '<br /><br />';
            }
            $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['modules'], 'set=' . $_GET['set'] . '&module=' . $_GET['module'] . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a>');
            $contents[] = array('text' => '<br />' . $mInfo->description);
            $contents[] = array('text' => '<br />' . $keys);
        } else {
            $contents[] = array('text' => $mInfo->description);
        }
        break;
}
if (!empty($heading) && !empty($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
    case 'edit':
        $heading[] = array('text' => '<b>' . constant(strtoupper($cInfo->configuration_key . '_TITLE')) . '</b>');
        if ($cInfo->set_function) {
            eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");');
        } else {
            $value_field = oos_draw_input_field('configuration_value', $cInfo->configuration_value);
        }
        $contents = array('form' => oos_draw_form('configuration', $aFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br /><b>' . constant(strtoupper($cInfo->configuration_key . '_TITLE')) . '</b><br />' . constant(strtoupper($cInfo->configuration_key . '_DESC')) . '<br />' . $value_field);
        $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . oos_href_link_admin($aFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($cInfo) && is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . constant(strtoupper($cInfo->configuration_key . '_TITLE')) . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a>');
            $contents[] = array('text' => '<br />' . constant(strtoupper($cInfo->configuration_key . '_DESC')));
            $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . oos_date_short($cInfo->date_added));
            if (oos_is_not_null($cInfo->last_modified)) {
                $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . oos_date_short($cInfo->last_modified));
            }
        }
        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";
}
?>