static function listitems($option, $pkg, &$form, $page, &$rows, $prevmode, &$checkedIds) { global $ff_processor, $ff_mospath, $ff_mossite, $ff_admicon, $ff_comsite, $ff_config, $ff_request, $ff_version, $database, $my; $mainframe = JFactory::getApplication(); $database = JFactory::getDBO(); $ff_mossite = JURI::root(); ?> <script type="text/javascript"> <!-- var bf_submitbutton = function(pressbutton) { var form = document.adminForm; switch (pressbutton) { case 'close': location.href="index.php?option=com_breezingforms&act=manageforms"; return; break; case 'copy': case 'move': case 'publish': case 'unpublish': case 'remove': if (form.boxchecked.value==0) { alert("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_SELELEMENTS'); ?> "); return; } // if break; default: break; } // switch switch (pressbutton) { case 'share': form.act.value = 'share'; break; case 'sort': if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_ASKSORT'); ?> ")) return; break; case 'remove': if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_ASKDELELEMENTS'); ?> ")) return; break; case 'delpage': if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_ASKDELPAGE'); ?> ")) return; break; case 'movepos': if (form.movepixels.value=='') { alert("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_ENTPIXMOVE'); ?> "); return; } // if var nonDigits = /\D/; if (nonDigits.test(form.movepixels.value)) { alert("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_PIXMOVEINT'); ?> "); return; } // if break; default: break; } // switch submitform(pressbutton); }; // submitbutton if(typeof Joomla != "undefined"){ Joomla.submitbutton = bf_submitbutton; } submitbutton = bf_submitbutton; function changepage(newpage) { document.adminForm.page.value = newpage; submitform(''); } // changepage function listItemTask( id, task ) { var f = document.adminForm; cb = eval( 'f.' + id ); if (cb) { for (i = 0; true; i++) { cbx = eval('f.cb'+i); if (!cbx) break; cbx.checked = false; } // for cb.checked = true; f.boxchecked.value = 1; submitbutton(task); } return false; } // listItemTask <?php if ($form->prevmode > 0) { ?> ff_coords = [ <?php for ($i = 0; $i < count($rows); $i++) { $row = $rows[$i]; if ($i) { echo ",\n"; } echo "\t\t\t\t[" . intval(isVisibleElement($row->type)) . ',' . intval($row->posx) . ',' . intval($row->posx) . ',' . intval($row->posxmode) . ',' . intval($row->posy) . ',' . intval($row->posy) . ',' . intval($row->posymode) . ']'; } // for if ($i) { echo "\n"; } else { echo "\t\t\t\t0"; } ?> ]; var highlightTmpColor = ""; var highlightTmpPadding = ""; function highlightElement( elementIndex ){ var f = document.adminForm; <?php if ($ff_config->stylesheet) { ?> var fd = ff_prevframe.document; <?php } else { ?> var fd = document; <?php } // endif ?> var cb = eval('f.cb'+elementIndex); highlightTmpColor = fd.getElementById('ff_div'+cb.value).style.backgroundColor; highlightTmpPadding = fd.getElementById('ff_div'+cb.value).style.padding; fd.getElementById('ff_div'+cb.value).style.backgroundColor = "red"; fd.getElementById('ff_div'+cb.value).style.padding = "5px"; } function unhighlightElement( elementIndex ){ var f = document.adminForm; <?php if ($ff_config->stylesheet) { ?> var fd = ff_prevframe.document; <?php } else { ?> var fd = document; <?php } // endif ?> var cb = eval('f.cb'+elementIndex); fd.getElementById('ff_div'+cb.value).style.backgroundColor = highlightTmpColor; fd.getElementById('ff_div'+cb.value).style.padding = highlightTmpPadding; } function moveElements(direction) { var f = document.adminForm; var step = parseInt(f.id_movepixels.value); if (step==0) return; <?php if ($ff_config->stylesheet) { ?> var fd = ff_prevframe.document; <?php } else { ?> var fd = document; <?php } // endif ?> var i; for (i = 0; i < <?php echo count($rows); ?> ; i++) { var cb = eval('f.cb'+i); if (cb.checked && ff_coords[i][0]) { var el = fd.getElementById('ff_div'+cb.value).style; var x,y,u; switch (direction) { case 'left': x = ff_coords[i][2]; if (ff_coords[i][3]) u = '%'; else u = 'px'; if (x >= 0) { if (x > step) x -= step; else x = 0; el.left = x+u; } else { x -= step; el.right = (-x)+u; } // if ff_coords[i][2] = x; break; case 'right': x = ff_coords[i][2]; if (ff_coords[i][3]) u = '%'; else u = 'px'; if (x >= 0) { x += step; el.left = x+u; } else { if ((-x) > step) x += step; else x = -1; el.right = (-y)+u; } // if ff_coords[i][2] = x; break; case 'up': y = ff_coords[i][5]; if (ff_coords[i][6]) u = '%'; else u = 'px'; if (y >= 0) { if (y > step) y -= step; else y = 0; el.top = y+u; } else { y -= step; el.bottom = (-y)+u; } // if ff_coords[i][5] = y; break; case 'down': y = ff_coords[i][5]; if (ff_coords[i][6]) u = '%'; else u = 'px'; if (y >= 0) { y += step; el.top = y+u; } else { if ((-y) > step) y += step; else y = -1; el.bottom = (-y)+u; } // if ff_coords[i][5] = y; break; default:; } // switch } // if } // for var disabled = true; for (i = 0; i < <?php echo count($rows); ?> ; i++) if (ff_coords[i][1]!=ff_coords[i][2] || ff_coords[i][4]!=ff_coords[i][5]) { disabled = false; break; } // if f.savepos.disabled = disabled; f.restpos.disabled = disabled; } // moveElements function savePositions() { var f = document.adminForm; <?php if ($ff_config->stylesheet) { ?> var fd = ff_prevframe.document; <?php } else { ?> var fd = document; <?php } // endif ?> var i; var pos = ''; for (i = 0; i < <?php echo count($rows); ?> ; i++) if (ff_coords[i][1]!=ff_coords[i][2] || ff_coords[i][4]!=ff_coords[i][5]) { var cb = eval('f.cb'+i); var el = fd.getElementById('ff_div'+cb.value).style; if (pos != '') pos += ','; pos += cb.value+','+ff_coords[i][2]+','+ff_coords[i][5]; } // if f.movepositions.value = pos; submitbutton('movepos'); } // savePositions function restorePositions() { var f = document.adminForm; <?php if ($ff_config->stylesheet) { ?> var fd = ff_prevframe.document; <?php } else { ?> var fd = document; <?php } // endif ?> var i; for (i = 0; i < <?php echo count($rows); ?> ; i++) if (ff_coords[i][1]!=ff_coords[i][2] || ff_coords[i][4]!=ff_coords[i][5]) { var cb = eval('f.cb'+i); var el = fd.getElementById('ff_div'+cb.value).style; var x = ff_coords[i][2] = ff_coords[i][1]; var y = ff_coords[i][5] = ff_coords[i][4]; var u; if (ff_coords[i][3]) u = '%'; else u = 'px'; if (x >= 0) el.left = x+u; else el.right = (-x)+u; if (ff_coords[i][6]) u = '%'; else u = 'px'; if (y >= 0) el.top = y+u; else el.bottom = (-y)+u; } // if f.savepos.disabled = true; f.restpos.disabled = true; } // restorePositions <?php } // endif ?> <?php if ($prevmode == 'submit') { ?> onload = function() { submitform(''); } // onload <?php } // endif ?> //--> </script> <div id="overDiv" style="position:absolute;visibility:hidden;z-index:1000;"></div> <?php echo bf_alert('Get BreezingForms Full Version', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <?php echo bf_alert('More features, no footers, no messages', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td nowrap> <table class="adminheading"> <tr><th class="edit" nowrap>BreezingForms <?php echo $ff_version; ?> <br/><span class="componentheading"><?php echo $form->title; ?> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_PAGE'); ?> <?php echo $page; ?> </span></th></tr> </table> </td> <td width="100%" align="right" nowrap> <?php JToolBarHelper::custom('new', 'new.png', 'new_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_NEW'), false); JToolBarHelper::custom('editform', 'edit.png', 'edit_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_EDITFORM'), false); JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_COPY'), false); JToolBarHelper::custom('move', 'move.png', 'move_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_MOVE'), false); JToolBarHelper::custom('publish', 'publish.png', 'publish_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_PUBLISH'), false); JToolBarHelper::custom('unpublish', 'unpublish.png', 'unpublish_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_UNPUBLISH'), false); JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_DELETE'), false); JToolBarHelper::custom('close', 'cancel.png', 'cancel_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_QUICKMODE_CLOSE'), false); ?> </td> </tr> </table> <form action="index.php" method="post" name="adminForm" id="adminForm" class="adminForm"> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist table table-striped"> <tr> <th nowrap align="center"><input type="checkbox" name="toggle" value="" onclick="<?php $version = new JVersion(); echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'Joomla.checkAll(this);' : 'checkAll(' . count($rows) . ');'; ?> " /></th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_TITLE'); ?> </th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_NAME'); ?> </th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_TYPE'); ?> </th> <th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_PUBLISHED'); ?> </th> <th nowrap align="center" colspan="2"><a href="#sort" onclick="submitbutton('sort')"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_REORDER'); ?> </a></th> <th nowrap align="center">X</th> <th nowrap align="center">Y</th> <th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_SCRIPTID'); ?> </th> <th width="100%"></th> </tr> <?php $k = 0; $boxchecked = 0; for ($i = 0; $i < count($rows); $i++) { $row = $rows[$i]; $checked = ''; if (in_array($row->id, $checkedIds)) { $checked = 'checked="checked"'; $boxchecked++; } // if ?> <tr class="row<?php echo $k; ?> "> <td nowrap align="center"><input type="checkbox" id="cb<?php echo $i; ?> " name="ids[]" value="<?php echo $row->id; ?> " onclick="<?php jimport('joomla.version'); $version = new JVersion(); echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'Joomla.isChecked(this.checked);' : 'isChecked(this.checked);'; ?> " <?php echo $checked; ?> /></td> <td nowrap align="left"><div id="hoverItem_ff_div<?php echo $row->id; ?> "><a href="#edit" onmouseout="unhighlightElement(<?php echo $i; ?> )" onmouseover="highlightElement(<?php echo $i; ?> )" onclick="return listItemTask('cb<?php echo $i; ?> ','edit')"><?php echo $row->title; ?> </a></div></td> <td nowrap align="left"><?php echo $row->name; ?> </td> <td nowrap align="left"><?php echo HTML_facileFormsElement::displayType($row->type); ?> </td> <td nowrap align="center"> <?php if ($row->published == "1") { echo "<a href=\"#unpublish\" onClick=\"return listItemTask('cb" . $i . "','unpublish')\"><img src=\"components/com_breezingforms/images/icons/publish_g.png\" alt=\"+\" border=\"0\" /></a>"; } else { echo "<a href=\"#publish\" onClick=\"return listItemTask('cb" . $i . "','publish')\"><img src=\"components/com_breezingforms/images/icons/publish_x.png\" alt=\"-\" border=\"0\" /></a>"; } // if ?> </td> <td nowrap align="right"> <?php if ($i > 0) { echo "<a href=\"#orderup\" onClick=\"return listItemTask('cb" . $i . "','orderup')\"><img src=\"components/com_breezingforms/images/icons/uparrow.png\" alt=\"^\" border=\"0\" /></a>"; } ?> </td> <td nowrap align="left"> <?php if ($i < count($rows) - 1) { echo "<a href=\"#orderdown\" onClick=\"return listItemTask('cb" . $i . "','orderdown')\"><img src=\"components/com_breezingforms/images/icons/downarrow.png\" alt=\"v\" border=\"0\" /></a>"; } ?> </td> <td nowrap align="right"><?php echo $row->posx; if ($row->posxmode) { echo '%'; } else { echo 'px'; } ?> </td> <td nowrap align="right"><?php echo $row->posy; if ($row->posymode) { echo '%'; } else { echo 'px'; } ?> </td> <td nowrap align="right"><?php echo $row->id; ?> </td> <td></td> </tr> <?php $k = 1 - $k; } // for ?> </table> <?php if ($form->prevmode > 0) { if ($form->prevmode == 1) { ?> <br /> <br /> <?php } else { ?> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/wz_dragdrop/wz_dragdrop.js'; ?> "></script> <!-- BEGIN OF SURFACE --> <div id="SelectOptionDialog" style="background-color: #cccccc;position:absolute;top:233px;right:15px;z-index:100;"> <?php } ?> <table cellpadding="4" cellspacing="1" border="0" class="adminform" style="width:100%;"> <tr><th colspan="2" class="title">BreezingForms - <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_PAGELAY'); ?> </th></tr> <tr> <td colspan="2"> <table class="menubar" cellpadding="3" cellspacing="0" border="0"> <tr><td nowrap class="menudottedline" align="right"> <input class="btn btn-warning" onclick="submitbutton('addbefore');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_ELEMENTS_ADDPAGEBEFORE'), ENT_QUOTES, 'UTF-8'); ?> "/> <input class="btn btn-warning" onclick="submitbutton('addbehind');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_ELEMENTS_ADDPAGEBEHIND'), ENT_QUOTES, 'UTF-8'); ?> "/> <?php if ($form->pages > 1) { ?> <input class="btn btn-primary" onclick="submitbutton('movepage');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_ELEMENTS_MOVEPG'), ENT_QUOTES, 'UTF-8'); ?> "/> <input class="btn btn-primary" onclick="submitbutton('delpage');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_ELEMENTS_DELPAGE'), ENT_QUOTES, 'UTF-8'); ?> "/> <?php } // if ?> </td></tr> </table> </td> </tr> <tr> <td valign="top"> <table class="menubar" cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap colspan="5" style="text-align:center"> <?php if ($form->prevmode == 2) { ?> <?php echo BFText::_('COM_BREEZINGFORMS_DRAGGING'); ?> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DRAGGING_ON'); ?> <input type="radio" id="draggingEnabled" name="dragToggle" onclick="dd.elements.SelectOptionDialog.setDraggable(true);"/> <?php echo BFText::_('COM_BREEZINGFORMS_DRAGGING_OFF'); ?> <input id="draggingDisabled" checked type="radio" name="dragToggle" onclick="dd.elements.SelectOptionDialog.setDraggable(false);"/> <br/> <?php } ?> <input type="checkbox" id="gridshow" name="gridshow" onclick="submitbutton('gridshow');" value="1"<?php if ($ff_config->gridshow == 1) { echo ' checked="checked"'; } ?> /><label for="gridshow"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_GRID'); ?> </label> <hr/> </td> </tr> <tr> <td nowrap colspan="5" style="text-align:center"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_MOVEPIX'); ?> :<br/> <input type="text" size="6" maxlength="6" id="id_movepixels" name="movepixels" value="<?php echo is_int($ff_config->movepixels) ? is_int($ff_config->movepixels) : 5; ?> " class="inputbox"/> <br/> </td> </tr> <tr> <td></td> <td></td> <td align="center"> <a href="javascript:moveElements('up');"> <img src="<?php echo $ff_admicon; ?> /moveup_f2.png" width="16" height="16" alt="up" name="moveup" border="0" align="middle" /> </a> </td> <td></td> <td></td> </tr> <tr> <td></td> <td> <a href="javascript:moveElements('left');"> <img src="<?php echo $ff_admicon; ?> /movelt_f2.png" width="16" height="16" alt="left" name="moveleft" border="0" align="middle" /> </a> </td> <td></td> <td align="right"> <a href="javascript:moveElements('right');"> <img src="<?php echo $ff_admicon; ?> /movert_f2.png" width="16" height="16" alt="right" name="moveright" border="0" align="middle" /> </a> </td> <td></td> </tr> <tr> <td></td> <td></td> <td align="center"> <a href="javascript:moveElements('down');"> <img src="<?php echo $ff_admicon; ?> /movedn_f2.png" width="16" height="16" alt="down" name="movedown" border="0" align="middle" /> </a> </td> <td></td> <td><hr/></td> </tr> <tr> <td colspan="5" style="text-align:center"> <input class="btn btn-primary" id="savepos" type="button" value="<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_SAVE'); ?> " onclick="savePositions();" disabled="disabled"/><br/> <hr/> <input class="btn btn-primary" id="restpos" type="button" value="<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_RESTORE'); ?> " onclick="restorePositions();" disabled="disabled"/> <hr/> </td> </tr> <tr> <td colspan="5" style="text-align:center"> <?php for ($p = 1; $p <= $form->pages; $p++) { $attribute = ''; if ($p == $page) { $attribute = 'disabled="disabled"'; } echo '<input class="btn btn-primary" type="button" value="' . BFText::_('COM_BREEZINGFORMS_ELEMENTS_PAGE') . ' ' . $p . '" onclick="changepage(\'' . $p . '\');" ' . $attribute . '/><br/>'; } // for ?> </td> </tr> </table> </td> <td align="center"> <?php if ($ff_config->stylesheet) { // compose iframe url $url = $ff_mossite . 'index.php' . '?option=com_breezingforms' . '&tmpl=component' . '&Itemid=0' . '&ff_form=' . $form->id . '&ff_frame=1' . '&ff_runmode=' . _FF_RUNMODE_PREVIEW . '&ff_page=' . $page; reset($ff_request); while (list($prop, $val) = each($ff_request)) { $url .= '&' . $prop . '=' . urlencode($val); } // prepare iframe width $framewidth = 'width="'; if ($form->widthmode) { $framewidth .= $form->prevwidth . '" '; } else { $framewidth .= $form->width . '" '; } // prepare iframe height $frameheight = ''; if (!$form->heightmode) { $frameheight = 'height="' . $form->height . '" '; } // assemble iframe parameters $params = 'name="ff_prevframe" ' . 'id="ff_prevframe" ' . 'src="' . $url . '" ' . $framewidth . $frameheight . 'frameborder="0" ' . 'scrolling="no"'; ?> <iframe <?php echo $params; ?> > <p><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_BROWSER1'); ?> </p> <p><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_BROWSER2'); ?> </p> </iframe> <?php } else { $tstyle = ' style="'; $dstyle = ''; if ($form->widthmode) { $tstyle .= 'width:' . $form->prevwidth . 'px;'; } else { $tstyle .= 'width:' . $form->width . 'px;'; $dstyle .= 'width:' . $form->width . 'px;'; } // else if (!$form->heightmode) { $tstyle .= 'height:' . $form->height . 'px;'; $dstyle .= 'height:' . $form->height . 'px;'; } // if $tstyle .= '"'; ?> <table cellpadding="0" cellspacing="0" border="0"<?php echo $tstyle; ?> > <tr><td> <div style="position:relative;left:0px;top:0px;<?php echo $dstyle; ?> "> <?php $myUser = JFactory::getUser(); $database->setQuery("select id from #__users where lower(username)=lower('" . $myUser->get('username', '') . "')"); $id = $database->loadResult(); if ($id) { $myUser->get('id', -1); } $curdir = getcwd(); chdir($ff_mospath); $ff_processor = new HTML_facileFormsProcessor(_FF_RUNMODE_PREVIEW, false, $form->id, $page, $option); if ($prevmode == 'submit') { $ff_processor->submit(); } else { $ff_processor->view(); } chdir($curdir); ?> </div> </td></tr> </table> <?php } // if ?> </td> </tr> </table> <?php if ($form->prevmode == 2) { ?> </div> <script type="text/javascript"> <!-- SET_DHTML('SelectOptionDialog'); dd.elements.SelectOptionDialog.setDraggable(false); //--> </script> <input type="hidden" id="ff_itemPositions" name="ff_itemPositions" value=""/> <?php } // if } // if $form->prevmode > 0 ?> <input type="hidden" name="boxchecked" value="<?php echo $boxchecked; ?> " /> <input type="hidden" name="pkg" value="<?php echo $pkg; ?> " /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="act" value="editpage" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="form" value="<?php echo $form->id; ?> " /> <input type="hidden" name="page" value="<?php echo $page; ?> " /> <input type="hidden" name="movepositions" value="" /> </form> <?php }
public static function edit($rule, $items, $tables, $forms, $formElements, $criteriaForm, $criteriaJoomla, $criteriaFixed) { ?> <?php echo bf_alert('Get BreezingForms Full Version', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); echo bf_alert('More features, no footers, no messages', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <h3><?php echo JText::_('Base Data'); ?> </h3> <form action="index.php" method="post" name="adminForm" id="adminForm"> <div id="editcell"> <table class="adminlist table table-striped"> <thead> <tr> <th width="300"> <?php echo JText::_('Rulename'); ?> </th> <th width="300"> <?php echo JText::_('Form'); ?> </th> <th width="300"> <?php echo JText::_('Table'); ?> </th> <th> <?php echo JText::_('Type'); ?> </th> </tr> </thead> <tr class="row0"> <td><input type="text" <?php echo $rule != null ? ' disabled="disabled" ' : ''; ?> name="rule_name" value="<?php echo $rule != null ? htmlentities($rule->name, ENT_COMPAT, 'UTF-8') : ''; ?> "/></td> <td> <?php $disabled = ''; foreach ($forms as $form) { if (isset($rule) && $form->id == $rule->form_id) { $disabled = ' disabled="disabled" '; break; } } ?> <select name="form_id" <?php echo $disabled; ?> > <?php foreach ($forms as $form) { $selected = ''; if (isset($rule) && $form->id == $rule->form_id) { $selected = ' selected="selected"'; } ?> <option <?php echo $selected; ?> value="<?php echo htmlentities($form->id, ENT_COMPAT, 'UTF-8'); ?> "><?php echo htmlentities($form->name, ENT_COMPAT, 'UTF-8'); ?> </option> <?php } ?> </select> </td> <td> <?php $disabled = ''; $settings = array(); foreach ($tables as $tableName => $tableSettings) { $selected = ''; if (isset($rule) && $tableName == $rule->reference_table) { $settings = $tableSettings; $disabled = ' disabled="disabled" '; break; } } ?> <select name="reference_table" <?php echo $disabled; ?> > <?php $refTable = ''; foreach ($tables as $tableName => $tableSettings) { $selected = ''; if (isset($rule) && $tableName == $rule->reference_table) { $refTable = $tableName; $selected = ' selected="selected"'; } ?> <option <?php echo $selected; ?> value="<?php echo htmlentities($tableName, ENT_COMPAT, 'UTF-8'); ?> "><?php echo htmlentities($tableName, ENT_COMPAT, 'UTF-8'); ?> </option> <?php } ?> </select> </td> <td> <?php if (isset($rule)) { echo $rule->type; } else { echo JText::_('Insert') . ' <input checked="checked" type="radio" name="type" value="insert"/> ' . JText::_('Update') . ' <input type="radio" name="type" value="update"/>'; } ?> </td> </tr> </table> </div> <input type="hidden" name="option" value="com_breezingforms" /> <input type="hidden" name="act" value="integrate" /> <input type="hidden" name="task" value="update" /> </form> <?php if ($rule != null) { ?> <br/> <h3><?php echo JText::_('Data Integration'); ?> </h3> <script> function listItemTask( id, task ) { var f = document.addItemForm; id.split('cb'); f.publish_id.value = id.split('cb')[1]; if(task == 'publish' || task== 'unpublish'){ f.task.value = 'pub'; f.pub.value = task; task = 'edit'; } //f.task.value = task; f.submit(); return false; } </script> <form action="index.php?option=com_breezingforms&act=integrate" method="post" name="addItemForm"> <input type="hidden" name="publish_id" value="-1" /> <input type="hidden" name="task" value="addItem" /> <input type="hidden" name="id" value="<?php echo $rule->id; ?> " /> <input type="hidden" name="pub" value="" /> <table class="adminlist table table-striped"> <thead> <tr> <th width="300"> <?php echo JText::_('Form Element (incoming)'); ?> </th> <th width="300"> <?php echo JText::_('Copy To'); ?> </th> <th width="300"> <?php echo JText::_('Database Field (outgoing)'); ?> </th> <th width="300"> <?php echo JText::_(''); ?> </th> <th> <?php echo JText::_('Publish'); ?> </th> </tr> </thead> <tr class="<?php echo "row0"; ?> "> <td> <select name="element_id"> <?php foreach ($formElements as $formElement) { if ($formElement->name != 'bfFakeName' && $formElement->name != 'bfFakeName2' && $formElement->name != 'bfFakeName3' && $formElement->name != 'bfFakeName4') { ?> <option value="<?php echo $formElement->id; ?> "><?php echo htmlentities($formElement->name, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($formElement->type, ENT_COMPAT, 'UTF-8'); ?> )</option> <?php } } ?> </select> </td> <td align="center"><?php echo htmlentities('=>'); ?> </td> <td> <select name="reference_column"> <?php foreach ($tables[$refTable] as $fieldName => $fieldSettings) { ?> <option value="<?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> "><?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($fieldSettings, ENT_COMPAT, 'UTF-8'); ?> )</option> <?php } ?> </select> </td> <td colspan="2"><a href="javascript:document.addItemForm.submit();"><?php echo JText::_('add'); ?> </a></td> </tr> <?php $k = 1; foreach ($items as $item) { $published = JHTML::_('grid.published', $item, $item->id); ?> <tr class="<?php echo "row{$k}"; ?> "> <td><?php echo htmlentities($item->element_name, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($item->element_type, ENT_COMPAT, 'UTF-8'); ?> )</td> <td align="center"><?php echo htmlentities('=>'); ?> </td> <td><?php echo htmlentities($item->reference_column, ENT_COMPAT, 'UTF-8'); ?> (<?php echo $settings[$item->reference_column]; ?> )</td> <td> <span id="code<?php echo $item->id; ?> " style="display:none"> <textarea id="codeText<?php echo $item->id; ?> " style="width:100%;height:200px;" name="code"><?php echo htmlentities($item->code, ENT_COMPAT, 'UTF-8'); ?> </textarea> <br/> <a href="javascript:document.saveCodeForm.itemId.value=<?php echo $item->id; ?> ;document.saveCodeForm.code.value=document.getElementById('codeText<?php echo $item->id; ?> ').value;document.saveCodeForm.submit();"><?php echo JText::_('Save'); ?> </a> | </span> <a href="javascript:showCode(<?php echo $item->id; ?> )"><?php echo JText::_('Code'); ?> </a> | <a href="index.php?option=com_breezingforms&act=integrate&task=removeItem&itemId=<?php echo $item->id; ?> &id=<?php echo $rule->id; ?> "><?php echo JText::_('Remove'); ?> </a></td> <td><?php echo $published; ?> </td> </tr> <?php $k = 1 - $k; } ?> </table> </form> <form action="index.php?option=com_breezingforms&act=integrate" method="post" name="saveCodeForm"> <input type="hidden" name="task" value="saveCode" /> <input type="hidden" name="code" value="" /> <input type="hidden" name="itemId" value="-1" /> <input type="hidden" name="id" value="<?php echo $rule->id; ?> " /> </form> <script> function showCode(id){ if(document.getElementById('code'+id).style.display == 'none') document.getElementById('code'+id).style.display=''; else document.getElementById('code'+id).style.display='none'; } </script> <?php if ($rule->type == 'update') { ?> <br/> <h3><?php echo JText::_('Update Criteria - Form'); ?> </h3> <form action="index.php?option=com_breezingforms&act=integrate" method="post" name="addCriteriaForm"> <input type="hidden" name="publish_id" value="-1" /> <input type="hidden" name="task" value="addCriteria" /> <input type="hidden" name="id" value="<?php echo $rule->id; ?> " /> <table class="adminlist table table-striped"> <thead> <tr> <th width="300"> <?php echo JText::_('Database Field Value'); ?> </th> <th width="300"> <?php echo JText::_('Operation'); ?> </th> <th width="300"> <?php echo JText::_('Form Element Value'); ?> </th> <th width="100"> <?php echo JText::_('And/Or'); ?> </th> <th> <?php echo JText::_(''); ?> </th> </tr> </thead> <tr class="<?php echo "row0"; ?> "> <td> <select name="reference_column"> <?php foreach ($tables[$refTable] as $fieldName => $fieldSettings) { ?> <option value="<?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> "><?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($fieldSettings, ENT_COMPAT, 'UTF-8'); ?> )</option> <?php } ?> </select> </td> <td align="center"> <select name="operator"> <option value="<?php echo htmlentities('='); ?> ">equals</option> <option value="<?php echo htmlentities('<>'); ?> ">not equal</option> <option value="<?php echo htmlentities('>'); ?> ">greater than</option> <option value="<?php echo htmlentities('<'); ?> ">less than</option> <option value="<?php echo htmlentities('>='); ?> ">equals or greater than</option> <option value="<?php echo htmlentities('<='); ?> ">equals or less than</option> <option value="<?php echo htmlentities('%...%'); ?> ">in value</option> <option value="<?php echo htmlentities('%...'); ?> ">starts with</option> <option value="<?php echo htmlentities('...%'); ?> ">ends with</option> </select> </td> <td> <select name="element_id"> <?php foreach ($formElements as $formElement) { if ($formElement->name != 'bfFakeName' && $formElement->name != 'bfFakeName2' && $formElement->name != 'bfFakeName3' && $formElement->name != 'bfFakeName4') { ?> <option value="<?php echo $formElement->id; ?> "><?php echo htmlentities($formElement->name, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($formElement->type, ENT_COMPAT, 'UTF-8'); ?> )</option> <?php } } ?> </select> </td> <td><?php echo JText::_('A N D'); ?> <input type="radio" name="andor" value="AND" checked="checked" /> <?php echo JText::_('O R'); ?> <input type="radio" name="andor" value="OR" /></td> <td colspan="2"><a href="javascript:document.addCriteriaForm.submit();"><?php echo JText::_('add'); ?> </a></td> </tr> <?php $k = 1; foreach ($criteriaForm as $criteria) { ?> <tr class="<?php echo "row{$k}"; ?> "> <td><?php echo htmlentities($criteria->reference_column, ENT_COMPAT, 'UTF-8'); ?> (<?php echo $settings[$criteria->reference_column]; ?> )</td> <td align="center"><?php echo htmlentities($criteria->operator, ENT_COMPAT, 'UTF-8'); ?> </td> <td><?php echo htmlentities($criteria->element_name, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($criteria->element_type, ENT_COMPAT, 'UTF-8'); ?> )</td> <td><?php echo htmlentities($criteria->andor, ENT_COMPAT, 'UTF-8'); ?> </td> <td><a href="index.php?option=com_breezingforms&act=integrate&task=removeCriteria&criteriaId=<?php echo $criteria->id; ?> &id=<?php echo $rule->id; ?> "><?php echo JText::_('Remove'); ?> </a></td> </tr> <?php $k = 1 - $k; } ?> </table> </form> <br/> <h3><?php echo JText::_('Update Criteria - Joomla!'); ?> </h3> <form action="index.php?option=com_breezingforms&act=integrate" method="post" name="addCriteriaJoomlaForm"> <input type="hidden" name="publish_id" value="-1" /> <input type="hidden" name="task" value="addCriteriaJoomla" /> <input type="hidden" name="id" value="<?php echo $rule->id; ?> " /> <table class="adminlist table table-striped"> <thead> <tr> <th width="300"> <?php echo JText::_('Database Field Value'); ?> </th> <th width="300"> <?php echo JText::_('Operation'); ?> </th> <th width="300"> <?php echo JText::_('Joomla Object Value'); ?> </th> <th width="100"> <?php echo JText::_('And/Or'); ?> </th> <th> <?php echo JText::_(''); ?> </th> </tr> </thead> <tr class="<?php echo "row0"; ?> "> <td> <select name="reference_column"> <?php foreach ($tables[$refTable] as $fieldName => $fieldSettings) { ?> <option value="<?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> "><?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($fieldSettings, ENT_COMPAT, 'UTF-8'); ?> )</option> <?php } ?> </select> </td> <td align="center"> <select name="operator"> <option value="<?php echo htmlentities('='); ?> ">equals</option> <option value="<?php echo htmlentities('<>'); ?> ">not equal</option> <option value="<?php echo htmlentities('>'); ?> ">greater than</option> <option value="<?php echo htmlentities('<'); ?> ">less than</option> <option value="<?php echo htmlentities('>='); ?> ">equals or greater than</option> <option value="<?php echo htmlentities('<='); ?> ">equals or less than</option> <option value="<?php echo htmlentities('%...%'); ?> ">in value</option> <option value="<?php echo htmlentities('%...'); ?> ">starts with</option> <option value="<?php echo htmlentities('...%'); ?> ">ends with</option> </select> </td> <td> <select name="joomla_object"> <option value="Userid"><?php echo JText::_('Userid'); ?> </option> <option value="Username"><?php echo JText::_('Username'); ?> </option> <option value="Language"><?php echo JText::_('Language'); ?> </option> <option value="Date"><?php echo JText::_('Date'); ?> </option> </select> </td> <td><?php echo JText::_('A N D'); ?> <input type="radio" name="andor" value="AND" checked="checked" /> <?php echo JText::_('O R'); ?> <input type="radio" name="andor" value="OR" /></td> <td colspan="2"><a href="javascript:document.addCriteriaJoomlaForm.submit();"><?php echo JText::_('add'); ?> </a></td> </tr> <?php $k = 1; foreach ($criteriaJoomla as $criteria) { ?> <tr class="<?php echo "row{$k}"; ?> "> <td><?php echo htmlentities($criteria->reference_column, ENT_COMPAT, 'UTF-8'); ?> (<?php echo $settings[$criteria->reference_column]; ?> )</td> <td align="center"><?php echo htmlentities($criteria->operator, ENT_COMPAT, 'UTF-8'); ?> </td> <td><?php echo htmlentities($criteria->joomla_object, ENT_COMPAT, 'UTF-8'); ?> </td> <td><?php echo htmlentities($criteria->andor, ENT_COMPAT, 'UTF-8'); ?> </td> <td><a href="index.php?option=com_breezingforms&act=integrate&task=removeCriteriaJoomla&criteriaId=<?php echo $criteria->id; ?> &id=<?php echo $rule->id; ?> "><?php echo JText::_('Remove'); ?> </a></td> </tr> <?php $k = 1 - $k; } ?> </table> </form> <br/> <h3><?php echo JText::_('Update Criteria - Fixed'); ?> </h3> <form action="index.php?option=com_breezingforms&act=integrate" method="post" name="addCriteriaFixedForm"> <input type="hidden" name="publish_id" value="-1" /> <input type="hidden" name="task" value="addCriteriaFixed" /> <input type="hidden" name="id" value="<?php echo $rule->id; ?> " /> <table class="adminlist table table-striped"> <thead> <tr> <th width="300"> <?php echo JText::_('Database Field Value'); ?> </th> <th width="300"> <?php echo JText::_('Operation'); ?> </th> <th width="300"> <?php echo JText::_('Fixed Value'); ?> </th> <th width="100"> <?php echo JText::_('And/Or'); ?> </th> <th> <?php echo JText::_(''); ?> </th> </tr> </thead> <tr class="<?php echo "row0"; ?> "> <td> <select name="reference_column"> <?php foreach ($tables[$refTable] as $fieldName => $fieldSettings) { ?> <option value="<?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> "><?php echo htmlentities($fieldName, ENT_COMPAT, 'UTF-8'); ?> (<?php echo htmlentities($fieldSettings, ENT_COMPAT, 'UTF-8'); ?> )</option> <?php } ?> </select> </td> <td align="center"> <select name="operator"> <option value="<?php echo htmlentities('='); ?> ">equals</option> <option value="<?php echo htmlentities('<>'); ?> ">not equal</option> <option value="<?php echo htmlentities('>'); ?> ">greater than</option> <option value="<?php echo htmlentities('<'); ?> ">less than</option> <option value="<?php echo htmlentities('>='); ?> ">equals or greater than</option> <option value="<?php echo htmlentities('<='); ?> ">equals or less than</option> <option value="<?php echo htmlentities('%...%'); ?> ">in value</option> <option value="<?php echo htmlentities('%...'); ?> ">starts with</option> <option value="<?php echo htmlentities('...%'); ?> ">ends with</option> </select> </td> <td> <input style="width:100%" type="text" name="fixed_value" value=""/> </td> <td><?php echo JText::_('A N D'); ?> <input type="radio" name="andor" value="AND" checked="checked" /> <?php echo JText::_('O R'); ?> <input type="radio" name="andor" value="OR" /></td> <td colspan="2"><a href="javascript:document.addCriteriaFixedForm.submit();"><?php echo JText::_('add'); ?> </a></td> </tr> <?php $k = 1; foreach ($criteriaFixed as $criteria) { ?> <tr class="<?php echo "row{$k}"; ?> "> <td><?php echo htmlentities($criteria->reference_column, ENT_COMPAT, 'UTF-8'); ?> (<?php echo $settings[$criteria->reference_column]; ?> )</td> <td align="center"><?php echo htmlentities($criteria->operator, ENT_COMPAT, 'UTF-8'); ?> </td> <td><?php echo htmlentities($criteria->fixed_value, ENT_COMPAT, 'UTF-8'); ?> </td> <td><?php echo htmlentities($criteria->andor, ENT_COMPAT, 'UTF-8'); ?> </td> <td><a href="index.php?option=com_breezingforms&act=integrate&task=removeCriteriaFixed&criteriaId=<?php echo $criteria->id; ?> &id=<?php echo $rule->id; ?> "><?php echo JText::_('Remove'); ?> </a></td> </tr> <?php $k = 1 - $k; } ?> </table> </form> <?php } } if ($rule != null) { ?> <br/> <h3><?php echo JText::_('Finalize Code'); ?> </h3> <form action="index.php?option=com_breezingforms&act=integrate" method="post" name="saveFinalizeCodeForm"> <input type="hidden" name="publish_id" value="-1" /> <input type="hidden" name="task" value="saveFinalizeCode" /> <input type="hidden" name="id" value="<?php echo $rule->id; ?> " /> <textarea id="finalizeCodeText" style="width:100%;height:100px;" name="finalizeCode"><?php echo htmlentities($rule->finalize_code, ENT_COMPAT, 'UTF-8'); ?> </textarea> <br/> <a href="javascript:document.saveFinalizeCodeForm.submit();"><?php echo JText::_('Save'); ?> </a> </form> <?php } }
static function listitems($option, &$rows, &$pkglist) { global $ff_config, $ff_version; ?> <script type="text/javascript"> <!-- function submitbutton(pressbutton) { var form = document.adminForm; switch (pressbutton) { case 'copy': case 'publish': case 'unpublish': case 'remove': if (form.boxchecked.value==0) { alert("<?php echo BFText::_('COM_BREEZINGFORMS_PIECES_SELPIECESFIRST'); ?> "); return; } // if break; default: break; } // switch if (pressbutton == 'remove') if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_PIECES_ASKDELETE'); ?> ")) return; if (pressbutton == '' && form.pkgsel.value == '') form.pkg.value = '- blank -'; else form.pkg.value = form.pkgsel.value; submitform(pressbutton); } // submitbutton function listItemTask( id, task ) { var f = document.adminForm; cb = eval( 'f.' + id ); if (cb) { for (i = 0; true; i++) { cbx = eval('f.cb'+i); if (!cbx) break; cbx.checked = false; } // for cb.checked = true; f.boxchecked.value = 1; submitbutton(task); } return false; } // listItemTask //--> </script> <?php echo bf_alert('Get BreezingForms Full Version', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <?php echo bf_alert('More features, no footers, no messages', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <form action="index.php" method="post" name="adminForm" id="adminForm"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td width="50%" nowrap> <table class="adminheading"> <tr><th nowrap class="sections">BreezingForms <?php echo $ff_version; ?> <br/><span class="componentheading"><?php echo BFText::_('COM_BREEZINGFORMS_PIECES_MANAGEPIECES'); ?> </span></th></tr> </table> </td> <td nowrap> <?php echo BFText::_('COM_BREEZINGFORMS_PIECES_PACKAGE'); ?> : <select id="pkgsel" name="pkgsel" class="inputbox" size="1" onchange="submitbutton('');"> <?php if (count($pkglist)) { foreach ($pkglist as $pkg) { $selected = ''; if ($pkg[0]) { $selected = ' selected'; } echo '<option value="' . $pkg[1] . '"' . $selected . '>' . $pkg[1] . ' </option>'; } } // foreach ?> </select> </td> <td align="right" width="50%" nowrap> <?php JToolBarHelper::custom('new', 'new.png', 'new_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_NEW'), false); JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_COPY'), false); JToolBarHelper::custom('publish', 'publish.png', 'publish_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_PUBLISH'), false); JToolBarHelper::custom('unpublish', 'unpublish.png', 'unpublish_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_UNPUBLISH'), false); JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_DELETE'), false); ?> </td> </tr> </table> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist table table-striped"> <tr> <th nowrap align="center"><input type="checkbox" name="toggle" value="" onclick="<?php $version = new JVersion(); echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'Joomla.checkAll(this);' : 'checkAll(' . count($rows) . ');'; ?> " /></th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_PIECES_TITLE'); ?> </th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_PIECES_NAME'); ?> </th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_PIECES_TYPE'); ?> </th> <th nowrap align="right">ID</th> <th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_PIECES_PUBLISHED'); ?> </th> <th align="left" width="100%"><?php echo BFText::_('COM_BREEZINGFORMS_PIECES_DESCRIPTION'); ?> </th> </tr> <?php $k = 0; for ($i = 0; $i < count($rows); $i++) { $row = $rows[$i]; $desc = $row->description; if (strlen($desc) > $ff_config->limitdesc) { $desc = substr($desc, 0, $ff_config->limitdesc) . '...'; } ?> <tr class="row<?php echo $k; ?> "> <td nowrap valign="top" align="center"><input type="checkbox" id="cb<?php echo $i; ?> " name="ids[]" value="<?php echo $row->id; ?> " onclick="<?php jimport('joomla.version'); $version = new JVersion(); echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'Joomla.isChecked(this.checked);' : 'isChecked(this.checked);'; ?> " /></td> <td nowrap valign="top" align="left"><a href="#edit" onclick="return listItemTask('cb<?php echo $i; ?> ','edit')"><?php echo $row->title; ?> </a></td> <td nowrap valign="top" align="left"><?php echo $row->name; ?> </td> <td nowrap valign="top" align="left"><?php echo HTML_facileFormsPiece::typeName($row->type); ?> </td> <td nowrap valign="top" align="right"><?php echo $row->id; ?> </td> <td nowrap valign="top" align="center"><?php if ($row->published == "1") { ?> <a href="#" onClick="return listItemTask('cb<?php echo $i; ?> ','unpublish')"><img src="components/com_breezingforms/images/icons/publish_g.png" alt="+" border="0" /></a><?php } else { ?> <a href="#" onClick="return listItemTask('cb<?php echo $i; ?> ','publish')"><img src="components/com_breezingforms/images/icons/publish_x.png" alt="-" border="0" /></a><?php } // if ?> </td> <td valign="top" align="left"><?php echo htmlspecialchars($desc, ENT_QUOTES); ?> </td> </tr> <?php $k = 1 - $k; } // for ?> </table> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="act" value="managepieces" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="pkg" value="" /> </form> <?php }
public static function showApplication($formId = 0, $formName = '', $templateCode = '', $callbackParams = array(), $elementScripts = array(), $pages = 1, $page = 1) { JHTML::_('behavior.keepalive'); ?> <style type="text/css"> <!-- /* B-O-F: PARTIALLY GOES TO FRONT */ li.ff_listItem { width: 100%; /*background-color:#3F0;*/ } li.ff_listItem .ff_div { width: auto; background-color: #eaf3fa; /*border: solid 2px red;*/ float: left; } /* E-O-F: PARTIALLY GOES TO FRONT */ /* SYSTEM STYLES */ .ui-resizable-handle, .ui-resizable, .ui-resizable-se, .ui-wrapper { /*border: 1px #000000 solid;*/ float: left; width: auto; } .bfOptionsTextInput { width: 100%; } #main-container-easymode { height: 100%; } #menutab { float: left; width: 300px; height: 100%; } #form-area-easymode { padding-left: 310px; } #trashcan { list-style: none; } #trashcan-box { height: 100px; background: #fbfbfb url(<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/themes/easymode/i/trash-here.png'; ?> ) center no-repeat; margin-bottom: 10px; } #trashcan-box ul#trashcan { width:100%; height:100px; overflow:auto; padding:0; margin:0; float:left; } .ff_dragBox { width: 10px; height: 10px; cursor: move; float: left; background-image: url("<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/hand_icon.png'; ?> "); } .draggableElement { padding: 2px; } --> </style> <!-- TEMPLATE STYLES --> <style> <!-- .droppableArea { list-style: none; padding: 5px; margin: 0; height: 600px; width: 100%; min-width: 700px !important; overflow: auto; background: #f6f6f6 url(<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/themes/easymode/i/drag-here.png'; ?> ) center no-repeat; border: 2px dashed #ccc; width: auto; } .droppableArea li { margin: 0 0 0 0; padding-bottom: 0px; width: 100%; } .ff_label{ float: left; } .ff_elem { float: right; border-width: 0px; border-color: } --> </style> <link rel="stylesheet" href="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/themes/easymode/easymode.all.css'; ?> " type="text/css" media="screen" title="Flora (Default)"> <?php require_once JPATH_SITE . '/administrator/components/com_breezingforms/admin/easymode-js.php'; ?> <div> <?php echo JToolBarHelper::custom('save', 'save.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_EASYMODE_SAVE'), false); ?> <?php if ($formId != 0) { JToolBarHelper::custom('editform', 'edit.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_EASYMODE_FORM_EDIT'), false); JToolBarHelper::custom('preview', 'publish.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_EASYMODE_PREVIEW'), false); JToolBarHelper::custom('preview_site', 'publish.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_SITE_PREVIEW'), false); } ?> <?php JToolBarHelper::custom('close', 'cancel.png', 'cancel_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_QUICKMODE_CLOSE'), false); ?> <?php JToolBarHelper::title('<img src="' . JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/themes/easymode/i/logo-breezingforms.png' . '" align="top"/>'); ?> <form action="index.php" method="post" id="adminForm" name="adminForm"> <input type="hidden" name="option" value="com_breezingforms" /> <input type="hidden" name="act" value="easymode" /> <input type="hidden" name="templateCode" value="" /> <input type="hidden" name="areas" value="" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="form" value="<?php echo $formId; ?> " /> <input type="hidden" name="formName" value="<?php echo $formName; ?> " /> <input type="hidden" name="page" value="<?php echo $page; ?> " /> <input type="hidden" name="pages" value="<?php echo $pages; ?> " /> </form> </div> <div style="clear:both;"></div> <?php echo bf_alert('Get BreezingForms Full Version', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); echo bf_alert('More features, no footers, no messages', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <br/> <br/> <form name="bfForm" onsubmit="return false;"> <div id="main-container-easymode"> <div id="menutab" class="flora"> <ul> <li><a href="#fragment-1" onclick="app.refreshTemplateBox();app.refreshBatchOptions();"><span><div class="tab-items"><?php echo BFText::_('COM_BREEZINGFORMS_ITEMS'); ?> </div></span></a></li> <li><a href="#fragment-2" onclick="app.refreshTemplateBox();app.refreshBatchOptions();"><span><div class="tab-element"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT'); ?> </div></span></a></li> <li><a href="#fragment-3" onclick="app.refreshTemplateBox();app.refreshBatchOptions();"><span><div class="tab-form"><?php echo BFText::_('COM_BREEZINGFORMS_FORM'); ?> </div></span></a></li> </ul> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div id="fragment-1"> <div> <ul id="nestedaccordion" class="ui-accordion-container" style="width: 275px;"> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_BASIC'); ?> <div class="ui-accordion-right"></div></a> <div> <div class="draggableElement" id="bfStaticText" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-statictext" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_STATIC_TEXT'); ?> </span> </div> <div class="draggableElement" id="bfTextfield" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-textfield" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_TEXTFIELD'); ?> </span> </div> <div class="draggableElement" id="bfTextarea" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-textarea" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_TEXTAREA'); ?> </span> </div> <div class="draggableElement" id="bfCheckbox" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-checkboxx" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_CHECKBOX'); ?> </span> </div> <div class="draggableElement" id="bfRadio" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-radio" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_RADIO'); ?> </span> </div> <div class="draggableElement" id="bfSelect" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-select" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_SELECT'); ?> </span> </div> <div class="draggableElement" id="bfFile" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-filee" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_FILE'); ?> </span> </div> <div class="draggableElement" id="bfTooltip" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-tooltip" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_TOOLTIP'); ?> </span> </div> <div class="draggableElement" id="bfIcon" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-icon" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_ICON'); ?> </span> </div> <div class="draggableElement" id="bfSubmitButton" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-submitbutton" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_SUBMITBUTTON'); ?> </span> </div> <div class="draggableElement" id="bfImageButton" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-imagebutton" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_IMAGE_BUTTON'); ?> </span> </div> <div class="draggableElement" id="bfHidden" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-hiddeninput" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_HIDDEN_INPUT'); ?> </span> </div> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_SPECIAL'); ?> <div class="ui-accordion-right"></div></a> <div> <div class="draggableElement" id="bfCaptcha" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-captcha" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_CAPTCHA'); ?> </span> </div> <div class="draggableElement" id="bfCalendar" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-calendarr" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_CALENDAR'); ?> </span> </div> <div class="draggableElement" id="bfPayPal" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-paypal" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_PAYPAL'); ?> </span> </div> <div class="draggableElement" id="bfSofortueberweisung" style="z-index:1000;" onMouseover="this.style.backgroundColor='#eaf3fa';" onMouseout="this.style.backgroundColor='white';"> <span class="icon-sofort" style="width: 100px !important;"><?php echo BFText::_('COM_BREEZINGFORMS_SOFORTUEBERWEISUNG'); ?> </span> </div> </div> </li> </ul> </div> </div> <div id="fragment-2"> <div> <ul id="nestedaccordion2" class="ui-accordion-container" style="width: 275px;"> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_OPTIONS'); ?> <div class="ui-accordion-right"></div></a> <div> <div id="bfOptionsWrapper" style="display:none;"> <br/> <span id="bfOptionsSaveMessage" style="visibility:hidden;display:none"></span> <!-- Calendar --> <div id="bfCalendarOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_LINKTEXT_MAY_CONTAIN_HTML'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfCalendarText"></textarea> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_FORMAT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCalendarFormat" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CONNECT_WITH_FIELD_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCalendarConnectWith" value=""/> </div> <!-- Captcha --> <div id="bfCaptchaOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCaptchaWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCaptchaHeight" value=""/> </div> <!-- Label --> <div id="bfLabelOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_CONTENT_MAY_CONTAIN_HTML'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfLabelContent" rows="10"></textarea> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfLabelWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfLabelHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ON_TOP'); ?> <br/> <input type="checkbox" id="bfLabelOnTop" value=""/> </div> <!-- Static Text --> <div id="bfStaticTextOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfStaticTextTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CONTENT_MAY_CONTAIN_HTML'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfStaticTextContent" rows="10"></textarea> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfStaticTextWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfStaticTextHeight" value=""/> </div> <!-- Text --> <div id="bfTextfieldOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_VALUE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldValue" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_PASSWORD'); ?> <br/> <input type="checkbox" id="bfTextfieldPassword" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK'); ?> <br/> <input type="checkbox" id="bfTextfieldMailback" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_AS_SENDER'); ?> <br/> <input type="checkbox" id="bfTextfieldMailbackAsSender" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAILBACKFILE_IF_IS_MAILBACK_A_FILE_FROM_THIS_SERVER_PATH_IS_SENT_TO_THE_MAILBACK_ADDRESS'); ?> <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldMailbackfile" style="width:100%"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAXLENGTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextfieldMaxlength" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfTextfieldDisable" value="disable"/> </div> <!-- Textarea --> <div id="bfTextareaOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextareaTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextareaName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_VALUE'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfTextareaValue"></textarea> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextareaWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTextareaHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfTextareaDisable" value="disable"/> </div> <!-- Checkbox --> <div id="bfCheckboxOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCheckboxTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCheckboxName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CHECKED'); ?> : <br/> <input type="checkbox" id="bfCheckboxChecked" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_ACCEPT'); ?> : <br/> <input type="checkbox" id="bfCheckboxMailbackAccept" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_ACCEPT__CONNECT_WITH_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCheckboxMailbackAcceptConnectWith" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_VALUE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCheckboxValue" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCheckboxWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfCheckboxHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfCheckboxDisable" value="disable"/> </div> <!-- Radio --> <div id="bfRadioOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfRadioTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfRadioName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CHECKED'); ?> : <br/> <input type="checkbox" id="bfRadioChecked" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_VALUE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfRadioValue" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfRadioWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfRadioHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfRadioDisable" value="disable"/> </div> <!-- Select --> <div id="bfSelectOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSelectTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSelectName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MULTIPLE'); ?> : <br/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="bfSelectMultiple" id="bfSelectMultipleYes" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" name="bfSelectMultiple" id="bfSelectMultipleNo" value="0"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_OPTIONS'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfSelectOpts" rows="10"></textarea> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK'); ?> <br/> <input type="checkbox" id="bfSelectMailback" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSelectWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSelectHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfSelectDisable" value="disable"/> </div> <!-- File --> <div id="bfFileOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfFileTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfFileName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ADD_TIMESTAMP_TO_FILENAME'); ?> <br/> <input type="checkbox" id="bfFileTimestamp" value="1"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_UPLOAD_DIRECTORY'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfFileUploadDirectory" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ALLOWED_FILE_EXTENSIONS'); ?> <br/> <input type="text" class="bfOptionsTextInput" id="bfFileAllowedFileExtensions" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ATTACH_FILE_TO_ADMIN_MAILS'); ?> <br/> <input type="checkbox" id="bfFileAttachToAdminMail" value="0"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ATTACH_FILE_TO_USER_MAILS'); ?> <br/> <input type="checkbox" id="bfFileAttachToUserMail" value="0"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfFileWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfFileHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfFileDisable" value="disable"/> </div> <!-- Icon --> <div id="bfIconOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_CAPTION_MAY_CONTAIN_HTML'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfIconCaption"></textarea> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfIconWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfIconHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ICON_IMAGE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfIconImage" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ICON_IMAGE_OVER'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfIconImageOver" value=""/> </div> <!-- Image Button --> <div id="bfImageButtonOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfImageButtonTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfImageButtonName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfImageButtonWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfImageButtonHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_VALUE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfImageButtonValue" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_IMAGE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfImageButtonImage" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfImageButtonDisable" value="disable"/> </div> <!-- Submit Button --> <div id="bfSubmitButtonOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSubmitButtonTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSubmitButtonName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSubmitButtonWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSubmitButtonHeight" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_VALUE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSubmitButtonValue" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DISABLE'); ?> <br/> <input type="checkbox" id="bfSubmitButtonDisable" value="disable"/> </div> <!-- Tooltip --> <div id="bfTooltipOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTooltipTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTooltipName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> : <br/> <input type="radio" name="bfTooltipType" id="bfTooltipTypeInfo" value="info"/> <img src="<?php echo JURI::root(); ?> includes/js/ThemeOffice/tooltip.png"/> <input type="radio" name="bfTooltipType" id="bfTooltipTypeWarning" value="warning"/> <img src="<?php echo JURI::root(); ?> includes/js/ThemeOffice/warning.png"/> <input type="radio" name="bfTooltipType" id="bfTooltipTypeCustom" value="warning"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTooltipCustomImage" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TEXT'); ?> : <br/> <textarea class="bfOptionsTextInput" id="bfTooltipText"></textarea> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTooltipWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfTooltipHeight" value=""/> <br/> </div> <!-- PayPal --> <div id="bfPayPalOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TESTACCOUNT'); ?> : <br/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" id="bfPayPalTestaccountYes" name="bfPayPalTestaccount" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" id="bfPayPalTestaccountNo" name="bfPayPalTestaccount" value="0" checked="checked"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ACCOUNT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalBusiness" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ACCOUNTTOKEN_GET_IT_FROM_PAYPAL'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalToken" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TESTACCOUNT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalTestBusiness" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TESTACCOUNTTOKEN_GET_IT_FROM_PAYPAL_SANDBOX'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalTestToken" value=""/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_USE_IPN'); ?> : <br/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" id="bfPayPalUseIpnYes" name="bfPayPalUseIpn" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" id="bfPayPalUseIpnNo" name="bfPayPalUseIpn" value="0" checked="checked"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DOWNLOADABLEFILE'); ?> : <br/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" id="bfPayPalDownloadableFileYes" name="bfPayPalDownloadableFile" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" id="bfPayPalDownloadableFileNo" name="bfPayPalDownloadableFile" value="0" checked="checked"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_FILEPATH_PLEASE_CHMOD_700_THE_FILE_USING_YOUR_FTP_CLIENT_OR_PUT_IT_OUTSIDE_OF_YOUR_WEBFOLDER'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalFilepath" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_FILE_DOWNLOAD_TRIES'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalFileDownloadTries" value="1"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ITEMNAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalItemname" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ITEMNUMBER'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalItemnumber" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_AMOUNT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalAmount" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TAX'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalTax" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_THANKYOUPAGE_IF_NOT_DOWNLOADABLE_FILE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalThankYouPage" value="<?php echo JURI::root(); ?> "/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_LOCALE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalLocale" value="us"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CURRENCYCODE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalCurrencyCode" value="USD"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_PAYPALIMAGE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalImage" value="http://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfPayPalHeight" value=""/> <br/> </div> <br/> <!-- Sofortüberweisung --> <div id="bfSofortueberweisungOptions" class="bfOptions" style="visibility:hidden;display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TITLE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungTitle" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_NAME'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungName" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_USERID'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungUserId" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_PROJECTID'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungProjectId" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_PROJECTPASSWORD'); ?> : <br/> <input type="password" class="bfOptionsTextInput" id="bfSofortueberweisungProjectPassword" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_SEND_PAYMENT_SUCCESS_MESSAGE_TO_MAILBACK_ADDRESSES'); ?> : <br/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" id="bfSofortueberweisungMailbackYes" name="bfSofortueberweisungMailback" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" id="bfSofortueberweisungMailbackNo" name="bfSofortueberweisungMailback" value="0" checked="checked"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_DOWNLOADABLEFILE'); ?> : <br/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" id="bfSofortueberweisungDownloadableFileYes" name="bfSofortueberweisungDownloadableFile" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" id="bfSofortueberweisungDownloadableFileNo" name="bfSofortueberweisungDownloadableFile" value="0" checked="checked"/> <br/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_FILEPATH_PLEASE_CHMOD_700_THE_FILE_USING_YOUR_FTP_CLIENT_OR_PUT_IT_OUTSIDE_OF_YOUR_WEBFOLDER'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungFilepath" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_FILE_DOWNLOAD_TRIES'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungFileDownloadTries" value="1"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_REASON_1'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungReason1" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_REASON_2'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungReason2" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_AMOUNT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungAmount" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_THANKYOUPAGE_IF_NOT_DOWNLOADABLE_FILE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungThankYouPage" value="<?php echo JURI::root(); ?> "/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_LANGUAGE_ID'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungLanguageId" value="DE"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CURRENCY_ID'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungCurrencyId" value="EUR"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_SOFORTUEBERWEISUNGIMAGE'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungImage" value="<?php echo JURI::root(); ?> components/com_breezingforms/images/200x65px.png"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungWidth" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfSofortueberweisungHeight" value=""/> <br/> </div> <br/> <div id="bfGlobalOptions" style="display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_PADDING'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfOptionsPadding" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MARGIN'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfOptionsMargin" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfOptionsOrder" value=""/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_TABINDEX_NUMBER'); ?> : <br/> <input type="text" class="bfOptionsTextInput" id="bfOptionsTabIndex" value=""/> <br/> </div> <input type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_UPDATE'); ?> " id="bfSaveOptionsButton" style="visibility:hidden;display:none;width:100%;"/> <br/> <br/> <input type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_REMOVE'); ?> " id="bfRemoveLabelButton" style="visibility:hidden;display:none;width:100%;"/> <br/> <br/> </div> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_ACTIONS'); ?> <div class="ui-accordion-right"></div></a> <div id="bfActions" style="display:none"> <br/> <select id="bfBesideCreationButton" style="width:100%" onchange="app.createElementBesideByType(app.optionElement, this)"> <option value=""><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_ELEMENT_BESIDE'); ?> </option> <option value="bfStaticText"><?php echo BFText::_('COM_BREEZINGFORMS_STATIC_TEXT'); ?> </option> <option value="bfTextfield"><?php echo BFText::_('COM_BREEZINGFORMS_TEXTFIELD'); ?> </option> <option value="bfTextarea"><?php echo BFText::_('COM_BREEZINGFORMS_TEXTAREA'); ?> </option> <option value="bfCheckbox"><?php echo BFText::_('COM_BREEZINGFORMS_CHECKBOX'); ?> </option> <option value="bfRadio"><?php echo BFText::_('COM_BREEZINGFORMS_RADIO'); ?> </option> <option value="bfSelect"><?php echo BFText::_('COM_BREEZINGFORMS_SELECT'); ?> </option> <option value="bfFile"><?php echo BFText::_('COM_BREEZINGFORMS_FILE'); ?> </option> <option value="bfTooltip"><?php echo BFText::_('COM_BREEZINGFORMS_TOOLTIP'); ?> </option> <option value="bfIcon"><?php echo BFText::_('COM_BREEZINGFORMS_ICON'); ?> </option> <option value="bfSubmitButton"><?php echo BFText::_('COM_BREEZINGFORMS_SUBMIT_BUTTON'); ?> </option> <option value="bfImageButton"><?php echo BFText::_('COM_BREEZINGFORMS_IMAGE_BUTTON'); ?> </option> <option value="bfCaptcha"><?php echo BFText::_('COM_BREEZINGFORMS_CAPTCHA'); ?> </option> <option value="bfCalendar"><?php echo BFText::_('COM_BREEZINGFORMS_CALENDAR'); ?> </option> <option value="bfPayPal"><?php echo BFText::_('COM_BREEZINGFORMS_PAYPAL'); ?> </option> <option value="bfSofortueberweisung"><?php echo BFText::_('COM_BREEZINGFORMS_SOFORTUEBERWEISUNG'); ?> </option> </select> <br/> <br/> <input type="submit" id="bfElementRemoveButton" onclick="app.removeElement(app.optionElement)" value="<?php echo BFText::_('COM_BREEZINGFORMS_REMOVE_ELEMENT'); ?> " style="visibility:hidden;display:none;width:100%;"> <br/> <br/> <input type="submit" id="bfElementMoveLeft" onclick="app.moveElement(app.optionElement, 'prev')" value="<?php echo BFText::_('COM_BREEZINGFORMS_MOVE_LEFT'); ?> " style="width:49%;visibility:hidden;display:none"> <input type="submit" id="bfElementMoveRight" onclick="app.moveElement(app.optionElement, 'next')" value="<?php echo BFText::_('COM_BREEZINGFORMS_MOVE_RIGHT'); ?> " style="width:49%;visibility:hidden;display:none"> <br/> <br/> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_INIT_SCRIPT'); ?> <div class="ui-accordion-right"></div></a> <div> <div id="bfInitScript" style="display:none"> <br/> <span class="bfScriptsSaveMessage" style="display:none"></span> <?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> : <?php echo BFText::_('COM_BREEZINGFORMS_NONE'); ?> <input onclick="JQuery('#bfInitScriptFlags').css('display','none');JQuery('#bfInitScriptLibrary').css('display','none');JQuery('#bfInitScriptCustom').css('display','none');" type="radio" name="initType" id="bfInitTypeNone" class="bfInitType" value="0"/> <?php echo BFText::_('COM_BREEZINGFORMS_LIBRARY'); ?> <input onclick="JQuery('#bfInitScriptFlags').css('display','');JQuery('#bfInitScriptLibrary').css('display','');JQuery('#bfInitScriptCustom').css('display','none');" type="radio" name="initType" id="bfInitTypeLibrary" class="bfInitType" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> <input onclick="JQuery('#bfInitScriptFlags').css('display','');JQuery('#bfInitScriptLibrary').css('display','none');JQuery('#bfInitScriptCustom').css('display','');" type="radio" name="initType" id="bfInitTypeCustom" class="bfInitType" value="2"/> <div id="bfInitScriptFlags" style="display:none"> <hr/> <input type="checkbox" id="script1flag1" class="script1flag" name="script1flag1" value="1"/><label for="script1flag1"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_FORMENTRY'); ?> </label> <input type="checkbox" id="script1flag2" class="script1flag" name="script1flag2" value="1"/><label for="script1flag2"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_PAGEENTRY'); ?> </label> </div> <div id="bfInitScriptLibrary" style="display:none"> <hr/> <?php echo BFText::_('COM_BREEZINGFORMS_SCRIPT'); ?> : <select id="bfInitScriptSelection"></select> </div> <div id="bfInitScriptCustom" style="display:none"> <hr/> <div style="cursor: pointer;" onclick="createInitCode(app.optionElement)"><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_CODE_FRAMEWORK'); ?> </div> <textarea name="script1code" id="script1code" rows="10" style="width:100%" wrap="off"></textarea> </div> <hr/> <input id="bfInitButton" type="submit" value="update" style="width:100%"/> <br/> <br/> </div> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_ACTION_SCRIPT'); ?> <div class="ui-accordion-right"></div></a> <div> <span class="bfScriptsSaveMessage" style="display:none"></span> <div id="bfActionScript" style="display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> : <?php echo BFText::_('COM_BREEZINGFORMS_NONE'); ?> <input onclick="JQuery('#bfActionScriptFlags').css('display','none');JQuery('#bfActionScriptLibrary').css('display','none');JQuery('#bfActionScriptCustom').css('display','none');" type="radio" name="actionType" name="actionType" id="bfActionTypeNone" class="bfActionType" value="0"/> <?php echo BFText::_('COM_BREEZINGFORMS_LIBRARY'); ?> <input onclick="JQuery('#bfActionScriptFlags').css('display','');JQuery('#bfActionScriptLibrary').css('display','');JQuery('#bfActionScriptCustom').css('display','none');" type="radio" name="actionType" id="bfActionTypeLibrary" class="bfActionType" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> <input onclick="JQuery('#bfActionScriptFlags').css('display','');JQuery('#bfActionScriptLibrary').css('display','none');JQuery('#bfActionScriptCustom').css('display','');" type="radio" name="actionType" id="bfActionTypeCustom" class="bfActionType" value="2"/> <div id="bfActionScriptFlags" style="display:none"> <hr/> <?php echo BFText::_('COM_BREEZINGFORMS_ACTIONS'); ?> : <br/> <input style="display:none" type="checkbox" class="script2flag" id="script2flag1" name="script2flag1" value="1"/><label style="display:none" class="script2flagLabel" id="script2flag1Label" for="script2flag1"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CLICK'); ?> </label> <input style="display:none" type="checkbox" class="script2flag" id="script2flag2" name="script2flag2" value="1"/><label style="display:none" class="script2flagLabel" id="script2flag2Label"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_BLUR'); ?> </label> <input style="display:none" type="checkbox" class="script2flag" id="script2flag3" name="script2flag3" value="1"/><label style="display:none" class="script2flagLabel" id="script2flag3Label"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CHANGE'); ?> </label> <input style="display:none" type="checkbox" class="script2flag" id="script2flag4" name="script2flag4" value="1"/><label style="display:none" class="script2flagLabel" id="script2flag4Label"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_FOCUS'); ?> </label> <input style="display:none" type="checkbox" class="script2flag" id="script2flag5" name="script2flag5" value="1"/><label style="display:none" class="script2flagLabel" id="script2flag5Label"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_SELECTION'); ?> </label> </div> <div id="bfActionScriptLibrary" style="display:none"> <hr/> <?php echo BFText::_('COM_BREEZINGFORMS_SCRIPT'); ?> : <select id="bfActionsScriptSelection"></select> </div> <div id="bfActionScriptCustom" style="display:none"> <hr/> <div style="cursor: pointer;" onclick="createActionCode(app.optionElement)"><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_CODE_FRAMEWORK'); ?> </div> <textarea name="script2code" id="script2code" rows="10" style="width:100%" wrap="off"></textarea> </div> <hr/> <input id="bfActionButton" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_UPDATE'); ?> " style="width:100%"/> <br/> <br/> </div> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_VALIDATION_SCRIPT'); ?> <div class="ui-accordion-right"></div></a> <div> <span class="bfScriptsSaveMessage" style="display:none"></span> <div id="bfValidationScript" style="display:none"> <?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> : <?php echo BFText::_('COM_BREEZINGFORMS_NONE'); ?> <input onclick="JQuery('#bfValidationScriptFlags').css('display','none');JQuery('#bfValidationScriptLibrary').css('display','none');JQuery('#bfValidationScriptCustom').css('display','none');" type="radio" name="validationType" id="bfValidationTypeNone" class="bfValidationType" value="0"/> <?php echo BFText::_('COM_BREEZINGFORMS_LIBRARY'); ?> <input onclick="JQuery('#bfValidationScriptFlags').css('display','');JQuery('#bfValidationScriptLibrary').css('display','');JQuery('#bfValidationScriptCustom').css('display','none');" type="radio" name="validationType" id="bfValidationTypeLibrary" class="bfValidationType" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> <input onclick="JQuery('#bfValidationScriptFlags').css('display','');JQuery('#bfValidationScriptLibrary').css('display','none');JQuery('#bfValidationScriptCustom').css('display','');" type="radio" name="validationType" id="bfValidationTypeCustom" class="bfValidationType" value="2"/> <div id="bfValidationScriptFlags" style="display:none"> <hr/> <?php echo BFText::_('COM_BREEZINGFORMS_ERROR_MESSAGE'); ?> : <input type="text" style="width:100%" maxlength="255" class="script3msg" id="script3msg" name="script3msg" value="" class="inputbox"/> </div> <div id="bfValidationScriptLibrary" style="display:none"> <hr/> <?php echo BFText::_('COM_BREEZINGFORMS_SCRIPT'); ?> : <select id="bfValidationScriptSelection"></select> </div> <div id="bfValidationScriptCustom" style="display:none"> <hr/> <div style="cursor: pointer;" onclick="createValidationCode(app.optionElement)"><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_CODE_FRAMEWORK'); ?> </div> <textarea name="script3code" id="script3code" rows="10" style="width:100%" wrap="off"></textarea> </div> <hr/> <input id="bfValidationButton" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_UPDATE'); ?> " style="width:100%"/> <br/> <br/> </div> </div> </li> </ul> </div> </div> <div id="fragment-3"> <div> <ul id="nestedaccordion3" class="ui-accordion-container" style="width: 275px;"> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_PAGES'); ?> <div class="ui-accordion-right"></div></a> <div> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_CURRENT_PAGE'); ?> : <span id="bfCurrentPage"></span> <br/> <br/> <input type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_CREATE_NEW_PAGE'); ?> " id="bfCreatePage" style="width:100%"/> <br/> <br/> <select id="bfGoToPage" style="width:100%"> <option value="-1"><?php echo BFText::_('COM_BREEZINGFORMS_GO_TO_PAGE'); ?> </option> </select> <br/> <br/> <select id="bfMoveThisPageTo" style="width:100%"> <option value="-1"><?php echo BFText::_('COM_BREEZINGFORMS_MOVE_THIS_PAGE_TO'); ?> </option> </select> <br/> <br/> <input type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_DELETE_THIS_PAGE'); ?> " id="bfDeleteThisPage" style="width:100%"/> <br/> <br/> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_HIDDEN_FIELDS'); ?> <div class="ui-accordion-right"></div></a> <div> <div id="bfHiddenFieldsOptions"> </div> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_CODE'); ?> <div class="ui-accordion-right"></div></a> <div> <?php echo BFText::_('COM_BREEZINGFORMS_ATTENTION_CHANGE_THE_GENERATED_TEMPLATE_CODE_ON_YOUR_OWN_RISK_BEST_IS_TO_KEEP_THE_UL_TAGS_AND_THEIR_CONTENTS_AS_IS_AND_CHANGE_ONLY_THE_LAYOUT_AROUND_IF_NECESSARY_AND_NEVER_UPDATE_WHEN_YOU_HAVE_UNSAVED_ELEMENTS_IN_THE_EDITOR'); ?> <br/> <br/> <textarea rows="10" style="width:100%;" id="bfTemplateBox" wrap="off"></textarea> <br/> <input type="submit" id="bfUpdateTemplateButton" value="<?php echo BFText::_('COM_BREEZINGFORMS_UPDATE'); ?> " style="width:100%"/> <br/> <br/> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_BATCH_OPTIONS'); ?> <div class="ui-accordion-right"></div></a> <div> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_LABELS'); ?> <br/> <select id="bfBatchLabels" multiple="multiple" style="width:100%;height:100px;"></select> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS'); ?> <br/> <select id="bfBatchElements" multiple="multiple" style="width:100%;height:100px;"></select> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_WIDTH'); ?> <br/> <input type="text" id="bfBatchWidth" value="" style="width:100%"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_HEIGHT'); ?> <br/> <input type="text" id="bfBatchHeight" value="" style="width:100%"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_PADDING'); ?> <br/> <input type="text" id="bfBatchPadding" value="" style="width:100%"/> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_MARGIN'); ?> <br/> <input type="text" id="bfBatchMargin" value="" style="width:100%"/> <br/> <input type="submit" id="bfBatchButton" value="<?php echo BFText::_('COM_BREEZINGFORMS_UPDATE'); ?> " style="width:100%"/> <br/> <br/> </div> </li> <li> <a href='#'><div class="ui-accordion-left"></div><?php echo BFText::_('COM_BREEZINGFORMS_MISC'); ?> <div class="ui-accordion-right"></div></a> <div> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_PIXEL_RASTER'); ?> <br/> <input type="text" id="bfPixelRaster" value="1" style="width:100%"/> <br/> <input type="submit" value="update" id="bfUpdatePixelRaster" style="width:100%"/> <br/> <br/> <br/> </div> </li> </ul> </div> </div> <div class="clear"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> <br /> <div id="easymode-trashcan"> <span class="icon-trashcan"><?php echo BFText::_('COM_BREEZINGFORMS_TRASH_CAN'); ?> </span> <div id="trashcan-box"> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <ul id="trashcan"> </ul> <div class="clr"></div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </div><!-- easymode-trashcan end --> </div> <div id="form-area-easymode"> <div id="bfTemplate"><?php if ($templateCode == '') { ?> <ul class="droppableArea" id="drop1"></ul> <?php } if ($templateCode != '') { echo $templateCode; } ?> </div> </div> <!-- form-area-easymode --> <div class="clear"></div> </div> </form> <?php }
public static function showApplication($formId = 0, $formName, $formTitle, $formDesc, $formEmailntf, $formEmailadr, $dataObjectString, $elementScripts, $themes, $themesbootstrap) { $active_language_code = htmlentities(JRequest::getVar('active_language_code'), ENT_QUOTES, 'UTF-8'); JHTML::_('behavior.keepalive'); JHTML::_('behavior.modal'); jimport('joomla.version'); $version = new JVersion(); $iconBase = '../administrator/components/com_breezingforms/libraries/jquery/themes/quickmode/i/'; JFactory::getDocument()->addStyleSheet(JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/themes/quickmode/quickmode.all.css'); JFactory::getDocument()->addStyleSheet(JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/jtree/tree_component.css'); JFactory::getDocument()->addStyleSheet(JURI::root() . 'administrator/components/com_breezingforms/admin/style.css'); ?> <script>var moobackup = $;</script> <script>var moobackup2 = $$;</script> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/jtree/'; ?> _lib.js"></script> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/jtree/'; ?> tree_component.min.js"></script> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/'; ?> jq-ui.min.js"></script> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/plugins/'; ?> base64.js"></script> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/plugins/'; ?> json.js"></script> <script type="text/javascript" src="<?php echo JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/plugins/'; ?> md5.js"></script> <script type="text/javascript" src="<?php echo JURI::root(); ?> components/com_breezingforms/libraries/jquery/center.js"></script> <script>$ = moobackup;</script> <script>$$ = moobackup2;</script> <script type="text/javascript"> String.prototype.bfendsWith = function(suffix) { return this.match(suffix+"$") == suffix; }; var app = null; function BF_QuickModeApp(){ JQuery("link").each(function(){ // jquery easy workaround var _xj = 'j'; var _xq = 'q'; var _xu = 'u'; var _xe = 'e'; var _xr = 'r'; var _xy = 'y'; if( JQuery(this).attr('href').bfendsWith(_xj+_xq+_xu+_xe+_xr+_xy+'-ui.css') ){ JQuery(this).attr('disabled', 'disabled'); JQuery(this).remove(); } }); var selectedTreeElement = null; var copyTreeElement = null; var appScope = this; this.elementScripts = <?php echo Zend_Json::encode($elementScripts); ?> ; this.dataObject = <?php echo str_replace("..\\/administrator\\/components\\/com_facileforms", "..\\/administrator\\/components\\/com_breezingforms", $dataObjectString); ?> ; <?php require_once JPATH_SITE . '/administrator/components/com_breezingforms/admin/quickmode-elements-js.php'; ?> /** Helper methods */ this.getNodeClass = function(node){ if(JQuery(node).attr('class')){ var splitted = JQuery(appScope.selectedTreeElement).attr('class').split(' '); if(splitted.length != 0){ return splitted[0]; } } return ''; }; this.setProperties = function(node, props){ var item = this.findDataObjectItem(JQuery(node).attr('id'), appScope.dataObject); item.properties = props; }; this.getProperties = function(node){ var item = this.findDataObjectItem(JQuery(node).attr('id'), appScope.dataObject) return item.properties; }; /** searches for the id in a given object item. */ this.findDataObjectItem = function(id, startObj){ if( id && startObj && startObj.attributes && startObj.attributes.id ){ if( startObj.attributes.id == id ){ return startObj; } else { if(startObj.children){ var child = null; for(var i = 0; i < startObj.children.length; i++){ child = appScope.findDataObjectItem(id, startObj.children[i]); if(child){ return child; } } } } return null; } return null; }; this.getItemsFlattened = function(startObj, arr){ if( startObj && startObj.properties && startObj.properties.type == 'element' ){ arr.push(startObj); } if(startObj.children){ var child = null; for(var i = 0; i < startObj.children.length; i++){ appScope.getItemsFlattened(startObj.children[i], arr); } } }; this.replaceDataObjectItem = function(id, replacement, startObj){ if( id && startObj && startObj.attributes && startObj.attributes.id ){ if(startObj.children){ var child = null; for(var i = 0; i < startObj.children.length; i++){ if(startObj.children[i].attributes.id == id){ startObj.children[i] = replacement; break; } appScope.replaceDataObjectItem(id, replacement, startObj.children[i]); } } } } /** searches for the id in a given object item and deletes it. returns the deleted child. */ this.deleteDataObjectItem = function(id, startObj, previous){ if( id && startObj && startObj.attributes && startObj.attributes.id ){ if( startObj.attributes.id == id ){ if(previous){ var newChildren = new Array(); for(var j = 0; j < previous.children.length; j++){ if(previous.children[j].attributes.id != startObj.attributes.id){ newChildren.push(previous.children[j]); } } previous.children = newChildren; } return startObj; } else { if(startObj.children){ var child = null; for(var i = 0; i < startObj.children.length; i++){ child = appScope.deleteDataObjectItem(id, startObj.children[i], startObj); if(child){ return child; } } } } return null; } return null; }; this.moveDataObjectItem = function( sourceId, targetId, index, obj ){ var source = appScope.deleteDataObjectItem(sourceId, obj); var target = appScope.findDataObjectItem( targetId, obj ); if(target && !target.children && ( target.attributes['class'] == 'bfQuickModePageClass' || target.attributes['class'] == 'bfQuickModeSectionClass' || target.attributes['class'] == 'bfQuickModeRootClass' )){ target.children = new Array(); } if(target && target.children){ target.children.splice(index,0,source); if(target.attributes['class'] == 'bfQuickModeRootClass'){ for(var i = 0; i < target.children.length; i++){ var mdata = appScope.getProperties(JQuery('#'+target.children[i].attributes.id)); if(mdata){ if(target.children[i].attributes['class'] == 'bfQuickModePageClass'){ target.children[i].attributes.id = 'bfQuickModePage' + (i+1); target.children[i].data.title = "<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_PAGE')); ?> " + (i+1); target.children[i].properties.pageNumber = i + 1; } } } } return true; } return false; }; this.insertElementInto = function (source, target){ if(target && target.children){ if(target.attributes['class'] == 'bfQuickModeSectionClass' || target.attributes['class'] == 'bfQuickModePageClass'){ this.recreatedIds(source); target.children.push(source); } } }; this.recreatedIds = function(startObj){ if( startObj && startObj.attributes && startObj.attributes.id ){ if(startObj.attributes['class'] == 'bfQuickModeSectionClass'){ type = 'bfQuickModeSection'; } else { type = 'bfQuickMode'; } var id = type + ( Math.floor(Math.random() * 100000) ); startObj.attributes.id = id; if(startObj.attributes['class'] == 'bfQuickModeSectionClass'){ startObj.properties.name = id; } else { startObj.properties.bfName = id; startObj.properties.dbId = 0; } startObj.properties.name = id; if(startObj.children){ var child = null; for(var i = 0; i < startObj.children.length; i++){ child = appScope.recreatedIds(startObj.children[i]); if(child){ return child; } } } return null; } return null; }; /** Element properties */ // TEXTFIELD this.saveTextProperties = function(mdata, item){ mdata.value = JQuery('#bfElementTypeTextValue').val(); mdata['value_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeTextValueTrans').val(); mdata.placeholder = JQuery('#bfElementTypeTextPlaceholder').val(); mdata['placeholder_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeTextPlaceholderTrans').val(); mdata.bfName = JQuery('#bfElementName').val(); mdata.logging = JQuery('#bfElementAdvancedLogging').attr('checked'); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.maxLength = JQuery('#bfElementTypeTextMaxLength').val(); mdata.hint = JQuery('#bfElementTypeTextHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeTextHintTrans').val(); mdata.password = JQuery('#bfElementAdvancedPassword').attr('checked'); mdata.readonly = JQuery('#bfElementAdvancedReadOnly').attr('checked'); mdata.mailback = JQuery('#bfElementAdvancedMailback').attr('checked'); mdata.mailbackAsSender = JQuery('#bfElementAdvancedMailbackAsSender').attr('checked'); mdata.mailbackfile = JQuery('#bfElementAdvancedMailbackfile').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.hideLabel = JQuery('#bfElementAdvancedHideLabel').attr('checked'); mdata.size = JQuery('#bfElementTypeTextSize').val(); mdata.orderNumber = JQuery('#bfElementOrderNumber').val(); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateTextProperties = function(mdata){ JQuery('#bfElementTypeTextValue').val(mdata.value); JQuery('#bfElementTypeTextValueTrans').val(typeof mdata['value_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['value_translation<?php echo $active_language_code; ?> '] : ""); if(typeof mdata.placeholder == "undefined"){ mdata['placeholder'] = ''; } JQuery('#bfElementTypeTextPlaceholder').val(mdata.placeholder); JQuery('#bfElementTypeTextPlaceholderTrans').val(typeof mdata['placeholder_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['placeholder_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementTypeTextMaxLength').val(mdata.maxLength); JQuery('#bfElementTypeTextHint').val(mdata.hint); JQuery('#bfElementTypeTextHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedPassword').attr('checked', mdata.password); JQuery('#bfElementAdvancedReadOnly').attr('checked', mdata.readonly); JQuery('#bfElementAdvancedMailback').attr('checked', mdata.mailback); JQuery('#bfElementAdvancedMailbackAsSender').attr('checked', mdata.mailbackAsSender); JQuery('#bfElementAdvancedMailbackfile').val(mdata.mailbackfile); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementTypeTextSize').val(mdata.size); JQuery('#bfElementOrderNumber').val(mdata.orderNumber); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // TEXTAREA this.saveTextareaProperties = function(mdata, item){ mdata.value = JQuery('#bfElementTypeTextareaValue').val(); mdata['value_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeTextareaValueTrans').val(); mdata.placeholder = JQuery('#bfElementTypeTextareaPlaceholder').val(); mdata['placeholder_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeTextareaPlaceholderTrans').val(); mdata.is_html = JQuery('#bfElementTypeTextareaIsHtml').attr('checked'); mdata.bfName = JQuery('#bfElementName').val(); mdata.logging = JQuery('#bfElementTextareaAdvancedLogging').attr('checked'); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.hint = JQuery('#bfElementTypeTextareaHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeTextareaHintTrans').val(); mdata.width = JQuery('#bfElementTypeTextareaWidth').val(); mdata.height = JQuery('#bfElementTypeTextareaHeight').val(); mdata.maxlength = JQuery('#bfElementTypeTextareaMaxLength').val(); mdata.showMaxlengthCounter = JQuery('#bfElementTypeTextareaMaxLengthShow').attr('checked'); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.hideLabel = JQuery('#bfElementTextareaAdvancedHideLabel').attr('checked'); mdata.orderNumber = JQuery('#bfElementTextareaAdvancedOrderNumber').val(); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateTextareaProperties = function(mdata){ JQuery('#bfElementTypeTextareaValue').val(mdata.value); JQuery('#bfElementTypeTextareaValueTrans').val(typeof mdata['value_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['value_translation<?php echo $active_language_code; ?> '] : ""); if(typeof mdata.placeholder == "undefined"){ mdata['placeholder'] = ''; } JQuery('#bfElementTypeTextareaPlaceholder').val(mdata.placeholder); JQuery('#bfElementTypeTextareaPlaceholderTrans').val(typeof mdata['placeholder_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['placeholder_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeTextareaIsHtml').attr('checked', mdata.is_html); JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTextareaAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementTypeTextareaHint').val(mdata.hint); JQuery('#bfElementTypeTextareaHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementTextareaAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementTypeTextareaWidth').val(mdata.width); JQuery('#bfElementTypeTextareaHeight').val(mdata.height); JQuery('#bfElementTypeTextareaIsHtml').val(mdata.is_html); // compat 723 if(typeof mdata.maxlength == "undefined"){ mdata["maxlength"] = 0; } if(typeof mdata.showMaxlengthCounter == "undefined"){ mdata["showMaxlengthCounter"] = true; } // end compat 723 JQuery('#bfElementTypeTextareaMaxLength').val(!isNaN(mdata.maxlength) ? mdata.maxlength : 0); JQuery('#bfElementTypeTextareaMaxLengthShow').attr('checked', mdata.showMaxlengthCounter); JQuery('#bfElementTextareaAdvancedOrderNumber').val(mdata.orderNumber); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // RADIOS this.saveRadioGroupProperties = function(mdata, item){ // dynamic properties mdata.group = JQuery('#bfElementTypeRadioGroupGroups').val(); mdata['group_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeRadioGroupGroupsTrans').val(); mdata.readonly = JQuery('#bfElementTypeRadioGroupReadonly').attr('checked'); mdata.wrap = JQuery('#bfElementTypeRadioGroupWrap').attr('checked'); mdata.hint = JQuery('#bfElementTypeRadioGroupHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeRadioGroupHintTrans').val(); mdata.hideLabel = JQuery('#bfElementRadioGroupAdvancedHideLabel').attr('checked'); mdata.logging = JQuery('#bfElementRadioGroupAdvancedLogging').attr('checked'); mdata.orderNumber = JQuery('#bfElementRadioGroupAdvancedOrderNumber').val(); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateRadioGroupProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeRadioGroupGroups').val(mdata.group); JQuery('#bfElementTypeRadioGroupGroupsTrans').val(typeof mdata['group_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['group_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeRadioGroupReadonly').attr('checked', mdata.readonly); JQuery('#bfElementTypeRadioGroupWrap').attr('checked', mdata.wrap); JQuery('#bfElementTypeRadioGroupHint').val(mdata.hint); JQuery('#bfElementTypeRadioGroupHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementRadioGroupAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementRadioGroupAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementRadioGroupAdvancedOrderNumber').val(mdata.orderNumber); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // Checkboxgroup this.saveCheckboxGroupProperties = function(mdata, item){ // dynamic properties mdata.group = JQuery('#bfElementTypeCheckboxGroupGroups').val(); mdata['group_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCheckboxGroupGroupsTrans').val(); mdata.readonly = JQuery('#bfElementTypeCheckboxGroupReadonly').attr('checked'); mdata.wrap = JQuery('#bfElementTypeCheckboxGroupWrap').attr('checked'); mdata.hint = JQuery('#bfElementTypeCheckboxGroupHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCheckboxGroupHintTrans').val(); mdata.hideLabel = JQuery('#bfElementCheckboxGroupAdvancedHideLabel').attr('checked'); mdata.logging = JQuery('#bfElementCheckboxGroupAdvancedLogging').attr('checked'); mdata.orderNumber = JQuery('#bfElementCheckboxGroupAdvancedOrderNumber').val(); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateCheckboxGroupProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeCheckboxGroupGroups').val(mdata.group); JQuery('#bfElementTypeCheckboxGroupGroupsTrans').val(typeof mdata['group_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['group_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeCheckboxGroupReadonly').attr('checked', mdata.readonly); JQuery('#bfElementTypeCheckboxGroupWrap').attr('checked', mdata.wrap); JQuery('#bfElementTypeCheckboxGroupHint').val(mdata.hint); JQuery('#bfElementTypeCheckboxGroupHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementCheckboxGroupAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementCheckboxGroupAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementCheckboxGroupAdvancedOrderNumber').val(mdata.orderNumber); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // Checkbox this.saveCheckboxProperties = function(mdata, item){ // dynamic properties mdata.value = JQuery('#bfElementTypeCheckboxValue').val() == '' ? 'checked' : JQuery('#bfElementTypeCheckboxValue').val(); mdata.checked = JQuery('#bfElementTypeCheckboxChecked').attr('checked'); mdata.readonly = JQuery('#bfElementTypeCheckboxReadonly').attr('checked'); mdata.mailbackAccept = JQuery('#bfElementCheckboxAdvancedMailbackAccept').attr('checked'); mdata.mailbackConnectWith = JQuery('#bfElementCheckboxAdvancedMailbackConnectWith').val(); mdata.hint = JQuery('#bfElementTypeCheckboxHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCheckboxHintTrans').val(); mdata.hideLabel = JQuery('#bfElementCheckboxAdvancedHideLabel').attr('checked'); mdata.logging = JQuery('#bfElementCheckboxAdvancedLogging').attr('checked'); mdata.orderNumber = JQuery('#bfElementCheckboxAdvancedOrderNumber').val(); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateCheckboxProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeCheckboxValue').val(mdata.value); JQuery('#bfElementTypeCheckboxChecked').attr('checked', mdata.checked); JQuery('#bfElementCheckboxAdvancedMailbackAccept').attr('checked', mdata.mailbackAccept); JQuery('#bfElementCheckboxAdvancedMailbackConnectWith').val(mdata.mailbackConnectWith); JQuery('#bfElementTypeCheckboxReadonly').attr('checked', mdata.readonly); JQuery('#bfElementTypeCheckboxHint').val(mdata.hint); JQuery('#bfElementTypeCheckboxHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementCheckboxAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementCheckboxAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementCheckboxAdvancedOrderNumber').val(mdata.orderNumber); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // Select this.saveSelectProperties = function(mdata, item){ // dynamic properties mdata.list = JQuery('#bfElementTypeSelectList').val(); mdata['list_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeSelectListTrans').val(); mdata.width = JQuery('#bfElementTypeSelectListWidth').val(); mdata.height = JQuery('#bfElementTypeSelectListHeight').val(); mdata.readonly = JQuery('#bfElementTypeSelectReadonly').attr('checked'); mdata.multiple = JQuery('#bfElementTypeSelectMultiple').attr('checked'); mdata.mailback = JQuery('#bfElementSelectAdvancedMailback').attr('checked'); mdata.hint = JQuery('#bfElementTypeSelectHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeSelectHintTrans').val(); mdata.hideLabel = JQuery('#bfElementSelectAdvancedHideLabel').attr('checked'); mdata.logging = JQuery('#bfElementSelectAdvancedLogging').attr('checked'); mdata.orderNumber = JQuery('#bfElementSelectAdvancedOrderNumber').val(); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateSelectProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeSelectList').val(mdata.list); JQuery('#bfElementTypeSelectListTrans').val(typeof mdata['list_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['list_translation<?php echo $active_language_code; ?> '] : ""); // compat 723 if(typeof mdata.width == "undefined"){ mdata['width'] = ''; } if(typeof mdata.height == "undefined"){ mdata['height'] = ''; } // compat 723 end JQuery('#bfElementTypeSelectListWidth').val(mdata.width); JQuery('#bfElementTypeSelectListHeight').val(mdata.height); JQuery('#bfElementTypeSelectReadonly').attr('checked', mdata.readonly); JQuery('#bfElementTypeSelectMultiple').attr('checked', mdata.multiple); JQuery('#bfElementSelectAdvancedMailback').attr('checked', mdata.mailback); JQuery('#bfElementTypeSelectHint').val(mdata.hint); JQuery('#bfElementTypeSelectHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementSelectAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementSelectAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementSelectAdvancedOrderNumber').val(mdata.orderNumber); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // File this.saveFileProperties = function(mdata, item){ // dynamic properties mdata.uploadDirectory = JQuery('#bfElementFileAdvancedUploadDirectory').val(); mdata.timestamp = JQuery('#bfElementFileAdvancedTimestamp').attr('checked'); mdata.allowedFileExtensions = JQuery('#bfElementFileAdvancedAllowedFileExtensions').val(); mdata.attachToUserMail = JQuery('#bfElementFileAdvancedAttachToUserMail').attr('checked'); mdata.attachToAdminMail = JQuery('#bfElementFileAdvancedAttachToAdminMail').attr('checked'); mdata.html5 = JQuery('#bfElementFileAdvancedHtml5Uploader').attr('checked'); mdata.readonly = JQuery('#bfElementTypeFileReadonly').attr('checked'); mdata.hint = JQuery('#bfElementTypeFileHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeFileHintTrans').val(); mdata.useUrl = JQuery('#bfElementFileAdvancedUseUrl').attr('checked'); mdata.useUrlDownloadDirectory = JQuery('#bfElementFileAdvancedUseUrlDownloadDirectory').val(); mdata.resize_target_width = JQuery('#bfElementFileAdvancedResizeTargetWidth').val(); mdata.resize_target_height = JQuery('#bfElementFileAdvancedResizeTargetHeight').val(); mdata.resize_type = JQuery('#bfElementFileAdvancedResizeType').val(); mdata.resize_bgcolor = JQuery('#bfElementFileAdvancedResizeBgcolor').val(); mdata.hideLabel = JQuery('#bfElementFileAdvancedHideLabel').attr('checked'); mdata.logging = JQuery('#bfElementFileAdvancedLogging').attr('checked'); mdata.orderNumber = JQuery('#bfElementFileAdvancedOrderNumber').val(); mdata.flashUploader = JQuery('#bfElementFileAdvancedFlashUploader').attr('checked'); mdata.flashUploaderMulti = JQuery('#bfElementFileAdvancedFlashUploaderMulti').attr('checked'); mdata.flashUploaderBytes = JQuery('#bfElementFileAdvancedFlashUploaderBytes').val(); mdata.flashUploaderWidth = JQuery('#bfElementFileAdvancedFlashUploaderWidth').val(); mdata.flashUploaderHeight = JQuery('#bfElementFileAdvancedFlashUploaderHeight').val(); mdata.flashUploaderTransparent = JQuery('#bfElementFileAdvancedFlashUploaderTransparent').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateFileProperties = function(mdata){ // dynamic properties JQuery('#bfElementFileAdvancedUploadDirectory').val(mdata.uploadDirectory); JQuery('#bfElementFileAdvancedTimestamp').attr('checked', mdata.timestamp); JQuery('#bfElementFileAdvancedAllowedFileExtensions').val(mdata.allowedFileExtensions); JQuery('#bfElementFileAdvancedAttachToUserMail').attr('checked', mdata.attachToUserMail); JQuery('#bfElementFileAdvancedAttachToAdminMail').attr('checked', mdata.attachToAdminMail); JQuery('#bfElementFileAdvancedHtml5Uploader').attr('checked', mdata.html5); JQuery('#bfElementTypeFileReadonly').attr('checked', mdata.readonly); JQuery('#bfElementTypeFileHint').val(mdata.hint); JQuery('#bfElementTypeFileHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementFileAdvancedHideLabel').attr('checked', mdata.hideLabel); if(mdata.useUrl && mdata.useUrlDownloadDirectory == ''){ mdata.useUrlDownloadDirectory = '<?php echo JURI::root() . 'media/breezingforms/uploads'; ?> '; } JQuery('#bfElementFileAdvancedResizeTargetWidth').val( mdata.resize_target_width); JQuery('#bfElementFileAdvancedResizeTargetHeight').val(mdata.resize_target_height); JQuery('#bfElementFileAdvancedResizeType').val(mdata.resize_type); JQuery('#bfElementFileAdvancedResizeBgcolor').val(mdata.resize_bgcolor); JQuery('#bfElementFileAdvancedUseUrl').attr('checked', mdata.useUrl); JQuery('#bfElementFileAdvancedUseUrlDownloadDirectory').val(mdata.useUrlDownloadDirectory); JQuery('#bfElementFileAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementFileAdvancedOrderNumber').val(mdata.orderNumber); JQuery('#bfElementFileAdvancedFlashUploader').attr('checked', mdata.flashUploader); JQuery('#bfElementFileAdvancedFlashUploaderMulti').attr('checked', mdata.flashUploaderMulti); JQuery('#bfElementFileAdvancedFlashUploaderBytes').val(mdata.flashUploaderBytes); JQuery('#bfElementFileAdvancedFlashUploaderWidth').val(mdata.flashUploaderWidth); JQuery('#bfElementFileAdvancedFlashUploaderHeight').val(mdata.flashUploaderHeight); JQuery('#bfElementFileAdvancedFlashUploaderTransparent').attr('checked', mdata.flashUploaderTransparent); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // SUBMIT BUTTON this.saveSubmitButtonProperties = function(mdata, item){ // dynamic properties mdata.src = JQuery('#bfElementSubmitButtonAdvancedSrc').val(); mdata['src_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementSubmitButtonAdvancedSrcTrans').val(); mdata.value = JQuery('#bfElementTypeSubmitButtonValue').val(); mdata['value_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeSubmitButtonValueTrans').val(); mdata.hint = JQuery('#bfElementTypeSubmitButtonHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeSubmitButtonHintTrans').val(); mdata.hideLabel = JQuery('#bfElementSubmitButtonAdvancedHideLabel').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); item.properties = mdata; }; this.populateSubmitButtonProperties = function(mdata){ // dynamic properties JQuery('#bfElementSubmitButtonAdvancedSrc').val(mdata.src); JQuery('#bfElementSubmitButtonAdvancedSrcTrans').val(typeof mdata['src_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['src_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeSubmitButtonValue').val(mdata.value); JQuery('#bfElementTypeSubmitButtonValueTrans').val(typeof mdata['value_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['value_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeSubmitButtonHint').val(mdata.hint); JQuery('#bfElementTypeSubmitButtonHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementSubmitButtonAdvancedHideLabel').attr('checked', mdata.hideLabel); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); }; // CAPTCHA this.saveCaptchaProperties = function(mdata, item){ // dynamic properties mdata.hint = JQuery('#bfElementTypeCaptchaHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCaptchaHintTrans').val(); mdata.width = JQuery('#bfElementTypeCaptchaWidth').val(); mdata.hideLabel = JQuery('#bfElementCaptchaAdvancedHideLabel').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); item.properties = mdata; }; // RECAPTCHA this.saveReCaptchaProperties = function(mdata, item){ // dynamic properties mdata.hint = JQuery('#bfElementTypeReCaptchaHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeReCaptchaHintTrans').val(); mdata.hideLabel = JQuery('#bfElementReCaptchaAdvancedHideLabel').attr('checked'); mdata.pubkey = JQuery('#bfElementTypeReCaptchaPubkey').val(); mdata.privkey = JQuery('#bfElementTypeReCaptchaPrivkey').val(); mdata.theme = JQuery('#bfElementTypeReCaptchaTheme').val(); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); item.properties = mdata; }; this.populateReCaptchaProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeReCaptchaHint').val(mdata.hint); JQuery('#bfElementTypeReCaptchaHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementReCaptchaAdvancedHideLabel').attr('checked', mdata.hideLabel); JQuery('#bfElementTypeReCaptchaPubkey').val(mdata.pubkey); JQuery('#bfElementTypeReCaptchaPrivkey').val(mdata.privkey); JQuery('#bfElementTypeReCaptchaTheme').val(mdata.theme); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); }; this.populateCaptchaProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeCaptchaHint').val(mdata.hint); JQuery('#bfElementTypeCaptchaHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeCaptchaWidth').val(mdata.width); JQuery('#bfElementCaptchaAdvancedHideLabel').attr('checked', mdata.hideLabel); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); }; // CALENDAR RESPONSIVE this.saveCalendarResponsiveProperties = function(mdata, item){ // dynamic properties mdata.format = JQuery('#bfElementTypeCalendarResponsiveFormat').val(); mdata['format_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCalendarResponsiveFormatTrans').val(); mdata.value = JQuery('#bfElementTypeCalendarResponsiveValue').val(); mdata['value_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCalendarResponsiveValueTrans').val(); mdata.size = JQuery('#bfElementTypeCalendarResponsiveSize').val(); mdata.hint = JQuery('#bfElementTypeCalendarResponsiveHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCalendarResponsiveHintTrans').val(); mdata.hideLabel = JQuery('#bfElementCalendarResponsiveAdvancedHideLabel').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateCalendarResponsiveProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeCalendarResponsiveFormat').val(mdata.format); JQuery('#bfElementTypeCalendarResponsiveFormatTrans').val(typeof mdata['format_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['format_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeCalendarResponsiveValue').val(mdata.value); JQuery('#bfElementTypeCalendarResponsiveValueTrans').val(typeof mdata['value_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['value_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeCalendarResponsiveSize').val(mdata.size); JQuery('#bfElementTypeCalendarResponsiveHint').val(mdata.hint); JQuery('#bfElementTypeCalendarResponsiveHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementCalendarResponsiveAdvancedHideLabel').attr('checked', mdata.hideLabel); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // CALENDAR this.saveCalendarProperties = function(mdata, item){ // dynamic properties mdata.format = JQuery('#bfElementTypeCalendarFormat').val(); mdata['format_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCalendarFormatTrans').val(); mdata.value = JQuery('#bfElementTypeCalendarValue').val(); mdata['value_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCalendarValueTrans').val(); mdata.size = JQuery('#bfElementTypeCalendarSize').val(); mdata.hint = JQuery('#bfElementTypeCalendarHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeCalendarHintTrans').val(); mdata.hideLabel = JQuery('#bfElementCalendarAdvancedHideLabel').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); mdata.required = JQuery('#bfElementValidationRequired').attr('checked'); item.properties = mdata; }; this.populateCalendarProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeCalendarFormat').val(mdata.format); JQuery('#bfElementTypeCalendarFormatTrans').val(typeof mdata['format_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['format_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeCalendarValue').val(mdata.value); JQuery('#bfElementTypeCalendarValueTrans').val(typeof mdata['value_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['value_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeCalendarSize').val(mdata.size); JQuery('#bfElementTypeCalendarHint').val(mdata.hint); JQuery('#bfElementTypeCalendarHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementCalendarAdvancedHideLabel').attr('checked', mdata.hideLabel); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementValidationRequired').attr('checked', mdata.required); }; // Hidden this.saveHiddenProperties = function(mdata, item){ // dynamic properties mdata.value = JQuery('#bfElementTypeHiddenValue').val(); mdata.logging = JQuery('#bfElementHiddenAdvancedLogging').attr('checked'); mdata.orderNumber = JQuery('#bfElementHiddenAdvancedOrderNumber').val(); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); item.properties = mdata; }; this.populateHiddenProperties = function(mdata){ // dynamic properties JQuery('#bfElementTypeHiddenValue').val(mdata.value); JQuery('#bfElementHiddenAdvancedLogging').attr('checked', mdata.logging); JQuery('#bfElementHiddenAdvancedOrderNumber').val(mdata.orderNumber); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); }; // SUMMARIZE this.saveSummarizeProperties = function(mdata, item){ // dynamic properties var val = JQuery('#bfElementTypeSummarizeConnectWith').val(); if(val != ''){ var name = val.split(":")[0]; var type = val.split(":")[1]; mdata.connectWith = name; mdata.connectType = type; } mdata.useElementLabel = JQuery('#bfElementTypeSummarizeUseElementLabel').attr('checked'); mdata.hideIfEmpty = JQuery('#bfElementTypeSummarizeHideIfEmpty').attr('checked'); mdata.fieldCalc = JQuery('#bfElementAdvancedSummarizeCalc').val(); mdata.emptyMessage = JQuery('#bfElementTypeSummarizeEmptyMessage').val(); mdata['emptyMessage_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeSummarizeEmptyMessageTrans').val(); if(mdata.useElementLabel){ var items = new Array(); appScope.getItemsFlattened(appScope.dataObject, items); for(var i = 0; i < items.length;i++){ if(items[i].properties.bfName == name){ JQuery('#bfElementLabel').val(items[i].properties.label); JQuery('#bfElementLabelTrans').val(typeof items[i].properties['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? items[i].properties['label_translation<?php echo $active_language_code; ?> '] : ""); break; } } } // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); item.properties = mdata; }; this.populateSummarizeProperties = function(mdata){ var items = new Array(); appScope.getItemsFlattened(appScope.dataObject, items); JQuery('#bfElementTypeSummarizeConnectWith').empty(); var option = document.createElement('option'); JQuery(option).val(''); JQuery(option).text("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_CHOOSE_ONE')); ?> "); JQuery('#bfElementTypeSummarizeConnectWith').append(option); for(var i = 0; i < items.length;i++){ switch(items[i].properties.bfType){ case 'bfTextfield': case 'bfTextarea': case 'bfRadioGroup': case 'bfCheckboxGroup': case 'bfCheckbox': case 'bfSelect': case 'bfFile': case 'bfHidden': case 'bfCalendar': var option = document.createElement('option'); JQuery(option).val(items[i].properties.bfName + ":" + items[i].properties.bfType); JQuery(option).text(items[i].properties.label + " ("+items[i].properties.bfName+")"); JQuery('#bfElementTypeSummarizeConnectWith').append(option); case 'bfCalendarResponsive': var option = document.createElement('option'); JQuery(option).val(items[i].properties.bfName + ":" + items[i].properties.bfType); JQuery(option).text(items[i].properties.label + " ("+items[i].properties.bfName+")"); JQuery('#bfElementTypeSummarizeConnectWith').append(option); break; } } // dynamic properties JQuery('#bfElementTypeSummarizeConnectWith').val(mdata.connectWith+":"+mdata.connectType); JQuery('#bfElementTypeSummarizeEmptyMesssage').val(mdata.emptyMessage); JQuery('#bfElementTypeSummarizeUseElementLabel').attr('checked', mdata.useElementLabel); JQuery('#bfElementTypeSummarizeEmptyMessage').val(mdata.emptyMessage); JQuery('#bfElementTypeSummarizeEmptyMessageTrans').val(typeof mdata['emptyMessage_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['emptyMessage_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementTypeSummarizeHideIfEmpty').attr('checked', mdata.hideIfEmpty); JQuery('#bfElementAdvancedSummarizeCalc').val(mdata.fieldCalc); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); }; // PAYPAL BUTTON this.savePayPalProperties = function(mdata, item){ // dynamic properties // DEFAULT // account mdata.business = JQuery('#bfElementTypePayPalBusiness').val(); mdata.token = JQuery('#bfElementTypePayPalToken').val(); mdata.itemname = JQuery('#bfElementTypePayPalItemname').val(); mdata.itemnumber = JQuery('#bfElementTypePayPalItemnumber').val(); mdata.amount = JQuery('#bfElementTypePayPalAmount').val(); mdata.tax = JQuery('#bfElementTypePayPalTax').val(); mdata.thankYouPage = JQuery('#bfElementTypePayPalThankYouPage').val(); mdata.locale = JQuery('#bfElementTypePayPalLocale').val(); mdata.currencyCode = JQuery('#bfElementTypePayPalCurrencyCode').val(); mdata.sendNotificationAfterPayment = JQuery('#bfElementTypePayPalSendNotificationAfterPayment').attr('checked'); // ADVANCED mdata.useIpn = JQuery('#bfElementPayPalAdvancedUseIpn').attr('checked'); mdata.image = JQuery('#bfElementPayPalAdvancedImage').val(); mdata['image_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementPayPalAdvancedImageTrans').val(); // testaccount mdata.testaccount = JQuery('#bfElementPayPalAdvancedTestaccount').attr('checked'); mdata.testBusiness = JQuery('#bfElementPayPalAdvancedTestBusiness').val(); mdata.testToken = JQuery('#bfElementPayPalAdvancedTestToken').val(); // file mdata.downloadableFile = JQuery('#bfElementPayPalAdvancedDownloadableFile').attr('checked'); mdata.filepath = JQuery('#bfElementPayPalAdvancedFilepath').val(); mdata.downloadTries = JQuery('#bfElementPayPalAdvancedDownloadTries').val(); // OTHER ADVANCED mdata.hint = JQuery('#bfElementTypePayPalHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypePayPalHintTrans').val(); mdata.hideLabel = JQuery('#bfElementPayPalAdvancedHideLabel').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); item.properties = mdata; }; this.populatePayPalProperties = function(mdata){ // dynamic properties // DEFAULT // account JQuery('#bfElementTypePayPalBusiness').val(mdata.business); JQuery('#bfElementTypePayPalToken').val(mdata.token); JQuery('#bfElementTypePayPalItemname').val(mdata.itemname); JQuery('#bfElementTypePayPalItemnumber').val(mdata.itemnumber); JQuery('#bfElementTypePayPalAmount').val(mdata.amount); JQuery('#bfElementTypePayPalTax').val(mdata.tax); JQuery('#bfElementTypePayPalThankYouPage').val(mdata.thankYouPage); JQuery('#bfElementTypePayPalLocale').val(mdata.locale); JQuery('#bfElementTypePayPalCurrencyCode').val(mdata.currencyCode); JQuery('#bfElementTypePayPalSendNotificationAfterPayment').attr('checked', mdata.sendNotificationAfterPayment); // ADVANCED JQuery('#bfElementPayPalAdvancedImage').val(mdata.image); JQuery('#bfElementPayPalAdvancedImageTrans').val(typeof mdata['image_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['image_translation<?php echo $active_language_code; ?> '] : ""); // testaccount JQuery('#bfElementPayPalAdvancedTestaccount').attr('checked', mdata.testaccount); JQuery('#bfElementPayPalAdvancedTestBusiness').val(mdata.testBusiness); JQuery('#bfElementPayPalAdvancedTestToken').val(mdata.testToken); // file JQuery('#bfElementPayPalAdvancedDownloadableFile').attr('checked', mdata.downloadableFile); JQuery('#bfElementPayPalAdvancedFilepath').val(mdata.filepath); JQuery('#bfElementPayPalAdvancedDownloadTries').val(mdata.downloadTries); if(typeof mdata.useIpn == "undefined"){ mdata['useIpn'] = false; } JQuery('#bfElementPayPalAdvancedUseIpn').attr('checked', mdata.useIpn); JQuery('#bfElementTypePayPalHint').val(mdata.hint); JQuery('#bfElementTypePayPalHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementPayPalAdvancedHideLabel').attr('checked', mdata.hideLabel); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); }; // SOFORTUEBERWEISUNG BUTTON this.saveSofortueberweisungProperties = function(mdata, item){ // dynamic properties // DEFAULT // account mdata.user_id = JQuery('#bfElementTypeSofortueberweisungUserId').val(); mdata.project_id = JQuery('#bfElementTypeSofortueberweisungProjectId').val(); mdata.project_password = JQuery('#bfElementTypeSofortueberweisungProjectPassword').val(); mdata.reason_1 = JQuery('#bfElementTypeSofortueberweisungReason1').val(); mdata.reason_2 = JQuery('#bfElementTypeSofortueberweisungReason2').val(); mdata.amount = JQuery('#bfElementTypeSofortueberweisungAmount').val(); mdata.thankYouPage = JQuery('#bfElementTypeSofortueberweisungThankYouPage').val(); mdata.language_id = JQuery('#bfElementTypeSofortueberweisungLanguageId').val(); mdata.currency_id = JQuery('#bfElementTypeSofortueberweisungCurrencyId').val(); mdata.mailback = JQuery('#bfElementTypeSofortueberweisungMailback').attr('checked'); // ADVANCED mdata.image = JQuery('#bfElementSofortueberweisungAdvancedImage').val(); mdata['image_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementSofortueberweisungAdvancedImageTrans').val(); // file mdata.downloadableFile = JQuery('#bfElementSofortueberweisungAdvancedDownloadableFile').attr('checked'); mdata.filepath = JQuery('#bfElementSofortueberweisungAdvancedFilepath').val(); mdata.downloadTries = JQuery('#bfElementSofortueberweisungAdvancedDownloadTries').val(); // OTHER ADVANCED mdata.hint = JQuery('#bfElementTypeSofortueberweisungHint').val(); mdata['hint_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementTypeSofortueberweisungHintTrans').val(); mdata.hideLabel = JQuery('#bfElementSofortueberweisungAdvancedHideLabel').attr('checked'); // static properties mdata.bfName = JQuery('#bfElementName').val(); mdata.label = JQuery('#bfElementLabel').val(); mdata['label_translation<?php echo $active_language_code; ?> '] = JQuery('#bfElementLabelTrans').val(); mdata.labelPosition = JQuery('#bfElementAdvancedLabelPosition').val(); mdata.tabIndex = JQuery('#bfElementAdvancedTabIndex').val(); mdata.hideInMailback = JQuery('#bfElementAdvancedHideInMailback').attr('checked'); mdata.off = JQuery('#bfElementAdvancedTurnOff').attr('checked'); item.properties = mdata; }; this.populateSofortueberweisungProperties = function(mdata){ // dynamic properties // DEFAULT // account JQuery('#bfElementTypeSofortueberweisungUserId').val(mdata.user_id); JQuery('#bfElementTypeSofortueberweisungProjectId').val(mdata.project_id); JQuery('#bfElementTypeSofortueberweisungProjectPassword').val(mdata.project_password); JQuery('#bfElementTypeSofortueberweisungReason1').val(mdata.reason_1); JQuery('#bfElementTypeSofortueberweisungReason2').val(mdata.reason_2); JQuery('#bfElementTypeSofortueberweisungAmount').val(mdata.amount); JQuery('#bfElementTypeSofortueberweisungThankYouPage').val(mdata.thankYouPage); JQuery('#bfElementTypeSofortueberweisungLanguageId').val(mdata.language_id); JQuery('#bfElementTypeSofortueberweisungCurrencyId').val(mdata.currency_id); JQuery('#bfElementTypeSofortueberweisungMailback').attr('checked', mdata.mailback); // ADVANCED JQuery('#bfElementSofortueberweisungAdvancedImage').val(mdata.image); JQuery('#bfElementSofortueberweisungAdvancedImageTrans').val(typeof mdata['image_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['image_translation<?php echo $active_language_code; ?> '] : ""); // file JQuery('#bfElementSofortueberweisungAdvancedDownloadableFile').attr('checked', mdata.downloadableFile); JQuery('#bfElementSofortueberweisungAdvancedFilepath').val(mdata.filepath); JQuery('#bfElementSofortueberweisungAdvancedDownloadTries').val(mdata.downloadTries); // OTHER ADVANCED JQuery('#bfElementTypeSofortueberweisungHint').val(mdata.hint); JQuery('#bfElementTypeSofortueberweisungHintTrans').val(typeof mdata['hint_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['hint_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementSofortueberweisungAdvancedHideLabel').attr('checked', mdata.hideLabel); // static properties JQuery('#bfElementName').val(mdata.bfName); JQuery('#bfElementLabel').val(mdata.label); JQuery('#bfElementLabelTrans').val(typeof mdata['label_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['label_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedTabIndex').val(mdata.tabIndex); JQuery('#bfElementAdvancedHideInMailback').attr('checked', mdata.hideInMailback); JQuery('#bfElementAdvancedTurnOff').attr('checked', mdata.off); JQuery('#bfElementAdvancedLabelPosition').val(mdata.labelPosition); }; this.saveSelectedElementProperties = function(){ if(appScope.selectedTreeElement){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ switch(mdata.bfType){ case 'bfSummarize': appScope.saveSummarizeProperties(mdata, item); break; case 'bfHidden': appScope.saveHiddenProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); break; case 'bfTextfield': appScope.saveTextProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; case 'bfTextarea': appScope.saveTextareaProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; case 'bfRadioGroup': appScope.saveRadioGroupProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; case 'bfSubmitButton': appScope.saveSubmitButtonProperties(mdata, item); appScope.saveAction(mdata, item); break; case 'bfPayPal': appScope.savePayPalProperties(mdata, item); appScope.saveAction(mdata, item); break; case 'bfSofortueberweisung': appScope.saveSofortueberweisungProperties(mdata, item); appScope.saveAction(mdata, item); break; case 'bfCaptcha': appScope.saveCaptchaProperties(mdata, item); appScope.saveAction(mdata, item); break; case 'bfReCaptcha': appScope.saveReCaptchaProperties(mdata, item); appScope.saveAction(mdata, item); break; case 'bfCalendar': appScope.saveCalendarProperties(mdata, item); appScope.saveValidation(mdata, item); break; case 'bfCalendarResponsive': appScope.saveCalendarResponsiveProperties(mdata, item); appScope.saveValidation(mdata, item); break; case 'bfCheckboxGroup': appScope.saveCheckboxGroupProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; case 'bfCheckbox': appScope.saveCheckboxProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; case 'bfSelect': appScope.saveSelectProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; case 'bfFile': appScope.saveFileProperties(mdata, item); appScope.saveValidation(mdata, item); appScope.saveInit(mdata, item); appScope.saveAction(mdata, item); break; } item.attributes.id = JQuery('#bfElementName').val(); JQuery(appScope.selectedTreeElement).attr('id', JQuery('#bfElementName').val()); } } } }; this.saveValidation = function(mdata, item){ mdata.validationId = JQuery('#bfValidationScriptSelection').val(); mdata.validationCode = JQuery('#bfValidationCode').val(); mdata.validationMessage = JQuery('#bfValidationMessage').val(); mdata['validationMessage_translation<?php echo $active_language_code; ?> '] = JQuery('#bfValidationMessageTrans').val(); if(JQuery('#bfValidationTypeLibrary').get(0).checked){ mdata.validationCondition = 1; for(var i = 0; i < appScope.elementScripts.validation.length;i++){ if(appScope.elementScripts.validation[i].id == JQuery('#bfValidationScriptSelection').val()){ mdata.validationFunctionName = appScope.elementScripts.validation[i].name; break; } } } else if(JQuery('#bfValidationTypeCustom').get(0).checked){ mdata.validationCondition = 2; mdata.validationFunctionName = 'ff_' + mdata.bfName + '_validation'; } else { mdata.validationCondition = 0; } item.properties = mdata; }; this.saveInit = function(mdata, item){ if(JQuery('#bfInitFormEntry').get(0).checked){ mdata.initFormEntry = 1; } else { mdata.initFormEntry = 0; } if(JQuery('#bfInitPageEntry').get(0).checked){ mdata.initPageEntry = 1; } else { mdata.initPageEntry = 0; } mdata.initId = JQuery('#bfInitScriptSelection').val(); mdata.initCode = JQuery('#bfInitCode').val(); if(JQuery('#bfInitTypeLibrary').get(0).checked){ mdata.initCondition = 1; for(var i = 0; i < appScope.elementScripts.init.length;i++){ if(appScope.elementScripts.init[i].id == JQuery('#bfInitScriptSelection').val()){ mdata.initScript = appScope.elementScripts.init[i].name; break; } } } else if(JQuery('#bfInitTypeCustom').get(0).checked){ mdata.initCondition = 2; mdata.initFunctionName = 'ff_' + mdata.bfName + '_init'; } else { mdata.initCondition = 0; } item.properties = mdata; }; this.saveAction = function(mdata, item){ mdata.actionId = JQuery('#bfActionsScriptSelection').val(); mdata.actionCode = JQuery('#bfActionCode').val(); if(JQuery('#bfActionTypeLibrary').get(0).checked){ mdata.actionCondition = 1; for(var i = 0; i < appScope.elementScripts.action.length;i++){ if(appScope.elementScripts.action[i].id == JQuery('#bfActionsScriptSelection').val()){ mdata.actionFunctionName = appScope.elementScripts.action[i].name; break; } } } else if(JQuery('#bfActionTypeCustom').get(0).checked){ mdata.actionCondition = 2; mdata.actionFunctionName = 'ff_' + mdata.bfName + '_action'; } else { mdata.actionCondition = 0; } if(JQuery('#bfActionClick').get(0).checked && mdata.actionCondition > 0){ mdata.actionClick = 1; } else { mdata.actionClick = 0; } if(JQuery('#bfActionBlur').get(0).checked && mdata.actionCondition > 0){ mdata.actionBlur = 1; } else { mdata.actionBlur = 0; } if(JQuery('#bfActionChange').get(0).checked && mdata.actionCondition > 0){ mdata.actionChange = 1; } else { mdata.actionChange = 0; } if(JQuery('#bfActionFocus').get(0).checked && mdata.actionCondition > 0){ mdata.actionFocus = 1; } else { mdata.actionFocus = 0; } if(JQuery('#bfActionSelect').get(0).checked && mdata.actionCondition > 0){ mdata.actionSelect = 1; } else { mdata.actionSelect = 0; } item.properties = mdata; }; this.populateSelectedElementProperties = function(){ if(appScope.selectedTreeElement){ var mdata = appScope.getProperties(appScope.selectedTreeElement); // compat 723 if(typeof mdata.off == "undefined"){ mdata['off'] = false; } // compat 723 end if(mdata){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ item.data.title = mdata.label; JQuery('#bfValidationScript').css('display','none'); JQuery('#bfInitScript').css('display','none'); JQuery('#bfActionScript').css('display','none'); JQuery('#bfElementTypeText').css('display','none'); JQuery('#bfElementTypeTextarea').css('display','none'); JQuery('#bfElementTypeRadioGroup').css('display','none'); JQuery('#bfElementTypeSubmitButton').css('display','none'); JQuery('#bfElementTypePayPal').css('display','none'); JQuery('#bfElementTypeSofortueberweisung').css('display','none'); JQuery('#bfElementTypeCaptcha').css('display','none'); JQuery('#bfElementTypeReCaptcha').css('display','none'); JQuery('#bfElementTypeCalendar').css('display','none'); JQuery('#bfElementTypeCalendarResponsive').css('display','none'); JQuery('#bfElementTypeCheckboxGroup').css('display','none'); JQuery('#bfElementTypeCheckbox').css('display','none'); JQuery('#bfElementTypeSelect').css('display','none'); JQuery('#bfElementTypeFile').css('display','none'); JQuery('#bfElementTypeHidden').css('display','none'); JQuery('#bfElementTypeSummarize').css('display','none'); JQuery('#bfElementTypeTextAdvanced').css('display','none'); JQuery('#bfElementTypeTextareaAdvanced').css('display','none'); JQuery('#bfElementTypeRadioGroupAdvanced').css('display','none'); JQuery('#bfElementTypeSubmitButtonAdvanced').css('display','none'); JQuery('#bfElementTypePayPalAdvanced').css('display','none'); JQuery('#bfElementTypeSofortueberweisungAdvanced').css('display','none'); JQuery('#bfElementTypeCaptchaAdvanced').css('display','none'); JQuery('#bfElementTypeReCaptchaAdvanced').css('display','none'); JQuery('#bfElementTypeCalendarAdvanced').css('display','none'); JQuery('#bfElementTypeCalendarResponsiveAdvanced').css('display','none'); JQuery('#bfElementTypeCheckboxGroupAdvanced').css('display','none'); JQuery('#bfElementTypeCheckboxAdvanced').css('display','none'); JQuery('#bfElementTypeSelectAdvanced').css('display','none'); JQuery('#bfElementTypeFileAdvanced').css('display','none'); JQuery('#bfElementTypeHiddenAdvanced').css('display','none'); JQuery('#bfElementTypeSummarizeAdvanced').css('display','none'); JQuery('#bfElementValidationRequiredSet').css('display','none'); JQuery('#bfAdvancedLeaf').css('display',''); JQuery('#bfHideInMailback').css('display',''); switch(mdata.bfType){ case 'bfSummarize': JQuery('#bfHideInMailback').css('display','none'); JQuery('#bfElementType').val('bfElementTypeSummarize'); appScope.populateSummarizeProperties(mdata); break; case 'bfHidden': JQuery('#bfElementType').val('bfElementTypeHidden'); JQuery('#bfAdvancedLeaf').css('display','none'); appScope.populateHiddenProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); break; case 'bfTextfield': JQuery('#bfElementType').val('bfElementTypeText'); appScope.populateTextProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; case 'bfTextarea': JQuery('#bfElementType').val('bfElementTypeTextarea'); appScope.populateTextareaProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; case 'bfRadioGroup': JQuery('#bfElementType').val('bfElementTypeRadioGroup'); appScope.populateRadioGroupProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; case 'bfSubmitButton': JQuery('#bfElementType').val('bfElementTypeSubmitButton'); appScope.populateSubmitButtonProperties(mdata); appScope.populateElementActionScript(); break; case 'bfPayPal': JQuery('#bfElementType').val('bfElementTypePayPal'); appScope.populatePayPalProperties(mdata); appScope.populateElementActionScript(); break; case 'bfSofortueberweisung': JQuery('#bfElementType').val('bfElementTypeSofortueberweisung'); appScope.populateSofortueberweisungProperties(mdata); appScope.populateElementActionScript(); break; case 'bfCaptcha': JQuery('#bfHideInMailback').css('display','none'); JQuery('#bfElementType').val('bfElementTypeCaptcha'); appScope.populateCaptchaProperties(mdata); break; case 'bfReCaptcha': JQuery('#bfHideInMailback').css('display','none'); JQuery('#bfElementType').val('bfElementTypeReCaptcha'); appScope.populateReCaptchaProperties(mdata); break; case 'bfCalendar': JQuery('#bfElementType').val('bfElementTypeCalendar'); appScope.populateCalendarProperties(mdata); appScope.populateElementValidationScript(); break; case 'bfCalendarResponsive': JQuery('#bfElementType').val('bfElementTypeCalendarResponsive'); appScope.populateCalendarResponsiveProperties(mdata); appScope.populateElementValidationScript(); break; case 'bfCheckboxGroup': JQuery('#bfElementType').val('bfElementTypeCheckboxGroup'); appScope.populateCheckboxGroupProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; case 'bfCheckbox': JQuery('#bfElementType').val('bfElementTypeCheckbox'); appScope.populateCheckboxProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; case 'bfSelect': JQuery('#bfElementType').val('bfElementTypeSelect'); appScope.populateSelectProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; case 'bfFile': JQuery('#bfElementType').val('bfElementTypeFile'); appScope.populateFileProperties(mdata); appScope.populateElementValidationScript(); appScope.populateElementInitScript(); appScope.populateElementActionScript(); break; } if(JQuery('#bfElementType').val() != ''){ JQuery('#bfElementTypeClass').css('display','none'); JQuery('#'+JQuery('#bfElementType').val()).css('display',''); JQuery('#'+JQuery('#bfElementType').val()+"Advanced").css('display',''); if(mdata.bfType != 'bfHidden'){ JQuery('#bfElementValidationRequiredSet').css('display',''); } } } } } }; this.populateElementValidationScript = function(){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ JQuery('#bfValidationScript').css('display',''); JQuery('#bfValidationScriptSelection').empty(); for(var i = 0; i < appScope.elementScripts.validation.length;i++){ var option = document.createElement('option'); JQuery(option).val(appScope.elementScripts.validation[i].id); JQuery(option).text(appScope.elementScripts.validation[i].package + '::' + appScope.elementScripts.validation[i].name); if(appScope.elementScripts.validation[i].id == mdata.validationId){ JQuery(option).get(0).setAttribute('selected', true); } JQuery('#bfValidationScriptSelection').append(option); } JQuery('#bfValidationMessage').val(mdata.validationMessage); JQuery('#bfValidationMessageTrans').val(typeof mdata['validationMessage_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['validationMessage_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfValidationCode').val(mdata.validationCode); switch(mdata.validationCondition){ case 1: JQuery('.bfValidationType').attr('checked',''); JQuery('#bfValidationTypeLibrary').attr('checked',true); JQuery('#bfValidationScriptLibrary').css('display',''); JQuery('#bfValidationScriptCustom').css('display','none'); JQuery('#bfValidationScriptFlags').css('display',''); JQuery('#bfValidationScriptLibrary').css('display',''); JQuery('#bfValidationScriptCustom').css('display','none'); appScope.setValidationScriptDescription(); break; case 2: JQuery('.bfValidationType').attr('checked',''); JQuery('#bfValidationTypeCustom').attr('checked',true); JQuery('#bfValidationScriptFlags').css('display',''); JQuery('#bfValidationScriptLibrary').css('display','none'); JQuery('#bfValidationScriptCustom').css('display',''); break; default: JQuery('.bfValidationType').attr('checked',''); JQuery('#bfValidationTypeNone').attr('checked',true); JQuery('#bfValidationScriptFlags').css('display','none'); JQuery('#bfValidationScriptLibrary').css('display','none'); JQuery('#bfValidationScriptCustom').css('display','none'); } } }; this.populateElementInitScript = function(){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ JQuery('#bfInitScript').css('display',''); JQuery('#bfInitScriptSelection').empty(); for(var i = 0; i < appScope.elementScripts.init.length;i++){ var option = document.createElement('option'); JQuery(option).val(appScope.elementScripts.init[i].id); JQuery(option).text(appScope.elementScripts.init[i].package + '::' + appScope.elementScripts.init[i].name); if(appScope.elementScripts.init[i].id == mdata.initId){ JQuery(option).get(0).setAttribute('selected', true); } JQuery('#bfInitScriptSelection').append(option); } if(mdata.initFormEntry == 1){ JQuery('#bfInitFormEntry').get(0).checked = true; } else { JQuery('#bfInitFormEntry').get(0).checked = false; } if(mdata.initPageEntry == 1){ JQuery('#bfInitPageEntry').get(0).checked = true; } else { JQuery('#bfInitPageEntry').get(0).checked = false; } JQuery('#bfInitCode').val(mdata.initCode); switch(mdata.initCondition){ case 1: JQuery('.bfInitType').attr('checked',''); JQuery('#bfInitTypeLibrary').attr('checked',true); JQuery('#bfInitScriptLibrary').css('display',''); JQuery('#bfInitScriptCustom').css('display','none'); JQuery('#bfInitScriptFlags').css('display',''); JQuery('#bfInitScriptLibrary').css('display',''); JQuery('#bfInitScriptCustom').css('display','none'); appScope.setInitScriptDescription(); break; case 2: JQuery('.bfInitType').attr('checked',''); JQuery('#bfInitTypeCustom').attr('checked',true); JQuery('#bfInitScriptFlags').css('display',''); JQuery('#bfInitScriptLibrary').css('display','none'); JQuery('#bfInitScriptCustom').css('display',''); break; default: JQuery('.bfInitType').attr('checked',''); JQuery('#bfInitTypeNone').attr('checked',true); JQuery('#bfInitScriptFlags').css('display','none'); JQuery('#bfInitScriptLibrary').css('display','none'); JQuery('#bfInitScriptCustom').css('display','none'); } } }; this.populateElementActionScript = function(){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ JQuery('#bfActionScript').css('display',''); if(mdata.bfType == 'bfSofortueberweisung' || mdata.bfType == 'bfPayPal' || mdata.bfType == 'bfIcon' || mdata.bfType == 'bfImageButton' || mdata.bfType == 'bfSubmitButton'){ JQuery('.bfAction').css('display','none'); JQuery('.bfActionLabel').css('display','none'); JQuery('#bfActionClick').css('display',''); JQuery('#bfActionClickLabel').css('display',''); } else { JQuery('.bfAction').css('display',''); JQuery('.bfActionLabel').css('display',''); } JQuery('#bfActionsScriptSelection').empty(); for(var i = 0; i < appScope.elementScripts.action.length;i++){ var option = document.createElement('option'); JQuery(option).val(appScope.elementScripts.action[i].id); JQuery(option).text(appScope.elementScripts.action[i].package + '::' + appScope.elementScripts.action[i].name); if(appScope.elementScripts.action[i].id == mdata.actionId){ JQuery(option).get(0).setAttribute('selected', true); } JQuery('#bfActionsScriptSelection').append(option); } if(mdata.actionClick == 1){ JQuery('#bfActionClick').get(0).checked = true; } else { JQuery('#bfActionClick').get(0).checked = false; } if(mdata.actionBlur == 1){ JQuery('#bfActionBlur').get(0).checked = true; } else { JQuery('#bfActionBlur').get(0).checked = false; } if(mdata.actionChange == 1){ JQuery('#bfActionChange').get(0).checked = true; } else { JQuery('#bfActionChange').get(0).checked = false; } if(mdata.actionFocus == 1){ JQuery('#bfActionFocus').get(0).checked = true; } else { JQuery('#bfActionFocus').get(0).checked = false; } if(mdata.actionSelect == 1){ JQuery('#bfActionSelect').get(0).checked = true; } else { JQuery('#bfActionSelect').get(0).checked = false; } JQuery('#bfActionCode').val(mdata.actionCode); switch(mdata.actionCondition){ case 1: JQuery('.bfActionType').attr('checked',''); JQuery('#bfActionTypeLibrary').attr('checked',true); JQuery('#bfActionScriptLibrary').css('display',''); JQuery('#bfActionScriptCustom').css('display','none'); JQuery('#bfActionScriptFlags').css('display',''); JQuery('#bfActionScriptLibrary').css('display',''); JQuery('#bfActionScriptCustom').css('display','none'); appScope.setActionScriptDescription(); break; case 2: JQuery('.bfActionType').attr('checked',''); JQuery('#bfActionTypeCustom').attr('checked',true); JQuery('#bfActionScriptFlags').css('display',''); JQuery('#bfActionScriptLibrary').css('display','none'); JQuery('#bfActionScriptCustom').css('display',''); break; default: JQuery('.bfActionType').attr('checked',''); JQuery('#bfActionTypeNone').attr('checked',true); JQuery('#bfActionScriptFlags').css('display','none'); JQuery('#bfActionScriptLibrary').css('display','none'); JQuery('#bfActionScriptCustom').css('display','none'); } } }; this.createTreeItem = function(obj){ if(appScope.selectedTreeElement){ switch(appScope.getNodeClass(appScope.selectedTreeElement)){ case 'bfQuickModePageClass': case 'bfQuickModeSectionClass': if(obj.attributes['class'] != 'bfQuickModePageClass'){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ if(item.children){ item.children[item.children.length] = obj; } else { alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_NO_CHILDREN_ERROR')); ?> "); } } } else { alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_NEW_SECTION_ERROR')); ?> "); } break; case 'bfQuickModeRootClass': if(obj.attributes['class'] == 'bfQuickModePageClass' && appScope.dataObject && appScope.dataObject.children){ appScope.dataObject.children[appScope.dataObject.children.length] = obj; } else { alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_NEW_SECTION_ERROR')); ?> "); } break; default: alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_NEW_SECTION_ERROR')); ?> "); } JQuery.tree_reference('bfElementExplorer').refresh(); } }; /** Section properties */ this.saveSectionProperties = function(){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ mdata.bfType = JQuery('#bfSectionType').val(); mdata.displayType = JQuery('#bfSectionDisplayType').val(); mdata.title = JQuery('#bfSectionTitle').val(); mdata['title_translation<?php echo $active_language_code; ?> '] = JQuery('#bfSectionTitleTrans').val(); mdata.name = JQuery('#bfSectionName').val(); mdata.off = JQuery('#bfSectionAdvancedTurnOff').attr('checked'); item.properties = mdata; item.data.title = JQuery('#bfSectionTitle').val(); } } }; this.populateSectionProperties = function(){ if(appScope.selectedTreeElement){ var mdata = appScope.getProperties(appScope.selectedTreeElement); // compat 723 if(typeof mdata.off == "undefined"){ mdata['off'] = false; } // compat 723 end if(mdata){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ item.data.title = mdata.title; JQuery('#bfSectionType').val( mdata.bfType ); JQuery('#bfSectionDisplayType').val( mdata.displayType ); JQuery('#bfSectionTitle').val( mdata.title ); JQuery('#bfSectionTitleTrans').val(typeof mdata['title_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['title_translation<?php echo $active_language_code; ?> '] : ""); // compat 723 JQuery('#bfSectionName').val( typeof mdata.name == "undefined" ? '' : mdata.name ); // compat 723 end JQuery('#bfSectionAdvancedTurnOff').attr( 'checked', mdata.off ); } } } }; /** Form properties */ this.saveFormProperties = function(){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ mdata.title = JQuery('#bfFormTitle').val(); mdata['title_translation<?php echo $active_language_code; ?> '] = JQuery('#bfFormTitleTrans').val(); mdata.name = JQuery('#bfFormName').val(); mdata.description = JQuery('#bfFormDescription').val(); mdata.mailRecipient = JQuery('#bfFormMailRecipient').val(); mdata.mailNotification = JQuery('#bfFormMailNotification').attr('checked'); mdata.submitInclude = JQuery('#bfSubmitIncludeYes').attr('checked'); mdata.themebootstrapLabelTop = JQuery('#bfThemeBootstrapLabelTopYes').attr('checked'); mdata.themeusebootstraplegacy = typeof JQuery('#bfThemeBootstrapUseLegacyYes').get(0) != "undefined" ? JQuery('#bfThemeBootstrapUseLegacyYes').attr('checked') : false; mdata.themebootstrapUseHeroUnit = JQuery('#bfThemeBootstrapUseHeroUnitYes').attr('checked'); mdata.themebootstrapUseWell = JQuery('#bfThemeBootstrapUseWellYes').attr('checked'); mdata.themebootstrapUseProgress = JQuery('#bfThemeBootstrapUseProgressYes').attr('checked'); mdata.themebootstrapThemeEngine = JQuery('#bfThemeBootstrapThemeBootstrap').attr('checked') ? 'bootstrap' : 'breezingforms'; mdata.submitLabel = JQuery('#bfFormSubmitLabel').val(); mdata['submitLabel_translation<?php echo $active_language_code; ?> '] = JQuery('#bfFormSubmitLabelTrans').val(); mdata.cancelInclude = JQuery('#bfCancelIncludeYes').attr('checked'); mdata.cancelLabel = JQuery('#bfFormCancelLabel').val(); mdata['cancelLabel_translation<?php echo $active_language_code; ?> '] = JQuery('#bfFormCancelLabelTrans').val(); mdata.pagingInclude = JQuery('#bfPagingIncludeYes').attr('checked'); mdata.pagingNextLabel = JQuery('#bfFormPagingNextLabel').val(); mdata['pagingNextLabel_translation<?php echo $active_language_code; ?> '] = JQuery('#bfFormPagingNextLabelTrans').val(); mdata.pagingPrevLabel = JQuery('#bfFormPagingPrevLabel').val(); mdata['pagingPrevLabel_translation<?php echo $active_language_code; ?> '] = JQuery('#bfFormPagingPrevLabelTrans').val(); mdata.theme = JQuery('#bfTheme').val(); mdata.themebootstrap = JQuery('#bfThemeBootstrap').val(); mdata.themebootstrapvars = typeof JQuery('#bfThemeBootstrapVars').get(0) != "undefined" ? JQuery('#bfThemeBootstrapVars').val() : ''; if(!mdata.themebootstrapbefore){ mdata['themebootstrapbefore'] = ''; } mdata.themebootstrapbefore = typeof JQuery('#bfThemeBootstrapBefore').get(0) != "undefined" ? JQuery('#bfThemeBootstrapBefore').val() : ''; mdata.fadeIn = JQuery('#bfElementAdvancedFadeIn').attr('checked'); mdata.useErrorAlerts = JQuery('#bfElementAdvancedUseErrorAlerts').attr('checked'); mdata.disableJQuery = JQuery('#bfElementAdvancedDisableJQuery').attr('checked'); mdata.joomlaHint = JQuery('#bfElementAdvancedJoomlaHint').attr('checked'); mdata.mobileEnabled = JQuery('#bfElementAdvancedMobileEnabled').attr('checked'); mdata.forceMobile = JQuery('#bfElementAdvancedForceMobile').attr('checked'); mdata.forceMobileUrl = JQuery('#bfElementAdvancedForceMobileUrl').val(); mdata.useDefaultErrors = JQuery('#bfElementAdvancedUseDefaultErrors').attr('checked'); mdata.useBalloonErrors = JQuery('#bfElementAdvancedUseBalloonErrors').attr('checked'); mdata.lastPageThankYou = JQuery('#bfFormLastPageThankYou').attr('checked'); mdata.rollover = JQuery('#bfElementAdvancedRollover').attr('checked'); mdata.rolloverColor = JQuery('#bfElementAdvancedRolloverColor').val(); mdata.toggleFields = JQuery('#bfElementAdvancedToggleFields').val(); var pagesSize = JQuery('#bfQuickModeRoot').children("ul").children("li").size(); if(mdata.lastPageThankYou && pagesSize > 1){ mdata.submittedScriptCondidtion = 2; mdata.submittedScriptCode = 'function ff_'+mdata.name+'_submitted(status, message){if(status==0){ff_switchpage('+pagesSize+');}else{alert(message);}}'; } else { mdata.submittedScriptCondidtion = -1; } item.properties = mdata; } } }; this.populateFormProperties = function(){ if(appScope.selectedTreeElement){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ // setting the node's data var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ item.data.title = mdata.title; JQuery('#bfFormTitleTrans').val(typeof mdata['title_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['title_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfElementAdvancedFadeIn').attr('checked', mdata.fadeIn); JQuery('#bfFormLastPageThankYou').attr('checked', mdata.lastPageThankYou); JQuery('#bfElementAdvancedUseErrorAlerts').attr('checked', mdata.useErrorAlerts); JQuery('#bfElementAdvancedDisableJQuery').attr('checked', mdata.disableJQuery); JQuery('#bfElementAdvancedJoomlaHint').attr('checked', mdata.joomlaHint); JQuery('#bfElementAdvancedMobileEnabled').attr('checked', mdata.mobileEnabled); JQuery('#bfElementAdvancedForceMobile').attr('checked', mdata.forceMobile); JQuery('#bfElementAdvancedForceMobileUrl').val(mdata.forceMobileUrl); JQuery('#bfElementAdvancedUseDefaultErrors').attr('checked', mdata.useDefaultErrors); JQuery('#bfElementAdvancedUseBalloonErrors').attr('checked', mdata.useBalloonErrors); if(mdata.submitInclude){ JQuery('#bfSubmitIncludeYes').attr('checked', true); JQuery('#bfSubmitIncludeNo').attr('checked', false); }else{ JQuery('#bfSubmitIncludeYes').attr('checked', false); JQuery('#bfSubmitIncludeNo').attr('checked', true); } if(mdata.themebootstrapLabelTop){ JQuery('#bfThemeBootstrapLabelTopYes').attr('checked', true); JQuery('#bfThemeBootstrapLabelTopNo').attr('checked', false); }else{ JQuery('#bfThemeBootstrapLabelTopYes').attr('checked', false); JQuery('#bfThemeBootstrapLabelTopNo').attr('checked', true); } if(typeof JQuery('#bfThemeBootstrapUseLegacyYes').get(0) != "undefined" && mdata.themeusebootstraplegacy){ JQuery('#bfThemeBootstrapUseLegacyYes').attr('checked', true); JQuery('#bfThemeBootstrapUseLegacyNo').attr('checked', false); }else if(typeof JQuery('#bfThemeBootstrapUseLegacyYes').get(0) != "undefined"){ JQuery('#bfThemeBootstrapUseLegacyYes').attr('checked', false); JQuery('#bfThemeBootstrapUseLegacyNo').attr('checked', true); } if(mdata.themebootstrapThemeEngine == 'bootstrap'){ JQuery('#bfThemeBootstrapThemeBootstrap').attr('checked', true); JQuery('#bfThemeBootstrapThemeBreezingForms').attr('checked', false); JQuery('#bfThemeBootstrapDiv').css("display","block"); JQuery('#bfThemeBreezingFormsDiv').css("display","none"); // disable rollover JQuery("#bfRollOverToggle").css("display","none"); // disable label positions JQuery("#bfLabelPositionToggle").css("display","none"); // disable fading JQuery("#bfFadingEffectToggle").css("display","none"); }else{ JQuery('#bfThemeBootstrapThemeBootstrap').attr('checked', false); JQuery('#bfThemeBootstrapThemeBreezingForms').attr('checked', true); JQuery('#bfThemeBootstrapDiv').css("display","none"); JQuery('#bfThemeBreezingFormsDiv').css("display","block"); } if(mdata.themebootstrapUseHeroUnit){ JQuery('#bfThemeBootstrapUseHeroUnitYes').attr('checked', true); JQuery('#bfThemeBootstrapUseHeroUnitNo').attr('checked', false); }else{ JQuery('#bfThemeBootstrapUseHeroUnitYes').attr('checked', false); JQuery('#bfThemeBootstrapUseHeroUnitNo').attr('checked', true); } if(mdata.themebootstrapUseWell){ JQuery('#bfThemeBootstrapUseWellYes').attr('checked', true); JQuery('#bfThemeBootstrapUseWellNo').attr('checked', false); }else{ JQuery('#bfThemeBootstrapUseWellYes').attr('checked', false); JQuery('#bfThemeBootstrapUseWellNo').attr('checked', true); } if(mdata.themebootstrapUseProgress){ JQuery('#bfThemeBootstrapUseProgressYes').attr('checked', true); JQuery('#bfThemeBootstrapUseProgressNo').attr('checked', false); }else{ JQuery('#bfThemeBootstrapUseProgressYes').attr('checked', false); JQuery('#bfThemeBootstrapUseProgressNo').attr('checked', true); } JQuery('#bfFormSubmitLabel').val( mdata.submitLabel ); JQuery('#bfFormSubmitLabelTrans').val(typeof mdata['submitLabel_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['submitLabel_translation<?php echo $active_language_code; ?> '] : ""); if(mdata.cancelInclude){ JQuery('#bfCancelIncludeYes').attr('checked', true); JQuery('#bfCancelIncludeNo').attr('checked', false); }else{ JQuery('#bfCancelIncludeYes').attr('checked', false); JQuery('#bfCancelIncludeNo').attr('checked', true); } JQuery('#bfFormCancelLabel').val( mdata.cancelLabel ); JQuery('#bfFormCancelLabelTrans').val(typeof mdata['cancelLabel_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['cancelLabel_translation<?php echo $active_language_code; ?> '] : ""); if(mdata.pagingInclude){ JQuery('#bfPagingIncludeYes').attr('checked', true); JQuery('#bfPagingIncludeNo').attr('checked', false); }else{ JQuery('#bfPagingIncludeYes').attr('checked', false); JQuery('#bfPagingIncludeNo').attr('checked', true); } JQuery('#bfFormPagingNextLabel').val( mdata.pagingNextLabel ); JQuery('#bfFormPagingNextLabelTrans').val(typeof mdata['pagingNextLabel_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['pagingNextLabel_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfFormPagingPrevLabel').val( mdata.pagingPrevLabel ); JQuery('#bfFormPagingPrevLabelTrans').val(typeof mdata['pagingPrevLabel_translation<?php echo $active_language_code; ?> '] != "undefined" ? mdata['pagingPrevLabel_translation<?php echo $active_language_code; ?> '] : ""); JQuery('#bfTheme').val( mdata.theme ); JQuery('#bfThemeBootstrap').val( mdata.themebootstrap ); JQuery('#bfThemeBootstrapBefore').val( mdata.themebootstrap ); JQuery('#bfElementAdvancedRollover').attr('checked', mdata.rollover); JQuery('#bfElementAdvancedRolloverColor').val(mdata.rolloverColor); JQuery('#bfElementAdvancedToggleFields').val(mdata.toggleFields); } } } }; /** Page Properties */ this.savePageProperties = function(){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ item.properties = mdata; } } }; this.populatePageProperties = function(){ if(appScope.selectedTreeElement){ var mdata = appScope.getProperties(appScope.selectedTreeElement); if(mdata){ // setting the node's data var item = appScope.findDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), appScope.dataObject); if(item){ // no properties yet to set } } } }; /** Main application */ this.toggleProperties = function (property){ JQuery('.bfProperties').css('display', 'none'); JQuery('#'+property).css('display', ''); }; this.toggleAdvanced = function (property){ JQuery('.bfAdvanced').css('display', 'none'); JQuery('#'+property).css('display', ''); }; JQuery('#bfElementExplorer').tree( { ui : { theme_name : "apple", context: [ { id : 'copy', label : 'Copy', visible : function (NODE, TREE_OBJ) { var source = appScope.findDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); if(source.attributes['class'] == 'bfQuickModeSectionClass' || source.attributes['class'] == 'bfQuickModeElementClass'){ return true; } return false; }, action : function (NODE, TREE_OBJ) { var source = appScope.findDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); if(source.attributes['class'] == 'bfQuickModeSectionClass' || source.attributes['class'] == 'bfQuickModeElementClass'){ if(source && source.attributes && source.attributes.id){ appScope.copyTreeElement = source; } } } }, { id : 'paste', label : 'Paste', visible : function (NODE, TREE_OBJ) { if(appScope.copyTreeElement){ var target = appScope.findDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); if(target.attributes['class'] == 'bfQuickModeSectionClass' || target.attributes['class'] == 'bfQuickModePageClass'){ return true; } return false; } return false; }, action : function (NODE, TREE_OBJ) { if(appScope.copyTreeElement){ var target = appScope.findDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); if(target.attributes['class'] == 'bfQuickModeSectionClass' || target.attributes['class'] == 'bfQuickModePageClass'){ appScope.insertElementInto(clone_obj(appScope.copyTreeElement), target); setTimeout("JQuery.tree_reference('bfElementExplorer').refresh()", 10); // give it time to close the context menu } } } }, { id : "delete", label : "Delete", icon : "remove.png", visible : function (NODE, TREE_OBJ) { var ok = true; JQuery.each(NODE, function () { if(TREE_OBJ.check("deletable", this) == false) ok = false; return false; }); return ok; }, action : function (NODE, TREE_OBJ) { JQuery.each(NODE, function () { TREE_OBJ.remove(this); }); } } ] }, selected : 'bfQuickModeRoot', callback: { onselect : function(node,obj) { appScope.selectedTreeElement = node; JQuery('#bfPropertySaveButton').css('display',''); JQuery('#bfPropertySaveButtonTop').css('display',''); JQuery('#bfAdvancedSaveButton').css('display',''); JQuery('#bfAdvancedSaveButtonTop').css('display',''); switch( appScope.getNodeClass(node) ) { case 'bfQuickModeRootClass': appScope.toggleProperties('bfFormProperties'); appScope.toggleAdvanced('bfFormAdvanced'); appScope.populateFormProperties(); break; case 'bfQuickModeSectionClass': appScope.toggleProperties('bfSectionProperties'); appScope.toggleAdvanced('bfSectionAdvanced'); appScope.populateSectionProperties(); //JQuery('#bfAdvancedSaveButton').css('display','none'); //JQuery('#bfAdvancedSaveButtonTop').css('display','none'); break; case 'bfQuickModeElementClass': appScope.toggleProperties('bfElementProperties'); appScope.toggleAdvanced('bfElementAdvanced'); appScope.populateSelectedElementProperties(); break; case 'bfQuickModePageClass': appScope.toggleProperties('bfPageProperties'); appScope.toggleAdvanced('bfPageAdvanced'); appScope.populatePageProperties(); JQuery('#bfAdvancedSaveButton').css('display','none'); JQuery('#bfAdvancedSaveButtonTop').css('display','none'); break; } }, onload : function(obj) { }, onopen : function(NODE, TREE_OBJ) { var source = appScope.findDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); source.state = 'open'; }, onclose : function(NODE, TREE_OBJ) { var source = appScope.findDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); source.state = 'close'; }, ondelete : function(NODE, TREE_OBJ,RB) { appScope.selectedTreeElement = null; appScope.deleteDataObjectItem( JQuery(NODE).attr('id'), appScope.dataObject ); var target = appScope.findDataObjectItem( JQuery('#bfQuickModeRoot').attr('id'), appScope.dataObject ); if(target && !target.children){ target.children = new Array(); } // restoring page numbers if(target && target.children){ if(target.attributes['class'] == 'bfQuickModeRootClass'){ for(var i = 0; i < target.children.length; i++){ if(target.children[i].attributes['class'] == 'bfQuickModePageClass'){ var mdata = appScope.getProperties(JQuery('#'+target.children[i].attributes.id)); if(mdata){ target.children[i].attributes.id = 'bfQuickModePage' + (i+1); target.children[i].data.title = "<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_PAGE')); ?> " + (i+1); target.children[i].properties.pageNumber = i + 1; } } } // taking care of last page as thank you page var pagesSize = target.children.length; if(target.properties.lastPageThankYou && pagesSize > 1){ target.properties.submittedScriptCondidtion = 2; target.properties.submittedScriptCode = 'function ff_'+target.properties.name+'_submitted(status, message){if(status==0){ff_switchpage('+pagesSize+');}else{alert(message);}}'; } else { target.properties.submittedScriptCondidtion = -1; } } } setTimeout("JQuery.tree_reference('bfElementExplorer').refresh()", 10); // give it time to close the context menu }, onmove : function(NODE,REF_NODE,TYPE,TREE_OBJ,RB){ var parent = JQuery.tree_reference('bfElementExplorer').parent(NODE); if(!parent){ parent = '#bfQuickModeRoot'; } children = parent.children("ul").children("li"); if( children && children.length && children.length > 0 ){ for(var i = 0; i < children.length; i++){ if(JQuery(NODE).attr('id') == children[i].id){ appScope.moveDataObjectItem( JQuery(NODE).attr('id'), JQuery(parent).attr('id'), i, appScope.dataObject ); break; } } } JQuery.tree_reference('bfElementExplorer').refresh(); } }, rules : { metadata : 'mdata', use_inline : true, deletable : 'none', creatable : 'none', renameable : 'none', draggable : ['section', 'element', 'page'], dragrules : [ 'element inside section', 'section inside section', 'element inside page', 'section inside page', 'element after element', 'element before element', 'element after section', 'element before section', 'section after element', 'section before element', 'section after section', 'section before section', 'page before page', 'page after page' ] }, data : { type : "json", json : [appScope.dataObject] } } ); this.saveButton = function(){ var error = false; if(appScope.selectedTreeElement){ switch( appScope.getNodeClass(appScope.selectedTreeElement) ) { case 'bfQuickModeRootClass': if(JQuery.trim(JQuery('#bfFormTitle').val()) == ''){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_TITLE')); ?> "); error = true; } if(JQuery.trim(JQuery('#bfFormName').val()) == ''){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_NAME')); ?> "); error = true; } var myRegxp = /^([a-zA-Z0-9_]+)$/; if(!myRegxp.test(JQuery('#bfFormName').val())){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_NAME_CHARACTERS')); ?> "); error = true; } if(!error) { appScope.saveFormProperties(); } break; case 'bfQuickModeSectionClass': if(JQuery.trim(JQuery('#bfSectionName').val()) == ''){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_NAME')); ?> "); error = true; } if(!error) { appScope.saveSectionProperties(); } break; case 'bfQuickModeElementClass': if(JQuery.trim(JQuery('#bfElementLabel').val()) == ''){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_LABEL')); ?> "); error = true; } if(JQuery.trim(JQuery('#bfElementName').val()) == ''){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_NAME')); ?> "); error = true; } var myRegxp = /^([a-zA-Z0-9_]+)$/; if(!myRegxp.test(JQuery('#bfElementName').val())){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_ENTER_NAME_CHARACTERS')); ?> "); error = true; } var items = new Array(); appScope.getItemsFlattened(appScope.dataObject, items); for(var i = 0; i < items.length;i++){ if(JQuery(appScope.selectedTreeElement).attr('id') != items[i].attributes.id && JQuery.trim(items[i].properties.bfName) == JQuery.trim(JQuery('#bfElementName').val())){ alert("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_ERROR_NAME_EXISTS')); ?> " + " " + JQuery.trim(JQuery('#bfElementName').val()) + " ("+JQuery.trim(JQuery('#bfElementLabel').val())+")"); error = true; } } if(!error) { appScope.saveSelectedElementProperties(); } case 'bfQuickModePageClass': appScope.savePageProperties(); break; } if(!error){ // TODO: remove the 2nd refresh if found out why this works only on the 2nd JQuery.tree_reference('bfElementExplorer').refresh(); JQuery.tree_reference('bfElementExplorer').refresh(); JQuery(".bfFadingMessage").html("<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_SETTINGS_UPDATED')); ?> "); JQuery(".bfFadingMessage").fadeIn(1000); setTimeout('JQuery(".bfFadingMessage").fadeOut(1000);',1500); } } return !error; }; JQuery('#bfPropertySaveButton').click( appScope.saveButton ); JQuery('#bfPropertySaveButtonTop').click( appScope.saveButton ); JQuery('#bfAdvancedSaveButton').click( appScope.saveButton ); JQuery('#bfAdvancedSaveButtonTop').click( appScope.saveButton ); JQuery('#bfNewSectionButton').click( function(){ var id = "bfQuickModeSection" + ( Math.floor(Math.random() * 100000) ); var obj = { attributes : { "class" : 'bfQuickModeSectionClass', id : id, mdata : JQuery.toJSON( { deletable : true, type: 'section' } ) }, properties : { bfType : 'normal', type: 'section', displayType: 'breaks', title: "untitled section", name: id, description: '', off : false } , state: "open", data: { title: "untitled section", icon : '<?php echo $iconBase . 'icon_section.png'; ?> '}, children : [] }; appScope.createTreeItem(obj); JQuery.tree_reference('bfElementExplorer').select_branch(JQuery('#'+id)); } ); JQuery('#bfElementType').change( function(){ var obj = null; var id = "bfQuickMode" + ( Math.floor(Math.random() * 10000000) ); var selected = JQuery('#bfElementType').val(); switch(selected){ case 'bfElementTypeText': obj = appScope.createTextfield(id); break; case 'bfElementTypeRadioGroup': obj = appScope.createRadioGroup(id); break; case 'bfElementTypeCheckboxGroup': obj = appScope.createCheckboxGroup(id); break; case 'bfElementTypeCheckbox': obj = appScope.createCheckbox(id); break; case 'bfElementTypeSelect': obj = appScope.createSelect(id); break; case 'bfElementTypeTextarea': obj = appScope.createTextarea(id); break; case 'bfElementTypeFile': obj = appScope.createFile(id); break; case 'bfElementTypeSubmitButton': obj = appScope.createSubmitButton(id); break; case 'bfElementTypeHidden': obj = appScope.createHidden(id); break; case 'bfElementTypeSummarize': obj = appScope.createSummarize(id); break; case 'bfElementTypeCaptcha': obj = appScope.createCaptcha(id); break; case 'bfElementTypeReCaptcha': obj = appScope.createReCaptcha(id); break; case 'bfElementTypeCalendar': obj = appScope.createCalendar(id); break; case 'bfElementTypeCalendarResponsive': obj = appScope.createCalendarResponsive(id); break; case 'bfElementTypePayPal': obj = appScope.createPayPal(id); break; case 'bfElementTypeSofortueberweisung': obj = appScope.createSofortueberweisung(id); break; } if(obj){ appScope.replaceDataObjectItem(JQuery(appScope.selectedTreeElement).attr('id'), obj, appScope.dataObject); JQuery.tree_reference('bfElementExplorer').refresh(); JQuery.tree_reference('bfElementExplorer').select_branch(JQuery('#'+id)); } } ); this.setActionScriptDescription = function(){ for(var i = 0; i < appScope.elementScripts.action.length;i++){ if(JQuery('#bfActionsScriptSelection').val() == appScope.elementScripts.action[i].id){ JQuery('#bfActionsScriptSelectionDescription').text(appScope.elementScripts.action[i].description); } } }; JQuery('#bfActionsScriptSelection').change( function(){ appScope.setActionScriptDescription(); } ); this.setInitScriptDescription = function(){ for(var i = 0; i < appScope.elementScripts.init.length;i++){ if(JQuery('#bfInitScriptSelection').val() == appScope.elementScripts.init[i].id){ JQuery('#bfInitSelectionDescription').text(appScope.elementScripts.init[i].description); } } }; JQuery('#bfInitScriptSelection').change( function(){ appScope.setInitScriptDescription(); } ); this.setValidationScriptDescription = function(){ for(var i = 0; i < appScope.elementScripts.validation.length;i++){ if(JQuery('#bfValidationScriptSelection').val() == appScope.elementScripts.validation[i].id){ JQuery('#bfValidationScriptSelectionDescription').text(appScope.elementScripts.validation[i].description); } } }; JQuery('#bfValidationScriptSelection').change( function(){ appScope.setValidationScriptDescription(); } ); JQuery('#bfNewElementButton').click( function(){ var id = "bfQuickMode" + ( Math.floor(Math.random() * 10000000) ); var obj = appScope.createTextfield(id); appScope.createTreeItem(obj); JQuery.tree_reference('bfElementExplorer').select_branch(JQuery('#'+id)); } ); JQuery('#bfNewPageButton').click( function(){ var pageNumber = JQuery('#bfQuickModeRoot').children("ul").children("li").size() == 0 ? 1 : JQuery('#bfQuickModeRoot').children("ul").children("li").size() + 1; var id = "bfQuickModePage" + pageNumber; // taking care of thank you page if a new page is added var item = appScope.findDataObjectItem('bfQuickModeRoot', appScope.dataObject); var pagesSize = JQuery('#bfQuickModeRoot').children("ul").children("li").size(); if(item.properties.lastPageThankYou && pagesSize > 0){ item.properties.submittedScriptCondidtion = 2; item.properties.submittedScriptCode = 'function ff_'+item.properties.name+'_submitted(status, message){if(status==0){ff_switchpage('+(pagesSize+1)+');}else{alert(message);}}'; } else { item.properties.submittedScriptCondidtion = -1; } var obj = { attributes : { "class" : 'bfQuickModePageClass', id : id, mdata : JQuery.toJSON( { deletable : true, type : 'page' } ) }, properties: { type : 'page', pageNumber : pageNumber, pageIntro : '' }, state: "open", data: { title: "<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_PAGE')); ?> " + pageNumber, icon: '<?php echo $iconBase . 'icon_page.png'; ?> '}, children : [] }; appScope.createTreeItem(obj); JQuery.tree_reference('bfElementExplorer').select_branch(JQuery('#'+id)); } ); JQuery('#menutab').tabs( { select: function(e, ui){ } } ); } JQuery(document).ready(function() { JQuery('.bfTrans').css("display", "none"); app = new BF_QuickModeApp(); var mdata = app.getProperties(app.selectedTreeElement); if(mdata){ var item = app.findDataObjectItem('bfQuickModeRoot', app.dataObject); if(item){ mdata.title = "<?php echo addslashes($formTitle); ?> "; mdata.name = "<?php echo addslashes($formName); ?> "; mdata.description = "<?php echo addslashes(str_replace("\n", '', str_replace("\r", '', $formDesc))); ?> "; mdata.mailRecipient = "<?php echo addslashes($formEmailadr); ?> "; mdata.mailNotification = "<?php echo addslashes($formEmailntf) == 2 ? true : false; ?> "; item.properties = mdata; } } }); function createInitCode() { var mdata = app.getProperties(app.selectedTreeElement); if(mdata){ form = document.bfForm; name = mdata.bfName; if (name=='') { alert('Please enter the element name first.'); return; } // if if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CREAINIT'); ?> \n<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_EXISTAPP'); ?> ")) return; code = "function ff_"+name+"_init(element, condition)\n"+ "{\n"+ " switch (condition) {\n"; if (form.bfInitFormEntry.checked) code += " case 'formentry':\n"+ " break;\n"; if (form.bfInitPageEntry.checked) code += " case 'pageentry':\n"+ " break;\n"; code += " default:;\n"+ " } // switch\n"+ "} // ff_"+name+"_init\n"; oldcode = form.bfInitCode.value; if (oldcode != '') form.bfInitCode.value = code+ "\n// -------------- <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_OLDBELOW'); ?> --------------\n\n"+ oldcode; else form.bfInitCode.value = code; } } // createInitCode function createValidationCode() { var mdata = app.getProperties(app.selectedTreeElement); if(mdata){ form = document.bfForm; name = mdata.bfName; if (name=='') { alert('Please enter the element name first.'); return; } // if if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CREAVALID'); ?> \n<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_EXISTAPP'); ?> ")) return; code = "function ff_"+name+"_validation(element, message)\n"+ "{\n"+ " if (element_fails_my_test) {\n"+ " if (message=='') message = element.name+\" faild in my test.\\n\"\n"+ " ff_validationFocus(element.name);\n"+ " return message;\n"+ " } // if\n"+ " return '';\n"+ "} // ff_"+name+"_validation\n"; oldcode = form.bfValidationCode.value; if (oldcode != '') form.bfValidationCode.value = code+ "\n// -------------- <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_OLDBELOW'); ?> --------------\n\n"+ oldcode; else form.bfValidationCode.value = code; } } // createValidationCode function createActionCode(element) { var mdata = app.getProperties(app.selectedTreeElement); if(mdata){ form = document.bfForm; name = mdata.bfName; if (name=='') { alert('Please enter the element name first.'); return; } // if if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CREAACTION'); ?> \n<?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_EXISTAPP'); ?> ")) return; code = "function ff_"+name+"_action(element, action)\n"+ "{\n"+ " switch (action) {\n"; if (form.bfActionClick) if (form.bfActionClick.checked) code += " case 'click':\n"+ " break;\n"; if (form.bfActionBlur) if (form.bfActionBlur.checked) code += " case 'blur':\n"+ " break;\n"; if (form.bfActionChange) if (form.bfActionChange.checked) code += " case 'change':\n"+ " break;\n"; if (form.bfActionFocus) if (form.bfActionFocus.checked) code += " case 'focus':\n"+ " break;\n"; if (form.bfActionSelect) if (form.bfActionSelect.checked) code += " case 'select':\n"+ " break;\n"; code += " default:;\n"+ " } // switch\n"+ "} // ff_"+name+"_action\n"; oldcode = form.bfActionCode.value; if (oldcode != '') form.bfActionCode.value = code+ "\n// -------------- <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_OLDBELOW'); ?> --------------\n\n"+ oldcode; else form.bfActionCode.value = code; } } // createActionCode function postTheStuff(){ JQuery.ajax({ type: 'POST', url: 'index.php', data: { option: 'com_breezingforms', act: "quickmode", task: "doAjaxSave", form: document.adminForm.form.value, chunksLength: chunks.length, chunkIdx: chunki, chunk: chunks[chunki], rndAdd: rndAdd, format: 'html' }, success: function(data){ if(data != '' && data != 0 && !isNaN(data)){ document.adminForm.form.value = data; document.adminForm.submit(); } else if(data == '') { JQuery("#bfSaveQueue").get(0).innerHTML = "<?php echo addslashes(BFText::_('COM_BREEZINGFORMS_LOAD_PACKAGE')); ?> " + (chunki+1) + " <?php echo addslashes(BFText::_('COM_BREEZINGFORMS_LOAD_PACKAGE_OF')); ?> " + (chunks.length - 1); chunki++; setTimeout(postTheStuff, 100); } }, error: function(){ JQuery("#bfSaveQueue").get(0).innerHTML = 'connection problem, trying again in 120 seconds, please wait...'; var secs = 120; var clear = null; clear = setInterval( function(){ JQuery("#bfSaveQueue").get(0).innerHTML = 'connection problem, trying again in '+secs+' seconds, please wait...'; secs--; if(secs <= 0){ clearInterval(clear); setTimeout(postTheStuff, 100); } } ,1000); }, async: false }); } var chunki = 0; var rndAdd = Math.random(); var chunks = new Array(); var saveButtonClicked = false; var bf_submitbutton = function (pressbutton) { var form = document.adminForm; switch (pressbutton) { case 'close': location.href="index.php?option=com_breezingforms&act=manageforms"; break; case 'save': if(!app.saveButton()){ saveButtonClicked = false; return; } if(saveButtonClicked){ return; } saveButtonClicked = true; form.task.value = 'save'; form.act.value = 'quickmode'; var cVal = JQuery.base64Encode( JQuery.toJSON( app.dataObject ) ); JQuery.ajaxSetup({async:false}); rndAdd = Math.random(); chunks = new Array(); var chunk = ''; if(cVal.length > 10000){ var cnt = 0; for( var i = 0; i < cVal.length; i++ ){ chunk += cVal[i]; cnt++; if( cnt == 20000 || ( i+1 == cVal.length && cnt+1 < 20000 ) ){ chunks.push(chunk); chunk = ''; cnt = 0; } } }else{ chunks.push(cVal); } if(chunks.length > 1){ JQuery("#bfSaveQueue").css("display",""); JQuery("#bfSaveQueue").bfcenter(); JQuery("#bfSaveQueue").css("visibility","visible"); } postTheStuff(); break; case 'preview': SqueezeBox.initialize({}); SqueezeBox.loadModal = function(modalUrl,handler,x,y) { this.presets.size.x = 870; this.initialize(); var options = JQuery.toJSON("{handler: \'" + handler + "\', size: {x: " + x +", y: " + y + "}}"); this.setOptions(this.presets, options); this.assignOptions(); this.setContent(handler,modalUrl); }; SqueezeBox.loadModal("<?php echo JURI::root(); ?> index.php?format=html&tmpl=component&option=com_breezingforms&ff_form=<?php echo $formId; ?> &ff_page=1","iframe",820,400); break; case 'preview_site': SqueezeBox.initialize({}); SqueezeBox.loadModal = function(modalUrl,handler,x,y) { this.presets.size.x = 1024; this.initialize(); var options = JQuery.toJSON("{handler: \'" + handler + "\', size: {x: " + x +", y: " + y + "}}"); this.setOptions(this.presets, options); this.assignOptions(); this.setContent(handler,modalUrl); }; SqueezeBox.loadModal("<?php echo JURI::root(); ?> index.php?option=com_breezingforms&ff_form=<?php echo $formId; ?> &ff_page=1","iframe",820,400); break; } }; if(typeof Joomla != "undefined"){ Joomla.submitbutton = bf_submitbutton; }else{ submitbutton = bf_submitbutton; } function addslashes( str ) { return (str+'').replace(/([\\"'])/g, "\\$1").replace(/\0/g, "\\0"); } function clone_obj(obj) { var c = obj instanceof Array ? [] : {}; for (var i in obj) { var prop = obj[i]; if (typeof prop == 'object') { if (prop instanceof Array) { c[i] = []; for (var j = 0; j < prop.length; j++) { if (typeof prop[j] != 'object') { c[i].push(prop[j]); } else { c[i].push(clone_obj(prop[j])); } } } else { c[i] = clone_obj(prop); } } else { c[i] = prop; } } return c; } </script> <div style="float:left; margin-right: 3px;"> <?php JToolBarHelper::custom('save', 'save.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_QUICKMODE_SAVE'), false); ?> <?php if ($formId != 0) { JToolBarHelper::custom('preview', 'publish.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_QUICKMODE_PREVIEW'), false); JToolBarHelper::custom('preview_site', 'publish.png', 'save_f2.png', BFText::_('COM_BREEZINGFORMS_SITE_PREVIEW'), false); } ?> <?php JToolBarHelper::title('<img src="' . JURI::root() . 'administrator/components/com_breezingforms/libraries/jquery/themes/easymode/i/logo-breezingforms.png' . '" align="top"/>'); ?> <?php JToolBarHelper::custom('close', 'cancel.png', 'cancel_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_QUICKMODE_CLOSE'), false); ?> <form action="index.php" method="post" name="adminForm" id="adminForm"> <input type="hidden" name="option" value="com_breezingforms" /> <input type="hidden" name="act" value="quickmode" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="form" value="<?php echo $formId; ?> " /> <input type="hidden" name="active_language_code" value="<?php echo $active_language_code; ?> " /> <input type="hidden" name="sizeTplCode" value="0" /> </form> </div> <?php if (version_compare($version->getShortVersion(), '1.6', '>=') && version_compare($version->getShortVersion(), '3.0', '<')) { ?> <link rel="stylesheet" href="<?php echo JURI::root(true); ?> /administrator/components/com_breezingforms/admin/bluestork.fix.css" type="text/css" /> <?php } $menutabcss = 'width: 100%;'; if (version_compare($version->getShortVersion(), '3.0', '>=')) { $menutabcss = 'width: 100%;'; } ?> <style type="text/css"> #bfQuickModeRight #menutab { <?php echo $menutabcss; ?> } </style> <?php //echo bf_alert('Get BreezingForms Full Version', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); //echo bf_alert('More features, no footers, no messages', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <br/> <br/> <?php if ($formId > 0 && version_compare($version->getShortVersion(), '2.5', '>=') && count(JLanguageHelper::getLanguages()) > 1) { if ($active_language_code != '' && $active_language_code != JFactory::getLanguage()->getDefault()) { ?> <script type="text/javascript"> JQuery(document).ready(function(){ JQuery('.bfTrans').css("display", "block"); }); </script> <?php } ?> <?php echo bf_alert('Custom languages in full version, only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <div class="bfLanguageButton<?php echo $active_language_code == JFactory::getLanguage()->getDefault() || $active_language_code == '' ? ' bfLanguageButtonActive' : ''; ?> "><?php echo JFactory::getLanguage()->getDefault(); ?> </div> <?php $languages = JLanguageHelper::getLanguages(); foreach ($languages as $language) { if ($language->lang_code != JFactory::getLanguage()->getDefault()) { ?> <div class="bfLanguageButton<?php echo $active_language_code == $language->lang_code ? ' bfLanguageButtonActive' : ''; ?> "><?php echo $language->lang_code; ?> </div> <?php } } $active_language_code = ''; } ?> <div style="display:none;visibility:hidden;" id="bfSaveQueue"></div> <div id="bfQuickModeWrapper" class="bfClearfix"> <div id="bfQuickModeLeft" class="bfClearfix"> <form id="newStuffBar" onsubmit="return false;"> <input class="btn btn-warning" id="bfNewPageButton" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_NEW_PAGE'); ?> "/> <input class="btn btn-warning" id="bfNewSectionButton" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_NEW_SECTION'); ?> "/> <input class="btn btn-warning" id="bfNewElementButton" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_NEW_ELEMENT'); ?> "/> </form> <div id="bfElementExplorer"></div> </div> <!-- ##### bfQuickModeLeft end ##### --> <div id="bfQuickModeRight" class="bfClearfix"> <form name="bfForm" onsubmit="return false"> <div id="menutab" class="flora"> <ul> <li><a onclick="JQuery('.bfFadingMessage').css('display','none')" href="#fragment-1"><span><div class="tab-items"><?php echo BFText::_('COM_BREEZINGFORMS_PROPERTIES'); ?> </div></span></a></li> <li><a onclick="JQuery('.bfFadingMessage').css('display','none')" href="#fragment-2"><span><div class="tab-element"><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED'); ?> </div></span></a></li> </ul> <div class="t"> <div class="t"> <div class="t"></div> </div> </div> <div class="m"> <div id="fragment-1"> <div> <br/> <div class="bfFadingMessage" style="display:none"></div> <input type="submit" class="btn btn-secondary" value="<?php echo BFText::_('COM_BREEZINGFORMS_PROPERTIES_SAVE'); ?> " id="bfPropertySaveButtonTop"/> <!-- FORM PROPERTIES BEGIN --> <div class="bfProperties" id="bfFormProperties" style="display:none"> <br/> <fieldset> <legend><?php echo BFText::_('COM_BREEZINGFORMS_FORM_PROPERTIES'); ?> </legend> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_TITLE')); ?> " for="bfFormTitle"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_TITLE'); ?> </label> <input type="text" value="<?php echo htmlentities($formTitle, ENT_QUOTES, 'UTF-8'); ?> " id="bfFormTitle"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_TITLE')); ?> " for="bfFormTitleTrans"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_TITLE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfFormTitleTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_NAME')); ?> " for="bfFormName"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_NAME'); ?> </label> <input type="text" value="<?php echo htmlentities($formName, ENT_QUOTES, 'UTF-8'); ?> " id="bfFormName"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_DESCRIPTION')); ?> " for="bfFormDescription"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_DESC'); ?> </label> <textarea id="bfFormDescription"><?php echo htmlentities($formDesc, ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_LASTPAGE')); ?> " for="bfFormLastPageThankYou"><?php echo BFText::_('COM_BREEZINGFORMS_LAST_PAGE_THANK_YOU'); ?> </label> <input type="checkbox" value="" id="bfFormLastPageThankYou"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_EMAIL_NOTIFICATION')); ?> "" for="bfFormMailNotification"><?php echo BFText::_('COM_BREEZINGFORMS_MAIL_NOTIFICATION'); ?> </label> <input <?php echo $formEmailntf == 2 ? 'checked="checked"' : ''; ?> type="checkbox" value="<?php echo htmlentities($formEmailntf, ENT_QUOTES, 'UTF-8'); ?> " id="bfFormMailNotification"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_EMAIL_NOTIFICATION_ADDRESS')); ?> " for="bfFormMailRecipient"><?php echo BFText::_('COM_BREEZINGFORMS_MAIL_RECIPIENT'); ?> </label> <input type="text" value="<?php echo htmlentities($formEmailadr, ENT_QUOTES, 'UTF-8'); ?> " id="bfFormMailRecipient"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_SUBMIT_INCLUDE')); ?> " for="bfSubmitIncludeYes"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_SUBMIT_INCLUDE'); ?> </label> <input checked="checked" type="radio" name="bfSubmitInclude" value="" id="bfSubmitIncludeYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="bfSubmitInclude" value="" id="bfSubmitIncludeNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_SUBMIT_LABEL')); ?> " for="bfFormSubmitLabel"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_SUBMIT_LABEL'); ?> </label> <input type="text" value="save" id="bfFormSubmitLabel"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_SUBMIT_LABEL')); ?> " for="bfFormSubmitLabelTrans"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_SUBMIT_LABEL'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="save" id="bfFormSubmitLabelTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_PAGING_INCLUDE')); ?> " for="bfPagingIncludeYes"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_PAGING_INCLUDE'); ?> </label> <input checked="checked" type="radio" name="bfPagingInclude" value="" id="bfPagingIncludeYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="bfPagingInclude" value="" id="bfPagingIncludeNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_PAGING_NEXT_LABEL')); ?> " for="bfFormPagingNextLabel"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_PAGING_NEXT_LABEL'); ?> </label> <input type="text" value="next" id="bfFormPagingNextLabel"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_PAGING_NEXT_LABEL')); ?> " for="bfFormPagingNextLabelTrans"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_PAGING_NEXT_LABEL'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="next" id="bfFormPagingNextLabelTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_PAGING_PREV_LABEL')); ?> " for="bfFormPagingPrevLabel"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_PAGING_PREV_LABEL'); ?> </label> <input type="text" value="back" id="bfFormPagingPrevLabel"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_PAGING_PREV_LABEL')); ?> " for="bfFormPagingPrevLabelTrans"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_PAGING_PREV_LABEL'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="back" id="bfFormPagingPrevLabelTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_CANCEL_INCLUDE')); ?> " for="bfCancelIncludeYes"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_CANCEL_INCLUDE'); ?> </label> <input checked="checked" type="radio" name="bfCancelInclude" value="" id="bfCancelIncludeYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="bfCancelInclude" value="" id="bfCancelIncludeNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_CANCEL_LABEL')); ?> " for="bfFormCancelLabel"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_CANCEL_LABEL'); ?> </label> <input type="text" value="reset" id="bfFormCancelLabel"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FORM_CANCEL_LABEL')); ?> " for="bfFormCancelLabelTrans"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_CANCEL_LABEL'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="reset" id="bfFormCancelLabelTrans"/> </div> </fieldset> </div> <!-- FORM PROPERTIES END --> <!-- PAGE PROPERTIES BEGIN --> <div class="bfProperties" id="bfPageProperties" style="display:none"> <br/> <fieldset> <legend><?php echo BFText::_('COM_BREEZINGFORMS_PAGE_PROPERTIES'); ?> </legend> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAGE_INTRO')); ?> " for="bfPageIntro"><?php echo BFText::_('COM_BREEZINGFORMS_PAGE_INTRO'); ?> </label> <a href="index.php?option=com_breezingforms&tmpl=component&act=quickmode_editor" title="<?php echo BFText::_('COM_BREEZINGFORMS_EDIT_INTRO'); ?> " class="modal" rel="{handler: 'iframe', size: {x: 820, y: 400}}"><?php echo BFText::_('COM_BREEZINGFORMS_EDIT_INTRO'); ?> </a> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAGE_INTRO')); ?> " for="bfPageIntroTrans"><?php echo BFText::_('COM_BREEZINGFORMS_PAGE_INTRO'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <a href="index.php?option=com_breezingforms&tmpl=component&act=quickmode_editor&active_language_code=<?php echo $active_language_code; ?> " title="<?php echo BFText::_('COM_BREEZINGFORMS_EDIT_INTRO'); ?> " class="modal" rel="{handler: 'iframe', size: {x: 820, y: 400}}"><?php echo BFText::_('COM_BREEZINGFORMS_EDIT_INTRO'); ?> </a> </div> </fieldset> </div> <!-- PAGE PROPERTIES END --> <!-- SECTION PROPERTIES BEGIN --> <div class="bfProperties" id="bfSectionProperties" style="display:none"> <br/> <fieldset> <legend><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_PROPERTIES'); ?> </legend> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_TYPE')); ?> " for="bfSectionType"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_TYPE'); ?> </label> <select id="bfSectionType"> <option value="normal"><?php echo BFText::_('COM_BREEZINGFORMS_NORMAL'); ?> </option> <option value="section"><?php echo BFText::_('COM_BREEZINGFORMS_FIELDSET'); ?> </option> </select> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_DISPLAY_TYPE')); ?> " for="bfSectionDisplayType"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_DISPLAY_TYPE'); ?> </label> <select id="bfSectionDisplayType"> <option value="inline"><?php echo BFText::_('COM_BREEZINGFORMS_INLINE'); ?> </option> <option value="breaks"><?php echo BFText::_('COM_BREEZINGFORMS_BREAKS'); ?> </option> </select> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_TITLE')); ?> " for="bfSectionTitle"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_TITLE'); ?> </label> <input type="text" value="" id="bfSectionTitle"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_TITLE')); ?> " for="bfSectionTitleTrans"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_TITLE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfSectionTitleTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_NAME')); ?> " for="bfSectionName"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_NAME'); ?> </label> <input type="text" value="" id="bfSectionName"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_DESCRIPTION')); ?> " for="bfSectionDescription"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_DESCRIPTION'); ?> </label> <a href="index.php?option=com_breezingforms&tmpl=component&act=quickmode_editor" title="<?php echo BFText::_('COM_BREEZINGFORMS_EDIT_DESCRIPTION'); ?> " class="modal" rel="{handler: 'iframe', size: {x: 820, y: 400}}"><?php echo BFText::_('COM_BREEZINGFORMS_EDIT_DESCRIPTION'); ?> </a> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_DESCRIPTION')); ?> " for="bfSectionDescriptionTrans"><?php echo BFText::_('COM_BREEZINGFORMS_SECTION_DESCRIPTION'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <a href="index.php?option=com_breezingforms&tmpl=component&act=quickmode_editor&active_language_code=<?php echo $active_language_code; ?> " title="<?php echo BFText::_('COM_BREEZINGFORMS_EDIT_DESCRIPTION'); ?> " class="modal" rel="{handler: 'iframe', size: {x: 820, y: 400}}"><?php echo BFText::_('COM_BREEZINGFORMS_EDIT_DESCRIPTION'); ?> </a> </div> </fieldset> </div> <!-- SECTION PROPERTIES END --> <!-- ELEMENT PROPERTIES BEGIN --> <div class="bfProperties" id="bfElementProperties" style="display:none"> <br/> <fieldset> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TYPE')); ?> " for="bfElementType"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TYPE'); ?> </label> <select id="bfElementType"> <option value=""><?php echo BFText::_('COM_BREEZINGFORMS_CHOOSE_ONE'); ?> </option> <option value="bfElementTypeText"><?php echo BFText::_('COM_BREEZINGFORMS_TEXTFIELD'); ?> </option> <option value="bfElementTypeTextarea"><?php echo BFText::_('COM_BREEZINGFORMS_TEXTAREA'); ?> </option> <option value="bfElementTypeRadioGroup"><?php echo BFText::_('COM_BREEZINGFORMS_RADIO_GROUP'); ?> </option> <option value="bfElementTypeCheckboxGroup"><?php echo BFText::_('COM_BREEZINGFORMS_CHECKBOX_GROUP'); ?> </option> <option value="bfElementTypeCheckbox"><?php echo BFText::_('COM_BREEZINGFORMS_CHECKBOX'); ?> </option> <option value="bfElementTypeSelect"><?php echo BFText::_('COM_BREEZINGFORMS_SELECT'); ?> </option> <option value="bfElementTypeFile"><?php echo BFText::_('COM_BREEZINGFORMS_FILE'); ?> </option> <option value="bfElementTypeSubmitButton"><?php echo BFText::_('COM_BREEZINGFORMS_SUBMIT_BUTTON'); ?> </option> <option value="bfElementTypeHidden"><?php echo BFText::_('COM_BREEZINGFORMS_HIDDEN'); ?> </option> <option value="bfElementTypeSummarize"><?php echo BFText::_('COM_BREEZINGFORMS_SUMMARIZE'); ?> </option> <option value="bfElementTypeCaptcha"><?php echo BFText::_('COM_BREEZINGFORMS_CAPTCHA'); ?> </option> <option value="bfElementTypeReCaptcha"><?php echo BFText::_('COM_BREEZINGFORMS_ReCaptcha'); ?> </option> <option value="bfElementTypeCalendarResponsive"><?php echo BFText::_('COM_BREEZINGFORMS_CALENDAR_RESPONSIVE'); ?> </option> <option value="bfElementTypeCalendar"><?php echo BFText::_('COM_BREEZINGFORMS_CALENDAR'); ?> </option> <option value="bfElementTypePayPal"><?php echo BFText::_('COM_BREEZINGFORMS_PAYPAL'); ?> </option> <option value="bfElementTypeSofortueberweisung"><?php echo BFText::_('COM_BREEZINGFORMS_SOFORTUEBERWEISUNG'); ?> </option> </select> </div> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_PROPERTIES'); ?> </legend> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LABEL')); ?> " for="bfElementLabel"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_LABEL'); ?> </label> <input type="text" value="" id="bfElementLabel"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LABEL')); ?> " for="bfElementLabelTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_LABEL'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementLabelTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_NAME')); ?> " for="bfElementName"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_NAME'); ?> </label> <input type="text" value="" id="bfElementName"/> </div> <!-- HIDDEN BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeHidden" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDDEN_VALUE')); ?> " for="bfElementTypeHiddenValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <input type="text" value="" id="bfElementTypeHiddenValue"/> </div> </div> <!-- HIDDEN END --> <!-- SUMMARIZE BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSummarize" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_SUMMARIZE_CONNECTWITH')); ?> " for="bfElementTypeSummarizeConnectWith"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_SUMMARIZE_CONNECT_WITH'); ?> </label> <select id="bfElementTypeSummarizeConnectWith"> <option value=""><?php echo BFText::_('COM_BREEZINGFORMS_CHOOSE_ONE'); ?> </option> </select> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_SUMMARIZE_EMPTY_MESSAGE')); ?> " for="bfElementTypeSummarizeEmptyMessage"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_EMPTY_MESSAGE'); ?> </label> <input type="text" value="" id="bfElementTypeSummarizeEmptyMessage"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_SUMMARIZE_EMPTY_MESSAGE')); ?> " for="bfElementTypeSummarizeEmptyMessageTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_EMPTY_MESSAGE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeSummarizeEmptyMessageTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_SUMMARIZE_EMPTY_HIDE')); ?> " for="bfElementTypeSummarizeHideIfEmpty"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HIDE_EMPTY'); ?> </label> <input type="checkbox" value="" id="bfElementTypeSummarizeHideIfEmpty"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_SUMMARIZE_USE_LABEL')); ?> " for="bfElementTypeSummarizeUseElementLabel"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_USE_LABEL'); ?> </label> <input type="checkbox" value="" id="bfElementTypeSummarizeUseElementLabel"/> </div> </div> <!-- SUMMARIZE END --> <!-- TEXTFIELD BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeText" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_VALUE')); ?> " for="bfElementTypeTextValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <input type="text" value="" id="bfElementTypeTextValue"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_VALUE')); ?> " for="bfElementTypeTextValueTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeTextValueTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_PLACEHOLDER')); ?> " for="bfElementTypeTextPlaceholder"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TEXT_PLACEHOLDER'); ?> </label> <input type="text" value="" id="bfElementTypeTextPlaceholder"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_PLACEHOLDER')); ?> " for="bfElementTypeTextPlaceholderTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TEXT_PLACEHOLDER'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeTextPlaceholderTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_SIZE')); ?> " for="bfElementTypeTextSize"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_SIZE'); ?> </label> <input type="text" value="" id="bfElementTypeTextSize"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_MAXLENGTH')); ?> " for="bfElementTypeTextMaxLength"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_MAX_LENGTH'); ?> </label> <input type="text" value="" id="bfElementTypeTextMaxLength"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_HINT')); ?> " for="bfElementTypeTextHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeTextHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTFIELD_HINT')); ?> " for="bfElementTypeTextHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeTextHintTrans"></textarea> </div> </div> <!-- TEXTFIELD END --> <!-- TEXTAREA BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeTextarea" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_VALUE')); ?> " for="bfElementTypeTextareaValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <textarea id="bfElementTypeTextareaValue"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_VALUE')); ?> " for="bfElementTypeTextareaValueTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeTextareaValueTrans"></textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_PLACEHOLDER')); ?> " for="bfElementTypeTextareaPlaceholder"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TEXT_PLACEHOLDER'); ?> </label> <input type="text" value="" id="bfElementTypeTextareaPlaceholder"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_PLACEHOLDER')); ?> " for="bfElementTypeTextareaPlaceholderTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TEXT_PLACEHOLDER'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeTextareaPlaceholderTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_WIDTH')); ?> " for="bfElementTypeTextareaWidth"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_WIDTH'); ?> </label> <input type="text" value="" id="bfElementTypeTextareaWidth"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_HEIGHT')); ?> " for="bfElementTypeTextareaHeight"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HEIGHT'); ?> </label> <input type="text" value="" id="bfElementTypeTextareaHeight"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_MAXLENGTH')); ?> " for="bfElementTypeTextareaMaxLength"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_MAX_LENGTH'); ?> </label> <input type="text" value="" id="bfElementTypeTextareaMaxLength"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_MAXLENGTH_SHOW')); ?> " for="bfElementTypeTextareaMaxLengthShow"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_MAX_LENGTH_SHOW'); ?> </label> <input type="checkbox" value="" id="bfElementTypeTextareaMaxLengthShow"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TEXTAREA_HTML')); ?> " for="bfElementTypeTextareaIsHtml">HTML</label> <input type="checkbox" value="" id="bfElementTypeTextareaIsHtml"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeTextareaHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeTextareaHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeTextareaHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeTextareaHintTrans"></textarea> </div> </div> <!-- TEXTAREA END --> <!-- RADIOGROUP BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeRadioGroup" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_RADIO_GROUP')); ?> " for="bfElementTypeRadioGroupGroups"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_GROUP'); ?> </label> <textarea id="bfElementTypeRadioGroupGroups"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_RADIO_GROUP')); ?> " for="bfElementTypeRadioGroupGroupsTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_GROUP'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeRadioGroupGroupsTrans"></textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_RADIO_GROUP_READONLY')); ?> " for="bfElementTypeRadioGroupReadonly"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_READONLY'); ?> </label> <input type="checkbox" value="" id="bfElementTypeRadioGroupReadonly"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_RADIO_GROUP_WRAP')); ?> " for="bfElementTypeRadioGroupWrap"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_WRAP'); ?> </label> <input type="checkbox" value="" id="bfElementTypeRadioGroupWrap"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeRadioGroupHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeRadioGroupHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeRadioGroupHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeRadioGroupHintTrans"></textarea> </div> </div> <!-- RADIOGROUP END --> <!-- SUBMITBUTTON BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSubmitButton" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SUBMIT_VALUE')); ?> " for="bfElementTypeSubmitButtonValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <input type="text" value="" id="bfElementTypeSubmitButtonValue"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SUBMIT_VALUE')); ?> " for="bfElementTypeSubmitButtonValueTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeSubmitButtonValueTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeSubmitButtonHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeSubmitButtonHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeSubmitButtonHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeSubmitButtonHintTrans"></textarea> </div> </div> <!-- SUBMITBUTTON END --> <!-- PAYPAL BEGIN --> <div class="bfElementTypeClass" id="bfElementTypePayPal" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_BUSINESS')); ?> " for="bfElementTypePayPalBusiness"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_BUSINESS'); ?> </label> <input type="text" value="" id="bfElementTypePayPalBusiness"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_TOKEN')); ?> " for="bfElementTypePayPalToken"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TOKEN'); ?> </label> <input type="text" value="" id="bfElementTypePayPalToken"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_ITEMNAME')); ?> " for="bfElementTypePayPalItemname"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_ITEMNAME'); ?> </label> <input type="text" value="" id="bfElementTypePayPalItemname"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_ITEMNUMBER')); ?> " for="bfElementTypePayPalItemnumber"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_ITEMNUMBER'); ?> </label> <input type="text" value="" id="bfElementTypePayPalItemnumber"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_AMOUNT')); ?> " for="bfElementTypePayPalAmount"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_AMOUNT'); ?> </label> <input type="text" value="" id="bfElementTypePayPalAmount"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_TAX')); ?> " for="bfElementTypePayPalTax"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_TAX'); ?> </label> <input type="text" value="" id="bfElementTypePayPalTax"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_THANKYOUPAGE')); ?> " for="bfElementTypePayPalThankYouPage"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_THANKYOU_PAGE'); ?> </label> <input type="text" value="" id="bfElementTypePayPalThankYouPage"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_LOCALE')); ?> " for="bfElementTypePayPalLocale"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_LOCALE'); ?> </label> <input type="text" value="" id="bfElementTypePayPalLocale"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_CURRENCY')); ?> " for="bfElementTypePayPalCurrencyCode"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_CURRENCY_CODE'); ?> </label> <input type="text" value="" id="bfElementTypePayPalCurrencyCode"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_SENDNOTAFPAY')); ?> " for=bfElementTypePayPalSendNotificationAfterPayment><?php echo BFText::_('COM_BREEZINGFORMS_NOTIFICATION_AFTER_PAYMENT'); ?> </label> <input type="checkbox" value="" id="bfElementTypePayPalSendNotificationAfterPayment"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypePayPalHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypePayPalHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypePayPalHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypePayPalHintTrans"></textarea> </div> </div> <!-- PAYPAL END --> <!-- SOFORTUEBERWEISUNG BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSofortueberweisung" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_USERID')); ?> " for="bfElementTypeSofortueberweisungUserId"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_USERID'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungUserId"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_PROJECTID')); ?> " for="bfElementTypeSofortueberweisungProjectId"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_PROJECTID'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungProjectId"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_PROJECTPASSWORD')); ?> " for="bfElementTypeSofortueberweisungProjectPassword"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_PROJECT_PASSWORD'); ?> </label> <input type="password" value="" id="bfElementTypeSofortueberweisungProjectPassword"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_REASON1')); ?> " for="bfElementTypeSofortueberweisungReason1"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_REASON1'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungReason1"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_REASON2')); ?> " for="bfElementTypeSofortueberweisungReason2"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_REASON2'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungReason2"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_AMOUNT')); ?> " for="bfElementTypeSofortueberweisungAmount"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_AMOUNT'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungAmount"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_THANKYOUPAGE')); ?> " for="bfElementTypeSofortueberweisungThankYouPage"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_THANKYOU_PAGE'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungThankYouPage"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_LANGUAGEID')); ?> " for="bfElementTypeSofortueberweisungLanguageId"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_LANGUAGE_ID'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungLanguageId"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_CURRENCY')); ?> " for="bfElementTypeSofortueberweisungCurrencyId"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_CURRENCY_ID'); ?> </label> <input type="text" value="" id="bfElementTypeSofortueberweisungCurrencyId"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_MAILBACK')); ?> " for=bfElementTypeSofortueberweisungMailback><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_MAILBACK'); ?> </label> <input type="checkbox" value="" id="bfElementTypeSofortueberweisungMailback"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeSofortueberweisungHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeSofortueberweisungHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeSofortueberweisungHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeSofortueberweisungHintTrans"></textarea> </div> </div> <!-- SOFORTUEBERWEISUNG END --> <!-- CAPTCHA BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCaptcha" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCaptchaHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeCaptchaHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCaptchaHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeCaptchaHintTrans"></textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CAPTCHA_WIDTH')); ?> " for="bfElementTypeCaptchaWidth"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_CAPTCHA_WIDTH'); ?> </label> <input type="text" value="" id="bfElementTypeCaptchaWidth"/> </div> </div> <!-- CAPTCHA END --> <!-- RECAPTCHA BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeReCaptcha" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_RECAPTCHA_PUBKEY')); ?> " for=bfElementTypeReCaptchaPubkey><?php echo BFText::_('COM_BREEZINGFORMS_PUBLIC_KEY'); ?> </label> <input type="text" value="" id="bfElementTypeReCaptchaPubkey"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_RECAPTCHA_PRIVKEY')); ?> " for=bfElementTypeReCaptchaPrivkey><?php echo BFText::_('COM_BREEZINGFORMS_PRIVATE_KEY'); ?> </label> <input type="text" value="" id="bfElementTypeReCaptchaPrivkey"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_RECAPTCHA_THEME')); ?> " for=bfElementTypeReCaptchaTheme><?php echo BFText::_('COM_BREEZINGFORMS_Theme'); ?> </label> <input type="text" value="red" id="bfElementTypeReCaptchaTheme"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeReCaptchaHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeReCaptchaHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeReCaptchaHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeReCaptchaHintTrans"></textarea> </div> </div> <!-- RECAPTCHA END --> <!-- CALENDAR Responsive BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCalendarResponsive" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_FORMAT')); ?> " for="bfElementTypeCalendarResponsiveFormat"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_FORMAT'); ?> </label> <input type="text" value="" id="bfElementTypeCalendarResponsiveFormat"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_FORMAT')); ?> " for="bfElementTypeCalendarResponsiveFormatTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_FORMAT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeCalendarResponsiveFormatTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_VALUE')); ?> " for="bfElementTypeCalendarResponsiveValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <input type="text" value="" id="bfElementTypeCalendarResponsiveValue"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_VALUE')); ?> " for="bfElementTypeCalendarResponsiveValueTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeCalendarResponsiveValueTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_SIZE')); ?> " for="bfElementTypeCalendarResponsiveSize"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_SIZE'); ?> </label> <input type="text" value="" id="bfElementTypeCalendarResponsiveSize"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCalendarResponsiveHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeCalendarResponsiveHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCalendarResponsiveHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeCalendarResponsiveHintTrans"></textarea> </div> </div> <!-- CALENDAR RESPONSIVE END --> <!-- CALENDAR BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCalendar" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_FORMAT')); ?> " for="bfElementTypeCalendarFormat"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_FORMAT'); ?> </label> <input type="text" value="" id="bfElementTypeCalendarFormat"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_FORMAT')); ?> " for="bfElementTypeCalendarFormatTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_FORMAT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeCalendarFormatTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_VALUE')); ?> " for="bfElementTypeCalendarValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <input type="text" value="" id="bfElementTypeCalendarValue"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_VALUE')); ?> " for="bfElementTypeCalendarValueTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementTypeCalendarValueTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CALENDAR_SIZE')); ?> " for="bfElementTypeCalendarSize"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_SIZE'); ?> </label> <input type="text" value="" id="bfElementTypeCalendarSize"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCalendarHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeCalendarHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCalendarHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeCalendarHintTrans"></textarea> </div> </div> <!-- CALENDAR END --> <!-- CHECKBOXGROUP BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCheckboxGroup" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CHECKBOX_GROUP')); ?> " for="bfElementTypeCheckboxGroupGroups"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_GROUP'); ?> </label> <textarea id="bfElementTypeCheckboxGroupGroups"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CHECKBOX_GROUP')); ?> " for="bfElementTypeCheckboxGroupGroupsTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_GROUP'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeCheckboxGroupGroupsTrans"></textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CHECKBOX_GROUP_READONLY')); ?> " for="bfElementTypeCheckboxGroupReadonly"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_READONLY'); ?> </label> <input type="checkbox" value="" id="bfElementTypeCheckboxGroupReadonly"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_CHECKBOX_GROUP_WRAP')); ?> " for="bfElementTypeCheckboxGroupWrap"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_WRAP'); ?> </label> <input type="checkbox" value="" id="bfElementTypeCheckboxGroupWrap"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCheckboxGroupHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeCheckboxGroupHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCheckboxGroupHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeCheckboxGroupHintTrans"></textarea> </div> </div> <!-- CHECKBOXGROUP END --> <!-- CHECKBOX BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCheckbox" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_CHECKBOX_VALUE')); ?> " for="bfElementTypeCheckboxValue"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALUE'); ?> </label> <textarea id="bfElementTypeCheckboxValue"></textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_CHECKBOX_CHECKED')); ?> " for="bfElementTypeCheckboxChecked"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_CHECKED'); ?> </label> <input type="checkbox" value="" id="bfElementTypeCheckboxChecked"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_CHECKBOX_READONLY')); ?> " for="bfElementTypeCheckboxReadonly"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_READONLY'); ?> </label> <input type="checkbox" value="" id="bfElementTypeCheckboxReadonly"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCheckboxHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeCheckboxHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeCheckboxHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeCheckboxHintTrans"></textarea> </div> </div> <!-- CHECKBOX END --> <!-- SELECT BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSelect" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECTLIST')); ?> " for="bfElementTypeSelectList"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_LIST'); ?> </label> <textarea id="bfElementTypeSelectList"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECTLIST')); ?> " for="bfElementTypeSelectListTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_LIST'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeSelectListTrans"></textarea> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECTLIST_MULTIPLE')); ?> " for="bfElementTypeSelectMultiple"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_MULTIPLE'); ?> </label> <input type="checkbox" value="" id="bfElementTypeSelectMultiple"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECTLIST_WIDTH')); ?> " for="bfElementTypeSelectListWidth"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_WIDTH'); ?> </label> <input type="text" value="" id="bfElementTypeSelectListWidth"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECTLIST_HEIGHT')); ?> " for="bfElementTypeSelectListHeight"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HEIGHT'); ?> </label> <input type="text" value="" id="bfElementTypeSelectListHeight"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECTLIST_READONLY')); ?> " for="bfElementTypeSelectReadonly"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_READONLY'); ?> </label> <input type="checkbox" value="" id="bfElementTypeSelectReadonly"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeSelectHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeSelectHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeSelectHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeSelectHintTrans"></textarea> </div> </div> <!-- SELECT END --> <!-- FILE BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeFile" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_READONLY')); ?> " for="bfElementTypeFileReadonly"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_READONLY'); ?> </label> <input type="checkbox" value="" id="bfElementTypeFileReadonly"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeFileHint"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> </label> <textarea id="bfElementTypeFileHint"></textarea> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HINT')); ?> " for="bfElementTypeFileHintTrans"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_HINT'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <textarea id="bfElementTypeFileHintTrans"></textarea> </div> </div> <!-- FILE END --> </fieldset> <fieldset id="bfValidationScript" style="display:none"> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALIDATION'); ?> </legend> <span id="bfElementValidationRequiredSet" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VALIDATION_REQUIRED')); ?> " for="bfElementValidationRequired"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALIDATION_REQUIRED'); ?> </label> <input type="checkbox" value="" id="bfElementValidationRequired"/> </div> </span> <div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VALIDATION_TYPE')); ?> " for="bfElementValidation"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_VALIDATION_LABEL'); ?> </label> <?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> : <input onclick="JQuery('#bfValidationScriptFlags').css('display','none');JQuery('#bfValidationScriptLibrary').css('display','none');JQuery('#bfValidationScriptCustom').css('display','none');" type="radio" name="validationType" id="bfValidationTypeNone" class="bfValidationType" value="0"/> <?php echo BFText::_('COM_BREEZINGFORMS_NONE'); ?> <input onclick="JQuery('#bfValidationScriptFlags').css('display','');JQuery('#bfValidationScriptLibrary').css('display','');JQuery('#bfValidationScriptCustom').css('display','none');" type="radio" name="validationType" id="bfValidationTypeLibrary" class="bfValidationType" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_LIBRARY'); ?> <input onclick="JQuery('#bfValidationScriptFlags').css('display','');JQuery('#bfValidationScriptLibrary').css('display','none');JQuery('#bfValidationScriptCustom').css('display','');" type="radio" name="validationType" id="bfValidationTypeCustom" class="bfValidationType" value="2"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> </div> <div id="bfValidationScriptFlags" style="display:none"> <hr/> <div class="bfPropertyWrap"> <span class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VALIDATION_ERROR_MESSAGE')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_ERROR_MESSAGE'); ?> :</span> <input type="text" style="width:100%" maxlength="255" class="bfValidationMessage" id="bfValidationMessage" name="bfValidationMessage" value="" class="inputbox"/> </div> <div class="bfPropertyWrap bfTrans"> <span class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VALIDATION_ERROR_MESSAGE')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_ERROR_MESSAGE'); ?> <em>(<?php echo $active_language_code; ?> )</em>:</span> <input type="text" style="width:100%" maxlength="255" class="bfValidationMessage" id="bfValidationMessageTrans" name="bfValidationMessage" value="" class="inputbox"/> </div> </div> <div id="bfValidationScriptLibrary" style="display:none"> <hr/> <div class="bfPropertyWrap"> <span class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VALIDATION_SCRIPTLIBRARY')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_SCRIPT'); ?> :</span><br/> <select id="bfValidationScriptSelection"></select> </div> <br/> <div id="bfValidationScriptSelectionDescription"></div> </div> <div id="bfValidationScriptCustom" style="display:none"> <hr/> <div class="bfPropertyWrap"> <div class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VALIDATION_CODEFRAMEWORK')); ?> " style="cursor: pointer;" onclick="createValidationCode()"><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_CODE_FRAMEWORK'); ?> </div> <textarea name="bfValidationCode" id="bfValidationCode" rows="10" style="width:100%" wrap="off"></textarea> </div> </div> </div> </fieldset> </div> <br/> <!-- ELEMENT PROPERTIES END --> <div class="bfFadingMessage" style="display:none"></div> <input type="submit" class="btn btn-secondary" value="<?php echo BFText::_('COM_BREEZINGFORMS_PROPERTIES_SAVE'); ?> " id="bfPropertySaveButton"/> <br/> <br/> </div> </div> <div id="fragment-2"> <div> <br/> <div class="bfFadingMessage" style="display:none"></div> <input type="submit" class="btn btn-secondary" value="<?php echo BFText::_('COM_BREEZINGFORMS_PROPERTIES_SAVE'); ?> " id="bfAdvancedSaveButtonTop"/> <div class="bfAdvanced" id="bfPageAdvanced" style="display:none"> </div> <div class="bfAdvanced" id="bfFormAdvanced" style="display:none"> <br/> <fieldset> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_FORM_OPTIONS'); ?> </legend> <?php if ($formId != 0) { ?> <a href="index.php?option=com_breezingforms&task=editform&act=editpage&form=<?php echo $formId; ?> &pkg=QuickModeForms" title="<?php echo BFText::_('COM_BREEZINGFORMS_MORE_OPTIONS'); ?> "><?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_MORE_OPTIONS'), ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> </fieldset> <fieldset> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_FORM_THEMES'); ?> </legend> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_ENGINE')); ?> " for="bfThemeBootstrapThemeBreezingForms"><?php echo BFText::_('COM_BREEZINGFORMS_CHOOSE_THEME_ENGINE'); ?> </label> <input onclick="JQuery('#bfThemeBootstrapDiv').css('display','none');JQuery('#bfThemeBreezingFormsDiv').css('display','block');" <?php echo version_compare($version->getShortVersion(), '3.0', '<') ? 'checked="checked" ' : ''; ?> type="radio" name="bfThemeBootstrapThemeEngine" value="" id="bfThemeBootstrapThemeBreezingForms"/> BreezingForms <input onclick="JQuery('#bfThemeBootstrapDiv').css('display','block');JQuery('#bfThemeBreezingFormsDiv').css('display','none');" <?php echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'checked="checked" ' : ''; ?> type="radio" name="bfThemeBootstrapThemeEngine" value="" id="bfThemeBootstrapThemeBootstrap"/> <?php echo BFText::_('COM_BREEZINGFORMS_THEME_ENGINE_BOOTSTRAP'); ?> </div> <div id="bfThemeBreezingFormsDiv" style="display:none;"> <br/> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_THEME_BREEZINGFORMS_ENGINE'); ?> </legend> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_NATIVE')); ?> " for="bfTheme"><?php echo BFText::_('COM_BREEZINGFORMS_THEME'); ?> </label> <select id="bfTheme"> <?php $tCount = count($themes); for ($i = 0; $i < $tCount; $i++) { echo '<option value="' . $themes[$i] . '">' . $themes[$i] . '</option>' . "\n"; } ?> </select> </div> </div> <?php if (version_compare($version->getShortVersion(), '3.0', '<')) { ?> <br/> <br/> <?php } ?> <div id="bfThemeBootstrapDiv" style="display:none;"> <?php echo bf_alert('Bootstrap based themes available in full version only.', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <?php echo bf_alert('Please use BreezingForms based themes or get the full version.', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_THEME_BOOTSTRAP_ENGINE'); ?> </legend> <br/> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP')); ?> " for="bfThemeBootstrap"><?php echo BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP'); ?> </label> <select id="bfThemeBootstrap"> <option value="">Default</option> > <?php $tCount = count($themesbootstrap); for ($i = 0; $i < $tCount; $i++) { echo '<option value="' . $themesbootstrap[$i] . '">' . $themesbootstrap[$i] . '</option>' . "\n"; } ?> </select> </div> <?php if (version_compare($version->getShortVersion(), '3.0', '<')) { ?> <br/> <br/> <?php } ?> <?php if (version_compare($version->getShortVersion(), '3.0', '<')) { ?> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP_LEGACY')); ?> " for="bfThemeBootstrapUseLegacyYes"><?php echo BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP_USE_LEGACY'); ?> </label> <input checked="checked" type="radio" name="bfThemeBootstrapUseLegacy" value="" id="bfThemeBootstrapUseLegacyYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="bfThemeBootstrapUseLegacy" value="" id="bfThemeBootstrapUseLegacyNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <?php } ?> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP_LABEL_TOP')); ?> " for="bfThemeBootstrapLabelTopYes"><?php echo BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP_LABELTOP'); ?> </label> <input type="radio" name="bfThemeBootstrapLabelTop" value="" id="bfThemeBootstrapLabelTopYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input checked="checked" type="radio" name="bfThemeBootstrapLabelTop" value="" id="bfThemeBootstrapLabelTopNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP_HERO_UNIT')); ?> " for="bfThemeBootstrapUseHeroUnitYes"><?php echo BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP_USE_HERO_UNIT'); ?> </label> <input type="radio" name="bfThemeBootstrapUseHeroUnit" value="" id="bfThemeBootstrapUseHeroUnitYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input checked="checked" type="radio" name="bfThemeBootstrapUseHeroUnit" value="" id="bfThemeBootstrapUseHeroUnitNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP_WELL')); ?> " for="bfThemeBootstrapUseWellYes"><?php echo BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP_USE_WELL'); ?> </label> <input type="radio" name="bfThemeBootstrapUseWell" value="" id="bfThemeBootstrapUseWellYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input checked="checked" type="radio" name="bfThemeBootstrapUseWell" value="" id="bfThemeBootstrapUseWellNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP_PROGRESS')); ?> " for="bfThemeBootstrapUseProgressYes"><?php echo BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP_USE_PROGRESS'); ?> </label> <input type="radio" name="bfThemeBootstrapUseProgress" value="" id="bfThemeBootstrapUseProgressYes"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input checked="checked" type="radio" name="bfThemeBootstrapUseProgress" value="" id="bfThemeBootstrapUseProgressNo"/> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </div> <?php jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); $dbObject = Zend_Json::decode($dataObjectString); if (isset($dbObject['properties']['themebootstrap'])) { $themeboostrapfolder = $dbObject['properties']['themebootstrap']; $themesbootstrap_path = JPATH_SITE . DS . 'media' . DS . 'breezingforms' . DS . 'themes-bootstrap' . DS . $themeboostrapfolder . DS; if (JFolder::exists($themesbootstrap_path) && JFile::exists($themesbootstrap_path . 'vars.txt')) { $varscontent = htmlentities(JFile::read($themesbootstrap_path . 'vars.txt'), ENT_QUOTES, 'UTF-8'); if ($varscontent) { echo '<br/> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="' . bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_THEME_BOOTSTRAP_PROGRESS')) . '" for="bfThemeBootstrapVars">' . BFText::_('COM_BREEZINGFORMS_THEME_BOOTSTRAP_VARS') . '</label> <textarea id="bfThemeBootstrapVars">' . $varscontent . '</textarea> </div> <input type="hidden" name="bfThemeBootstrapBefore" id="bfThemeBootstrapBefore" value=""/>'; } } } ?> </div> <?php if (version_compare($version->getShortVersion(), '3.0', '<')) { ?> <br/> <br/> <?php } ?> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_FORM_OTHER'); ?> </legend> <br/> <?php echo bf_alert('Mobile Forms available in full version only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <br/> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_MOBILE_FORMS')); ?> " for="bfElementAdvancedMobileEnabled"><?php echo BFText::_('COM_BREEZINGFORMS_MOBILE_ENABLED'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedMobileEnabled"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_MOBILE_FORMS_FORCE')); ?> " for="bfElementAdvancedForceMobile"><?php echo BFText::_('COM_BREEZINGFORMS_FORCE_MOBILE'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedForceMobile"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_MOBILE_FORMS_URL')); ?> " for="bfElementAdvancedForceMobileUrl"><?php echo BFText::_('COM_BREEZINGFORMS_FORCE_MOBILE_URL'); ?> </label> <input type="text" value="" id="bfElementAdvancedForceMobileUrl"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_HINT_JOOMLA')); ?> " for="bfElementAdvancedJoomlaHint"><?php echo BFText::_('COM_BREEZINGFORMS_JOOMLA_HINT'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedJoomlaHint"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_JQUERY_DISABLE')); ?> " for="bfElementAdvancedDisableJQuery"><?php echo BFText::_('COM_BREEZINGFORMS_DISABLE_JQUERY'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedDisableJQuery"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ERROR_ALERTS')); ?> " for="bfElementAdvancedUseErrorAlerts"><?php echo BFText::_('COM_BREEZINGFORMS_USE_ERROR_ALERTS'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedUseErrorAlerts"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ERROR_DEFAULT')); ?> " for="bfElementAdvancedUseDefaultErrors"><?php echo BFText::_('COM_BREEZINGFORMS_IF_NOT_USE_ERROR_ALERTS'); ?> </label> <?php echo BFText::_('COM_BREEZINGFORMS_IF_USE_DEFAULT_ERRROS'); ?> <input type="checkbox" value="" id="bfElementAdvancedUseDefaultErrors"/> <?php echo BFText::_('COM_BREEZINGFORMS_IF_USE_BALLOON_ERRORS'); ?> <input type="checkbox" value="" id="bfElementAdvancedUseBalloonErrors"/> </div> <div class="bfPropertyWrap"> <div id="bfFadingEffectToggle"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FADE_IN')); ?> " for="bfElementAdvancedFadeIn"><?php echo BFText::_('COM_BREEZINGFORMS_FADE_IN'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedFadeIn"/> </div> </div> <div id="bfRollOverToggle"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ROLLOVER')); ?> " for="bfElementAdvancedRollover"><?php echo BFText::_('COM_BREEZINGFORMS_ROLLOVER'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedRollover"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ROLLOVER_COLOR')); ?> " for="bfElementAdvancedRolloverColor"><?php echo BFText::_('COM_BREEZINGFORMS_ROLLOVER_COLOR'); ?> </label> <input type="text" value="" id="bfElementAdvancedRolloverColor"/> </div> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_VISIBILITY_RULES')); ?> " for="bfElementAdvancedToggleFields"><?php echo BFText::_('COM_BREEZINGFORMS_FORM_TOGGLEFIELDS'); ?> </label> <textarea id="bfElementAdvancedToggleFields"></textarea> </div> </fieldset> </div> <div class="bfAdvanced" id="bfSectionAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SECTION_TURNOFF')); ?> " for="bfSectionAdvancedTurnOff"><?php echo BFText::_('COM_BREEZINGFORMS_TURN_OFF_INITIALLY'); ?> </label> <input type="checkbox" value="" id="bfSectionAdvancedTurnOff"/> </div> </div> <div class="bfAdvanced" id="bfElementAdvanced" style="display:none"> <br/> <fieldset> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_ELEMENT_OPTIONS'); ?> </legend> <!-- HIDDEN BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeHiddenAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementHiddenAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementHiddenAdvancedOrderNumber"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementHiddenAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input type="checkbox" value="" id="bfElementHiddenAdvancedLogging"/> </div> </div> <!-- HIDDEN END --> <!-- SUMMARIZE BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSummarizeAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SUMMARIZE_CALC')); ?> " for="bfElementAdvancedSummarizeCalc"><?php echo BFText::_('COM_BREEZINGFORMS_ELEMENT_CALC'); ?> </label> <textarea id="bfElementAdvancedSummarizeCalc"></textarea> </div> </div> <!-- SUMMARIZE END --> <!-- TEXTFIELD BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeTextAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_TEXTFIELD_PASSWORD')); ?> " for="bfElementAdvancedPassword"><?php echo BFText::_('COM_BREEZINGFORMS_PASSWORD'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedPassword"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_TEXTFIELD_READONLY')); ?> " for="bfElementAdvancedReadOnly"><?php echo BFText::_('COM_BREEZINGFORMS_READONLY'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedReadOnly"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_TEXTFIELD_MAILBACK')); ?> " for="bfElementAdvancedMailback"><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedMailback"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_TEXTFIELD_MAILBACK_AS_SENDER')); ?> " for="bfElementAdvancedMailbackAsSender"><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_AS_SENDER'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedMailbackAsSender"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_TEXTFIELD_MAILBACK_FILE')); ?> " for="bfElementAdvancedMailbackfile"><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACKFILE'); ?> </label> <input type="text" value="" id="bfElementAdvancedMailbackfile"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementOrderNumber"/> </div> </div> <!-- TEXTFIELD END --> <!-- TEXTAREA BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeTextareaAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementTextareaAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementTextareaAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementTextareaAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementTextareaAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementTextareaAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementTextareaAdvancedOrderNumber"/> </div> </div> <!-- TEXTAREA END --> <!-- RADIOGROUP BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeRadioGroupAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementRadioGroupAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementRadioGroupAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementRadioGroupAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementRadioGroupAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementRadioGroupAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementRadioGroupAdvancedOrderNumber"/> </div> </div> <!-- RADIOGROUP END --> <!-- SUBMITBUTTON BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSubmitButtonAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementSubmitButtonAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementSubmitButtonAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SUBMIT_BUTTON_SOURCE')); ?> " for="bfElementSubmitButtonAdvancedSrc"><?php echo BFText::_('COM_BREEZINGFORMS_SOURCE'); ?> </label> <input type="text" value="" id="bfElementSubmitButtonAdvancedSrc"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SUBMIT_BUTTON_SOURCE')); ?> " for="bfElementSubmitButtonAdvancedSrcTrans"><?php echo BFText::_('COM_BREEZINGFORMS_SOURCE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementSubmitButtonAdvancedSrcTrans"/> </div> </div> <!-- SUBMITBUTTON END --> <!-- PAYPAL BEGIN --> <div class="bfElementTypeClass" id="bfElementTypePayPalAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_IPN')); ?> " for="bfElementPayPalAdvancedUseIpn"><?php echo BFText::_('COM_BREEZINGFORMS_USE_IPN'); ?> </label> <input type="checkbox" value="" id="bfElementPayPalAdvancedUseIpn"/><?php echo BFText::_('COM_BREEZINGFORMS_USE_IPN_DESCRIPTION'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementPayPalAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementPayPalAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_IMAGE')); ?> " for="bfElementPayPalAdvancedImage"><?php echo BFText::_('COM_BREEZINGFORMS_IMAGE'); ?> </label> <input type="text" value="" id="bfElementPayPalAdvancedImage"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_IMAGE')); ?> " for="bfElementPayPalAdvancedImageTrans"><?php echo BFText::_('COM_BREEZINGFORMS_IMAGE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementPayPalAdvancedImageTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_TESTACCOUNT')); ?> " for="bfElementPayPalAdvancedTestaccount"><?php echo BFText::_('COM_BREEZINGFORMS_TESTACCOUNT'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementPayPalAdvancedTestaccount"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_TESTBUSINESS')); ?> " for="bfElementPayPalAdvancedTestBusiness"><?php echo BFText::_('COM_BREEZINGFORMS_TESTBUSINESS'); ?> </label> <input type="text" value="" id="bfElementPayPalAdvancedTestBusiness"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_TESTTOKEN')); ?> " for="bfElementPayPalAdvancedTestToken"><?php echo BFText::_('COM_BREEZINGFORMS_TESTTOKEN'); ?> </label> <input type="text" value="" id="bfElementPayPalAdvancedTestToken"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_FILE')); ?> " for="bfElementPayPalAdvancedDownloadableFile"><?php echo BFText::_('COM_BREEZINGFORMS_DOWNLOADABLE_FILE'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementPayPalAdvancedDownloadableFile"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_FILEPATH')); ?> " for="bfElementPayPalAdvancedFilepath"><?php echo BFText::_('COM_BREEZINGFORMS_FILEPATH'); ?> </label> <input type="text" value="" id="bfElementPayPalAdvancedFilepath"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_PAYPAL_TRIES')); ?> " for="bfElementPayPalAdvancedDownloadTries"><?php echo BFText::_('COM_BREEZINGFORMS_DOWNLOAD_TRIES'); ?> </label> <input type="text" value="" id="bfElementPayPalAdvancedDownloadTries"/> </div> </div> <!-- PAYPAL END --> <!-- SOFORTUEBERWEISUNG BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSofortueberweisungAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementSofortueberweisungAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementSofortueberweisungAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_IMAGE')); ?> " for="bfElementSofortueberweisungAdvancedImage"><?php echo BFText::_('COM_BREEZINGFORMS_IMAGE'); ?> </label> <input type="text" value="" id="bfElementSofortueberweisungAdvancedImage"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_IMAGE')); ?> " for="bfElementSofortueberweisungAdvancedImageTrans"><?php echo BFText::_('COM_BREEZINGFORMS_IMAGE'); ?> <br /><em>(<?php echo $active_language_code; ?> )</em></label> <input type="text" value="" id="bfElementSofortueberweisungAdvancedImageTrans"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_FILE')); ?> " for="bfElementSofortueberweisungAdvancedDownloadableFile"><?php echo BFText::_('COM_BREEZINGFORMS_DOWNLOADABLE_FILE'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementSofortueberweisungAdvancedDownloadableFile"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_FILEPATH')); ?> " for="bfElementSofortueberweisungAdvancedFilepath"><?php echo BFText::_('COM_BREEZINGFORMS_FILEPATH'); ?> </label> <input type="text" value="" id="bfElementSofortueberweisungAdvancedFilepath"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SOFORT_TRIES')); ?> " for="bfElementSofortueberweisungAdvancedDownloadTries"><?php echo BFText::_('COM_BREEZINGFORMS_DOWNLOAD_TRIES'); ?> </label> <input type="text" value="" id="bfElementSofortueberweisungAdvancedDownloadTries"/> </div> </div> <!-- SOFORTUEBERWEISUNG END --> <!-- CAPTCHA BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCaptchaAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementCaptchaAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCaptchaAdvancedHideLabel"/> </div> </div> <!-- CAPTCHA END --> <!-- RECAPTCHA BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeReCaptchaAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementReCaptchaAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementReCaptchaAdvancedHideLabel"/> </div> </div> <!-- RECAPTCHA END --> <!-- CALENDAR RESPONSIVE BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCalendarResponsiveAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementCalendarResponsiveAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCalendarResponsiveAdvancedHideLabel"/> </div> </div> <!-- CALENDAR RESPONSIVE END --> <!-- CALENDAR BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCalendarAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementCalendarAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCalendarAdvancedHideLabel"/> </div> </div> <!-- CALENDAR END --> <!-- CHECKBOXGROUP BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCheckboxGroupAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementCheckboxGroupAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCheckboxGroupAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementCheckboxGroupAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCheckboxGroupAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementCheckboxGroupAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementCheckboxGroupAdvancedOrderNumber"/> </div> </div> <!-- CHECKBOXGROUP END --> <!-- CHECKBOX BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeCheckboxAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_MAILBACK_ACCEPT')); ?> " for="bfElementCheckboxAdvancedMailbackAccept"><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_ACCEPT'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCheckboxAdvancedMailbackAccept"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_MAILBACK_CONNECTWITH')); ?> " for="bfElementCheckboxAdvancedMailbackConnectWith"><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_CONNECT_WITH'); ?> </label> <input type="text" value="" id="bfElementCheckboxAdvancedMailbackConnectWith"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementCheckboxAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCheckboxAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementCheckboxAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementCheckboxAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementCheckboxAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementCheckboxAdvancedOrderNumber"/> </div> </div> <!-- CHECKBOX END --> <!-- CHECKBOXGROUP BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeSelectAdvanced" style="display:none"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementSelectAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementSelectAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_SELECT_MAILBACK')); ?> " for="bfElementSelectAdvancedMailback"><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementSelectAdvancedMailback"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementSelectAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementSelectAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementSelectAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementSelectAdvancedOrderNumber"/> </div> </div> <!-- CHECKBOXGROUP END --> <!-- FILE BEGIN --> <div class="bfElementTypeClass" id="bfElementTypeFileAdvanced" style="display:none"> <?php echo bf_alert('HTML5 Upload in full version only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <br/><br/> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_HTML5')); ?> " for="bfElementFileAdvancedHtml5Uploader"><?php echo BFText::_('COM_BREEZINGFORMS_HTML5_UPLOADER'); ?> </label> <input type="checkbox" value="" id="bfElementFileAdvancedHtml5Uploader"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_FLASH')); ?> " for="bfElementFileAdvancedFlashUploader"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER'); ?> </label> <input type="checkbox" value="" id="bfElementFileAdvancedFlashUploader"/> <br/> <br/> <i>(<?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_HINT'); ?> )</i> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_MULTI')); ?> " for="bfElementFileAdvancedFlashUploaderMulti"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_MULTI'); ?> </label> <input type="checkbox" value="" id="bfElementFileAdvancedFlashUploaderMulti"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_BYTES')); ?> " for="bfElementFileAdvancedFlashUploaderBytes"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_BYTES'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedFlashUploaderBytes"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_WIDTH')); ?> " for="bfElementFileAdvancedFlashUploaderWidth"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_WIDTH'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedFlashUploaderWidth"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_HEIGHT')); ?> " for="bfElementFileAdvancedFlashUploaderHeight"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_HEIGHT'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedFlashUploaderHeight"/> </div> <div class="bfPropertyWrap bfTrans"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_TRANSPARENT')); ?> " for="bfElementFileAdvancedFlashUploaderTransparent"><?php echo BFText::_('COM_BREEZINGFORMS_FLASH_UPLOADER_TRANSPARENT'); ?> </label> <input type="checkbox" value="" id="bfElementFileAdvancedFlashUploaderTransparent"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_UPLOAD_DIRECTORY')); ?> " for="bfElementFileAdvancedUploadDirectory"><?php echo BFText::_('COM_BREEZINGFORMS_UPLOAD_DIRECTORY'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedUploadDirectory"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_RESIZE_WIDTH')); ?> " for="bfElementFileAdvancedResizeTargetWidth"><?php echo BFText::_('COM_BREEZINGFORMS_RESIZE_TARGET_WIDTH'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedResizeTargetWidth" value="0"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_RESIZE_HEIGHT')); ?> " for="bfElementFileAdvancedResizeTargetHeight"><?php echo BFText::_('COM_BREEZINGFORMS_RESIZE_TARGET_HEIGHT'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedResizeTargetHeight" value="0"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_RESIZE_TYPE')); ?> " for="bfElementFileAdvancedResizeType"><?php echo BFText::_('COM_BREEZINGFORMS_RESIZE_TYPE'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedResizeType" value=""/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_RESIZE_BGCOLOR')); ?> " for="bfElementFileAdvancedResizeBgcolor"><?php echo BFText::_('COM_BREEZINGFORMS_RESIZE_BGCOLOR'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedResizeBgcolor" value="#ffffff"/> <br/> <br/> <i>(<?php echo BFText::_('COM_BREEZINGFORMS_RESIZE_HINT'); ?> )</i> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_TIMESTAMP')); ?> " for="bfElementFileAdvancedTimestamp"><?php echo BFText::_('COM_BREEZINGFORMS_TIMESTAMP'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementFileAdvancedTimestamp"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_EXTENSIONS')); ?> " for="bfElementFileAdvancedAllowedFileExtensions"><?php echo BFText::_('COM_BREEZINGFORMS_ALLOWED_FILE_EXTENSIONS'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedAllowedFileExtensions"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_ATTACHUSERMAIL')); ?> " for="bfElementFileAdvancedAttachToUserMail"><?php echo BFText::_('COM_BREEZINGFORMS_ATTACH_TO_USERMAIL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementFileAdvancedAttachToUserMail"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_ATTACHADMINMAIL')); ?> " for="bfElementFileAdvancedAttachToAdminMail"><?php echo BFText::_('COM_BREEZINGFORMS_ATTACH_TO_ADMINMAIL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementFileAdvancedAttachToAdminMail"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_USEURL')); ?> " for="bfElementFileAdvancedUseUrl"><?php echo BFText::_('COM_BREEZINGFORMS_USE_URL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementFileAdvancedUseUrl"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_FILE_USEURL_DIR')); ?> " for="bfElementFileAdvancedUseUrlDownloadDirectory"><?php echo BFText::_('COM_BREEZINGFORMS_USE_URL_DOWNLOAD_DIRECTORY'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedUseUrlDownloadDirectory"/> <?php echo BFText::_('COM_BREEZINGFORMS_USE_URL_DOWNLOAD_DIRECTORY_SET_SYNCH'); ?> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_HIDE_LABEL')); ?> " for="bfElementFileAdvancedHideLabel"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_LABEL'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementFileAdvancedHideLabel"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LOGGING')); ?> " for="bfElementFileAdvancedLogging"><?php echo BFText::_('COM_BREEZINGFORMS_LOGGING'); ?> </label> <input checked="checked" type="checkbox" value="" id="bfElementFileAdvancedLogging"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_ORDER_NUMBER')); ?> " for="bfElementFileAdvancedOrderNumber"><?php echo BFText::_('COM_BREEZINGFORMS_ORDER_NUMBER'); ?> </label> <input type="text" value="" id="bfElementFileAdvancedOrderNumber"/> </div> </div> <!-- FILE END --> <div id="bfHideInMailback"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_MAILBACK_HIDE')); ?> " for="bfElementAdvancedHideInMailback"><?php echo BFText::_('COM_BREEZINGFORMS_HIDE_IN_MAILBACK'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedHideInMailback"/> </div> </div> <div id="bfAdvancedLeaf"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TABINDEX')); ?> " id="bfElementAdvancedTabIndexLabel" for="bfElementAdvancedTabIndex"><?php echo BFText::_('COM_BREEZINGFORMS_TAB_INDEX'); ?> </label> <input type="text" value="" id="bfElementAdvancedTabIndex"/> </div> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_TURNOFF')); ?> " for="bfElementAdvancedTurnOff"><?php echo BFText::_('COM_BREEZINGFORMS_TURN_OFF_INITIALLY'); ?> </label> <input type="checkbox" value="" id="bfElementAdvancedTurnOff"/> </div> <div id="bfLabelPositionToggle"> <div class="bfPropertyWrap"> <label class="bfPropertyLabel hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ELEMENT_LABELPOS')); ?> " id="bfElementAdvancedLabelPositionLabel" for="bfElementAdvancedLabelPosition"><?php echo BFText::_('COM_BREEZINGFORMS_LABEL_POSITION'); ?> </label> <select id="bfElementAdvancedLabelPosition"> <option value="left"><?php echo BFText::_('COM_BREEZINGFORMS_LEFT'); ?> </option> <option value="top"><?php echo BFText::_('COM_BREEZINGFORMS_TOP'); ?> </option> <option value="right"><?php echo BFText::_('COM_BREEZINGFORMS_RIGHT'); ?> </option> <option value="bottom"><?php echo BFText::_('COM_BREEZINGFORMS_BOTTOM'); ?> </option> </select> </div> </div> </div> </fieldset> <fieldset id="bfInitScript" style="display:none"> <br/> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_ELEMENT_INITSCRIPT'); ?> </legend> <div class="bfPropertyWrap"> <span class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_INITSCRIPT')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> :</span> <input onclick="JQuery('#bfInitScriptFlags').css('display','none');JQuery('#bfInitScriptLibrary').css('display','none');JQuery('#bfInitScriptCustom').css('display','none');" type="radio" name="initType" id="bfInitTypeNone" class="bfInitType" value="0"/> <?php echo BFText::_('COM_BREEZINGFORMS_NONE'); ?> <input onclick="JQuery('#bfInitScriptFlags').css('display','');JQuery('#bfInitScriptLibrary').css('display','');JQuery('#bfInitScriptCustom').css('display','none');" type="radio" name="initType" id="bfInitTypeLibrary" class="bfInitType" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_LIBRARY'); ?> <input onclick="JQuery('#bfInitScriptFlags').css('display','');JQuery('#bfInitScriptLibrary').css('display','none');JQuery('#bfInitScriptCustom').css('display','');" type="radio" name="initType" id="bfInitTypeCustom" class="bfInitType" value="2"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> </div> <div id="bfInitScriptFlags" style="display:none"> <hr/> <div class="bfPropertyWrap"> <input type="checkbox" id="bfInitFormEntry" class="bfInitFormEntry" name="bfInitFormEntry" value="1"/><label for="bfInitFormEntry"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_FORMENTRY'); ?> </label> <input type="checkbox" id="bfInitPageEntry" class="bfInitPageEntry" name="bfInitPageEntry" value="1"/><label for="bfInitPageEntry"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_PAGEENTRY'); ?> </label> </div> </div> <div id="bfInitScriptLibrary" style="display:none"> <hr/> <div class="bfPropertyWrap"> <?php echo BFText::_('COM_BREEZINGFORMS_SCRIPT'); ?> :<br/> <select id="bfInitScriptSelection"></select> </div> <br/> <div id="bfInitSelectionDescription"></div> </div> <div id="bfInitScriptCustom" style="display:none"> <hr/> <div class="bfPropertyWrap"> <div class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_INITSCRIPT_CODEFRAMEWORK')); ?> " style="cursor: pointer;" onclick="createInitCode()"><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_CODE_FRAMEWORK'); ?> </div> <textarea name="bfInitCode" id="bfInitCode" rows="10" style="width:100%" wrap="off"></textarea> </div> </div> </fieldset> <fieldset id="bfActionScript" style="display:none"> <br/> <legend><?php echo BFText::_('COM_BREEZINGFORMS_ADVANCED_ELEMENT_ACTIONSCRIPT'); ?> </legend> <div class="bfPropertyWrap"> <span class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ACTIONSCRIPT')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_TYPE'); ?> :</span> <input onclick="JQuery('#bfActionScriptFlags').css('display','none');JQuery('#bfActionScriptLibrary').css('display','none');JQuery('#bfActionScriptCustom').css('display','none');" type="radio" name="actionType" name="actionType" id="bfActionTypeNone" class="bfActionType" value="0"/> <?php echo BFText::_('COM_BREEZINGFORMS_NONE'); ?> <input onclick="JQuery('#bfActionScriptFlags').css('display','');JQuery('#bfActionScriptLibrary').css('display','');JQuery('#bfActionScriptCustom').css('display','none');" type="radio" name="actionType" id="bfActionTypeLibrary" class="bfActionType" value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_LIBRARY'); ?> <input onclick="JQuery('#bfActionScriptFlags').css('display','');JQuery('#bfActionScriptLibrary').css('display','none');JQuery('#bfActionScriptCustom').css('display','');" type="radio" name="actionType" id="bfActionTypeCustom" class="bfActionType" value="2"/> <?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM'); ?> </div> <div id="bfActionScriptFlags" style="display:none"> <hr/> <div class="bfPropertyWrap"> <?php echo BFText::_('COM_BREEZINGFORMS_ACTIONS'); ?> : <input style="display:none" type="checkbox" class="bfAction" id="bfActionClick" name="bfActionClick" value="1"/><label style="display:none" class="bfActionLabel" id="bfActionClickLabel"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CLICK'); ?> </label> <input style="display:none" type="checkbox" class="bfAction" id="bfActionBlur" name="bfActionBlur" value="1"/><label style="display:none" class="bfActionLabel" id="bfActionBlurLabel"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_BLUR'); ?> </label> <input style="display:none" type="checkbox" class="bfAction" id="bfActionChange" name="bfActionChange" value="1"/><label style="display:none" class="bfActionLabel" id="bfActionChangeLabel"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_CHANGE'); ?> </label> <input style="display:none" type="checkbox" class="bfAction" id="bfActionFocus" name="bfActionFocus" value="1"/><label style="display:none" class="bfActionLabel" id="bfActionFocusLabel"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_FOCUS'); ?> </label> <input style="display:none" type="checkbox" class="bfAction" id="bfActionSelect" name="bfActionSelect" value="1"/><label style="display:none" class="bfActionLabel" id="bfActionSelectLabel"> <?php echo BFText::_('COM_BREEZINGFORMS_ELEMENTS_SELECTION'); ?> </label> </div> </div> <div id="bfActionScriptLibrary" style="display:none"> <hr/> <div class="bfPropertyWrap"> <?php echo BFText::_('COM_BREEZINGFORMS_SCRIPT'); ?> :<br/><select id="bfActionsScriptSelection"></select> </div> <br/> <div id="bfActionsScriptSelectionDescription"></div> </div> <div id="bfActionScriptCustom" style="display:none"> <hr/> <div class="bfPropertyWrap"> <div class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_QM_ACTIONSCRIPT_CODEFRAMEWORK')); ?> " style="cursor: pointer;" onclick="createActionCode()"><?php echo BFText::_('COM_BREEZINGFORMS_CREATE_CODE_FRAMEWORK'); ?> </div> <textarea name="bfActionCode" id="bfActionCode" rows="10" style="width:100%" wrap="off"></textarea> </div> </div> </fieldset> </div> <br/> <div class="bfFadingMessage" style="display:none"></div> <input type="submit" class="btn btn-secondary" value="<?php echo BFText::_('COM_BREEZINGFORMS_PROPERTIES_SAVE'); ?> " id="bfAdvancedSaveButton"/> <br/> <br/> </div> </div> </div> <div class="b"> <div class="b"> <div class="b"></div> </div> </div> </div> </form> </div> <!-- ##### bfQuickModeRight end ##### --> </div> <!-- ##### bfQuickModeWrapper end ##### --> <?php }
function getListRecords() { @ob_end_clean(); if (JRequest::getInt('update', 0) == 1 && JRequest::getInt('record_id', 0) > 0) { $db = JFactory::getDbo(); $record_id = JRequest::getInt('record_id', 0); $form = JRequest::getInt('form_selection', 0); $db = JFactory::getDbo(); $db->setQuery("Select * From #__facileforms_elements Where published = 1 And `name` <> 'bfFakeName' And `name` <> 'bfFakeName2' And `name` <> 'bfFakeName3' And `name` <> 'bfFakeName4' And `name` <> 'bfFakeName5' And form = " . intval($form) . " Order By `ordering`"); $elements = $db->loadAssocList(); foreach ($elements as $element) { $value = JRequest::getVar('bfrecord_custom_' . $element['name'], null, 'REQUEST', 'STRING', JREQUEST_ALLOWRAW); if ($value !== null) { if ($element['type'] == 'Checkbox' || $element['type'] == 'Checkbox Group' || $element['type'] == 'Select List') { $db->setQuery("Select id From #__facileforms_subrecords Where `name` = " . $db->quote($element['name']) . " And record = " . $record_id . " Order By id"); $group_ids = $db->loadAssocList(); $values = explode(', ', $value); $i = 0; foreach ($group_ids as $group_id) { if (isset($values[$i])) { $db->setQuery("Update #__facileforms_subrecords Set value = " . $db->quote($values[$i]) . " Where id = " . $db->quote($group_id['id'])); $db->query(); } $i++; } } else { $db->setQuery("Update #__facileforms_subrecords Set value = " . $db->quote($value) . " Where name = " . $db->quote($element['name']) . " And record = " . $record_id); $db->query(); } } } } header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1. header('Pragma: no-cache'); // HTTP 1.0. header('Expires: 0'); $db = JFactory::getDbo(); $order = explode(" ", str_replace("`", "", JRequest::getVar('jtSorting', 'submitted Desc'))); JRequest::setVar('cbrecord_order_by', $order[0]); $order[0] = JRequest::getCmd('cbrecord_order_by', 'submitted Desc'); $searchterm = JRequest::getVar('searchterm', ''); // date search jimport('joomla.version'); $version = new JVersion(); $_version = $version->getShortVersion(); $tz = 'UTC'; if (version_compare($_version, '3.2', '>=')) { $tz = new DateTimeZone(JFactory::getApplication()->getCfg('offset')); } $now = JFactory::getDate(); if (version_compare($_version, '3.2', '>=')) { $now = JFactory::getDate('now', $tz); } $now_date = ''; if (version_compare($this->version, '3.0', '>=')) { $now_date = $now->toSql(); } else { $now_date = $now->toMySQL(); } // from date / time $searchdatefrom = JRequest::getVar('searchdatefrom', ''); $searchtimefrom = JRequest::getVar('searchtimefrom', ''); if (version_compare($_version, '3.2', '>=')) { $tz = new DateTimeZone(JFactory::getApplication()->getCfg('offset')); if ($searchdatefrom != '') { $searchdatefrom = JFactory::getDate($searchdatefrom, $tz); $searchdatefrom = $searchdatefrom->format('Y-m-d', true); } if ($searchtimefrom) { $searchtimefrom = JFactory::getDate($searchtimefrom, $tz); $searchtimefrom = $searchtimefrom->format('H:i:s', true); } $now_date = $now->format('Y-m-d', true); } else { if ($searchtimefrom != '') { $searchtimefrom = date('H:i:s', strtotime('1970-01-01 ' . $searchtimefrom)); } if ($searchdatefrom != '') { $searchdatefrom = date('Y-m-d', strtotime($searchdatefrom)); } } if ($searchdatefrom == '' && $searchtimefrom != '') { $searchdatefrom = $now_date . ' ' . $searchtimefrom; } else { if ($searchdatefrom != '' && $searchtimefrom != '') { $searchdatefrom = $searchdatefrom . ' ' . $searchtimefrom; } else { if ($searchdatefrom != '' && $searchtimefrom == '') { $searchdatefrom = $searchdatefrom . ' 00:00:00'; } } } // to date / time $searchdateto = JRequest::getVar('searchdateto', ''); $searchtimeto = JRequest::getVar('searchtimeto', ''); if (version_compare($_version, '3.2', '>=')) { $tz = new DateTimeZone(JFactory::getApplication()->getCfg('offset')); if ($searchdateto != '') { $searchdateto = JFactory::getDate($searchdateto, $tz); $searchdateto = $searchdateto->format('Y-m-d', true); } if ($searchtimeto != '') { $searchtimeto = JFactory::getDate($searchtimeto, $tz); $searchtimeto = $searchtimeto->format('H:i:s', true); } $now_date = $now->format('Y-m-d', true); } else { if ($searchtimeto != '') { $searchtimeto = date('H:i:s', strtotime('1970-01-01 ' . $searchtimeto)); } if ($searchdateto != '') { $searchdateto = date('Y-m-d', strtotime($searchdateto)); } } if ($searchdateto == '' && $searchtimeto != '') { $searchdateto = $now_date . ' ' . $searchtimeto; } else { if ($searchdateto != '' && $searchtimeto != '') { $searchdateto = $searchdateto . ' ' . $searchtimeto; } else { if ($searchdateto != '' && $searchtimeto == '') { $searchdateto = $searchdateto . ' 23:59:59'; } } } $db->setQuery("SET SESSION group_concat_max_len = 9999999"); $db->query(); $db->setQuery("Select * From #__facileforms_elements Where published = 1 And `name` <> 'bfFakeName' And `name` <> 'bfFakeName2' And `name` <> 'bfFakeName3' And `name` <> 'bfFakeName4' And `name` <> 'bfFakeName5' And form = " . JRequest::getInt('form_selection', 0) . " Order By `ordering`"); $elements = $db->loadAssocList(); $selectors = ''; $x = 0; $elements_size = count($elements); foreach ($elements as $element) { if ($element['type'] == 'Checkbox' || $element['type'] == 'Checkbox Group' || $element['type'] == 'Select List') { $selectors .= "Trim( Both ', ' From GROUP_CONCAT( ( Case When subrecords.`name` = '{$element['name']}' Then subrecords.`value` Else '' End ) Order By subrecords.`id` SEPARATOR ', ' ) ) As `bfrecord_custom_{$element['name']}` "; } else { $selectors .= " max( case when subrecords.`element` = '{$element['id']}' then subrecords.`value` end ) As `bfrecord_custom_{$element['name']}` "; } $selectors .= ", "; $selectors .= " max( case when subrecords.`element` = '{$element['id']}' then subrecords.`element` end ) As `bfrecord_custom_element_id_{$element['name']}` "; $selectors .= ", "; $selectors .= " max( case when subrecords.`type` = " . $db->quote($element['type']) . " And subrecords.`name` = " . $db->quote($element['name']) . " then subrecords.`type` end ) As `bfrecord_custom_element_type_{$element['name']}` "; $selectors .= ", "; $selectors .= " max( case when subrecords.`title` = " . $db->quote($element['title']) . " And subrecords.`name` = " . $db->quote($element['name']) . " then subrecords.`title` end ) As `bfrecord_custom_element_title_{$element['name']}` "; $selectors .= ", "; $x++; } $the_search_term = ''; $the_having_term = ''; if (JRequest::getBool('searchintext', false) || JRequest::getBool('searchinuserid', false) || JRequest::getBool('searchinusername', false) || JRequest::getBool('searchinuserfullname', false) || JRequest::getBool('searchinid', false) || JRequest::getBool('searchinip', false) || JRequest::getBool('searchinviewed', false) || JRequest::getBool('searchinexported', false) || JRequest::getBool('searchinarchived', false) || JRequest::getBool('searchinpayment', false)) { foreach ($elements as $element) { $the_having_term .= $searchterm && JRequest::getBool('searchintext', false) ? " `bfrecord_custom_{$element['name']}` Like " . $db->quote('%' . $searchterm . '%') . " Or " : ''; } $the_search_term .= $searchterm && JRequest::getBool('searchinid', false) ? " records.`id` = " . $db->quote($searchterm) . " Or " : ''; $the_search_term .= $searchterm && JRequest::getBool('searchinip', false) ? " records.`ip` = " . $db->quote($searchterm) . " Or " : ''; $the_search_term .= $searchterm && JRequest::getBool('searchinuserid', false) ? " records.`user_id` = " . $db->quote($searchterm) . " Or " : ''; $the_search_term .= $searchterm && JRequest::getBool('searchinusername', false) ? " records.`username` Like " . $db->quote('%' . $searchterm . '%') . " Or " : ''; $the_search_term .= $searchterm && JRequest::getBool('searchinuserfullname', false) ? " records.`user_full_name` Like " . $db->quote('%' . $searchterm . '%') . " Or " : ''; $the_search_term .= JRequest::getBool('searchinviewed', false) ? " records.`viewed` = 1 Or " : ''; $the_search_term .= JRequest::getBool('searchinexported', false) ? " records.`exported` = 1 Or " : ''; $the_search_term .= JRequest::getBool('searchinarchived', false) ? " records.`archived` = 1 Or " : ''; if ($searchterm && JRequest::getBool('searchinpayment', false)) { $the_search_term .= " records.`paypal_tx_id` Like " . $db->quote('%' . $searchterm . '%') . " Or "; $the_search_term .= " records.`paypal_payment_date` Like " . $db->quote('%' . $searchterm . '%') . " Or "; $the_search_term .= " records.`paypal_testaccount` = " . $db->quote($searchterm) . " Or "; $the_search_term .= " records.`paypal_download_tries` = " . $db->quote($searchterm) . " Or "; } $the_search_term = substr($the_search_term, 0, -3); $the_having_term = substr($the_having_term, 0, -3); } if ($the_search_term) { $the_search_term = ' And ( ' . $the_search_term . ' ) '; } if ($the_having_term) { $the_having_term = ' Having ( ' . $the_having_term . ' ) '; } if ($searchdatefrom != '' && version_compare($this->version, '3.2', '>=')) { $date_ = JFactory::getDate($searchdatefrom, $this->tz); $searchdatefrom = $date_->format('Y-m-d H:i:s'); } if ($searchdateto != '' && version_compare($this->version, '3.2', '>=')) { $date_ = JFactory::getDate($searchdateto, $this->tz); $searchdateto = $date_->format('Y-m-d H:i:s'); } //$now__ = JFactory::getDate('now', $this->tz); //echo $now__->format('Y-m-d H:i:s', true); //echo $searchdate; $db->setQuery(" Select SQL_CACHE SQL_CALC_FOUND_ROWS " . $selectors . " records.user_id As bfrecord_user_id, " . " records.username As bfrecord_username, " . " records.user_full_name As bfrecord_user_full_name, " . " records.id As bfrecord_id, " . " records.submitted As bfrecord_submitted, " . " records.ip As bfrecord_ip, " . " records.opsys As bfrecord_opsys, " . " records.browser As bfrecord_browser, " . " records.viewed As bfrecord_viewed, " . " records.exported As bfrecord_exported, " . " records.paypal_tx_id As bfrecord_payment_tx_id, " . " records.paypal_payment_date As bfrecord_payment_date, " . " records.paypal_testaccount As bfrecord_payment_test, " . " records.paypal_download_tries As bfrecord_payment_download_tries, " . " records.archived As bfrecord_archived, " . " forms.title As bfrecord_title, " . " forms.name As bfrecord_name, " . " forms.id As bfrecord_form_id " . " From " . " #__facileforms_forms As forms, " . " #__facileforms_records As records, " . " #__facileforms_subrecords As subrecords " . " Where " . " records.id = subrecords.record " . " And " . " forms.id = records.form " . ($searchdatefrom ? " And records.submitted >= " . $db->quote($searchdatefrom) . " " : '') . ($searchdateto ? " And records.submitted <= " . $db->quote($searchdateto) . " " : '') . $the_search_term . (JRequest::getInt('record_id', 0) > 0 ? " And records.id = " . JRequest::getInt('record_id', 0) : "") . (JRequest::getInt('form_selection', 0) > 0 ? ' And records.form = ' . JRequest::getInt('form_selection', 0) : '') . " Group By subrecords.record " . $the_having_term . " Order By `" . $order[0] . "` " . (isset($order[1]) && strtolower($order[1]) == 'asc' ? 'Asc' : 'Desc') . " Limit " . JRequest::getInt('jtStartIndex', 0) . ", " . JRequest::getInt('jtPageSize', 10)); //echo $db->getQuery(); $result = array(); $result['Result'] = 'OK'; try { jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); $result['Records'] = $db->loadAssocList(); $i = 0; foreach ($result['Records'] as $record) { $name = ''; foreach ($record as $key => $val) { $name = explode('bfrecord_custom_element_id_', $key); if (isset($name[1])) { $name = $name[1]; if ($record['bfrecord_custom_element_type_' . $name] == 'File Upload' && trim($record['bfrecord_custom_' . $name])) { $out = ''; $out .= '<div style="white-space: nowrap; overflow: auto; max-height: 300px; width: 100%;">'; $files = explode("\n", str_replace("\r", "", $record['bfrecord_custom_' . $name])); $fileIdx = 0; foreach ($files as $file) { $out .= bf_alert('Image/File Preview available', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); $out .= bf_alert('in full version only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); break; $fileIdx++; } $out .= '</div>'; $result['Records'][$i]['bfrecord_custom_file_upload_raw_' . $name] = $result['Records'][$i]['bfrecord_custom_' . $name]; $result['Records'][$i]['bfrecord_custom_' . $name] = $out; } } } if (version_compare($this->version, '3.2', '>=')) { $date_ = JFactory::getDate($result['Records'][$i]['bfrecord_submitted'], $this->tz); $offset = $date_->getOffsetFromGMT(); if ($offset > 0) { $date_->add(new DateInterval('PT' . $offset . 'S')); } else { if ($offset < 0) { $offset = $offset * -1; $date_->sub(new DateInterval('PT' . $offset . 'S')); } } $result['Records'][$i]['bfrecord_submitted'] = $date_->format('Y-m-d H:i:s', true); } $i++; } } catch (Exception $e) { echo $e->getMessage(); exit; } $db->setQuery("SELECT FOUND_ROWS();"); $record_count = $db->loadResult(); $result['TotalRecordCount'] = intval($record_count); if (JRequest::getInt('record_id', 0) > 0) { $db->setQuery("Update #__facileforms_records Set viewed = 1 Where id = " . JRequest::getInt('record_id', 0)); $db->query(); } echo json_encode($result); exit; }
static function edit($option, $caller, $pkg, $downloadfile = '') { global $ff_mossite, $ff_config, $ff_admsite, $ff_admicon, $ff_version; ?> <?php echo bf_alert('Get BreezingForms Full Version', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <?php echo bf_alert('More features, no footers, no messages', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script type="text/javascript" src="<?php echo $ff_mossite; ?> /components/com_breezingforms/libraries/js/overlib_mini.js"></script> <form action="index.php" method="post" name="adminForm" id="adminForm"> <table cellpadding="4" cellspacing="1" border="0" class="adminform" style="width:300px;"> <tr><th colspan="6" class="title" >BreezingForms <?php echo $ff_version . ' - ' . BFText::_('COM_BREEZINGFORMS_CONFIG'); ?> </th></tr> <tr> <td></td> <td nowrap><label class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_CONFIG_ENABLE_CLASSIC_TIP')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_ENABLE_CLASSIC'); ?> </label></td> <td nowrap colspan="3"> <?php echo JHTML::_('select.booleanlist', "enable_classic", "", $ff_config->enable_classic); ?> <td></td> </tr> <?php if ($ff_config->enable_classic == 1) { ?> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_USELIVESITE'); ?> </td> <td nowrap colspan="3"> <?php echo JHTML::_('select.booleanlist', "livesite", "", $ff_config->livesite); ?> </td> <td></td> </tr> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_PREVIEWFRAME'); ?> </td> <td nowrap colspan="3"> <?php echo JHTML::_('select.booleanlist', "stylesheet", "", $ff_config->stylesheet); ?> </td> <td></td> </tr> <tr> <td></td> <td valign="top" nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_GRIDSIZE'); ?> </td> <td nowrap colspan="3"> <input type="text" size="4" maxlength="4" name="gridsize" value="<?php echo $ff_config->gridsize; ?> "/> </td> <td></td> </tr> <tr> <td></td> <td valign="top" nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_COLOR'); ?> 1</td> <td nowrap colspan="3"> <input type="text" size="7" maxlength="20" name="gridcolor1" value="<?php echo $ff_config->gridcolor1; ?> "/> </td> <td></td> </tr> <tr> <td></td> <td valign="top" nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_COLOR'); ?> 2</td> <td nowrap colspan="3"> <input type="text" size="7" maxlength="20" name="gridcolor2" value="<?php echo $ff_config->gridcolor2; ?> "/> </td> <td></td> </tr> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_USEWYSIWYG'); ?> </td> <td nowrap colspan="3"> <?php echo JHTML::_('select.booleanlist', "wysiwyg", "", $ff_config->wysiwyg); ?> </td> <td></td> </tr> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_COMPRESS'); ?> </td> <td nowrap colspan="3"> <?php echo JHTML::_('select.booleanlist', "compress", "", $ff_config->compress); ?> </td> <td></td> </tr> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_GETPROVIDER'); ?> </td> <td nowrap colspan="3"> <?php echo JHTML::_('select.booleanlist', "getprovider", "", $ff_config->getprovider); ?> </td> <td></td> </tr> <tr> <td></td> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_SMALL'); ?> </td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_MEDIUM'); ?> </td> <td nowrap width="100%"><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_LARGE'); ?> </td> <td></td> </tr> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_TEXTAREA'); ?> </td> <td nowrap><input type="text" style="width: 50px;" size="4" maxlength="4" name="areasmall" value="<?php echo $ff_config->areasmall; ?> "/></td> <td nowrap><input type="text" style="width: 50px;" size="4" maxlength="4" name="areamedium" value="<?php echo $ff_config->areamedium; ?> "/></td> <td nowrap><input type="text" style="width: 50px;" size="4" maxlength="4" name="arealarge" value="<?php echo $ff_config->arealarge; ?> "/></td> <td></td> </tr> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_LIMITDESC'); ?> </td> <td nowrap colspan="3"><input type="text" size="6" maxlength="6" name="limitdesc" value="<?php echo $ff_config->limitdesc; ?> "/> <?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_CHARS'); ?> </td> <td></td> </tr> <?php } ?> <tr> <td></td> <td nowrap><label class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_CONFIG_DEFAULTEMAIL_TIP')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_DEFAULTEMAIL'); ?> </label></td> <td nowrap colspan="3"><input type="text" name="emailadr" value="<?php echo $ff_config->emailadr; ?> "/></td> <td></td> </tr> <?php if ($ff_config->enable_classic == 1) { ?> <tr> <td></td> <td nowrap><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_FFIMAGES'); ?> </td> <td nowrap colspan="3"><input type="text" size="70" maxlength="255" name="images" value="<?php echo $ff_config->images; ?> "/></td> <td></td> </tr> <?php } ?> <tr> <td></td> <td nowrap><label class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_CONFIG_FFUPLOADS_TIP')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_FFUPLOADS'); ?> </label></td> <td nowrap colspan="3"><input type="text" size="70" maxlength="255" name="uploads" value="<?php echo $ff_config->uploads; ?> "/></td> <td></td> </tr> <tr> <td></td> <td nowrap><label class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_CONFIG_CSVDELIMITER_TIP')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_CSVDELIMITER'); ?> </label></td> <td nowrap colspan="3"><input type="text" size="1" maxlength="1" name="csvdelimiter" value="<?php echo htmlentities(stripslashes($ff_config->csvdelimiter), ENT_QUOTES, 'UTF-8'); ?> "/></td> <td></td> </tr> <tr> <td></td> <td nowrap><label class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_CONFIG_CSVQUOTE_TIP')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_CSVQUOTE'); ?> </label></td> <td nowrap colspan="3"><input type="text" size="1" maxlength="1" name="csvquote" value="<?php echo htmlentities(stripslashes($ff_config->csvquote), ENT_QUOTES, 'UTF-8'); ?> "/></td> <td></td> </tr> <tr> <td></td> <td nowrap><label class="hasTip" title="<?php echo bf_tooltipText(BFText::_('COM_BREEZINGFORMS_CONFIG_CSVQUOTENEWLINE_TIP')); ?> "><?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_CSVQUOTENEWLINE'); ?> </label></td> <td nowrap colspan="3"><input type="radio" name="cellnewline" value="0"<?php echo $ff_config->cellnewline == 0 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_CSVQUOTENEWLINE_REGULAR'); ?> <input type="radio" name="cellnewline" value="1"<?php echo $ff_config->cellnewline != 0 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_CONFIG_CSVQUOTENEWLINE_QUOTED'); ?> </td> <td></td> </tr> <tr> <td></td> <td nowrap colspan="4" style="text-align:right"><br/> <input class="btn btn-primary" onclick="submitbutton('save');" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_TOOLBAR_SAVE'); ?> "/> <input class="btn btn-primary" onclick="submitbutton('instpackage');" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_TOOLBAR_PKGINSTLR'); ?> "/> <input class="btn btn-primary" onclick="submitbutton('makepackage');" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_TOOLBAR_CREAPKG'); ?> "/> <input class="btn btn-primary" onclick="submitbutton('cancel');" type="submit" value="<?php echo BFText::_('COM_BREEZINGFORMS_TOOLBAR_CANCEL'); ?> "/> </a> </td> <td></td> </tr> </table> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="act" value="configuration" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="caller_url" value="<?php echo htmlspecialchars($caller, ENT_QUOTES); ?> " /> <input type="hidden" name="pkg" value="<?php echo $pkg; ?> " /> </form> <?php if ($downloadfile != '') { ?> <script type="text/javascript">onload=function(){document.dldform.submit();}</script> <form action="<?php echo $ff_admsite; ?> /admin/download.php" method="post" name="dldform"> <input type="hidden" name="filename" value="<?php echo $downloadfile; ?> " /> </form> <?php } // if }
static function edit($option, $tabpane, $pkg, &$row, &$lists, $caller) { global $ff_mossite, $ff_admsite, $ff_config; $action = $row->id ? BFText::_('COM_BREEZINGFORMS_FORMS_EDIT') : BFText::_('COM_BREEZINGFORMS_FORMS_ADD'); ?> <script type="text/javascript" src="<?php echo $ff_admsite; ?> /admin/areautils.js"></script> <script type="text/javascript"> <!-- function checkNumber(value, msg1, msg2) { var nonDigits = /\D/; var error = ''; if (value == '') error += msg1; else if (nonDigits.test(value)) error += msg2; return error; } // checkNumber function checkIdentifier(value, msg1, msg2) { var invalidChars = /\W/; var error = ''; if (value == '') error += msg1; else if (invalidChars.test(value)) error += msg2; return error; } // checkIdentifier var bf_submitbutton = function(pressbutton) { var form = document.adminForm; var error = ''; if (pressbutton != 'cancel') { if (form.title.value == '') error += "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TITLEEMPTY'); ?> \n"; error += checkIdentifier( form.name.value, "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NAMEEMPTY'); ?> \n", "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NAMEIDENT'); ?> \n" ); error += checkNumber( form.width.value, "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_WIDTHEMPTY'); ?> \n", "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_WIDTHNUMBER'); ?> \n" ); error += checkNumber( form.height.value, "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_HEIGHTEMPTY'); ?> \n", "<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_HEIGHTNUMBER'); ?> \n" ); } // if if (error != '') alert(error); else{ submitform( pressbutton ); } }; // submitbutton if(typeof Joomla != 'undefined'){ Joomla.submitbutton = bf_submitbutton; } submitbutton = bf_submitbutton; function createInitCode() { form = document.adminForm; name = form.name.value; if (name=='') { alert("<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ENTNAMEFIRST'); ?> "); return; } // if if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CREATEINITNOW'); ?> \n<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_EXISTINGAPPENDED'); ?> ")) return; code = "function ff_"+name+"_init()\n"+ "{\n"+ "} // ff_"+name+"_init\n"; oldcode = form.script1code.value; if (oldcode != '') form.script1code.value = code+ "\n// -------------- <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_OLDCODEBELOW'); ?> --------------\n\n"+ oldcode; else form.script1code.value = code; codeAreaChange(form.script1code); } // createInitCode function createSubmittedCode() { form = document.adminForm; name = form.name.value; if (name=='') { alert("<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ENTNAMEFIRST'); ?> "); return; } // if if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CREATESUBMITTEDNOW'); ?> \n<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_EXISTINGAPPENDED'); ?> ")) return; code = "function ff_"+name+"_submitted(status, message)\n"+ "{\n"+ " switch (status) {\n"+ " case FF_STATUS_OK:\n"+ " // do whatever desired on success\n"+ " break;\n"+ " case FF_STATUS_UNPUBLISHED:\n"+ " case FF_STATUS_SAVERECORD_FAILED:\n"+ " case FF_STATUS_SAVESUBRECORD_FAILED:\n"+ " case FF_STATUS_UPLOAD_FAILED:\n"+ " case FF_STATUS_ATTACHMENT_FAILED:\n"+ " case FF_STATUS_SENDMAIL_FAILED:\n"+ " default:\n"+ " alert(message);\n"+ " } // switch\n"+ "} // ff_"+name+"_submitted\n"; oldcode = form.script2code.value; if (oldcode != '') form.script2code.value = code+ "\n// -------------- <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_OLDCODEBELOW'); ?> --------------\n\n"+ oldcode; else form.script2code.value = code; codeAreaChange(form.script2code); } // createSubmittedCode function dispheight(value) { switch (value) { case '0': document.getElementById('heightmargin').style.display = 'none'; break; default: document.getElementById('heightmargin').style.display = ''; } // switch } // dispheight function dispprevwidth() { var form = document.adminForm; if (form.widthmode.value=='0' || form.prevmode.value=='0') document.getElementById('prevwidthvalue').style.display = 'none'; else document.getElementById('prevwidthvalue').style.display = ''; } // dispprevwidth function dispinit(value) { if(document.getElementById) { switch (value) { case '1': document.getElementById('initlib').style.display = ''; document.getElementById('initcode').style.display = 'none'; break; case '2': document.getElementById('initlib').style.display = 'none'; document.getElementById('initcode').style.display = ''; break; default: document.getElementById('initlib').style.display = 'none'; document.getElementById('initcode').style.display = 'none'; } // switch } // if } // dispinit function dispsubmitted(value) { if(document.getElementById) { switch (value) { case '1': document.getElementById('submittedlib').style.display = ''; document.getElementById('submittedcode').style.display = 'none'; break; case '2': document.getElementById('submittedlib').style.display = 'none'; document.getElementById('submittedcode').style.display = ''; break; default: document.getElementById('submittedlib').style.display = 'none'; document.getElementById('submittedcode').style.display = 'none'; } // switch } // if } // dispsubmitted function dispemail(value) { if(document.getElementById) { switch (value) { case '0': document.getElementById('emaillogging').style.display = 'none'; document.getElementById('emailattachment').style.display = 'none'; document.getElementById('emailaddress').style.display = 'none'; break; case '1': document.getElementById('emaillogging').style.display = ''; document.getElementById('emailattachment').style.display = ''; document.getElementById('emailaddress').style.display = 'none'; break; default: document.getElementById('emaillogging').style.display = ''; document.getElementById('emailattachment').style.display = ''; document.getElementById('emailaddress').style.display = ''; } // switch } // if } // dispemail function dispp1(value) { if(document.getElementById) { switch (value) { case '1': document.getElementById('p1lib').style.display = ''; document.getElementById('p1code').style.display = 'none'; break; case '2': document.getElementById('p1lib').style.display = 'none'; document.getElementById('p1code').style.display = ''; break; default: document.getElementById('p1lib').style.display = 'none'; document.getElementById('p1code').style.display = 'none'; } // switch } // if } // dispp1 function dispp2(value) { if(document.getElementById) { switch (value) { case '1': document.getElementById('p2lib').style.display = ''; document.getElementById('p2code').style.display = 'none'; break; case '2': document.getElementById('p2lib').style.display = 'none'; document.getElementById('p2code').style.display = ''; break; default: document.getElementById('p2lib').style.display = 'none'; document.getElementById('p2code').style.display = 'none'; } // switch } // if } // dispp2 function dispp3(value) { if(document.getElementById) { switch (value) { case '1': document.getElementById('p3lib').style.display = ''; document.getElementById('p3code').style.display = 'none'; break; case '2': document.getElementById('p3lib').style.display = 'none'; document.getElementById('p3code').style.display = ''; break; default: document.getElementById('p3lib').style.display = 'none'; document.getElementById('p3code').style.display = 'none'; } // switch } // if } // dispp3 function dispp4(value) { if(document.getElementById) { switch (value) { case '1': document.getElementById('p4lib').style.display = ''; document.getElementById('p4code').style.display = 'none'; break; case '2': document.getElementById('p4lib').style.display = 'none'; document.getElementById('p4code').style.display = ''; break; default: document.getElementById('p4lib').style.display = 'none'; document.getElementById('p4code').style.display = 'none'; } // switch } // if } // dispp4 onload = function() { <?php if ($row->script1cond != 0) { echo "\t\t\tdispinit('" . $row->script1cond . "');\n"; } if ($row->script2cond != 0) { echo "\t\t\tdispsubmitted('" . $row->script2cond . "');\n"; } if ($row->piece1cond != 0) { echo "\t\t\tdispp1('" . $row->piece1cond . "');\n"; } if ($row->piece2cond != 0) { echo "\t\t\tdispp2('" . $row->piece2cond . "');\n"; } if ($row->piece3cond != 0) { echo "\t\t\tdispp3('" . $row->piece3cond . "');\n"; } if ($row->piece4cond != 0) { echo "\t\t\tdispp4('" . $row->piece4cond . "');\n"; } switch ($tabpane) { case 1: case 2: case 3: echo "\t\t\ttabPane1.setSelectedIndex({$tabpane});\n"; break; default: echo "\t\t\tdocument.adminForm.title.focus();\n"; } // switch ?> codeAreaAdd('script1code', 'script1lines'); codeAreaAdd('script2code', 'script2lines'); codeAreaAdd('piece1code', 'piece1lines'); codeAreaAdd('piece2code', 'piece2lines'); codeAreaAdd('piece3code', 'piece3lines'); codeAreaAdd('piece4code', 'piece4lines'); } // onload //--> </script> <?php jimport('joomla.version'); $version = new JVersion(); if (version_compare($version->getShortVersion(), '3.0', '>=')) { ?> <style type="text/css"> #bftab { float: left !important; margin-right: 20px !important; margin-top: -20px !important; } .adminlist{ width: 70% !important; } </style> <?php } ?> <?php //echo bf_alert('Get BreezingForms Full Version', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <?php //echo bf_alert('More features, no footers, no messages', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> <fieldset><legend><?php echo JText::_('COM_BREEZINGFORMS_FORMSETUP'); ?> : <?php echo htmlentities($row->title, ENT_QUOTES, 'UTF-8'); ?> </legend> <div style="float: right;"> <input class="btn btn-primary" onclick="submitbutton('save');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_TOOLBAR_SAVE'), ENT_QUOTES, 'UTF-8'); ?> "/> <input class="btn btn-primary" onclick="submitbutton('cancel');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_TOOLBAR_CANCEL'), ENT_QUOTES, 'UTF-8'); ?> "/> </div> <div style="clear:both;"></div> <form action="index.php?format=html" method="post" name="adminForm" id="adminForm" class="adminForm"> <table cellpadding="4" cellspacing="1" border="0" style="width: 100%;" width="100%"> <tr><td colspan="3" class="title"></td></tr> <tr> <td></td> <td width="100%"> <?php $tabs = new BFTabs(0); $tabs->startPane('editPane'); $tabs->startTab(BFText::_('COM_BREEZINGFORMS_FORMS_SETTINGS'), 'tab_settings'); ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SETTINGS'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TITLE'); ?> </td> <td valign="top"> <input type="text" size="30" maxlength="50" name="title" value="<?php echo $row->title; ?> " class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PACKAGE'); ?> </td> <td valign="top"> <input type="text" size="30" maxlength="30" id="package" name="package" value="<?php echo $row->package; ?> " class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NAME'); ?> </td> <td valign="top"> <input type="text" size="30" maxlength="30" name="name" value="<?php echo $row->name; ?> " class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CLASSFOR'); ?> <div></td> <td valign="top"> <input type="text" size="30" maxlength="30" name="class1" value="<?php echo $row->class1; ?> " class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CLASSFOR'); ?> <form></td> <td valign="top"> <input type="text" size="30" maxlength="30" name="class2" value="<?php echo $row->class2; ?> " class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ORDERING'); ?> </td> <td valign="top"><?php echo $lists['ordering']; ?> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PUBLISHED'); ?> </td> <td valign="top"><?php echo JHTML::_('select.booleanlist', "published", "", $row->published); ?> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_RUNMODE'); ?> </td> <td valign="top"> <select name="runmode" size="1" class="inputbox"> <option value="0"<?php if ($row->runmode == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ANY'); ?> </option> <option value="1"<?php if ($row->runmode == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_FRONTEND'); ?> </option> <option value="2"<?php if ($row->runmode == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_BACKEND'); ?> </option> </select> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_WIDTH'); ?> </td> <td valign="top"> <input type="text" size="6" maxlength="6" name="width" value="<?php echo $row->width; ?> " class="inputbox" /> <br/> <select name="widthmode" size="1" onchange="dispprevwidth();" class="inputbox"> <option value="0"<?php if ($row->widthmode == 0) { echo ' selected="selected"'; } ?> >px</option> <option value="1"<?php if ($row->widthmode == 1) { echo ' selected="selected"'; } ?> >%</option> </select> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_HEIGHT'); ?> </td> <td valign="top"> <input type="text" size="6" maxlength="6" name="height" value="<?php echo $row->height; ?> " class="inputbox"/> px <?php if ($row->template_code_processed != 'QuickMode') { ?> <br/> <select name="heightmode" size="1" onchange="dispheight(this.value);" class="inputbox"> <option value="0"<?php if ($row->heightmode == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_FIXED'); ?> </option> <option value="1"<?php if ($row->heightmode == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_AUTO'); ?> </option> <option value="2"<?php if ($row->heightmode == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_AUTOMAX'); ?> </option> </select><span id="heightmargin"<?php if ($row->heightmode == 0) { echo ' style="display:none;"'; } ?> > </span> <?php } else { ?> <input type="hidden" name="heightmode" value="0"/> <?php } ?> </td> <td></td> </tr> <?php if ($row->template_code_processed == 'QuickMode' || $row->template_code != '') { ?> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_AUTOHEIGHT'); ?> </td> <td valign="top"> <select name="autoheight" class="inputbox"> <option value="0"<?php if ($row->autoheight == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_AUTOHEIGHT_OFF'); ?> </option> <option value="1"<?php if ($row->autoheight == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_AUTOHEIGHT_ON'); ?> </option> </select> <br/> <i><?php echo BFText::_('COM_BREEZINGFORMS_AUTOHEIGHT_INFO'); ?> </i> </td> <td></td> </tr> <?php } if ($row->template_code == '') { ?> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PREVMODE'); ?> </td> <td valign="top"> <select name="prevmode" size="1" onchange="dispprevwidth();" class="inputbox"> <option value="0"<?php if ($row->prevmode == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </option> <option value="1"<?php if ($row->prevmode == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_BELOW'); ?> </option> <option value="2"<?php if ($row->prevmode == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_OVERLAYED'); ?> </option> </select> <span id="prevwidthvalue"<?php if ($row->widthmode == 0 || $row->prevmode == 0) { echo ' style="display:none;"'; } ?> > <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_WIDTH'); ?> : <input size="6" maxlength="6" name="prevwidth" value="<?php echo $row->prevwidth; ?> " class="inputbox" /> px </span> </td> <td></td> </tr> <?php } ?> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LOGTODB'); ?> </td> <td valign="top"> <select name="dblog" size="1" class="inputbox"> <option value="0"<?php if ($row->dblog == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NO'); ?> </option> <option value="1"<?php if ($row->dblog == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONEMPTY'); ?> </option> <option value="2"<?php if ($row->dblog == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ALLVALS'); ?> </option> </select> </td> <td></td> </tr> <tr> <td colspan="2" valign="top"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_DESCRIPTION'); ?> <a href="#" onClick="textAreaResize('description',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="textAreaResize('description',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="textAreaResize('description',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <br/> <textarea wrap="off" name="description" style="width:100%;" rows="<?php echo $ff_config->areasmall; ?> " class="inputbox"><?php echo htmlspecialchars($row->description, ENT_QUOTES); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> <?php $tabs->endTab(); jimport('joomla.version'); $version = new JVersion(); if (version_compare($version->getShortVersion(), '3.1', '>=')) { $tabs->startTab(BFText::_('COM_BREEZINGFORMS_TAGS_AND_CONTENT'), 'tab_tags'); JHtml::_('tag.ajaxfield', '#tags_form', true); JHtml::_('tag.ajaxfield', '#tags_content', true); $tags = JHtml::_('tag.options'); // incredible.... foreach ($tags as $tag) { JFactory::getDbo()->setQuery("Select path From #__tags Where id = " . intval($tag->value)); $tag->path = JFactory::getDbo()->loadResult(); } $tags = JHelperTags::convertPathsToNames($tags); ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_TAGS_AND_CONTENT'); ?> </legend> <?php echo bf_alert('Joomla! tagging is supported in the full version only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> </fieldset> <?php $tabs->endTab(); } $tabs->startTab(BFText::_('COM_BREEZINGFORMS_ADMIN_EMAILS'), 'tab_admin_emails'); ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_ADMIN_EMAILS'); ?> </legend> <table width="80%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_EMAILNOTIFY'); ?> </td> <td valign="top"> <select style="width: 335px;" name="emailntf" size="1" onchange="dispemail(this.value);" class="inputbox"> <option value="0"<?php if ($row->emailntf == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NO'); ?> </option> <option value="1"<?php if ($row->emailntf == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_DEFADDR'); ?> </option> <option value="2"<?php if ($row->emailntf == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTADDR'); ?> </option> </select> </td> <td></td> </tr> <tr> <td valign="top"></td> <td valign="top"> <table cellpadding="4" cellspacing="4" border="0"> <tr id="emailaddress"<?php if ($row->emailntf != 2) { echo ' style="display:none;"'; } ?> > <td><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_EMAIL'); ?> </td> <td><input type="text" size="30" name="emailadr" value="<?php echo $row->emailadr; ?> " class="inputbox"/></td> </tr> <tr id="emaillogging"<?php if ($row->emailntf == 0) { echo ' style="display:none;"'; } ?> > <td><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_REPORT'); ?> </td> <td> <select name="emaillog" size="1" class="inputbox"> <option value="0"<?php if ($row->emaillog == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_HDRONLY'); ?> </option> <option value="1"<?php if ($row->emaillog == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONEMPTY'); ?> </option> <option value="2"<?php if ($row->emaillog == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ALLVALS'); ?> </option> </select> </td> </tr> <tr id="emailattachment"<?php if ($row->emailntf == 0) { echo ' style="display:none;"'; } ?> > <td><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ATTACHMENT'); ?> </td> <td> <select name="emailxml" size="1" class="inputbox"> <option value="0"<?php if ($row->emailxml == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NO'); ?> </option> <option value="1"<?php if ($row->emailxml == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_XML'); ?> </option> <!--<option value="2"<?php if ($row->emailxml == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_XML_ALLVALS'); ?> </option>--> <option value="3"<?php if ($row->emailxml == 3) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_CSV'); ?> </option> <option value="4"<?php if ($row->emailxml == 4) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_PDF'); ?> </option> </select> </td> </tr> </table> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_ALT_MAILFROM'); ?> </td> <td valign="top"> <input type="text" name="alt_mailfrom" value="<?php echo $row->alt_mailfrom; ?> " size="50" class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_ALT_FROMNAME'); ?> </td> <td valign="top"> <input type="text" name="alt_fromname" value="<?php echo $row->alt_fromname; ?> " size="50" class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM_MAIL_SUBJECT'); ?> </td> <td valign="top"> <input type="text" name="custom_mail_subject" value="<?php echo $row->custom_mail_subject; ?> " size="50" class="inputbox"/> </td> <td></td> </tr> <tr> <td valign="top" nowrap><?php echo BFText::_('COM_BREEZINGFORMS_EDIT_EMAILS'); ?> <br/> <br/> <div style="height: 250px; overflow: auto;<?php echo $row->email_type == 0 ? ' display: none;' : ''; ?> " id="email_custom_template_picker"> <?php echo bf_getFieldSelectorList($row->id, 'email_custom_template'); ?> </div> </td> <td valign="top"> <input onclick="document.getElementById('email_custom_html').style.display='none';document.getElementById('email_custom_template').style.display='none';document.getElementById('email_custom_template_picker').style.display='none';" type="radio" name="email_type" value="0"<?php echo $row->email_type == 0 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_TYPE_DEFAULT'); ?> <input onclick="document.getElementById('email_custom_html').style.display='';document.getElementById('email_custom_template').style.display='';document.getElementById('email_custom_template_picker').style.display='';" type="radio" name="email_type" value="1"<?php echo $row->email_type == 1 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_TYPE_CUSTOM'); ?> <div id="email_custom_html" style="<?php echo $row->email_type == 0 ? ' display: none;' : ''; ?> "> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_CUSTOM_HTML'); ?> <input type="radio" name="email_custom_html" value="0"<?php echo $row->email_custom_html == 0 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" name="email_custom_html" value="1"<?php echo $row->email_custom_html == 1 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> </div> <br/> <textarea style="width:100%; height: 500px;<?php echo $row->email_type == 0 ? ' display: none;' : ''; ?> " name="email_custom_template" id="email_custom_template"><?php echo htmlentities($row->email_custom_template, ENT_QUOTES, 'UTF-8'); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> <?php $tabs->endTab(); $tabs->startTab(BFText::_('COM_BREEZINGFORMS_MAILBACK_EMAILS'), 'tab_mailback_emails'); ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_MAILBACK_EMAILS'); ?> </legend> <table width="80%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_EMAILNOTIFY'); ?> </td> <td valign="top"> <table cellpadding="4" cellspacing="1" border="0"> <tr id="bf_emaillogging"<?php if ($row->mb_emailntf == 0) { echo ' style="display:none;"'; } ?> > <td><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_REPORT'); ?> </td> <td> <select name="mb_emaillog" size="1" class="inputbox"> <option value="0"<?php if ($row->mb_emaillog == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_HDRONLY'); ?> </option> <option value="1"<?php if ($row->mb_emaillog == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONEMPTY'); ?> </option> <option value="2"<?php if ($row->mb_emaillog == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ALLVALS'); ?> </option> </select> </td> </tr> <tr id="bf_emailattachment"<?php if ($row->mb_emailntf == 0) { echo ' style="display:none;"'; } ?> > <td><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ATTACHMENT'); ?> </td> <td> <select name="mb_emailxml" size="1" class="inputbox"> <option value="0"<?php if ($row->mb_emailxml == 0) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NO'); ?> </option> <option value="1"<?php if ($row->mb_emailxml == 1) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_XML'); ?> </option> <!--<option value="2"<?php if ($row->mb_emailxml == 2) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_XML_ALLVALS'); ?> </option>--> <option value="3"<?php if ($row->mb_emailxml == 3) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_CSV'); ?> </option> <option value="4"<?php if ($row->mb_emailxml == 4) { echo ' selected="selected"'; } ?> ><?php echo BFText::_('COM_BREEZINGFORMS_PDF'); ?> </option> </select> </td> </tr> </table> </td> <td valign="top"></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_ALT_MAILFROM'); ?> </td> <td> <input type="text" name="mb_alt_mailfrom" value="<?php echo $row->mb_alt_mailfrom; ?> " size="50" class="inputbox"/> </td> <td valign="top"></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_ALT_FROMNAME'); ?> </td> <td> <input type="text" name="mb_alt_fromname" value="<?php echo $row->mb_alt_fromname; ?> " size="50" class="inputbox"/> </td> <td valign="top"></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_CUSTOM_MAIL_SUBJECT'); ?> </td> <td> <input type="text" name="mb_custom_mail_subject" value="<?php echo $row->mb_custom_mail_subject; ?> " size="50" class="inputbox"/> </td> <td valign="top"></td> </tr> <tr> <td valign="top" nowrap><?php echo BFText::_('COM_BREEZINGFORMS_EDIT_EMAILS'); ?> <br/> <br/> <div style="height: 250px; overflow: auto;<?php echo $row->mb_email_type == 0 ? ' display: none;' : ''; ?> " id="mb_email_custom_template_picker"> <?php echo bf_getFieldSelectorList($row->id, 'mb_email_custom_template'); ?> </div> </td> <td valign="top"> <input onclick="document.getElementById('mb_email_custom_html').style.display='none';document.getElementById('mb_email_custom_template').style.display='none';document.getElementById('mb_email_custom_template_picker').style.display='none';" type="radio" name="mb_email_type" value="0"<?php echo $row->mb_email_type == 0 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_TYPE_DEFAULT'); ?> <input onclick="document.getElementById('mb_email_custom_html').style.display='';document.getElementById('mb_email_custom_template').style.display='';document.getElementById('mb_email_custom_template_picker').style.display='';" type="radio" name="mb_email_type" value="1"<?php echo $row->mb_email_type == 1 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_TYPE_CUSTOM'); ?> <div id="mb_email_custom_html" style="<?php echo $row->mb_email_type == 0 ? ' display: none;' : ''; ?> "> <br/> <?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_CUSTOM_HTML'); ?> <input type="radio" name="mb_email_custom_html" value="0"<?php echo $row->mb_email_custom_html == 0 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> <input type="radio" name="mb_email_custom_html" value="1"<?php echo $row->mb_email_custom_html == 1 ? ' checked="checked"' : ''; ?> /> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> </div> <br/> <textarea style="width:100%; height: 500px;<?php echo $row->mb_email_type == 0 ? ' display: none;' : ''; ?> " name="mb_email_custom_template" id="mb_email_custom_template"><?php echo htmlentities($row->mb_email_custom_template, ENT_QUOTES, 'UTF-8'); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> <?php if ($row->template_code != '') { ?> <input type="hidden" name="prevmode" value="2"/> <input type="hidden" name="nonclassic" value="1"/> <input type="hidden" name="quickmode" value="<?php echo $row->template_code_processed == 'QuickMode' ? '1' : '0'; ?> "/> <?php } $tabs->endTab(); $tabs->startTab(BFText::_('COM_BREEZINGFORMS_FORMS_SCRIPTS'), 'tab_scripts'); $subsize = $initsize = $ff_config->areasmall; if ($row->script1cond == 2) { $initsize = $ff_config->areamedium; } else { if ($row->script2cond == 2) { $subsize = $ff_config->areamedium; } } ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SCRIPTS'); ?> </legend> <table width="80%" cellpadding="4" cellspacing="1" border="0"> <tr> <td valign="top"></td> <td valign="top"> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_INITSCRIPT'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TYPE'); ?> </td> <td valign="top"> <input type="radio" id="script1cond1" name="script1cond" value="0" onclick="dispinit(this.value)"<?php if ($row->script1cond == 0) { echo ' checked="checked"'; } ?> /><label for="script1cond1"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </label> <input type="radio" id="script1cond2" name="script1cond" value="1" onclick="dispinit(this.value)"<?php if ($row->script1cond == 1) { echo ' checked="checked"'; } ?> /><label for="script1cond2"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LIBRARY'); ?> </label> <input type="radio" id="script1cond3" name="script1cond" value="2" onclick="dispinit(this.value)"<?php if ($row->script1cond == 2) { echo ' checked="checked"'; } ?> /><label for="script1cond3"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTOM'); ?> </label> </td> <td></td> </tr> <tr id="initlib" style="display:none;"> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SCRIPT'); ?> </td> <td valign="top"> <select name="script1id" class="inputbox"> <?php $scripts = $lists['init']; for ($i = 0; $i < count($scripts); $i++) { $script = $scripts[$i]; $selected = ''; if ($script->id == $row->script1id) { $selected = ' selected'; } echo '<option value="' . $script->id . '"' . $selected . '>' . $script->text . '</option>'; } // for ?> </select> </td> <td></td> </tr> <tr id="initcode" style="display:none;"> <td valign="top" colspan="2"> <a href="#" onClick="codeAreaResize('script1code',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="codeAreaResize('script1code',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="codeAreaResize('script1code',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <a href="#" onClick="createInitCode();"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CREATEFRAME'); ?> </a> <br /> <textarea onFocus="codeAreaFocus(this);" readonly="readonly" wrap="off" name="script1lines" style="display: none; width:60px;" rows="<?php echo $initsize; ?> " class="inputbox"></textarea> <textarea onFocus="codeAreaFocus(this);" onKeyUp="codeAreaChange(this,event);" wrap="off" name="script1code" style="width:100%;" rows="<?php echo $initsize; ?> " class="inputbox"><?php echo htmlspecialchars($row->script1code, ENT_QUOTES); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> </td> <td></td> </tr> <tr> <td></td> <td colspan="2"> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SUBMITTEDSCRIPT'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TYPE'); ?> </td> <td valign="top"> <input type="radio" id="script2cond1" name="script2cond" value="0" onclick="dispsubmitted(this.value)"<?php if ($row->script2cond == 0) { echo ' checked="checked"'; } ?> /><label for="script2cond1"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </label> <input type="radio" id="script2cond2" name="script2cond" value="1" onclick="dispsubmitted(this.value)"<?php if ($row->script2cond == 1) { echo ' checked="checked"'; } ?> /><label for="script2cond2"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LIBRARY'); ?> </label> <input type="radio" id="script2cond3" name="script2cond" value="2" onclick="dispsubmitted(this.value)"<?php if ($row->script2cond == 2) { echo ' checked="checked"'; } ?> /><label for="script2cond3"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTOM'); ?> </label> </td> <td></td> </tr> <tr id="submittedlib" style="display:none;"> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SCRIPT'); ?> </td> <td valign="top"> <select name="script2id" class="inputbox" size="1"> <?php $scripts = $lists['submitted']; for ($i = 0; $i < count($scripts); $i++) { $script = $scripts[$i]; $selected = ''; if ($script->id == $row->script2id) { $selected = ' selected'; } echo '<option value="' . $script->id . '"' . $selected . '>' . $script->text . '</option>'; } // for ?> </select> </td> <td></td> </tr> <tr id="submittedcode" style="display:none;"> <td valign="top" colspan="2"> <a href="#" onClick="codeAreaResize('script2code',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="codeAreaResize('script2code',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="codeAreaResize('script2code',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <a href="#" onClick="createSubmittedCode();"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CREATEFRAME'); ?> </a> <br /> <textarea onFocus="codeAreaFocus(this);" readonly="readonly" wrap="off" name="script2lines" style="display:none; width:60px;" rows="<?php echo $subsize; ?> " class="inputbox"></textarea> <textarea onFocus="codeAreaFocus(this);" onKeyUp="codeAreaChange(this,event);" wrap="off" name="script2code" style="width:100%;" rows="<?php echo $subsize; ?> " class="inputbox"><?php echo htmlspecialchars($row->script2code, ENT_QUOTES); ?> </textarea> </td> <td valign="top"></td> </tr> </table> </fieldset> </td> <td></td> </tr> </table> </fieldset> <?php $tabs->endTab(); $tabs->startTab(BFText::_('COM_BREEZINGFORMS_FORMS_FORMPIECES'), 'tab_formpieces'); $p1size = $p2size = $ff_config->areasmall; if ($row->piece1cond == 2) { $p1size = $ff_config->areamedium; } else { if ($row->piece2cond == 2) { $p2size = $ff_config->areamedium; } } ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_FORMPIECES'); ?> </legend> <table width="80%" cellpadding="4" cellspacing="1" border="0"> <tr> <td></td> <td colspan="2"> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_BEFOREFORM'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TYPE'); ?> </td> <td valign="top"> <input type="radio" id="piece1cond0" name="piece1cond" value="0" onclick="dispp1(this.value)"<?php if ($row->piece1cond == 0) { echo ' checked="checked"'; } ?> /><label for="piece1cond0"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </label> <input type="radio" id="piece1cond1" name="piece1cond" value="1" onclick="dispp1(this.value)"<?php if ($row->piece1cond == 1) { echo ' checked="checked"'; } ?> /><label for="piece1cond1"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LIBRARY'); ?> </label> <input type="radio" id="piece1cond2" name="piece1cond" value="2" onclick="dispp1(this.value)"<?php if ($row->piece1cond == 2) { echo ' checked="checked"'; } ?> /><label for="piece1cond2"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTOM'); ?> </label> </td> <td></td> </tr> <tr id="p1lib" style="display:none;"> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PIECE'); ?> </td> <td valign="top"> <select name="piece1id" class="inputbox" size="1"> <?php $pieces = $lists['piece1']; for ($i = 0; $i < count($pieces); $i++) { $piece = $pieces[$i]; $selected = ''; if ($piece->id == $row->piece1id) { $selected = ' selected'; } echo '<option value="' . $piece->id . '"' . $selected . '>' . $piece->text . '</option>'; } // for ?> </select> </td> <td></td> </tr> <tr id="p1code" style="display:none;"> <td valign="top" colspan="2"> <a href="#" onClick="codeAreaResize('piece1code',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="codeAreaResize('piece1code',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="codeAreaResize('piece1code',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <br/> <textarea onFocus="codeAreaFocus(this);" readonly="readonly" wrap="off" name="piece1lines" style="display: none; width:60px;" rows="<?php echo $p1size; ?> " class="inputbox"></textarea> <textarea onFocus="codeAreaFocus(this);" onKeyUp="codeAreaChange(this,event);" wrap="off" name="piece1code" style="width:100%;" rows="<?php echo $p1size; ?> " class="inputbox"><?php echo htmlspecialchars($row->piece1code, ENT_QUOTES); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> </td> <td></td> </tr> <tr> <td></td> <td colspan="2"> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_AFTERFORM'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TYPE'); ?> </td> <td valign="top"> <input type="radio" id="piece2cond0" name="piece2cond" value="0" onclick="dispp2(this.value)"<?php if ($row->piece2cond == 0) { echo ' checked="checked"'; } ?> /><label for="piece2cond0"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </label> <input type="radio" id="piece2cond1" name="piece2cond" value="1" onclick="dispp2(this.value)"<?php if ($row->piece2cond == 1) { echo ' checked="checked"'; } ?> /><label for="piece2cond1"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LIBRARY'); ?> </label> <input type="radio" id="piece2cond2" name="piece2cond" value="2" onclick="dispp2(this.value)"<?php if ($row->piece2cond == 2) { echo ' checked="checked"'; } ?> /><label for="piece2cond2"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTOM'); ?> </label> </td> <td></td> </tr> <tr id="p2lib" style="display:none;"> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PIECE'); ?> </td> <td valign="top"> <select name="piece2id" class="inputbox" size="1"> <?php $pieces = $lists['piece2']; for ($i = 0; $i < count($pieces); $i++) { $piece = $pieces[$i]; $selected = ''; if ($piece->id == $row->piece2id) { $selected = ' selected'; } echo '<option value="' . $piece->id . '"' . $selected . '>' . $piece->text . '</option>'; } // for ?> </select> </td> <td></td> </tr> <tr id="p2code" style="display:none;"> <td valign="top" colspan="2"> <a href="#" onClick="codeAreaResize('piece2code',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="codeAreaResize('piece2code',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="codeAreaResize('piece2code',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <br/> <textarea onFocus="codeAreaFocus(this);" readonly="readonly" wrap="off" name="piece2lines" style="display: none; width:60px;" rows="<?php echo $p2size; ?> " class="inputbox"></textarea> <textarea onFocus="codeAreaFocus(this);" onKeyUp="codeAreaChange(this,event);" wrap="off" name="piece2code" style="width:100%;" rows="<?php echo $p2size; ?> " class="inputbox"><?php echo htmlspecialchars($row->piece2code, ENT_QUOTES); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> </td> <td></td> </tr> </table> </fieldset> <?php $tabs->endTab(); $tabs->startTab(BFText::_('COM_BREEZINGFORMS_FORMS_SUBMPIECES'), 'tab_submpieces'); $p3size = $p4size = $ff_config->areasmall; if ($row->piece3cond == 2) { $p3size = $ff_config->areamedium; } else { if ($row->piece4cond == 2) { $p4size = $ff_config->areamedium; } } ?> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SUBMPIECES'); ?> </legend> <table width="80%" cellpadding="4" cellspacing="1" border="0"> <tr> <td></td> <td colspan="2"> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_BEGINSUBMIT'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TYPE'); ?> </td> <td valign="top"> <input type="radio" id="piece3cond0" name="piece3cond" value="0" onclick="dispp3(this.value)"<?php if ($row->piece3cond == 0) { echo ' checked="checked"'; } ?> /><label for="piece3cond0"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </label> <input type="radio" id="piece3cond1" name="piece3cond" value="1" onclick="dispp3(this.value)"<?php if ($row->piece3cond == 1) { echo ' checked="checked"'; } ?> /><label for="piece3cond1"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LIBRARY'); ?> </label> <input type="radio" id="piece3cond2" name="piece3cond" value="2" onclick="dispp3(this.value)"<?php if ($row->piece3cond == 2) { echo ' checked="checked"'; } ?> /><label for="piece3cond2"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTOM'); ?> </label> </td> <td></td> </tr> <tr id="p3lib" style="display:none;"> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PIECE'); ?> </td> <td valign="top"> <select name="piece3id" class="inputbox" size="1"> <?php $pieces = $lists['piece3']; for ($i = 0; $i < count($pieces); $i++) { $piece = $pieces[$i]; $selected = ''; if ($piece->id == $row->piece3id) { $selected = ' selected'; } echo '<option value="' . $piece->id . '"' . $selected . '>' . $piece->text . '</option>'; } // for ?> </select> </td> <td></td> </tr> <tr id="p3code" style="display:none;"> <td valign="top" colspan="2"> <a href="#" onClick="codeAreaResize('piece3code',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="codeAreaResize('piece3code',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="codeAreaResize('piece3code',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <br/> <textarea onFocus="codeAreaFocus(this);" readonly="readonly" wrap="off" name="piece3lines" style="display: none; width:60px;" rows="<?php echo $p3size; ?> " class="inputbox"></textarea> <textarea onFocus="codeAreaFocus(this);" onKeyUp="codeAreaChange(this,event);" wrap="off" name="piece3code" style="width:100%;" rows="<?php echo $p3size; ?> " class="inputbox"><?php echo htmlspecialchars($row->piece3code, ENT_QUOTES); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> </td> <td></td> </tr> <tr> <td></td> <td colspan="2"> <fieldset><legend><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ENDSUBMIT'); ?> </legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td style="width: 200px;" valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TYPE'); ?> </td> <td valign="top"> <input type="radio" id="piece4cond0" name="piece4cond" value="0" onclick="dispp4(this.value)"<?php if ($row->piece4cond == 0) { echo ' checked="checked"'; } ?> /><label for="piece4cond0"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NONE'); ?> </label> <input type="radio" id="piece4cond1" name="piece4cond" value="1" onclick="dispp4(this.value)"<?php if ($row->piece4cond == 1) { echo ' checked="checked"'; } ?> /><label for="piece4cond1"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_LIBRARY'); ?> </label> <input type="radio" id="piece4cond2" name="piece4cond" value="2" onclick="dispp4(this.value)"<?php if ($row->piece4cond == 2) { echo ' checked="checked"'; } ?> /><label for="piece4cond2"> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_CUSTOM'); ?> </label> </td> <td></td> </tr> <tr id="p4lib" style="display:none;"> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PIECE'); ?> </td> <td valign="top"> <select name="piece4id" class="inputbox" size="1"> <?php $pieces = $lists['piece4']; for ($i = 0; $i < count($pieces); $i++) { $piece = $pieces[$i]; $selected = ''; if ($piece->id == $row->piece4id) { $selected = ' selected'; } echo '<option value="' . $piece->id . '"' . $selected . '>' . $piece->text . '</option>'; } // for ?> </select> </td> <td></td> </tr> <tr id="p4code" style="display:none;"> <td nowrap valign="top" colspan="2"> <a href="#" onClick="codeAreaResize('piece4code',<?php echo $ff_config->areasmall; ?> );">[<?php echo $ff_config->areasmall; ?> ]</a> <a href="#" onClick="codeAreaResize('piece4code',<?php echo $ff_config->areamedium; ?> );">[<?php echo $ff_config->areamedium; ?> ]</a> <a href="#" onClick="codeAreaResize('piece4code',<?php echo $ff_config->arealarge; ?> );">[<?php echo $ff_config->arealarge; ?> ]</a> <br/> <textarea onFocus="codeAreaFocus(this);" readonly="readonly" wrap="off" name="piece4lines" style="display: none; width:60px;" rows="<?php echo $p4size; ?> " class="inputbox"></textarea> <textarea onFocus="codeAreaFocus(this);" onKeyUp="codeAreaChange(this,event);" wrap="off" name="piece4code" style="width:100%;" rows="<?php echo $p4size; ?> " class="inputbox"><?php echo htmlspecialchars($row->piece4code, ENT_QUOTES); ?> </textarea> </td> <td></td> </tr> </table> </fieldset> </td> <td></td> </tr> </table> </fieldset> <?php $tabs->endTab(); $tabs->startTab('MailChimp®', 'tab_mailchimp'); ?> <fieldset><legend>MailChimp®</legend> <table width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <td valign="top" style="width: 200px;"><?php echo BFText::_('COM_BREEZINGFORMS_API_KEY'); ?> </td> <td valign="top"><input type="text" name="mailchimp_api_key" value="<?php echo $row->mailchimp_api_key; ?> " size="50" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_LIST_ID'); ?> </td> <td valign="top"><input type="text" name="mailchimp_list_id" value="<?php echo $row->mailchimp_list_id; ?> " size="50" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_EMAIL_FIELD'); ?> </td> <td valign="top"><input type="text" name="mailchimp_email_field" value="<?php echo $row->mailchimp_email_field; ?> " size="50" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_CHECKBOX_FIELD'); ?> </td> <td valign="top"><input type="text" name="mailchimp_checkbox_field" value="<?php echo $row->mailchimp_checkbox_field; ?> " size="50" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_UNSUBSCRIBE_FIELD'); ?> </td> <td valign="top"><input type="text" name="mailchimp_unsubscribe_field" value="<?php echo $row->mailchimp_unsubscribe_field; ?> " size="50" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_TEXT_HTML_MOBILE_FIELD'); ?> </td> <td valign="top"><input type="text" name="mailchimp_text_html_mobile_field" value="<?php echo $row->mailchimp_text_html_mobile_field; ?> " size="50" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_MERGE_VARS'); ?> </td> <td valign="top"><input type="text" name="mailchimp_mergevars" value="<?php echo $row->mailchimp_mergevars; ?> " style="width:90%;" class="inputbox"/></td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_DEFAULT_TYPE'); ?> </td> <td valign="top"> <select name="mailchimp_default_type" class="inputbox"> <option value="text"<?php echo $row->mailchimp_default_type == 'text' ? ' selected="selected"' : ''; ?> >Text</option> <option value="html"<?php echo $row->mailchimp_default_type == 'html' ? ' selected="selected"' : ''; ?> >HTML</option> <option value="mobile"<?php echo $row->mailchimp_default_type == 'mobile' ? ' selected="selected"' : ''; ?> >Mobile</option> </select> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_DOUBLE_OPTIN'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_double_optin" class="inputbox"<?php echo $row->mailchimp_double_optin ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_double_optin" class="inputbox"<?php echo !$row->mailchimp_double_optin ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_UPDATE_EXISTING'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_update_existing" class="inputbox"<?php echo $row->mailchimp_update_existing ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_update_existing" class="inputbox"<?php echo !$row->mailchimp_update_existing ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_REPLACE_INTERESTS'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_replace_interests" class="inputbox"<?php echo $row->mailchimp_replace_interests ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_replace_interests" class="inputbox"<?php echo !$row->mailchimp_replace_interests ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_SEND_WELCOME'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_send_welcome" class="inputbox"<?php echo $row->mailchimp_send_welcome ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_send_welcome" class="inputbox"<?php echo !$row->mailchimp_send_welcome ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_UNSUBSCRIBE_DELETE_MEMBER'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_delete_member" class="inputbox"<?php echo $row->mailchimp_delete_member ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_delete_member" class="inputbox"<?php echo !$row->mailchimp_delete_member ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_UNSUBSCRIBE_SEND_GOODBYE'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_send_goodbye" class="inputbox"<?php echo $row->mailchimp_send_goodbye ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_send_goodbye" class="inputbox"<?php echo !$row->mailchimp_send_goodbye ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_UNSUBSCRIBE_SEND_NOTIFY'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_send_notify" class="inputbox"<?php echo $row->mailchimp_send_notify ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_send_notify" class="inputbox"<?php echo !$row->mailchimp_send_notify ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> <tr> <td valign="top"><?php echo BFText::_('COM_BREEZINGFORMS_SEND_ERRORS'); ?> </td> <td valign="top"><input type="radio" name="mailchimp_send_errors" class="inputbox"<?php echo $row->mailchimp_send_errors ? ' checked="checked"' : ''; ?> value="1"/> <?php echo BFText::_('COM_BREEZINGFORMS_YES'); ?> <input type="radio" name="mailchimp_send_errors" class="inputbox"<?php echo !$row->mailchimp_send_errors ? ' checked="checked"' : ''; ?> value="0"/><?php echo BFText::_('COM_BREEZINGFORMS_NO'); ?> </td> </tr> </table> </fieldset> <?php $tabs->endTab(); $tabs->startTab('Salesforce®', 'tab_salesforce'); ?> <fieldset><legend>Salesforce®</legend> <?php echo bf_alert('Salesforce® is supported in the full version only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> </fieldset> <?php $tabs->endTab(); $tabs->startTab('Dropbox®', 'tab_dropbox'); ?> <fieldset><legend>Dropbox®</legend> <?php echo bf_alert('Dropbox® is supported in the full version only', 'http://crosstec.de/en/extensions/joomla-forms-download.html'); ?> </fieldset> <?php $tabs->endTab(); // calling addon plugins JPluginHelper::importPlugin('breezingforms_addons'); $dispatcher = JDispatcher::getInstance(); $addons = $dispatcher->trigger('onPropertiesDisplay', array(JRequest::getInt('form', 0), $tabs)); foreach ($addons as $addon) { echo $addon; } $tabs->endPane(); ?> </td> <td></td> </tr> </table> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="pkg" value="<?php echo $pkg; ?> " /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="act" value="manageforms" /> <input type="hidden" name="pages" value="<?php echo $row->pages; ?> " /> <input type="hidden" name="caller_url" value="<?php echo htmlspecialchars($caller, ENT_QUOTES); ?> " /> </form> <div style="float: right;"> <input class="btn btn-primary" onclick="submitbutton('save');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_TOOLBAR_SAVE'), ENT_QUOTES, 'UTF-8'); ?> "/> <input class="btn btn-primary" onclick="submitbutton('cancel');" type="submit" value="<?php echo htmlentities(BFText::_('COM_BREEZINGFORMS_TOOLBAR_CANCEL'), ENT_QUOTES, 'UTF-8'); ?> "/> </div> <div style="clear:both;"></div> </fieldset> <?php }
static function listitems($option, &$rows, &$pkglist, $total = 0) { global $ff_config, $ff_version; ?> <script type="text/javascript"> <!-- var bf_submitbutton = function(pressbutton) { var form = document.adminForm; switch (pressbutton) { case 'copy': case 'publish': case 'unpublish': case 'remove': if (form.boxchecked.value==0) { alert("<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SELFORMSFIRST'); ?> "); return; } // if break; default: break; } // switch if (pressbutton == 'remove') if (!confirm("<?php echo BFText::_('COM_BREEZINGFORMS_FORMS_ASKDEL'); ?> ")) return; if (pressbutton == '' && form.pkgsel.value == '') form.pkg.value = '- blank -'; if (pressbutton == 'easymode') form.act.value = 'easymode' if (pressbutton == 'quickmode') form.act.value = 'quickmode' else form.pkg.value = form.pkgsel.value; submitform(pressbutton); } // submitbutton if(typeof Joomla != 'undefined'){ Joomla.submitbutton = bf_submitbutton; } submitbutton = bf_submitbutton; function listItemTask( id, task ) { var f = document.adminForm; cb = eval( 'f.' + id ); if (cb) { for (i = 0; true; i++) { cbx = eval('f.cb'+i); if (!cbx) break; cbx.checked = false; } // for cb.checked = true; f.boxchecked.value = 1; submitbutton(task); } return false; } // listItemTask //--> </script> <?php echo bf_alert('Get BreezingForms Full Version', 'http:s//crosstec.org/en/extensions/joomla-forms-download.html'); ?> <?php echo bf_alert('More features, no footers, no messages', 'https://crosstec.org/en/extensions/joomla-forms-download.html'); ?> <form action="index.php?format=html" method="post" name="adminForm" id="adminForm"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td width="50%" nowrap> <table class="adminheading"> <tr><th nowrap class="edit">BreezingForms <?php echo $ff_version; ?> <br/><span class="componentheading"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_MANAGEFORMS'); ?> </span></th></tr> </table> </td> <td nowrap> <?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PACKAGE'); ?> : <select id="pkgsel" name="pkgsel" class="inputbox" size="1" onchange="submitbutton('');"> <?php if (count($pkglist)) { foreach ($pkglist as $pkg) { $selected = ''; if ($pkg[0]) { $selected = ' selected'; } echo '<option value="' . $pkg[1] . '"' . $selected . '>' . ($pkg[1] == '' ? ' - ' . BFText::_('COM_BREEZINGFORMS_SELECT') . ' - ' : $pkg[1]) . ' </option>'; } } // foreach ?> </select> </td> <td align="right" width="50%" nowrap> <?php if ($ff_config->enable_classic == 1) { JToolBarHelper::custom('quickmode', 'new.png', 'new_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_QUICKMODE'), false); JToolBarHelper::custom('easymode', 'new.png', 'new_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_EASYMODE'), false); JToolBarHelper::custom('new', 'new.png', 'new_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_CLASSICMODE'), false); } else { JToolBarHelper::custom('quickmode', 'new.png', 'new_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_NEW'), false); } JToolBarHelper::custom('copy', 'copy.png', 'copy_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_COPY'), false); JToolBarHelper::custom('publish', 'publish.png', 'publish_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_PUBLISH'), false); JToolBarHelper::custom('unpublish', 'unpublish.png', 'unpublish_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_UNPUBLISH'), false); JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', BFText::_('COM_BREEZINGFORMS_TOOLBAR_DELETE'), false); ?> </td> </tr> </table> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist table table-striped"> <tr> <th nowrap align="center"><input type="checkbox" name="toggle" value="" onclick="<?php $version = new JVersion(); echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'Joomla.checkAll(this);' : 'checkAll(' . count($rows) . ');'; ?> " /></th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_TITLE'); ?> </th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_NAME'); ?> </th> <th nowrap align="left"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PAGES'); ?> </th> <th nowrap align="right"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_WIDTH'); ?> </th> <th nowrap align="right"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_HEIGHT'); ?> </th> <th nowrap align="right"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_SCRIPTID'); ?> </th> <th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_PUBLISHED'); ?> </th> <th nowrap align="center" colspan="2"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_REORDER'); ?> </th> <th align="left"><?php echo BFText::_('COM_BREEZINGFORMS_FORMS_DESCRIPTION'); ?> </th> </tr> <?php $k = 0; for ($i = 0; $i < count($rows); $i++) { $row = $rows[$i]; $desc = $row->description; if (strlen($desc) > $ff_config->limitdesc) { $desc = substr($desc, 0, $ff_config->limitdesc) . '...'; } ?> <tr class="row<?php echo $k; ?> "> <td nowrap valign="top" align="center"><input type="checkbox" id="cb<?php echo $i; ?> " name="ids[]" value="<?php echo $row->id; ?> " onclick="<?php jimport('joomla.version'); $version = new JVersion(); echo version_compare($version->getShortVersion(), '3.0', '>=') ? 'Joomla.isChecked(this.checked);' : 'isChecked(this.checked);'; ?> " /></td> <?php if ($row->template_code_processed != '' && $row->template_code_processed != 'QuickMode') { ?> <td valign="top" align="left"><a href="index.php?option=com_breezingforms&format=html&act=easymode&formName=<?php echo $row->name; ?> &form=<?php echo $row->id; ?> "><?php echo $row->title; ?> </a></td> <td valign="top" align="left"><a href="index.php?option=com_breezingforms&format=html&act=easymode&formName=<?php echo $row->name; ?> &form=<?php echo $row->id; ?> "><?php echo $row->name; ?> </a></td> <?php } else { if ($row->template_code_processed == 'QuickMode') { ?> <td valign="top" align="left"><a href="index.php?option=com_breezingforms&format=html&act=quickmode&formName=<?php echo $row->name; ?> &form=<?php echo $row->id; ?> "><?php echo $row->title; ?> </a></td> <td valign="top" align="left"><a href="index.php?option=com_breezingforms&format=html&act=quickmode&formName=<?php echo $row->name; ?> &form=<?php echo $row->id; ?> "><?php echo $row->name; ?> </a></td> <?php } else { ?> <td valign="top" align="left"><a href="#editpage1" onclick="return listItemTask('cb<?php echo $i; ?> ','editpage1')"><?php echo $row->title; ?> </a></td> <td valign="top" align="left"><a href="#editform" onclick="return listItemTask('cb<?php echo $i; ?> ','edit')"><?php echo $row->name; ?> </a></td> <?php } } ?> <td nowrap valign="top" align="left"><?php for ($p = 1; $p <= $row->pages; $p++) { if ($p > 1) { echo ' '; } if ($row->template_code_processed == '' && $row->template_code_processed != 'QuickMode') { ?> <a href="#editpage<?php echo $p; ?> " onclick="return listItemTask('cb<?php echo $i; ?> ','editpage<?php echo $p; ?> ')"><?php echo $p; ?> </a><?php } else { if ($row->template_code_processed == 'QuickMode') { ?> <a href="index.php?option=com_breezingforms&format=html&act=quickmode&formName=<?php echo $row->name; ?> &form=<?php echo $row->id; ?> &page=<?php echo $p; ?> "><?php echo $p; ?> </a><?php } else { ?> <a href="index.php?option=com_breezingforms&format=html&act=easymode&formName=<?php echo $row->name; ?> &form=<?php echo $row->id; ?> &page=<?php echo $p; ?> "><?php echo $p; ?> </a> <?php } } } // for ?> </td> <td nowrap valign="top" align="right"><?php echo $row->width; if ($row->widthmode) { echo '%'; } else { echo 'px'; } ?> </td> <td nowrap valign="top" align="right"><?php $text = ''; switch ($row->heightmode) { case 1: $text = BFText::_('COM_BREEZINGFORMS_FORMS_AUTO'); if ($row->height > 0) { $text .= '+' . $row->height . 'px'; } break; case 2: $text = BFText::_('COM_BREEZINGFORMS_FORMS_AUTOMAX'); if ($row->height > 0) { $text .= '+' . $row->height . 'px'; } break; default: $text = $row->height . 'px'; } // switch echo $text; ?> </td> <td nowrap valign="top" align="right"><?php echo $row->id; ?> </td> <td nowrap valign="top" align="center"><?php if ($row->published == "1") { ?> <a href="#" onClick="return listItemTask('cb<?php echo $i; ?> ','unpublish')"><img src="components/com_breezingforms/images/icons/publish_g.png" alt="+" border="0" /></a><?php } else { ?> <a href="#" onClick="return listItemTask('cb<?php echo $i; ?> ','publish')"><img src="components/com_breezingforms/images/icons/publish_x.png" alt="-" border="0" /></a><?php } // if ?> </td> <td nowrap valign="top" align="right"><?php if ($i > 0) { ?> <a href="#" onClick="return listItemTask('cb<?php echo $i; ?> ','orderup')"><img src="components/com_breezingforms/images/icons/uparrow.png" alt="^" border="0" /></a><?php } // if ?> </td> <td nowrap valign="top" align="left"><?php if ($i < count($rows) - 1) { ?> <a href="#" onClick="return listItemTask('cb<?php echo $i; ?> ','orderdown')"><img src="components/com_breezingforms/images/icons/downarrow.png" alt="v" border="0" /></a><?php } // if ?> </td> <td valign="top" align="left"><?php echo htmlspecialchars($desc, ENT_QUOTES); ?> </td> </tr> <?php $k = 1 - $k; } // for $limit = JFactory::getApplication()->getUserStateFromRequest('global.list.limit', 'limit', JFactory::getApplication()->getCfg('list_limit'), 'int'); $pagination = facileFormsForm::getPagination($total, $limit, JRequest::getInt('limitstart', 0)); $pages_links = $pagination->getPagesLinks(); ?> <tfoot> <tr> <td colspan="1000" valign="middle" align="center"> <div class="pagination pagination-toolbar"> <?php echo $pages_links; ?> <br /> <?php echo $pagination->getLimitBox(); ?> <br /> <?php echo $pagination->getPagesCounter(); ?> <br /> <?php echo BFText::_('COM_BREEZINGFORMS_AMOUNT'); ?> : <?php echo $total; ?> </div> </td> </tr> </tfoot> </table> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="act" value="manageforms" /> <input type="hidden" name="limitstart" value="<?php echo JRequest::getInt('limitstart', 0); ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="form" value="" /> <input type="hidden" name="page" value="" /> <input type="hidden" name="pkg" value="" /> </form> <?php }