The answer to question 1: In PrepareForm:
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('sowed_total');
$query->from('#__svod_plan05');
$db->setQuery($query);
$value = $db->loadResult();
$form = "<input type=\"text\" id=\"05_p_sowed_total\" name=\"ddd\" value=\"$value\" />";
05_p_sowed_total — name field in Content type.
sowed_total — name field in database.
#__svod_plan05 — name database.
PrepareContent and PrepareStore is emty.
The answer to question 2. Insert values from other form fields looks like this:
$value = $cck->renderField('fieldName');
The answer to question 3. It's just. In CT to create another calendar with the format "YYYY". Or something like that.
P.
S. I know SQL, css/html, delphi, regexp and other such nonsense. I
created a simple Joomla!-sites since 2007. But I have almost no knowledge of php.
The Seblod project need a good manual.
Thank you all.