| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * CC-BY License - http://creativecommons.org/licenses/by/3.0/
- *
- * @defgroup MarketApi MarketApi
- * @ingroup TridentModules
- *
- * @{
- */
- class BxMarketApiFormAddClients extends BxTemplFormView
- {
- protected $MODULE;
- protected $_oModule;
- function __construct()
- {
- $this->MODULE = 'bx_market_api';
- $this->_oModule = BxDolModule::getInstance($this->MODULE);
- $aCustomForm = array(
- 'form_attrs' => array(
- 'id' => 'bx-market-api-kands-add',
- 'name' => 'bx-market-api-kands-add',
- 'action' => BX_DOL_URL_ROOT . 'grid.php?' . bx_encode_url_params($_GET, array('ids', '_r')),
- 'method' => 'post',
- ),
- 'params' => array (
- 'db' => array(
- 'submit_name' => 'client_add',
- ),
- ),
- 'inputs' => array(
- 'user_id' => array(
- 'type' => 'hidden',
- 'name' => 'user_id',
- 'attrs' => array(
- 'id' => $this->_oModule->_oConfig->getHtmlIds('field_user_id'),
- ),
- 'db' => array (
- 'pass' => 'Int',
- ),
- ),
- 'user' => array(
- 'type' => 'text',
- 'name' => 'user',
- 'caption' => _t('_bx_market_api_user_id'),
- 'required' => true,
- 'attrs' => array(
- 'id' => $this->_oModule->_oConfig->getHtmlIds('field_user'),
- ),
- 'checker' => array (
- 'func' => 'avail',
- 'error' => _t ('_sys_adm_form_err_required_field'),
- ),
- 'db' => array (
- 'pass' => 'Xss',
- ),
- ),
- 'title' => array(
- 'type' => 'text',
- 'name' => 'title',
- 'caption' => _t('_Title'),
- 'required' => true,
- 'checker' => array (
- 'func' => 'avail',
- 'error' => _t ('_sys_adm_form_err_required_field'),
- ),
- 'db' => array (
- 'pass' => 'Xss',
- ),
- ),
- 'redirect_uri' => array(
- 'type' => 'text',
- 'name' => 'redirect_uri',
- 'caption' => _t('_bx_market_api_client_url'),
- 'required' => true,
- 'checker' => array (
- 'func' => 'avail',
- 'error' => _t ('_sys_adm_form_err_required_field'),
- ),
- 'db' => array (
- 'pass' => 'Xss',
- ),
- ),
- 'Submit' => array (
- 'type' => 'input_set',
- 0 => array (
- 'type' => 'submit',
- 'name' => 'client_add',
- 'value' => _t('_Submit'),
- ),
- 1 => array (
- 'type' => 'reset',
- 'name' => 'close',
- 'value' => _t('Close'),
- 'attrs' => array(
- 'onclick' => "$('.bx-popup-active').dolPopupHide()",
- 'class' => 'bx-def-margin-sec-left',
- ),
- ),
- ),
- ),
- );
- parent::__construct ($aCustomForm);
- }
- }
- /** @} */
|