Ejemplo n.º 1
0
  </div>
<div class="ccms_box" style="float:right; width:56%;">
  <form action="index.php" method="post" name="adminForm" id="adminForm" id="adminForm">
    <div class="ccms_box_header">
      <h3 class="left">Drop</h3>
	<?php 
$DropTabsHelper = new TabsHelper();
if ($wizard_mode == 'easy') {
    echo $DropTabsHelper->Header(array('preview' => 'Preview', 'emails' => 'Emails', 'thanks' => 'Thanks Message', 'uploads' => 'Files Uploads', 'code' => 'Code', 'captcha' => 'Anti Spam', 'db' => 'Store Data', 'settings' => 'Form Settings'));
} else {
    echo $DropTabsHelper->Header(array('preview' => 'Preview', 'events' => 'Events', 'settings' => 'Form Settings', 'legend' => 'Legend'));
}
?>
    </div>
    <?php 
echo $DropTabsHelper->tabStart('preview');
?>
        <div class="droppable" id="droppable_area_elements">
			<?php 
$max_field_index = -1;
?>
			<?php 
if (empty($form)) {
    ?>
				
			<?php 
} else {
    ?>
				<?php 
    if ($form->form_type == 1) {
        ?>
Ejemplo n.º 2
0
</script>
<form action="index.php?option=com_chronoforms" method="post" name="adminForm" id="adminForm">
<h2 style='margin: 3px 0;'>
<?php 
if (!empty($form)) {
    echo $form->name;
} else {
    echo 'New Form...';
}
?>
</h2>
<?php 
echo $TabsHelper->Header(array('general' => 'General', 'code' => 'Code', 'jsval' => 'JS Validation', 'admin_actions' => 'Admin actions', 'apps' => 'Form Applications', 'data_view' => 'Data View'));
?>
	<?php 
echo $TabsHelper->tabStart('general');
?>
		<?php 
echo $HtmlHelper->input('name', array('type' => 'text', 'id' => 'chronoform_name', 'label' => 'Form name', 'class' => 'medium_input', 'smalldesc' => 'Unique form name without spaces or any special characters, underscores _ or dashes -'));
?>
		<?php 
echo $HtmlHelper->input('published', array('type' => 'select', 'label' => 'Published', 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 1));
?>
		<?php 
echo $HtmlHelper->input('params[form_mode]', array('type' => 'select', 'label' => 'Form Wizard Mode', 'value' => $params->get('form_mode', 'advanced'), 'options' => array('advanced' => 'Advanced (Default)', 'easy' => 'Easy'), 'default' => 'advanced', 'smalldesc' => 'Choose your form wizard mode, the advanced mode is the default one, you will have all the Chronoforms V4 tools enabled in the wizard, the Easy mode is easier to use though and is enough to build strong simple forms.'));
?>
		<?php 
echo $HtmlHelper->input('params[form_method]', array('type' => 'select', 'label' => 'Form method', 'value' => $params->get('form_method', 'post'), 'options' => array('post' => 'Post', 'get' => 'Get', 'file' => 'File'), 'default' => 'post', 'smalldesc' => 'Choose your form method, File is ncessary to get file uploads working.'));
?>
		<?php 
echo $HtmlHelper->input('params[auto_detect_settings]', array('type' => 'select', 'label' => 'Auto Detect Settings', 'value' => $params->get('auto_detect_settings', 1), 'options' => array(0 => 'No', 1 => 'Yes (Advised)'), 'default' => 1, 'smalldesc' => 'Should the form detect some settings and apply them automatically ? settings like validtaion and files uploading will be detected based on your form code.'));