root/contributed_modules/modules/dbeditor/page.dbeditor.php

Revision 11418, 1.6 kB (checked in by p_lindheimer, 2 years ago)

closes #4793 added to contributed repository with full access for author

  • Property svn:executable set to *
Line 
1 <?php   
2 /**
3  * FreePBX dbeditor Module
4  *
5  * Copyright (c) 2011, VoiceNation, LLC.
6  *
7  * This program is free software, distributed under the terms of
8  * the GNU General Public License Version 2.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18 */
19 ?>
20 <p style="margin-bottom:5px"><b>Database Editor (version 1.0)</b> - for mysql and pgsql</p>
21
22 <script type="text/javascript">
23     // fix a jQuery/Opera/ie bug with determining the window height
24     var windowHeight =  Math.max(
25             $(window).height(),
26             /* For opera and ie 8 (not sure about others): */
27             document.documentElement.clientHeight
28             );
29     var frameHeight = Math.round((windowHeight * 76)/100);
30    
31     document.write('<iframe src="<?php echo($_SERVER['PHP_SELF'].'?handler=file&module=dbeditor&file=dbkiss.html.php')?>" name="dbkiss" id="dbkiss" width="100%" height="'+frameHeight+'px" style="display:block;">');
32
33     $(document).ready(function() {
34         // force iFrame reload because main page may be cached by FreePBX
35         $('#dbkiss').contentWindow.location.reload(true);
36     });
37 </script>
38     <p>Your browser does not support iframes.</p>
39 </iframe>
40 <p>For updates, bug reports, or feature requests visit <a href="http://www.qualityansweringservice.com/anatomy-oscc/freepbx/dbeditor">Database Editor Home</a></p>
41
42
Note: See TracBrowser for help on using the browser.