dolibarr  7.0.0-beta
frames.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18 
26 require '../main.inc.php';
27 
28 $langs->load("externalsite");
29 
30 if (empty($conf->global->EXTERNALSITE_URL))
31 {
32  llxHeader();
33  print '<div class="error">'.$langs->trans('ExternalSiteModuleNotComplete').'</div>';
34  llxFooter();
35 }
36 
37 $mainmenu=GETPOST('mainmenu', "aZ09");
38 $leftmenu=GETPOST('leftmenu', "aZ09");
39 $idmenu=GETPOST('idmenu', 'int');
40 $theme=GETPOST('theme', 'alpha');
41 $codelang=GETPOST('lang', 'aZ09');
42 
43 print "
44 <html>
45 <head>
46 <title>Dolibarr frame for external web site</title>
47 </head>
48 
49 <frameset ".(empty($conf->global->MAIN_MENU_INVERT)?"rows":"cols")."=\"".$heightforframes.",*\" border=0 framespacing=0 frameborder=0>
50  <frame name=\"barre\" src=\"frametop.php?mainmenu=".$mainmenu."&leftmenu=".$leftmenu."&idmenu=".$idmenu.($theme?'&theme='.$theme:'').($codelang?'&lang='.$codelang:'')."&nobackground=1\" noresize scrolling=\"NO\" noborder>
51  <frame name=\"main\" src=\"".$conf->global->EXTERNALSITE_URL."\">
52  <noframes>
53  <body>
54 
55  </body>
56  </noframes>
57 </frameset>
58 
59 <noframes>
60 <body>
61  <br><div class=\"center\">
62  Sorry, your browser is too old or not correctly configured to view this area.<br>
63  Your browser must support frames.<br>
64  </div>
65 </body>
66 </noframes>
67 
68 </html>
69 ";
70 
71 
llxFooter()
Empty footer.
Definition: wrapper.php:58
GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0)
Return value of a param into GET or POST supervariable.
llxHeader()
Empty header.
Definition: wrapper.php:46
print
Draft customers invoices.
Definition: index.php:91