예제 #1
0
 public function __construct()
 {
     Registry::get('Language')->loadIniFile('modules/Dashboard/Customers.php');
     $this->_title = OSCOM::getDef('admin_indexmodules_customers_title');
     $this->_title_link = OSCOM::getLink(null, 'Customers');
     if (Access::hasAccess(OSCOM::getSite(), 'Customers')) {
         $this->_data = '<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">' . '  <thead>' . '    <tr>' . '      <th>' . OSCOM::getDef('admin_indexmodules_customers_table_heading_customers') . '</th>' . '      <th>' . OSCOM::getDef('admin_indexmodules_customers_table_heading_date') . '</th>' . '      <th>' . OSCOM::getDef('admin_indexmodules_customers_table_heading_status') . '</th>' . '    </tr>' . '  </thead>' . '  <tbody>';
         $Qcustomers = Registry::get('PDO')->query('select customers_id, customers_gender, customers_lastname, customers_firstname, customers_status, date_account_created from :table_customers order by date_account_created desc limit 6');
         $Qcustomers->execute();
         $counter = 0;
         while ($Qcustomers->fetch()) {
             $customer_icon = HTML::icon('people.png');
             if (ACCOUNT_GENDER > -1) {
                 switch ($Qcustomers->value('customers_gender')) {
                     case 'm':
                         $customer_icon = HTML::icon('user_male.png');
                         break;
                     case 'f':
                         $customer_icon = HTML::icon('user_female.png');
                         break;
                 }
             }
             $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');"' . ($counter % 2 ? ' class="alt"' : '') . '>' . '      <td>' . HTML::link(OSCOM::getLink(null, 'Customers', 'Save&id=' . $Qcustomers->valueInt('customers_id')), $customer_icon . '&nbsp;' . $Qcustomers->valueProtected('customers_firstname') . ' ' . $Qcustomers->valueProtected('customers_lastname')) . '</td>' . '      <td>' . $Qcustomers->value('date_account_created') . '</td>' . '      <td align="center">' . HTML::icon($Qcustomers->valueInt('customers_status') === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif', null, null) . '</td>' . '    </tr>';
             $counter++;
         }
         $this->_data .= '  </tbody>' . '</table>';
     }
 }
예제 #2
0
 public function __construct()
 {
     $OSCOM_Language = Registry::get('Language');
     $OSCOM_Template = Registry::get('Template');
     $OSCOM_Language->loadIniFile('modules/Dashboard/ErrorLog.php');
     $this->_title = OSCOM::getDef('admin_dashboard_module_errorlog_title');
     $this->_title_link = OSCOM::getLink(null, 'ErrorLog');
     if (Access::hasAccess(OSCOM::getSite(), 'ErrorLog')) {
         $this->_data = '<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">' . '  <thead>' . '    <tr>' . '      <th>' . OSCOM::getDef('admin_dashboard_module_errorlog_table_heading_date') . '</th>' . '      <th>' . OSCOM::getDef('admin_dashboard_module_errorlog_table_heading_message') . '</th>' . '    </tr>' . '  </thead>' . '  <tbody>';
         if (ErrorHandler::getTotalEntries() > 0) {
             $counter = 0;
             foreach (ErrorHandler::getAll(6) as $row) {
                 $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');"' . ($counter % 2 ? ' class="alt"' : '') . '>' . '      <td style="white-space: nowrap;">' . $OSCOM_Template->getIcon(16, 'errorlog.png') . '&nbsp;' . DateTime::getShort(DateTime::fromUnixTimestamp($row['timestamp']), true) . '</td>' . '      <td>' . HTML::outputProtected(substr($row['message'], 0, 60)) . '..</td>' . '    </tr>';
                 $counter++;
             }
         } elseif (!is_writable(OSCOM::BASE_DIRECTORY . 'Work/Database/')) {
             $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');">' . '      <td colspan="2">' . HTML::icon('cross.png') . '&nbsp;' . sprintf(OSCOM::getDef('admin_dashboard_module_errorlog_not_writable'), OSCOM::BASE_DIRECTORY . 'Work/Database/') . '</td>' . '    </tr>';
         } else {
             $this->_data .= '    <tr onmouseover="$(this).addClass(\'mouseOver\');" onmouseout="$(this).removeClass(\'mouseOver\');">' . '      <td colspan="2">' . HTML::icon('tick.png') . '&nbsp;' . OSCOM::getDef('admin_dashboard_module_errorlog_no_errors_found') . '</td>' . '    </tr>';
         }
         $this->_data .= '  </tbody>' . '</table>';
     }
 }
예제 #3
0
 public function get($group = null)
 {
     if (empty($group)) {
         $group = OSCOM::getSiteApplication();
     }
     $result = false;
     if ($this->exists($group)) {
         $data = array();
         foreach ($this->_data[$group] as $message) {
             $data['messageStack' . ucfirst($message['type'])][] = $message['text'];
         }
         $result = '';
         foreach ($data as $type => $messages) {
             $result .= '<div class="' . HTML::outputProtected($type) . '" onmouseover="$(this).find(\'span:first\').show();" onmouseout="$(this).find(\'span:first\').hide();"><span style="float: right; display: none;"><a href="#" onclick="$(this).parent().parent().slideFadeToggle();">' . HTML::icon('minimize.png', 'Hide') . '</a></span>';
             foreach ($messages as $message) {
                 $result .= '<p>' . HTML::outputProtected($message) . '</p>';
             }
             $result .= '</div>';
         }
         unset($this->_data[$group]);
     }
     return $result;
 }
예제 #4
0
  var countryEditLink = '<?php 
echo OSCOM::getLink(null, null, 'Save&id=COUNTRYID');
?>
';
  var countryEditLinkIcon = '<?php 
echo HTML::icon('edit.png');
?>
';

  var countryDeleteLink = '<?php 
echo OSCOM::getLink(null, null, 'Delete&id=COUNTRYID');
?>
';
  var countryDeleteLinkIcon = '<?php 
echo HTML::icon('trash.png');
?>
';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
      var record = data.entries[r];

      var newRow = $('#' + dataTableName)[0].tBodies[0].insertRow(rowCounter);
      newRow.id = 'row' + parseInt(record.countries_id);
';
var edit_icon = '<?php 
echo HTML::icon('edit.png');
?>
';
var trash_icon = '<?php 
echo HTML::icon('trash.png');
?>
';
var undo_icon = '<?php 
echo HTML::icon('undo.png');
?>
';

var ab_default_marker = '<div class="abDefault" style="float: left;"><?php 
echo HTML::icon('default.png', OSCOM::getDef('primary_address'));
?>
</div>';
var ab_default_orig = 'abEntry' + $('input[name="ab_default_id"]').val();
var ab_default = ab_default_orig;

$('#' + ab_default).append(ab_default_marker);

function showNewAddressForm() {
  $('#sectionMenuContainer').animate({'opacity': '0.30'}, 'fast').children().attr('disabled', true);
  $('#formButtons').animate({'opacity': '0.30'}, 'fast').children().attr('disabled', true);

  $('#sectionMenu_addressBook').hide();

  $('#addressBookForm #abSubmitButtonsNew').show();
  $('#addressBookForm #abSubmitButtonsEdit').hide();
예제 #6
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . $OSCOM_ObjectInfo->getProtected('name');
?>
</h3>

<?php 
if ($OSCOM_ObjectInfo->get('code') == DEFAULT_LANGUAGE) {
    ?>

  <p><?php 
    echo '<b>' . OSCOM::getDef('introduction_delete_language_invalid') . '</b>';
    ?>
</p>

  <p><?php 
    echo HTML::button(array('href' => OSCOM::getLink(), 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back')));
    ?>
예제 #7
0
  var customerEditLinkIcon = '<?php 
echo HTML::icon('edit.png');
?>
';

  var customerDeleteLinkIcon = '<?php 
echo HTML::icon('trash.png');
?>
';

  var customerGenderMaleIcon = '<?php 
echo HTML::icon('user_male.png');
?>
';
  var customerGenderFemaleIcon = '<?php 
echo HTML::icon('user_female.png');
?>
';

  var showCustomerGender = '<?php 
echo ACCOUNT_GENDER;
?>
';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
예제 #8
0
<form id="cMoveBatchForm" name="cMoveBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchMove&Process&cid=' . $OSCOM_Application->getCurrentCategoryID());
?>
" method="post">

<div id="formButtons" style="float: right;"><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('type' => 'button', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'), 'params' => 'onclick="$.safetynet.suppressed(true); window.location.href=\'' . OSCOM::getLink(null, null, 'cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"'));
?>
</div>

<div style="clear: both;"></div>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('move.png') . ' ' . OSCOM::getDef('action_heading_batch_move_categories');
?>
</h3>

  <p><?php 
echo OSCOM::getDef('introduction_batch_move_categories');
?>
</p>

  <fieldset>

<?php 
$categories = '';
foreach ($_POST['batch'] as $c) {
    $categories .= HTML::hiddenField('batch[]', $c) . '<b>' . $OSCOM_CategoryTree->getData($c, 'name') . '</b>, ';
}
예제 #9
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_tax_rate');
?>
</h3>

  <form name="rNew" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'EntrySave&Process&id=' . $_GET['id']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_new_tax_rate');
?>
</p>

  <fieldset>
    <p><label for="tax_zone_id"><?php 
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_language_definition');
?>
</h3>

  <form name="lNew" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'InsertDefinition&Process&id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : ''));
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_new_language_definition');
?>
</p>

  <fieldset>
    <p><label for="key"><?php 
예제 #11
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('update.png') . ' ' . OSCOM::getDef('action_heading_update_rates');
?>
</h3>

  <form name="cUpdate" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'UpdateRates&Process');
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_update_exchange_rates');
?>
</p>

  <fieldset>
    <p><?php 
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . $OSCOM_ObjectInfo->get('tax_class_title') . ': ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name');
?>
</h3>

  <form name="rDelete" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'EntryDelete&Process&id=' . $_GET['id'] . '&rID=' . $OSCOM_ObjectInfo->getInt('tax_rates_id'));
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_delete_tax_rate');
?>
</p>

  <p><?php 
echo '<b>' . $OSCOM_ObjectInfo->getProtected('tax_class_title') . ': ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name') . '</b>';
예제 #13
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('geo_zone_name');
?>
</h3>

  <form name="zEdit" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Save&Process&id=' . $OSCOM_ObjectInfo->getInt('geo_zone_id'));
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_edit_zone_group');
?>
</p>

  <fieldset>
    <p><label for="zone_name"><?php 
예제 #14
0
       '  </li>';
?>

  </ul>

<?php
  $total_shortcuts = 0;

  if ( isset($_SESSION[OSCOM::getSite()]['id']) ) {
    echo '<ul class="apps" style="float: right;">';

    if ( $OSCOM_Application->canLinkTo() ) {
      if ( Access::isShortcut(OSCOM::getSiteApplication()) ) {
        echo '  <li class="shortcuts">' . HTML::link(OSCOM::getLink(null, 'Dashboard', 'RemoveShortcut&shortcut=' . OSCOM::getSiteApplication()), HTML::icon('shortcut_remove.png')) . '</li>';
      } else {
        echo '  <li class="shortcuts">' . HTML::link(OSCOM::getLink(null, 'Dashboard', 'AddShortcut&shortcut=' . OSCOM::getSiteApplication()), HTML::icon('shortcut_add.png')) . '</li>';
      }
    }

    if ( Access::hasShortcut() ) {
      echo '  <li class="shortcuts">';

      foreach ( Access::getShortcuts() as $shortcut ) {
        echo '<a href="' . OSCOM::getLink(null, $shortcut['module']) . '" id="shortcut-' . $shortcut['module'] . '">' . $OSCOM_Template->getIcon(16, $shortcut['icon'], $shortcut['title']) . '<div class="notBubble"></div></a>';

        $total_shortcuts++;
      }

      echo '  </li>';
    }
예제 #15
0
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'install_page';

  var moduleParams = new Object();
  moduleParams[dataTablePageSetName] = 1;
  moduleParams['search'] = '';

  if ( $.cookie(moduleParamsCookieName) != null ) {
    moduleParams = $.secureEvalJSON($.cookie(moduleParamsCookieName));
  }

  var dataTableName = 'productAttributesDataTable';
  var dataTableDataURL = '<?php echo OSCOM::getRPCLink(null, null, 'GetUninstalled'); ?>';

  var paInstallLink = '<?php echo OSCOM::getLink(null, null, 'Install&Process&code=PACODE'); ?>';
  var paInstallLinkIcon = '<?php echo HTML::icon('install.png'); ?>';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
      var record = data.entries[r];

      var newRow = $('#' + dataTableName)[0].tBodies[0].insertRow(rowCounter);
      newRow.id = 'row' + record.code;

      $('#row' + record.code).hover( function() { $(this).addClass('mouseOver'); }, function() { $(this).removeClass('mouseOver'); }).css('cursor', 'pointer');
 * 
 * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com
 * @license BSD License; http://www.oscommerce.com/bsdlicense.txt
 */
use osCommerce\OM\Core\HTML;
use osCommerce\OM\Core\OSCOM;
?>

<div id="sectionMenu_newsletters">
  <div class="infoBox">

<?php 
if ($new_customer) {
    echo '<h3>' . HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_customer') . '</h3>';
} else {
    echo '<h3>' . HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('customers_name') . '</h3>';
}
?>

    <fieldset>

<?php 
if (ACCOUNT_NEWSLETTER == '1') {
    ?>

      <p><label for="newsletter"><?php 
    echo OSCOM::getDef('field_newsletter_subscription');
    ?>
</label><?php 
    echo HTML::checkboxField('newsletter', null, $new_customer ? null : $OSCOM_ObjectInfo->get('customers_newsletter') == '1');
    ?>
예제 #17
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . HTML::outputProtected($_GET['group']);
?>
</h3>

  <form name="gDelete" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'DeleteGroup&Process&id=' . $_GET['id'] . '&group=' . $_GET['group']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_delete_definition_group');
?>
</p>

  <p><?php 
echo '<b>' . HTML::outputProtected($_GET['group']) . '</b>';
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('edit.png') . ' ' . OSCOM::getDef('action_heading_batch_edit_configuration_parameters');
?>
</h3>

  <form name="cEditBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchSaveEntries&Process&id=' . $_GET['id']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_batch_edit_configuration_parameters');
?>
</p>

  <fieldset>
예제 #19
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('uninstall.png') . ' ' . $OSCOM_ObjectInfo->getProtected('title');
?>
</h3>

  <form name="mUninstall" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Uninstall&Process&code=' . $OSCOM_ObjectInfo->get('code'));
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_uninstall_payment_module');
?>
</p>

  <p><?php 
echo '<b>' . $OSCOM_ObjectInfo->getProtected('title') . '</b>';
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_zone_entries');
?>
</h3>

  <form name="zDeleteBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchDeleteEntries&Process&id=' . $_GET['id']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_batch_delete_zone_entries');
?>
</p>

<?php 
$Qentries = $OSCOM_PDO->query('select z2gz.association_id, z2gz.zone_country_id, c.countries_name, z2gz.zone_id, z.zone_name from :table_zones_to_geo_zones z2gz left join :table_countries c on (z2gz.zone_country_id = c.countries_id) left join :table_zones z on (z2gz.zone_id = z.zone_id) where z2gz.association_id in ("' . implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '") order by c.countries_name, z.zone_name');
예제 #21
0
<form id="cEditForm" name="cEdit" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Save&Process&cid=' . $OSCOM_ObjectInfo->getInt('parent_id') . '&id=' . $OSCOM_ObjectInfo->getInt('categories_id'));
?>
" method="post" enctype="multipart/form-data">

<div id="formButtons" style="float: right;"><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('type' => 'button', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'), 'params' => 'onclick="$.safetynet.suppressed(true); window.location.href=\'' . OSCOM::getLink(null, null, 'cid=' . $OSCOM_ObjectInfo->getInt('parent_id')) . '\';"'));
?>
</div>

<div style="clear: both;"></div>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('categories_name');
?>
</h3>

  <fieldset>
    <p><label for="parent_id"><?php 
echo OSCOM::getDef('field_parent_category');
?>
</label><?php 
echo HTML::selectMenu('parent_id', array_merge(array(array('id' => '0', 'text' => OSCOM::getDef('top_category'))), $OSCOM_Application->getCategoryList()), $OSCOM_ObjectInfo->getInt('parent_id'));
?>
</p>
    <p><label><?php 
echo OSCOM::getDef('field_name');
?>
</label></p>
예제 #22
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_import_language');
?>
</h3>

  <form name="lImport" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Import&Process');
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_import_language');
?>
</p>

  <fieldset>
    <p><label for="language_import"><?php 
예제 #23
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_card');
?>
</h3>

  <form name="ccNew" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Save&Process');
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_new_card');
?>
</p>

  <fieldset>
    <p><label for="credit_card_name"><?php 
예제 #24
0
  if ( $.cookie(moduleParamsCookieName) != null ) {
    moduleParams = $.secureEvalJSON($.cookie(moduleParamsCookieName));
  }

  var dataTableName = 'configurationDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetAll');
?>
';

  var groupLink = '<?php 
echo OSCOM::getLink(null, null, 'id=GROUPID');
?>
';
  var groupLinkIcon = '<?php 
echo HTML::icon('folder.png');
?>
';

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();

  function feedDataTable(data) {
    var rowCounter = 0;

    for ( var r in data.entries ) {
      var record = data.entries[r];

      var newRow = $('#' + dataTableName)[0].tBodies[0].insertRow(rowCounter);
      newRow.id = 'row' + parseInt(record.configuration_group_id);
예제 #25
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('title');
?>
</h3>

  <form name="pmEdit" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Save&Process&code=' . $OSCOM_ObjectInfo->get('code'));
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_edit_payment_module');
?>
</p>

  <fieldset>
예제 #26
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('edit.png') . ' ' . OSCOM::getDef('action_heading_batch_edit_cards');
?>
</h3>

  <form name="ccEditBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchSave&Process');
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_batch_edit_cards');
?>
</p>

<?php 
$Qcc = $OSCOM_PDO->query('select id, credit_card_name from :table_credit_cards where id in ("' . implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '") order by credit_card_name');
예제 #27
0
    public static function getBatchNextPageLink($batch_keyword = 'page', $total, $parameters = null) {
      $batch_number = (isset($_GET[$batch_keyword]) && is_numeric($_GET[$batch_keyword]) ? $_GET[$batch_keyword] : 1);
      $number_of_pages = ceil($total / MAX_DISPLAY_SEARCH_RESULTS);

      if ( !empty($parameters) ) {
        $parameters .= '&';
      }

      $forward_string = HTML::icon('nav_forward.png', OSCOM::getDef('result_set_next_page'));
      $forward_grey_string = HTML::icon('nav_forward_grey.png', OSCOM::getDef('result_set_next_page'));

      $string = '&nbsp;';

      if ( ( $batch_number < $number_of_pages ) && ( $number_of_pages != 1 ) ) {
        $string .= HTML::link(OSCOM::getLink(null, null, $parameters . $batch_keyword . '=' . ($batch_number + 1)), $forward_string);
      } else {
        $string .= $forward_grey_string;
      }

      return $string;
    }
예제 #28
0
  use osCommerce\OM\Core\HTML;
  use osCommerce\OM\Core\OSCOM;
  use osCommerce\OM\Core\Site\Admin\Application\ZoneGroups\ZoneGroups;
?>

<h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?></h1>

<?php
  if ( $OSCOM_MessageStack->exists() ) {
    echo $OSCOM_MessageStack->get();
  }
?>

<div class="infoBox">
  <h3><?php echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_zone_groups'); ?></h3>

  <form name="zDeleteBatch" class="dataForm" action="<?php echo OSCOM::getLink(null, null, 'BatchDelete&Process'); ?>" method="post">

  <p><?php echo OSCOM::getDef('introduction_batch_delete_zone_groups'); ?></p>

<?php
  $check_tax_zones_flag = array();

  $Qzones = $OSCOM_PDO->query('select geo_zone_id, geo_zone_name from :table_geo_zones where geo_zone_id in (\'' . implode('\', \'', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '\') order by geo_zone_name');
  $Qzones->execute();

  $names_string = '';

  while ( $Qzones->fetch() ) {
    if ( ZoneGroups::hasTaxRates($Qzones->valueInt('geo_zone_id')) ) {
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::object(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('trash.png') . ' ' . OSCOM::getDef('action_heading_batch_delete_tax_rates');
?>
</h3>

  <form name="rDeleteBatch" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'BatchDeleteEntries&Process&id=' . $_GET['id']);
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_batch_delete_tax_rates');
?>
</p>

<?php 
$Qentries = $OSCOM_PDO->query('select tax_rates_id, tax_description from :table_tax_rates where tax_rates_id in ("' . implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))) . '") order by tax_description');
예제 #30
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<div class="infoBox">
  <h3><?php 
echo HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_zone_group');
?>
</h3>

  <form name="zNew" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Save&Process');
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction_new_zone_group');
?>
</p>

  <fieldset>
    <p><label for="zone_name"><?php