iframe werkt niet meer in joomla na verhuizing
binnen het frame geen foutmeldingen, alleen een leeg scherm.
- Geef eens de code voor dat iframe.
- Open dat iframe in een ander venster en zie of de pagina nog bestaat.
Misschie is het een probleem van paden. bv. "./site/index.php", waarbij beide servers een andere mappenstructuur hebben, waardoor ./ je naar een mis pad leidt.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
include('../../.include/db_owsvd.inc') ;
define( '_JEXEC', 1 );
define( 'JPATH_BASE', realpath(dirname(__FILE__).'../httpdocs' ));
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$session =& JFactory::getSession();
$user =& JFactory::getUser();
$_REQUEST["code"] = $user->id;
function get_instructeur( $instructeur )
{
$instr_naam = "";
if ( !empty($instructeur) )
{
$isql = 'SELECT * '.
'FROM j_jtmb_members_directory l '.
'WHERE l.instructeur=' . $instructeur;
$iresult = mysql_query($isql);
$irow = mysql_fetch_array($iresult);
echo $irow[name];
return;
}
}
$sql = 'SELECT * '.
'FROM leden_brevet '.
'WHERE code = ' . $_REQUEST["code"];
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
if (mysql_num_rows($result) == 0)
{
$updatesql = 'INSERT INTO leden_brevet ('.
'code)'.
'VALUES (' .
$_REQUEST["code"] . ')';
$xresult = mysql_query($updatesql) ;
}
?>.
<html>
<head>
<link REL="STYLESHEET" TYPE="text/css" HREF="/.include/owsvd.css">
<title>OWSVD OPLEIDINGEN</title>
</head>
<body>
<table width="100%" border="1" cellpadding="5" class="tabel">
<tr class="tabelkop">
<td height="31" colspan="3" valign="top"><div align="center" class="style1">2-ster NOB Opleiding </div></td>
</tr>
<tr >
<td height="31" colspan="3" class="tabelkop" valign="top"><div align="center">Theorie</div></td>
</tr>
<tr>
<td width="35%" valign="top" class="tabelkop"> </td>
<td width="31%" valign="top" class="tabelkop">Datum</td>
<td width="34%" valign="top" class="tabelkop">Instrukteur</td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Nachtduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th21_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th21_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden water 1 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th22_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th22_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden Water 2 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th23_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th23_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Reddingshandelingen </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th24_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th24_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Diep Duiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th25_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th25_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Het Leven Onder Water </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th26_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th26_inst] );?></td>
</tr>
<tr>
<td height="31" colspan="3" class="tabelrow" valign="top"><div align="center">
</div></td>
</tr>
<tr class="tabelkop">
<td height="31" colspan="3" class="tabelkop" valign="top"><div align="center"><span>Buitenwater</span></div></td>
</tr>
<tr>
<td width="35%" valign="top" class="tabelkop"> </td>
<td width="31%" valign="top" class="tabelkop">Datum</td>
<td width="34%" valign="top" class="tabelkop">Instrukteur</td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Navigatieduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu21_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu21_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Nachtduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu22_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu22_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden water 1 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu23_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu23_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden water 2 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu24_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu24_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Reddingshandelingen </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu25_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu25_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Diepduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu26_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu26_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Het Leven Onder Water </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu27_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu27_inst] );?></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
include('../../.include/db_owsvd.inc') ;
define( '_JEXEC', 1 );
define( 'JPATH_BASE', realpath(dirname(__FILE__).'../httpdocs' ));
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$session =& JFactory::getSession();
$user =& JFactory::getUser();
$_REQUEST["code"] = $user->id;
function get_instructeur( $instructeur )
{
$instr_naam = "";
if ( !empty($instructeur) )
{
$isql = 'SELECT * '.
'FROM j_jtmb_members_directory l '.
'WHERE l.instructeur=' . $instructeur;
$iresult = mysql_query($isql);
$irow = mysql_fetch_array($iresult);
echo $irow[name];
return;
}
}
$sql = 'SELECT * '.
'FROM leden_brevet '.
'WHERE code = ' . $_REQUEST["code"];
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
if (mysql_num_rows($result) == 0)
{
$updatesql = 'INSERT INTO leden_brevet ('.
'code)'.
'VALUES (' .
$_REQUEST["code"] . ')';
$xresult = mysql_query($updatesql) ;
}
?>.
<html>
<head>
<link REL="STYLESHEET" TYPE="text/css" HREF="/.include/owsvd.css">
<title>OWSVD OPLEIDINGEN</title>
</head>
<body>
<table width="100%" border="1" cellpadding="5" class="tabel">
<tr class="tabelkop">
<td height="31" colspan="3" valign="top"><div align="center" class="style1">2-ster NOB Opleiding </div></td>
</tr>
<tr >
<td height="31" colspan="3" class="tabelkop" valign="top"><div align="center">Theorie</div></td>
</tr>
<tr>
<td width="35%" valign="top" class="tabelkop"> </td>
<td width="31%" valign="top" class="tabelkop">Datum</td>
<td width="34%" valign="top" class="tabelkop">Instrukteur</td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Nachtduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th21_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th21_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden water 1 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th22_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th22_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden Water 2 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th23_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th23_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Reddingshandelingen </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th24_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th24_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Diep Duiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th25_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th25_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Het Leven Onder Water </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[th26_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[th26_inst] );?></td>
</tr>
<tr>
<td height="31" colspan="3" class="tabelrow" valign="top"><div align="center">
</div></td>
</tr>
<tr class="tabelkop">
<td height="31" colspan="3" class="tabelkop" valign="top"><div align="center"><span>Buitenwater</span></div></td>
</tr>
<tr>
<td width="35%" valign="top" class="tabelkop"> </td>
<td width="31%" valign="top" class="tabelkop">Datum</td>
<td width="34%" valign="top" class="tabelkop">Instrukteur</td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Navigatieduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu21_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu21_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Nachtduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu22_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu22_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden water 1 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu23_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu23_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Getijden water 2 </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu24_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu24_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Reddingshandelingen </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu25_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu25_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Diepduiken </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu26_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu26_inst] );?></td>
</tr>
<tr>
<td width="37%" valign="top" class="tabelkop"><strong>Het Leven Onder Water </strong></td>
<td width="31%" valign="top" class="tabelrow"><?php echo $rowd[bu27_date]; ?> </td>
<td height="31" valign="top" class="tabelrow"><?php get_instructeur( $rowd[bu27_inst] );?></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
Aangepast:
Code tussen code-tags geplaatst. Gelieve dit in het vervolg zelf te doen
Gewijzigd op 09/09/2013 15:05:54 door - Ariën -
Maar ik zie nergens een iframe in die code.
<iframe src="/beheer/staat2ster.php"></iframe>
/beheer/staat2ster.php
Waar staat dat bestand, ten opzichte van index.php?
Hoe zit die mappenstuctuur in mekaar?
./includes
/beheer
<iframe src="beheer/staat2ster.php"></iframe>