当前位置: 首页>>代码示例>>PHP>>正文


PHP OSCOM::getRPCLink方法代码示例

本文整理汇总了PHP中osCommerce\OM\Core\OSCOM::getRPCLink方法的典型用法代码示例。如果您正苦于以下问题:PHP OSCOM::getRPCLink方法的具体用法?PHP OSCOM::getRPCLink怎么用?PHP OSCOM::getRPCLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在osCommerce\OM\Core\OSCOM的用法示例。


在下文中一共展示了OSCOM::getRPCLink方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: encodeURIComponent

    }

    formSubmited = true;

    $('#mBox').css('visibility', 'visible').show();
    $('#mBoxContents').html('<p><img src="<?php echo OSCOM::getPublicSiteLink('templates/default/images/progress.gif'); ?>" align="right" hspace="5" vspace="5" border="0" /><?php echo OSCOM::getDef('rpc_database_connection_test'); ?></p>');

    dbServer = encodeURIComponent($('#DB_SERVER').val());
    dbUsername = encodeURIComponent($('#DB_SERVER_USERNAME').val());
    dbPassword = encodeURIComponent($('#DB_SERVER_PASSWORD').val());
    dbName = encodeURIComponent($('#DB_DATABASE').val());
    dbPort = encodeURIComponent($('#DB_SERVER_PORT').val());
    dbClass = encodeURIComponent($('#DB_DATABASE_CLASS').val());
    dbPrefix = encodeURIComponent($('#DB_TABLE_PREFIX').val());

    $.post('<?php echo OSCOM::getRPCLink(null, null, 'DBCheck'); ?>',
           'server=' + dbServer + '&username=' + dbUsername + '&password=' + dbPassword + '&name=' + dbName + '&port=' + dbPort + '&class=' + dbClass,
           handleHttpResponse, 'json');
  }
</script>

<div class="mainBlock">
  <div class="stepsBox">
    <ol>
      <li style="font-weight: bold;"><?php echo OSCOM::getDef('box_steps_step_1'); ?></li>
      <li><?php echo OSCOM::getDef('box_steps_step_2'); ?></li>
      <li><?php echo OSCOM::getDef('box_steps_step_3'); ?></li>
    </ol>
  </div>

  <h1><?php echo OSCOM::getDef('page_title_installation'); ?></h1>
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:31,代码来源:step_1.php

示例2: function

      newCell.align = 'center';

      rowCounter++;
    }
  }

  $('#categoriesDataTable tbody').sortable({
    handle: '.dragIcon',
    update: function () {
      $('#batchTotalPages .updateStatus').remove();
      var sortStatus = $('#batchTotalPages').html();

      $('#batchTotalPages').html(batchIconProgress + '&nbsp;Updating&hellip;');

      $.getJSON('<?php 
echo OSCOM::getRPCLink(null, null, 'SaveSortOrder');
?>
', $('#categoriesDataTable tbody').sortable('serialize'), function (response) {
        if ( response.rpcStatus == 1 ) {
          $('#batchTotalPages').html(sortStatus);
        } else {
          $('#batchTotalPages').html(sortStatus + '<span class="updateStatus" style="color: #ff0000; padding-left: 10px;">Update failed</span>');
        }
      });
    }
  });
</script>

<div id="dialogDeleteConfirm" title="<?php 
echo HTML::output(OSCOM::getDef('dialog_delete_category_title'));
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:main.php

示例3: Object

</div>

<script>
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'page';

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

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

  var dataTableName = 'productsDataTable';
  var dataTableDataURL = '<?php echo OSCOM::getRPCLink(null, null, 'GetAll&cid=' . $OSCOM_Application->getCurrentCategoryID()); ?>';

  var productLink = '<?php echo OSCOM::getLink(null, null, 'Preview&cid=' . $OSCOM_Application->getCurrentCategoryID() . '&id=PRODUCTID'); ?>';
  var productLinkIcon = '<?php echo HTML::icon('products.png'); ?>';
  var productVariantLinkIcon = '<?php echo HTML::icon('attach.png'); ?>';

  var productEditLink = '<?php echo OSCOM::getLink(null, null, 'Save&cid=' . $OSCOM_Application->getCurrentCategoryID() . '&id=PRODUCTID'); ?>';
  var productEditLinkIcon = '<?php echo HTML::icon('edit.png'); ?>';

  var productCopyLink = '<?php echo OSCOM::getLink(null, null, 'Copy&cid=' . $OSCOM_Application->getCurrentCategoryID() . '&id=PRODUCTID'); ?>';
  var productCopyLinkIcon = '<?php echo HTML::icon('copy.png'); ?>';

  var productDeleteLink = '<?php echo OSCOM::getLink(null, null, 'Delete&cid=' . $OSCOM_Application->getCurrentCategoryID() . '&id=PRODUCTID'); ?>';
  var productDeleteLinkIcon = '<?php echo HTML::icon('trash.png'); ?>';

  var osC_DataTable = new osC_DataTable();
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:31,代码来源:main.php

