sintonia/livesupport/modules/htmlUI/var/formmask/subjects.php
2005-04-27 13:26:09 +00:00

121 lines
3.3 KiB
PHP
Executable file

<?php
$mask = array(
'addUser' => array(
array(
'element' => 'act',
'type' => 'hidden',
'constant' => 'SUBJECTS.addSubj'
),
array(
'element' => 'login',
'type' => 'text',
'label' => 'Login',
'required' => TRUE
),
array(
'element' => 'passwd',
'type' => 'password',
'label' => 'Password',
'required' => TRUE
),
array(
'element' => 'passwd2',
'type' => 'password',
'label' => 'Repeat password',
'required' => TRUE
),
array(
'element' => 'cancel',
'type' => 'button',
'label' => 'Cancel',
'attributes'=> array('onClick' => 'location.href="'.UI_BROWSER.'?act=SUBJECTS"'),
'groupit' => TRUE
),
array(
'element' => 'Submit',
'type' => 'submit',
'label' => 'Submit',
'groupit' => TRUE
),
array(
'group' => array('cancel', 'Submit')
)
),
'addGroup' => array(
array(
'element' => 'act',
'type' => 'hidden',
'constant' => 'SUBJECTS.addSubj'
),
array(
'element' => 'login',
'type' => 'text',
'label' => 'Groupname',
'required' => TRUE
),
array(
'element' => 'cancel',
'type' => 'button',
'label' => 'Cancel',
'attributes'=> array('onClick' => 'location.href="'.UI_BROWSER.'?act=SUBJECTS"'),
'groupit' => TRUE
),
array(
'element' => 'Submit',
'type' => 'submit',
'label' => 'Submit',
'groupit' => TRUE
),
array(
'group' => array('cancel', 'Submit')
)
),
'chgPasswd' => array(
array(
'element' => 'act',
'type' => 'hidden',
'constant' => 'SUBJECTS.chgPasswd'
),
array(
'element' => 'login',
'type' => 'hidden'
),
'oldpasswd' => array(
'element' => 'oldpasswd',
'type' => 'password',
'label' => 'Old password',
'required' => TRUE
),
array(
'element' => 'passwd',
'type' => 'password',
'label' => 'Password',
'required' => TRUE
),
array(
'element' => 'passwd2',
'type' => 'password',
'label' => 'Repeat password',
'required' => TRUE
),
array(
'element' => 'cancel',
'type' => 'button',
'label' => 'Cancel',
'attributes'=> array('onClick' => 'location.href="'.UI_BROWSER.'?act=SUBJECTS"'),
'groupit' => TRUE
),
array(
'element' => 'Submit',
'type' => 'submit',
'label' => 'Submit',
'groupit' => TRUE
),
array(
'group' => array('cancel', 'Submit')
)
),
);
?>