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-forms
 * @version 1.XX
 */



// Установка тестовых данных
if('install'==$_THE['PARAMS'][0]) {
  $f = xs2InsertNode(array('NType'=>'form', 'NName'=>'Отзывы', 'ParId'=> 1));
  $k = xs2GetChildren(array('NType'=>'layout', 'ParId'=> $f, 'limit'=> 1));
  $l = $k[0]['NodId'];
  xs2UpdateNode(array('NodId'=> $l, 'style'=> 'demo1'));
  xs2InsertNode(array('NType'=>'field', 'ParId'=> $l, 'type'=> 'text', 'NName'=> 'Строка 1', 'default'=> ' ФИО'));
  xs2InsertNode(array('NType'=>'field', 'ParId'=> $l, 'type'=> 'text', 'NName'=> 'Строка 2', 'style'=>'demo10'));
  xs2InsertNode(array('NType'=>'field', 'ParId'=> $l, 'type'=> 'textarea', 'NName'=> 'Текст 1'));
  $m = xs2InsertNode(array('NType'=>'field', 'ParId'=> $l, 'type'=> 'radio', 'NName'=> 'Выбор', 'default'=>'Рубли'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'Доллары'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'Евро'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'Рубли'));
  $m = xs2InsertNode(array('NType'=>'field', 'ParId'=> $l, 'type'=> 'checkbox', 'NName'=> 'Отбор'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'метро'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'такси'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'автобус'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'самолет'));
  $m = xs2InsertNode(array('NType'=>'field', 'ParId'=> $l, 'type'=> 'select', 'NName'=> 'Список'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'Белый'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'Синий'));
  xs2InsertNode(array('NType'=>'option', 'ParId'=> $m, 'NName'=> 'Красный'));
  xs2InsertNode(array('NType'=>'form', 'NName'=>'Заявки', 'ParId'=> 1));
  xs2InsertNode(array('NType'=>'form', 'NName'=>'Анекты', 'ParId'=> 1));
  $_HTML->assign('installed', 'yes');
}

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