/**
 * @package AppBuilderAPI
 * @subpackage examples
 * @author Vitaliy Pitvalo <*****@*****.**>
 * @copyright Copyright (c) 2011, ekreative
 * @version 1.0
 */
include '../api/api.php';
// подключаем апи
$screen = new AppBuilderAPIListScreen('Home');
//
if (isset($_GET['addcomment'])) {
    // проверяем добавляем ли мы комент
    $screen->setCSSText('   
		textbox .title{width: 94px;}
		item.textarea{height: 165px;}
	');
    // добавляем CSS стили
    $screen->setHrAfter(false);
    // отключаем линии под элементами на всем скрине
    $screen->addChild($name = new AppBuilderAPIInputItem('name', '', 'Имя'));
    // добавляем поле воода имени
    $screen->addChild($email = new AppBuilderAPIInputItem('email', '', 'Email'));
    // добавляем поле воода почты
    $screen->addChild($text = new AppBuilderAPITextAreaItem('text', 'text', 'Текст'));
    // добавляем поле воода тсообщения
    $screen->addChild($button = new AppBuilderAPIButtonItem('Написать'));
    // добавляем кнопку
    $button->setRemoteLink('http://dev.appshed.net/examples/forms.php?post=true');
    // устанавливаем RemoteLink
    $button->addVariables($name, $email, $text);