tach zusammen,
würd gern per doppelklick auf eine seite ein fenster ohne rand öffnen. is ja soweit nix dolles, allerdings sollte dies aus einer php seite heraus geschehen.
hoffe mir kann jemand weiterhelfen...
folgende datein sind für die seite nötig:
menu.php
common.php
hier die anweisung zum öffnen eines neuen fensters:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><a href="#" onClick="MM_openBrWindow('list.php','','width=500,height=700')">sdfsdfsdf
</a></p>
<p> </p>
</body>
</html>
würd gern per doppelklick auf eine seite ein fenster ohne rand öffnen. is ja soweit nix dolles, allerdings sollte dies aus einer php seite heraus geschehen.
hoffe mir kann jemand weiterhelfen...
folgende datein sind für die seite nötig:
menu.php
PHP-Code:
<?php
echo "<p align=\"center\"><a href=\"index.php\"><b>Home</b></a> | <a href=\"recent.php\"><b>Recent Added</b></a> ";
if( isset( $cat ) )
{
$what = mysql_query( "SELECT root_id FROM category WHERE papa_id=$cat" ) or error( mysql_error() );
if( mysql_num_rows( $what ) == 0 )
echo "| <a href=\"list.php?cat=$cat\"><b>List an Ad</b></a> | <a href=\"notify.php?cat=$cat\"><b>Auto Notify</b></a> ";
}
echo "| <a href=\"account.php\"><b>My Account</b></a> | <a href=\"help.php\"><b>Help</b></a></p>\n";
?>
common.php
PHP-Code:
<?
require( "vars.php" );
function dbConnect()
{
global $dbHost, $dbUser, $dbPasswd, $dbName;
mysql_connect( $dbHost, $dbUser, $dbPasswd ) or error( mysql_error() );
mysql_select_db( $dbName );
}
function displayHeader( $title = "" )
{
global $ADVT_NAME, $PAGE_BG_COLOR, $PAGE_BG_IMAGE;
echo "\n<html>\n";
echo "<head>\n";
echo "<title>$title</title>\n";
echo "<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n";
echo "</head>\n\n";
echo "<body bgcolor=\"$PAGE_BG_COLOR\" background=\"$PAGE_BG_IMAGE\">\n\n";
echo "<center><h2>$ADVT_NAME</h2></center>\n";
}
function displayFooter()
{
echo "<p align=\"center\"><a href=\"http://www.xgra.com\" target=\"_blank\"><img src=\"./zClassified.png\" width=\"100\" height=\"40\" border=\"0\" alt=\"Powered by zClassified\"></a></p>\n";
echo "<p align=\"center\"><small>All Rights Reserved by <a href=\"http://www.xgra.com\">XGRA.COM</a> 2001.</small></p>\n\n";
echo "</body>\n";
echo "</html>\n";
exit;
}
function displayLocation( $id )
{
global $cat, $PHP_SELF;
$result = mysql_query( "SELECT cat_name, root_id, papa_id FROM category WHERE root_id=$id" ) or error( mysql_error() );
$row = mysql_fetch_array( $result );
if( $row['papa_id'] == 0 )
{
if( $row['root_id'] == $cat ) $location = "<a href=\"$PHP_SELF\">Home</a> :: {$row['cat_name']}";
else $location = "<a href=\"$PHP_SELF\">Home</a> :: <a href=\"$PHP_SELF?cat={$row['root_id']}\">{$row['cat_name']}</a>";
}
else
{
if( $row['root_id'] == $cat ) $location = " > {$row['cat_name']}";
else $location = " > <a href=\"$PHP_SELF?cat={$row['root_id']}\">{$row['cat_name']}</a>";
displayLocation( $row['papa_id'] );
}
echo " <b>$location</b>\n";
}
function displayLocationNoLink( $id )
{
$result = mysql_query( "SELECT cat_name, root_id, papa_id FROM category WHERE root_id=$id" ) or error( mysql_error() );
$row = mysql_fetch_array( $result );
if( $row['papa_id'] == 0 ) $location .= $row['cat_name'];
else
{
$location .= displayLocationNoLink( $row['papa_id'] );
$location .= " :: {$row['cat_name']}";
}
return "$location";
}
function findTotalAds( $id )
//habs gekürzt.........................................................................
hier die anweisung zum öffnen eines neuen fensters:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><a href="#" onClick="MM_openBrWindow('list.php','','width=500,height=700')">sdfsdfsdf
</a></p>
<p> </p>
</body>
</html>
Kommentar