| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaStudio UNA Studio
- * @{
- */
- class BxDolStudioApiOrigins extends BxDolStudioApiKeys
- {
- public function __construct ($aOptions, $oTemplate = false)
- {
- parent::__construct ($aOptions, $oTemplate);
- }
- public function performActionAdd()
- {
- $aForm = array(
- 'form_attrs' => array(
- 'id' => 'bx_studio_api_origins',
- 'action' => BX_DOL_URL_ROOT . 'grid.php?o=sys_studio_api_origins&a=add',
- 'method' => 'post',
- ),
- 'params' => array (
- 'db' => array(
- 'table' => 'sys_api_origins',
- 'key' => 'id',
- 'submit_name' => 'do_submit',
- ),
- ),
- 'inputs' => array(
- 'url' => array(
- 'type' => 'text',
- 'name' => 'url',
- 'caption' => _t('_sys_txt_url'),
- 'db' => array (
- 'pass' => 'Xss',
- ),
- ),
- 'submit' => array(
- 'type' => 'input_set',
- 0 => array (
- 'type' => 'submit',
- 'name' => 'do_submit',
- 'value' => _t('_sys_submit'),
- ),
- 1 => array (
- 'type' => 'reset',
- 'name' => 'close',
- 'value' => _t('_sys_close'),
- 'attrs' => array('class' => 'bx-def-margin-sec-left', 'onclick' => '$(\'.bx-popup-applied:visible\').dolPopupHide();'),
- ),
- ),
- ),
- );
- return $this->_performActionAdd($aForm);
- }
- }
- /** @} */
|