function columns() { $model = $this->getModel('mappings'); $post = JRequest::get('post'); $type = JRequest::getVar('type', 'set'); $config = array('connection' => $post['connection'], 'host' => $post['host'], 'port' => $post['port'], 'username' => $post['username'], 'password' => $post['password'], 'database' => $post['database'], 'table' => $post['table']); echo RSFormProHelper::mappingsColumns($config, $type); exit; }
<span id="rsfpmappingColumns"> <?php if (!empty($this->mapping->id) && ($this->mapping->method == 0 || $this->mapping->method == 1)) { ?> <?php echo RSFormProHelper::mappingsColumns($this->config, 'set', $this->mapping); } ?> </span> <br /><br /> <span id="rsfpmappingWhere"> <?php if (!empty($this->mapping->id) && ($this->mapping->method == 1 || $this->mapping->method == 2)) { ?> <?php echo RSFormProHelper::mappingsColumns($this->config, 'where', $this->mapping); } ?> </span> <script type="text/javascript"> function enableDbDetails(value) { if (value == 1) document.getElementById('mappingsid').style.display = ''; else document.getElementById('mappingsid').style.display = 'none'; } enableDbDetails(<?php echo $this->mapping->connection; ?>