function _getFormMask($p_admin=false, $p_owner=false) { $mask = array( 'f_comment_id' => array( 'element' => 'f_comment_id', 'type' => 'hidden', 'constant' => $this->getProperty('comment_id'), ), 'f_entry_id' => array( 'element' => 'f_entry_id', 'type' => 'hidden', 'constant' => $this->getProperty('fk_entry_id'), ), SecurityToken::SECURITY_TOKEN => array( 'element' => SecurityToken::SECURITY_TOKEN, 'type' => 'hidden', 'constant' => SecurityToken::GetToken() ), /* 'tiny_mce' => array( 'element' => 'tiny_mce', 'text' => '<script language="javascript" type="text/javascript" src="/javascript/tinymce/tiny_mce.js"></script>'. '<script language="javascript" type="text/javascript">'. ' tinyMCE.init({'. ' mode : "exact",'. ' elements : "tiny_mce_box",'. ' theme : "advanced",'. ' plugins : "emotions, paste", '. ' paste_auto_cleanup_on_paste : true, '. ' theme_advanced_buttons1 : "bold, italic, underline, undo, redo, link, emotions", '. ' theme_advanced_buttons2 : "", '. ' theme_advanced_buttons3 : "" '. ' });'. '</script>', 'type' => 'static' ), */ 'title' => array( 'element' => 'BlogComment[title]', 'type' => 'text', 'label' => getGS('Title'), 'default' => html_entity_decode($this->getProperty('title')) ), 'user_name' => array( 'element' => 'BlogComment[user_name]', 'type' => 'text', 'label' => getGS('Poster name'), 'default' => html_entity_decode($this->getProperty('user_name')) ), 'user_email' => array( 'element' => 'BlogComment[user_email]', 'type' => 'text', 'label' => getGS('EMail'), 'default' => html_entity_decode($this->getProperty('user_email')) ), 'content' => array( 'element' => 'BlogComment[content]', 'type' => 'textarea', 'label' => getGS('Comment'), 'default' => $this->getProperty('content'), 'required' => true, 'attributes'=> array('cols' => 60, 'rows' => 8, 'id' => 'tiny_mce_box') ), 'mood' => array( 'element' => 'BlogComment[fk_mood_id]', 'type' => 'select', 'label' => getGS('Mood'), 'default' => $this->getProperty('fk_mood_id'), 'options' => Blog::GetMoodList($this->getProperty('fk_language_id') ? $this->getProperty('fk_language_id') : BlogEntry::GetEntryLanguageId($this->getProperty('fk_entry_id'))) ), 'status' => array( 'element' => 'BlogComment[status]', 'type' => 'select', 'label' => getGS('Status'), 'default' => $this->getProperty('status'), 'options' => array( 'online' => getGS('online'), 'offline' => getGS('offline'), 'pending' => getGS('pending') ), 'required' => true ), 'admin_status' => array( 'element' => 'BlogComment[admin_status]', 'type' => 'select', 'label' => getGS('Admin status'), 'default' => $this->getProperty('admin_status'), 'options' => array( 'pending' => getGS('pending'), 'online' => getGS('online'), 'offline' => getGS('offline'), ), 'required' => true ), 'reset' => array( 'element' => 'reset', 'type' => 'reset', 'label' => getGS('Reset'), 'groupit' => true ), 'xsubmit' => array( 'element' => 'xsubmit', 'type' => 'button', 'label' => getGS('Submit'), 'attributes'=> array('onclick' => 'if (this.form.onsubmit()) this.form.submit()'), 'groupit' => true ), 'cancel' => array( 'element' => 'cancel', 'type' => 'button', 'label' => getGS('Cancel'), 'attributes' => array('onClick' => 'window.close()'), 'groupit' => true ), 'buttons' => array( 'group' => array('cancel', 'reset', 'xsubmit') ) ); return $mask; }