示例4: osc_icon

<script type="text/javascript">
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'zones_page';

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

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

  var dataTableName = 'countryZonesDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetAllZones&id=' . $_GET['id']);
?>
';

  var zoneEditLink = '<?php 
echo OSCOM::getLink(null, null, 'ZoneSave&id=' . $_GET['id'] . '&zID=ZONEID');
?>
';
  var zoneEditLinkIcon = '<?php 
echo osc_icon('edit.png');
?>
';

  var zoneDeleteLink = '<?php 
echo OSCOM::getLink(null, null, 'ZoneDelete&id=' . $_GET['id'] . '&zID=ZONEID');
?>
开发者ID:kdexter,项目名称:oscommerce,代码行数:30,代码来源:zones.php

示例5: function

  if ( $('#ab_suburb').length > 0 ) {
    data['suburb'] = $('#ab_suburb').val();
  }

  if ( $('#ab_state').length > 0 ) {
    if ( $('#ab_state option:selected').length > 0 ) {
      data['zone_id'] = $('#ab_state').val();
      data['state'] = '';
    } else {
      data['zone_id'] = '';
      data['state'] = $('#ab_state').val();
    }
  }

  $.getJSON('<?php 
echo OSCOM::getRPCLink(null, null, 'FormatAddress');
?>
', data, function (response) {
    if ( response.rpcStatus == 1 ) {
      if ( typeof id === 'undefined' ) {
        var hiddenFields = '<input type="hidden" name="new_address[' + newAddressCounter + '][firstname]" value="' + $('#ab_firstname').val() + '" />' +
                           '<input type="hidden" name="new_address[' + newAddressCounter + '][lastname]" value="' + $('#ab_lastname').val() + '" />' +
                           '<input type="hidden" name="new_address[' + newAddressCounter + '][street_address]" value="' + $('#ab_street_address').val() + '" />' +
                           '<input type="hidden" name="new_address[' + newAddressCounter + '][postcode]" value="' + $('#ab_postcode').val() + '" />' +
                           '<input type="hidden" name="new_address[' + newAddressCounter + '][city]" value="' + $('#ab_city').val() + '" />' +
                           '<input type="hidden" name="new_address[' + newAddressCounter + '][country_id]" value="' + $('#ab_country').val() + '" />';

        if ( $('input[name="ab_gender"]:checked').length > 0 ) {
          hiddenFields += '<input type="hidden" name="new_address[' + newAddressCounter + '][gender]" value="' + $('input[name="ab_gender"]:checked').val() + '" />';
        }
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:section_addressBook.php

示例6: Object

<script type="text/javascript">
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'page';

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

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

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

  var countryLink = '<?php 
echo OSCOM::getLink(null, null, 'id=COUNTRYID');
?>
';
  var countryLinkIcon = '<?php 
echo HTML::icon('folder.png');
?>
';

  var countryFlag = '<?php 
echo HTML::image(OSCOM::getPublicSiteLink('images/worldflags/COUNTRYISOCODE2.png', null, 'Shop'), 'COUNTRYNAME');
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:main.php

示例7: osc_icon

<script type="text/javascript">
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'groups_page';

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

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

  var dataTableName = 'langDefGroupDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetDefinitionGroups&id=' . $_GET['id']);
?>
';

  var groupLink = '<?php 
echo OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=GROUPCODE');
?>
';
  var groupLinkIcon = '<?php 
echo osc_icon('folder.png');
?>
';

  var groupDeleteLink = '<?php 
echo OSCOM::getLink(null, null, 'DeleteGroup&id=' . $_GET['id'] . '&group=GROUPCODE');
?>
开发者ID:hakankarar,项目名称:oscommerce,代码行数:30,代码来源:groups.php

示例8: strlen

    imagePath: 'public/upload',
    show: 5,
    selector: 'cImage',
    images: <?php 
echo strlen($OSCOM_ObjectInfo->get('categories_image')) > 0 ? '\'public/categories/' . $OSCOM_ObjectInfo->get('categories_image') . '\'' : 'null';
?>
  });
}

