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



if($_POST['action']=='install') {
  $q = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'question',
               'ParId'=> 1,
               'NName'=> 'Сколько вам лет?'));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> '15-20',
               'Counter'=> 0));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> '21-30',
               'Counter'=> 0));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> '35-70',
               'Counter'=> 0));
  $q = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'question',
               'ParId'=> 1,
               'NName'=> 'Вы согласны?'));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> 'да',
               'Counter'=> 0));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> 'нет',
               'Counter'=> 0));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> 'не знаю',
               'Counter'=> 0));
  $a = xs2InsertNode(
         array('mod'=> 'voting',
               'NType'=> 'answer',
               'ParId'=> $q,
               'NName'=> 'может быть',
               'Counter'=> 0));
  $_HTML->assign('installed', 'yes');
}

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