|
@@ -43,6 +43,7 @@ function PageCompMainCode()
|
|
|
'labels' => array(
|
|
'labels' => array(
|
|
|
'type' => 'custom',
|
|
'type' => 'custom',
|
|
|
'name' => 'labels',
|
|
'name' => 'labels',
|
|
|
|
|
+ 'caption_src' => 'Labels',
|
|
|
'caption' => _t('Labels'),
|
|
'caption' => _t('Labels'),
|
|
|
'value' => ['Hello World', 'Привет Мир'],
|
|
'value' => ['Hello World', 'Привет Мир'],
|
|
|
'values' => ['Hello World', 'Привет Мир', 'Guten Tag', 'Жакшы кун'],
|
|
'values' => ['Hello World', 'Привет Мир', 'Guten Tag', 'Жакшы кун'],
|
|
@@ -167,6 +168,22 @@ function PageCompMainCode()
|
|
|
'required' => true,
|
|
'required' => true,
|
|
|
),
|
|
),
|
|
|
|
|
|
|
|
|
|
+ 'color' => array(
|
|
|
|
|
+ 'type' => 'rgb',
|
|
|
|
|
+ 'name' => 'color',
|
|
|
|
|
+ 'caption' => _t('Color'),
|
|
|
|
|
+ 'value' => 'rgb(16, 164, 164)',
|
|
|
|
|
+ 'required' => true,
|
|
|
|
|
+ ),
|
|
|
|
|
+
|
|
|
|
|
+ 'code' => array(
|
|
|
|
|
+ 'type' => 'textarea',
|
|
|
|
|
+ 'code' => true,
|
|
|
|
|
+ 'name' => 'code',
|
|
|
|
|
+ 'caption' => _t('Source code'),
|
|
|
|
|
+ 'required' => true,
|
|
|
|
|
+ ),
|
|
|
|
|
+
|
|
|
'header_submit' => array(
|
|
'header_submit' => array(
|
|
|
'type' => 'block_header',
|
|
'type' => 'block_header',
|
|
|
'caption' => '',
|
|
'caption' => '',
|
|
@@ -206,6 +223,9 @@ function PageCompMainCode()
|
|
|
$oForm->initChecker();
|
|
$oForm->initChecker();
|
|
|
if ( $oForm->isSubmittedAndValid() ) {
|
|
if ( $oForm->isSubmittedAndValid() ) {
|
|
|
echo MsgBox('Data was successfully submitted');
|
|
echo MsgBox('Data was successfully submitted');
|
|
|
|
|
+ echo '<pre>';
|
|
|
|
|
+ print_r($_REQUEST);
|
|
|
|
|
+ echo '</pre>';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
echo $oForm->getCode();
|
|
echo $oForm->getCode();
|