AAAAwww/administrator/components/com_chronoforms/form_actions/submit_article/submit_article.ctp000060400000010215151466073570031612 0ustar00home/academiac
Submit Article
Header(array('fields' => 'Fields', 'settings' => 'Settings', 'help' => 'Help'), 'submit_article_config_{n}'); ?> tabStart('fields'); ?> input('action_submit_article_{n}_title_config', array('type' => 'text', 'label' => "Article Title Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the article's title.")); ?> input('action_submit_article_{n}_fulltext_config', array('type' => 'text', 'label' => "Full Text Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the article's full text.")); ?> input('action_submit_article_{n}_introtext_config', array('type' => 'text', 'label' => "Intro Text Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the article's intro text.")); ?> input('action_submit_article_{n}_created_by_alias_config', array('type' => 'text', 'label' => "Author Alias Field", 'class' => 'medium_input', 'smalldesc' => "The field name which will hold the Author's alias name.")); ?> tabEnd(); ?> tabStart('settings'); ?> input('action_submit_article_{n}_state_config', array('type' => 'select', 'label' => 'Published ?', 'options' => array(0 => 'No', 1 => 'Yes'), 'smalldesc' => 'If enabled it will set the article status to published.')); ?> setQuery($query); $options = array(); $cats = $database->loadObjectList(); foreach($cats as $cat){ $options[$cat->id] = $cat->title; } ?> input('action_submit_article_{n}_catid_config', array('type' => 'select', 'label' => 'Category', 'options' => $options, 'empty' => " - ", 'class' => 'medium_input', 'smalldesc' => "Select the article's category.")); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>