This repository has been archived on 2020-06-13. You can view files and clone it, but cannot push or open issues/pull-requests.
penguincoder.org-horde/lib/DataForm.php

25 lines
777 B
PHP

<?php
require_once 'Horde/Variables.php';
require_once 'Horde/Form.php';
require_once 'Horde/Form/Renderer.php';
class PDataForm extends Horde_Form
{
function PDataForm(&$vars)
{
parent::Horde_Form($vars);
$this->setButtons(_("Save"));
$this->addHidden('', 'actionId', 'text', true, false);
$this->addHidden('', 'id', 'int', false, false);
$this->addVariable(_("Data ID"), 'id', 'int', false, true);
$this->addVariable(_("Time Posted"), 'time_created', 'time',
false, true);
$this->addVariable(_("Title"), 'title', 'text', true, false);
$this->addVariable(_("Category"), 'category', 'text', true, false);
$this->addVariable(_("Info"), 'info', 'longText', true, false);
}
}