
08-02-2009, 22:14
|
|
|
|
חבר מתאריך: 06.06.07
הודעות: 749
|
|
חברה אלו הקבצים
PHP
קוד PHP:
<?php if( $_SESSION['login'] == "1" ) { echo '<ul class="TabNfmenu">'; echo '<li class="tablogheader"><a href="../config&func/logout.php" class="a-header">logout</a></li>'; echo '<li class="tabsheader"><a href="../startpage/Nprofile.php" class="a-header">Profile</a></li>'; echo '<li class="tabsheader"><a href="../startpage/Ninbox.php" class="a-header">Inbox</a></li>'; echo '<li class="tabsheader"><a href="#" class="a-header">Friend</a></li>'; echo '</ul>'; }
if( $_SESSION['login'] != "1" && $_SESSION['candidate'] != '1' ) { echo '<ul class="TabNfmenu">'; echo '<li class="tabsheader"><a href="../startpage/Nlogin.php" class="a-header">Login</a></li>'; echo '<li class="tabsheader"><a href="../startpage/Nregister.php" class="a-header">Register</a></li>'; echo '</ul>'; } ?>
HTML
קוד PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>עמוד הבית</title> <link href="../stylesheet/Nsagolstyles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" > function MM_CheckFlashVersion(reqVerStr,msg){ with(navigator){ var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1); var isWin = (appVersion.toLowerCase().indexOf("win") != -1); if (!isIE || !isWin){ var flashVer = -1; if (plugins && plugins.length > 0){ var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : ""; desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc; if (desc == "") flashVer = -1; else{ var descArr = desc.split(" "); var tempArrMajor = descArr[2].split("."); var verMajor = tempArrMajor[0]; var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r"); var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0; flashVer = parseFloat(verMajor + "." + verMinor); } } // WebTV has Flash Player 4 or lower -- too low for video else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(","); var reqVer = parseFloat(verArr[0] + "." + verArr[2]); if (flashVer < reqVer){ if (confirm(msg)) window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"; } } } } </script> <script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head>
<body id="screenbc" style="margin:0px;" onload="MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');"> <?php session_start(); ?> <center> <div id="Ncontainer" name="Ncontainer"> <div id="Nheader"> <div style="width:30px; height:80px; float:right;"> </div> <div style="width:550px; height:80px; float:right;"> <div style="width:550px; height:40px;"> <!--<ul class="TabNfmenu"> <li class="tablogheader"><a href="#" class="a">יציאה</a></li> <li class="tabsheader"><a href="#" class="a">פרופיל</a></li> <li class="tabsheader"><a href="#" class="a">דואר</a></li> <li class="tabsheader"><a href="#" class="a">חברים</a></li> </ul>--> <?php include('../config&func/menubartop.php'); ?> </div> <div style="width:550px; height:40px;" align="right"> <?php include('../config&func/mylocation.php'); loc('home'); ?> </div> </div> </div> <div id="Ncontainerin"> <div id="Nside"> <?php //echo $_SESSION['myid']; //echo $_SESSION['candidate']; include('../config&func/displayimagpages.php'); ?> </div> <div id="fmenu"> <!--<ul class="TabNfmenu"> <li class="tablog"><a href="Nmailme.php" class="a-menubody">לפרטים נוספים</a></li> <li class="tabs" style="background-color:#FF0000;"><a href="Nindex.php" style="color:#FFFFFF;">בית</a></li> <li class="tabs"><a href="Nmonavie.php" class="a-menubody">מי זאת מונבי</a></li> <li class="tabs"><a href="Npresentation.php" class="a-menubody">מצגת</a></li> <li class="tabs"><a href="Nmlm.php" class="a-menubody">הסבר על שיווק רישתי</a></li> <li class="tabs"><a href="Nidea.php" class="a-menubody">הרעיון</a></li> <li class="tabs"><a href="Nproduct.php" class="a-menubody">מכפלות הכסף</a></li> <li class="tabs"><a href="Nopportunity.php" class="a-menubody">חובה לראות</a></li> </ul>--> <?php include('../config&func/bodymenu.php'); ?> </div> <div class="pagebody"> <br /> <div style="width:470px; float:left;"> <!--<div> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','461','height ','259','id','FLVPlayer','src','FLVPlayer_Progress ive','flashvars','&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=../clips/theprocess&autoPlay=true&autoRewind=false','quality','high','scale','noscal e','name','FLVPlayer','salign','lt','pluginspage', 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="461" height="259" id="FLVPlayer"> <param name="movie" value="FLVPlayer_Progressive.swf" /> <param name="salign" value="lt" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=../clips/theprocess&autoPlay=true&autoRewind=false" /> <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=../clips/theprocess&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="320" height="180" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" /> </object></noscript> </div>--> <object width="461" height="259"> <param name="movie" value="http://www.youtube.com/v/ydKHVMhNcEQ&hl=en&fs=1"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/ydKHVMhNcEQ&hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="461" height="259"></embed></object> </div> <div style="width:290px; float:left;"> <div style="width:280px; font-family:Arial, Helvetica, sans-serif;" align="right" dir="rtl"> <br /> שלום אורח, <br /> אתר זה מכיל מידע על חברת מונבי ועל שיווק רישתי בכלל <br /> לנוחיותכם, מרבית המידע מועבר פה בסרטונים קצרים ומעניינים <br /> בצד ימין למעלה יש לינקים לחשיפה ראשונה לחברת מונבי ולרעיון השיווק הרישתי <br /> אנו מקווים שתקבלו מספיק מידע כדי לקפוץ איתנו על הרכבת </div> </div> </div> </div> </div> <div class="pagefooter"> </div> </center> </body> </html>
תעזרו לי לקודד כי אני די תקוע
עברתי על הלינקים...
יש לי הכל META מוגדר ב HTML
עכשיו חשוב לזכור אני משתמש בבסיס של דפי HTML ושה- PHP שבונה אובייקטים
ולא דפי PHP שבונים HTML
אני מקווה שאני ברור ולא כותב שטויות..
לפי הבנתי ברגע שאני בונה דף HTML על ידי PHP אני מוסיף HEADER בתחילת הדף..
ואם אני משתמש ב INCLUDE לבניית אובייקטים על בסיס של דף HTML אני משתמש ב META
תקנו אותי אם אני טועה..
תודה
|