예제 #1
0
 public static function execute()
 {
     if (!isset($_GET['search'])) {
         $_GET['search'] = '';
     }
     if (!empty($_GET['search'])) {
         $result = Languages::findDefinitionGroups($_GET['id'], $_GET['search']);
     } else {
         $result = Languages::getDefinitionGroups($_GET['id']);
     }
     $result['rpcStatus'] = RPC::STATUS_SUCCESS;
     echo json_encode($result);
 }
예제 #2
0
<?php

/*
  osCommerce Online Merchant $osCommerce-SIG$
  Copyright (c) 2010 osCommerce (http://www.oscommerce.com)

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
use osCommerce\OM\Core\ObjectInfo;
use osCommerce\OM\Core\Site\Admin\Application\Languages\Languages;
use osCommerce\OM\Core\OSCOM;
$OSCOM_ObjectInfo = new ObjectInfo(Languages::get($_GET['id']));
$groups_array = array();
foreach (osc_toObjectInfo(Languages::getDefinitionGroups($OSCOM_ObjectInfo->getInt('languages_id')))->get('entries') as $group) {
    $groups_array[] = array('id' => $group['content_group'], 'text' => $group['content_group']);
}
?>

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

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>
예제 #3
0
<?php

/*
  osCommerce Online Merchant $osCommerce-SIG$
  Copyright (c) 2010 osCommerce (http://www.oscommerce.com)

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/
use osCommerce\OM\Core\Site\Admin\Application\Languages\Languages;
use osCommerce\OM\Core\OSCOM;
$groups_array = array();
foreach (osc_toObjectInfo(Languages::getDefinitionGroups($_GET['id']))->get('entries') as $value) {
    $groups_array[] = $value['content_group'];
}
?>

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

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

<div class="infoBox">
  <h3><?php