$(function() {
  loadImageSelector();

  var uploader = new qq.FileUploader({
    element: document.getElementById('fileUploader'),
    action: '<?php 
echo OSCOM::getRPCLink(null, null, 'SaveUploadedImage');
?>
',
    allowedExtensions: ['gif', 'jpg', 'png'],
    textUpload: '<?php 
echo OSCOM::getDef('button_upload_new_file');
?>
',
    onComplete: function(id, fileName, responseJSON) {
      fileName = responseJSON.filename;

      loadImageSelector();

      $('#cImage').css('backgroundImage', 'none').html('<img src="public/upload/' + fileName + '" alt="' + fileName + '" title="' + fileName + '" onclick="window.open(this.src);" /><input type="hidden" name="cImageSelected" value="' + fileName + '" />');
    }
  });
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:31,代码来源:edit.php

示例9: Object

<script type="text/javascript">
  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 = 'paymentModulesDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetUninstalled');
?>
';

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

  var osC_DataTable = new osC_DataTable();
  osC_DataTable.load();
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:29,代码来源:install.php

示例10: getLocalImages

  }

  if ( (layer != 'local') || ((layer == 'local') && (layer1.css('display') != 'none')) ) {
    layer1.css('display', 'none');
    layer2.css('display', 'inline');
    layer1link.css('backgroundColor', '');
    layer2link.css('backgroundColor', '#E5EFE5');
  } else {
    getLocalImages();
  }
}

function getLocalImages() {
  $('#showProgressGetLocalImages').css('display', 'inline');

  $.getJSON('<?php echo OSCOM::getRPCLink(null, null, 'GetAvailableImages'); ?>',
    function (data) {
      var i = 0;
      var selectList = document.getElementById('localImagesSelection');

      for ( i=selectList.options.length; i>=0; i-- ) {
        selectList.options[i] = null;
      }

      for ( i=0; i<data.images.length; i++ ) {
        selectList.options[i] = new Option(data.images[i]);
        selectList.options[i].selected = false;
      }

      $('#showProgressGetLocalImages').css('display', 'none');
    }
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:31,代码来源:section_images.php

示例11: function

    variant_default_new = { 'key': key,
                            'index': index };

    if ( $('#defaultVariantMarker').length > 0 ) {
      $('#defaultVariantMarker').remove();
    }

    if ( isNew === true ) {
      $('#newVariant' + variant_default_new['index'] + ' td:first').append(defaultVariantMarker);
    } else {
      $('#dbVariant' + variant_default_new['index'] + ' td:first').append(defaultVariantMarker);
    }
  }

  $.getJSON('<?php echo OSCOM::getRPCLink(null, null, 'FormatCurrency'); ?>', { value: $('#variants_price').val() }, function (response) {
    if ( response.rpcStatus == 1 ) {
      if ( isNew === true ) {
        $('#nvP' + index).html(response.value);
      } else {
        $('#dbvP' + index).html(response.value);
      }
    }
  });

  prettifyDataTable();

  if ( (isNew === true) && (typeof id == 'undefined') ) {
    newVariantCounter++;
  }
开发者ID:haraldpdl,项目名称:oscommerce,代码行数:29,代码来源:section_variants.php

示例12: Object

<script type="text/javascript">
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'page';

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

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

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

  var announcementIcon = '<?php 
echo HTML::icon('newsletters.png', OSCOM::getDef('icon_view_announcement'));
?>
';

  var updateInstallLink = '<?php 
echo OSCOM::getLink(null, null, 'Apply&v=VCODE');
?>
';
  var updateInstallLinkIcon = '<?php 
echo HTML::icon('folder_contents.png', OSCOM::getDef('icon_view_contents'));
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:main.php

示例13: Object

<script>
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'log_page';

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

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

  var dataTableName = 'logDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetLog&log=' . $_GET['log']);
?>
';

  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(rowCounter);
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:29,代码来源:view_log.php

示例14: Object

<script type="text/javascript">
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'groups_page';

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

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

  var dataTableName = 'langDefGroupDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetGroups&id=' . $_GET['id']);
?>
';

  var groupLink = '<?php 
echo OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=GROUPCODE');
?>
';
  var groupLinkIcon = '<?php 
echo HTML::icon('folder.png');
?>
';

  var groupDeleteLink = '<?php 
echo OSCOM::getLink(null, null, 'DeleteGroup&id=' . $_GET['id'] . '&group=GROUPCODE');
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:groups.php

示例15: Object

<script type="text/javascript">
  var moduleParamsCookieName = 'oscom_admin_' + pageModule;
  var dataTablePageSetName = 'definitions_page';

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

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

  var dataTableName = 'defsDataTable';
  var dataTableDataURL = '<?php 
echo OSCOM::getRPCLink(null, null, 'GetDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']);
?>
';

  var defEditLink = '<?php 
echo OSCOM::getLink(null, null, 'EditDefinition&id=' . $_GET['id'] . '&group=' . $_GET['group'] . '&dID=DEFINITIONID');
?>
';
  var defEditLinkIcon = '<?php 
echo HTML::icon('edit.png');
?>
';

  var defDeleteLink = '<?php 
echo OSCOM::getLink(null, null, 'DeleteDefinition&id=' . $_GET['id'] . '&group=' . $_GET['group'] . '&dID=DEFINITIONID');
?>
开发者ID:digitaldevelopers,项目名称:oscommerce,代码行数:30,代码来源:definitions.php


注:本文中的osCommerce\OM\Core\OSCOM::getRPCLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。