Solution Technologies
Управление сайтом без ограничений
<?php
/**
 * XS2:
 *
 * This file is developed by Solutecs, LLC for the purpose of the company
 * and is provided together with XS2 Framework as and inherent part of the
 * system. This file can be used on the terms of License Agreement.
 *
 * +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
 *
 * @link http://www.solutecs.com
 * @copyright ©1998-2007 Solutecs, LLC
 * @package XS2-MODCOM
 * @subpackage proc-shop
 * @version 1.XX
 */



$install = '_install'; // Метод загружающий данные

// ---

$children = xs2GetChildren(array('ParId'=>1));

$jump = false;
switch($_THE['PARAMS'][0]) {
case 'install':
    if(!$children) {
      xs2Fetch(array('mod'=>$_THE['QUE']['MOD'],
                     'obj'=>$_THE['QUE']['OBJ'],
                     'met'=>$install));
      $jump = true;
    }
  break;

case 'remove':
  if($children) {
    foreach($children as $node) {
      xs2DeleteNode(array('NodId'=>$node['NodId']));
    }
    $jump = true;
  }
  break;
}

if($jump) {
  header('location: '.xs2Href(array('mod'=>$_THE['QUE']['MOD'],
                                    'obj'=>$_THE['QUE']['OBJ'],
                                    'met'=>$_THE['QUE']['MET'])));
}

$_HTML->assign('children', $children);

?>
Copyright ©1998-2008 Солютекс. Все права защищены.
Этот сайт сделан в designLab | Работает на технологии XS2
Условия использования | О защите конфиденциальности