PDA

View Full Version : placing frame



coat_
22 Sep 2007, 06:58 PM
I tried to integrate a frame in a php page but it dis rupts the page. codes are posted below. can anyone assist integration?

http://img233.imageshack.us/my.php?image=nowze4.jpg



<?php
// Modified in 0.6.1 by Ralph
// Creates initial welcome section when manager starts
if(IN_ETOMITE_SYSTEM!="true") die($_lang["include_ordering_error"]);
unset($_SESSION['itemname']); // clear this, because it's only set for logging purposes

if(!isset($settings_version) || $settings_version!=$version) {
// seems to be a new install - send the user to the configuration page
?>

<script type="text/javascript">document.location.href="index.php?a=17";</script>

<?php
exit;
}

// do some config checks
include_once "config_check.inc.php";
?>

<div class="subTitle">
<span class="floatRight">
<img src="media/images/_tx_.gif" width="1" height="5" /><br />
<?php echo $site_name ;?>&nbsp;-&nbsp;
<?php echo $_lang["home"]; ?>
</span>
</div>

<script type="text/javascript">
function checkIM() {
im_on = document.settings.im_plugin[0].checked; // check if im_plugin is on
if(im_on==true) {
showHide(/imRow/, 1);
}
}

function showHide(what, onoff){

var all = document.getElementsByTagName( "*" );
var l = all.length;
var buttonRe = what;
var id, el, stylevar;

if(onoff==1) {
stylevar = "<?php echo $displayStyle; ?>";
} else {
stylevar = "none";
}

for ( var i = 0; i < l; i++ ) {
el = all[i]
id = el.id;
if ( id == "" ) continue;
if (buttonRe.test(id)) {
el.style.display = stylevar;
}
}
}
</script>

<link type="text/css" rel="stylesheet" href="media/style/tabs.css" />
<script type="text/javascript" src="media/script/tabpane.js"></script>

<div class="tab-pane" id="welcomePane">


<!-- Welcome Panel -->
<div class="tab-page" id="tabPage1">
<div class="tab">
<img src='media/images/misc/dot.gif' alt="." />&nbsp;<?php echo $_lang["welcome_title"]; ?>
</div>
<div class="sectionBody">
<table border="0" cellpadding="5" wdith="100%">
<tr>
<td width="10%" align="right">
<img src='media/images/misc/logo.gif' alt='<?php echo $_lang["etomite_slogan"]; ?>' />
</td>
<td valign="top">

<?php
echo '<span class="menuHeader">'.$statMsg.'</span>';
?>

</td>
</tr>
<?php if($_SESSION['permissions']['messages']==1) { ?>
<tr>
<td colspan="2">
<i>
<a href="index.php?a=10">
<img src="media/images/icons/messages.gif" align="absmiddle" border=0>
</a>&nbsp;
<?php printf($_lang["welcome_messages"], $_SESSION['nrtotalmessages'], $_SESSION['nrnewmessages']); ?>
</i>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>

<!-- Check Last Visitors -->
<div class="tab-page" id="tabPage2">
<div class="tab">
<img src='media/images/misc/dot.gif' alt="." />&nbsp;<?php echo $_lang["configcheck_title"]; ?>
</div>
<iframe id="framemove" src="http://url.url/folder/page.php" />
</div>

<?php
// Debug code for displaying helpful cookie and session information during development
$debug = false;
if($debug == true) {
$sessionid = session_id();
$sessionname = session_name();

echo "<center>
Current Session ID: $sessionid<br />
Current Session Name: $sessionname<br />
</center>
";

print_r($_COOKIE);
echo "<br /><br />";
print_r($_SESSION);
}
?>


Css file


.dynamic-tab-pane-control.tab-pane {
position:relative;
margin:10px;
width:auto;
}

.dynamic-tab-pane-control .tab-row .tab {
font-size:11px;
cursor:pointer;
display:inline;
margin:0px; /*-3px 1px 2px;*/
/*float:left;*/
padding:2px 15px 3px 15px;
z-index:1;
position:relative;
top:0;
background-position:top left;
background-repeat: repeat-x;
background:#D7E7FB;
border:1px solid #003399;
border-bottom:0;
background-image: url("../images/misc/buttonbar.gif");
}

.dynamic-tab-pane-control .tab-row .tab.hover {
background-position:top left;
background-repeat: repeat-x;
background:white;
border:1px solid #003399;
border-bottom:0;
background-image: url("../images/misc/buttonbar_gs.gif");
}

.dynamic-tab-pane-control .tab-row .tab.selected {
z-index:3;
padding:2px 6px 5px 7px;
/*margin:1px -3px -2px 0px;*/
top:-2px;
background:white;
border:1px solid #003399;
border-bottom:0;
}

.dynamic-tab-pane-control .tab-row .tab span {
font-size:11px;
color:#003399;
font-weight:normal;
text-decoration:none;
}

.dynamic-tab-pane-control .tab-page {
clear:both;
background:white;
border:1px solid #003399;
z-index:2;
position:relative;
top:2px;
font-family:Message-Box;
padding:10px;
}

.dynamic-tab-pane-control .url-page {
clear:both;
background:white;
border:1px solid #003399;
z-index:2;
position:relative;
top:2px;
font-family:Message-Box;
}

.dynamic-tab-pane-control .tab-row {
z-index:1;
white-space:nowrap;
}

.framemove {
width: 100%;
height: 100%;
overflow: auto;
position: absolute;
top: -200px;
right: 0;
}

Wickham
23 Sep 2007, 01:31 AM
I think you should post again on the PHP board as posts don't often get moved.