Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia sukoduoti html->php

Parašė Andrius555· 2015 Bir. 21 17:06:23
#1

Jeigu kas nors gerai nusimano ir atrodo lengva stai html kodas: (As galiu ideti i php dizaina, bet man jis buna netvarkingai sumetytas , nesuprantu to.. nors style css viskas tvarkingai.



<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
 
<body>
<div class="login">
<ul>
<a href="login.php">Prisijungti</a>
<a href="register.php">Registruotis</a>
<ul>
</div>
 <div class="searchbar">
 <p>Ieškoti</p>
 </div>
 <div class="searchbutton">
 <a href="kazkokia-nuoroda">Go</a>
 </div>
 
<div class="header">
</div>
 
<div class="subheader">
 <ul>
<a href="index.php">Namai</a>
<a href="forum/index.php">Forumas</a>
<a href="articles.php">Html pamokos</a>
<a href="articles.php">Css pamokos</a>
<a href="articles.php">Javascript pamokos</a>
<a href="articles.php">Php pamokos</a>
<a href="articles.php">Straipsniai</a>
<a href="downloads.php">Dizainai</a>
<a href="kazkokia-nuoroda">Apie mus</a>
</ul>
 </div>
 
 <div id="content">
 <div class="side-panel">
 <div class="side-panel-title">
 <center><h3>asdasdasd</h3></center>
 </div>
<center><p><a>asdfasdg</a></p>
<p>asdasdasdasd</p></center>
 </div>
 
 <div class="turinys">
 <div class="content-title">
 <h2>Pavadinimas</h2>
 </div>
 <p>
Turinys Turinys Turinys
Turinys Turinys Turinys
Turinys Turinys Turinys
Turinys Turinys Turinys
Turinys Turinys Turinys
Turinys Turinys Turinys
Turinys Turinys Turinys
Turinys Turinys Turinys
 </p>
 
 </div>
 </div>
 <div class="footer">
  <center><p>Dizaino teisės priklauso, projekto įkūrėjui <b>Anonimas</b></p>
  <p><b><a href="kazkokia-nuoroda">Kontaktai</a></b></p>
  <p><b><a href="kazkokia-nuoroda">Jūsų reklama</a></b></p></center>
 </div>
 
 
 
 
 
</body>
</html>
 

Parašė WhiZz· 2015 Bir. 22 01:06:01
#2

theme.php

<?php
if (!defined("IN_FUSION")) { die("Kur lendi?"); }
 
require_once INCLUDES."theme_functions_include.php";
define("THEME_BULLET", "&middot;");
 
function render_page($license=false) {
	global $settings, $main_style, $locale;
 
 
if(!iMEMBER) { //JEIGU NEPRISIJUNGES RODOM TAI KAS SKLIAUSTUOSE { ... }
echo '<div class="login">
<ul>
<a href="login.php">Prisijungti</a>
<a href="register.php">Registruotis</a>
<ul>
</div>';
} else { // JEIGU PRISIJUNGES TAI KAS SKLIAUSTUOSE { ... } (Nuoroda iki profilio su pasisveikinimu)
echo '<div class="login">
<ul>
<a href="profile.php?lookup='.$userdata['id'].'" title="Eiti i profili">Labas, '.$userdata['username'].'</a>
<ul>
</div>';	
}
 
echo '<div class="searchbar">
<p>Ieškoti</p>
</div>
<div class="searchbutton">
<a href="kazkokia-nuoroda">Go</a>
</div>';
 
echo '<div class="header"></div>';
 
echo '<div class="subheader">
<ul>
<a href="index.php">Namai</a>
<a href="forum/index.php">Forumas</a>
<a href="articles.php">Html pamokos</a>
<a href="articles.php">Css pamokos</a>
<a href="articles.php">Javascript pamokos</a>
<a href="articles.php">Php pamokos</a>
<a href="articles.php">Straipsniai</a>
<a href="downloads.php">Dizainai</a>
<a href="kazkokia-nuoroda">Apie mus</a>
</ul>
</div>';
 
echo '<div id="content">';
 
 
echo '<div class="never_sidebar">
 
 
<div class="side-panel">
<div class="side-panel-title">
<center><h3>asdasdasd</h3></center>
</div>
<center><p><a>asdfasdg</a></p>
<p>asdasdasdasd</p></center>
</div>
 
 
</div>
 
 
 
<div class="turinys">';
/*
* Nezinau ka cia gamini, bet i U_CENTER.CONTENT.L_CENTER vieta atsiranda turnys is tavo puslapiu, tokiu kaip news.php
*
* Tad tas tavo kodas turi buti norimame atidaryti puslapyje
*
* TARKIM susikurk nauja faila pavadinimu test.php public_html aplankale. Forume temoi idesiu pavyzdi.
*
*   <div class="content-title">
*   <h2>Pavadinimas</h2>
*   </div>
*   <p>turinys cia</p>
*
*
*/
 
echo U_CENTER.CONTENT.L_CENTER;
 
echo '</div>
</div>';
 
 
echo '<div class="footer">
<center><p>'.$settings['footer'].'<br>Dizaino teisės priklauso, projekto įkūrėjui <b>Anonimas</b></p>
<p><b><a href="kazkokia-nuoroda">Kontaktai</a></b></p>
<p><b><a href="kazkokia-nuoroda">Jūsų reklama</a></b></p></center>
</div>';
}
 
function render_news($subject, $news, $info) {
 
	echo "<div class='box-out margin'>\n";
	echo "<div class='block-head' style='font-size:12px'>".$subject."</div>\n";
	echo "<div align='center'>\n";
	echo newsposter($info,"").newsopts($info,"").itemoptions("N",$info['news_id']);
	echo "".$news."</div></div>";
}			
 
function render_article($subject, $article, $info) {
 
	echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
	echo "<tr><td class='main-pavadinimas'>".$subject."</td></tr>\n";
	echo "<tr><td align='center' class='main-daugiau'>\n";
	echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
	echo "</tr>\n</table>\n";
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tbody><tr>\n";
	echo "<td class='main-fonas middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
	echo "</tr>\n<tr>\n";
	echo "</td>\n";
	echo "</tr><tr>\n";
	echo "<td style='height:5px;'></td>\n";
	echo "</tr>\n</table>\n";
 
}			
 
function opentable($title) {
	echo "<div class='box-out margin'>\n";
	echo "<div class='block-head' style='font-size:12px'>".$title."</div>\n";
	echo "<div class='clr'></div>";
}
 
function closetable() {
	echo "</div>\n";
}		
 
function openside($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<div class='side-block'>\n";
	echo "<div class='block-head'>".$title."</div>\n";
	if ($collapse == true) {
		$boxname = str_replace(" ", "", $title);
		echo "<div class='block-head' style='align: right;'>".panelbutton($state, $boxname)."</div>\n";
	}
	echo "<div class='block-inner'>\n";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
}
 
function closeside() {
 
	global $panel_collapse;
 
	if ($panel_collapse == true) { echo "</div>\n"; }	
	echo "</div></div>\n";
 
}
 
function opensideb($title, $collapse = false, $state = "on") {
 
	global $panel_collapse; $panel_collapse = $collapse;
 
	echo "<div class='side-block b-tags'>\n";
	echo "<div class='block-inner'>$title</div>\n";
	if ($collapse == true) {
		$boxname = str_replace(" ", "", $title);
		echo "<div class='block-inner' style='align: right;'>".panelbutton($state, $boxname)."</div>\n";
	}
	echo "<div class='block-inner'>\n";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
 
}
 
function closesideb() {
 
	global $panel_collapse;
 
	if ($panel_collapse == true) { echo "</div>\n"; }	
	echo "</div></div>\n";
 
}
 
?>


styles.css - Idek sita i styles.css

.newer_sidebar {
	width: 200px; float: left; margin-right: 8px;
}


susikurk puslapi test.php su tokiu turiniu:

 
<?php
require_once("maincore.php");
require_once(THEMES."templates/header.php");
 
echo '<div class="content-title">
<h2>Labas! Aš esu <u>TEST.php</u> puslapis</h2>
</div>
<p>Čia mano turinys....</p>';
 
require_once(THEMES."templates/footer.php");
?>
 

Redagavo WhiZz· 2015 Bir. 22 01:06:32

Parašė Andrius555· 2015 Bir. 22 10:06:05
#3

Nezinau kodel, bet headerio nera, subheaderio irgi ir linku virsutiniu