Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Sveiki, norėčiau paprašyti Jūsų pagalbos taigi noriu padaryti kad po headeriu butu migtukai bet kažkas šitame kode blogai gal kas nors padės... Kodas:
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px solid #999999; margin-top:-10px;'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td width='100%'>";
// Start banner code / Banerio kodas
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td height='25' background='".THEME."images/jou.jpg' align='center' valign='middle'>
<table width='95%' border='0' cellspacing='0' cellpadding='0'><tr>
<td width='95%' align='center'style='padding-right: 0px; padding-top: 0px;'>";
</tr>
</table>
<tr>
<td><table border='0' align='center' cellpadding='0' cellspacing='0'>
</tr>
</table></td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}
Antras klausimas gal galite duoti ar pataisyti šį kodą kad galėtu iėjti y šią nuoroda tik administratoriai:
<td width='75' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/Pagrindinis.jpg' border=0' alt='Pradinis'></a></td>
O dėl klaidos tai meta:
Parse error: syntax error, unexpected '<' in /home/..../xz.lt/themes/new/theme.php on line 24
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Spa. 9 18:10:18 |
pR
VIP narys
Buldozeris
Pranešimai: 297
Įstojęs: 2008 Kov. 16 20:03:33
|
Tai redagok 24 line,kaskas ten blogai...
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
na gerai o kaip dėl antro klausimo dėl administracijos kad iejt galėtu tik adminas...
code and design solutions tinklalapių kūrimas |
Žmogus
Narys
Viršesnis už Dievą
Pranešimai: 5621
Įstojęs: 2006 Gru. 8 17:12:08
|
Modų saite yra user info kažkokai tai iš ten gali tą kodą išimiti
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
ShadoVw parašė:
Modų saite yra user info kažkokai tai iš ten gali tą kodą išimiti
Neišeina man aš noriu kad tik adminas matytu ta nuoroda
code and design solutions tinklalapių kūrimas |
Dandžu
Narys
Ekspertas
Pranešimai: 3265
Įstojęs: 2007 Lie. 23 13:07:47
|
";
if(iADMIN) {
echo "<td width='75' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/Pagrindinis.jpg' border=0' alt='Pradinis'></a></td>";
}
echo "
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Sharkman parašė:
";
if(iADMIN) {
echo "<td width='75' align='center'><a href='".BASEDIR."news.php'><img src='".THEME."images/Pagrindinis.jpg' border=0' alt='Pradinis'></a></td>";
}
echo "
Didelis dėkui
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Dar vienas klausimėlis....
kaip panaikinti apibraukta dalyką:
Photogallery.php:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."photogallery.php";
?>
<script type="text/javascript" src="highslide/highslide.js"></script>
<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
</style>
<div id="highslide-container"></div>
<?php
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
if (isset($photo_id) && !isNum($photo_id)) fallback(FUSION_SELF);
if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if(isset($photo_id)){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING (album_id)
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='$photo_id' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo_id."'");
$pres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);
opentable($locale['450']);
if ($data['photo_thumb2']) $photo_thumb = PHOTODIR.$data['photo_thumb2'];
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a> >\n";
echo "<a href='".FUSION_SELF."?photo_id=$photo_id'>".$data['photo_title']."</a>\n</td>\n";
if (isset($prev) || isset($next)) {
if (isset($prev)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$prev['photo_id']."' title='".$locale['451']."'><<</a></td>\n";
if (isset($next)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$next['photo_id']."' title='".$locale['452']."'>>></a></td>\n";
}
echo "</tr>\n</table>\n";
tablebreak();
echo "<div align='center' style='margin:5px;'>\n";
echo"<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb2']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
//echo "<div align='center' style='margin:5px;'>\n";
//echo "<a href=\"javascript:;\" onclick=\"window.open('showphoto.php?photo_id=".$data['photo_id']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($photo_size[0]+20).",height=".($photo_size[1]+20)."')\">";
//echo "<img src='".(isset($photo_thumb) ? $photo_thumb : $photo_file)."' alt='".$data['photo_filename']."' title='".$locale['453']."' border='0'></a>\n</div>\n";
echo "<div align='center' style='margin:5px 0px 5px 0px'>\n";
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."<br>\n";
echo $locale['456'].parsebytesize(filesize($photo_file))."<br>\n";
echo $locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['457'].$data['photo_views']."\n";
closetable();
if ($data['photo_allow_comments'] == "1") showcomments("P","photos","photo_id",$photo_id,FUSION_SELF."?photo_id=$photo_id");
if ($data['photo_allow_ratings']) showratings("P",$photo_id,FUSION_SELF."?photo_id=$photo_id");
}
} elseif (isset($album_id)) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'"
);
if (!dbrows($result)) {
fallback(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", "photos", "album_id='$album_id'");
opentable($locale['420']);
tablebreak();
echo "<table align='center' cellpadding='0' cellspacing='0' width='80%'>\n<tr>\n";
echo "<td rowspan='2' align='center' class='tbl1'><img src='".PHOTOS.$data['album_thumb']."'></td>\n";
echo "<td valign='top' width='100%'><div class='tbl2' style='font-weight:bold;vertical-align:top'>".$locale['421'].$data['album_title']."</div>\n";
echo "<div class='tbl1' style='vertical-align:middle'>".nl2br(parseubb($data['album_description']))."</div>\n</td>\n</tr>\n";
echo "<tr>\n<td valign='bottom' width='100%'>\n<div class='tbl2' style='vertical-align:bottom'>\n";
if ($rows) {
$pdata = dbarray(dbquery("SELECT tp.*, tu.user_id,user_name FROM ".$db_prefix."photos tp LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id WHERE album_id='$album_id' ORDER BY photo_datestamp DESC LIMIT 1"));
echo $locale['422']."$rows<br>\n";
echo $locale['423']."<a href='".BASEDIR."profile.php?lookup=".$pdata['user_id']."'>".$pdata['user_name']."</a>".$locale['424'].showdate("longdate", $pdata['photo_datestamp'])."\n";
} else {
echo $locale['425']."\n";
}
echo "</div>\n</td>\n</tr>\n</table>";
tablebreak();
closetable();
if ($rows) {
tablebreak();
opentable($locale['430']);
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a>\n";
echo "</td>\n</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['photo_title']."</b><br><br>\n";
echo"
<div class='highslide-caption' id='caption-for-thumb".$data['photo_id']."'>";
//THIS SETS DESCRIPTION CAP
if($data['photo_description'] !="") {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td class='tbl1' width='100'>Description:</td><td class='tbl1'> ".$data['photo_description']."</td></tr></table>";
}
//THIS SETS COMMENTS CAP
$result1 = dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_type='P' AND comment_item_id='".$data['photo_id']."' ORDER BY comment_id DESC LIMIT 3");
if(dbrows($result1)) {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td align='center' class='tbl1' colspan='2'><b>Comments:</b></td></tr>";
while ($data1 = dbarray($result1)) {
$commentname = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data1['comment_name']."'");
$commentname2 = dbarray($commentname);
$commentname3 = $commentname2['user_name'];
echo"
<tr><td class='tbl1' width='100'>Comment by: ".$commentname3."</td><td class='tbl1'>".nl2br(parseubb(parsesmileys($data1['comment_message'])))."</td></tr>";
}
echo"
</table>";
}
//THIS SETS COUNT CAP
$calculate_comments = dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
if($calculate_comments >3) {
echo"
<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr>
<td align='center' class='tbl1' colspan='2'>You are viewing the 3 latest comments. [<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Click here to see all comments</a>] (there is currently ".dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")." comments)</td></tr></table>";
}
echo"
</div>
<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb1']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
echo "<br><br>\n<span class='small'>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Komentuoti</a><br>\n";
echo" ".$locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['435'].$data['photo_views']."</span><br>\n";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n</div>\n";
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access'));
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta
LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access')." ORDER BY album_order
LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['album_title']."</b><br><br>\n<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "<img src='".PHOTOS.$data['album_thumb']."' alt='".$data['album_thumb']."' title='".$locale['401']."' border='0'>";
} else {
echo $locale['402'];
}
echo "</a><br><br>\n<span class='small'>\n";
echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."<br>\n";
echo $locale['404']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."</span><br>\n";
echo "</td>\n";
$counter++; $k++;
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n</div>\n";
}else{
echo "<center><br>".$locale['406']."<br><br></center>\n";
closetable();
}
}
require "side_right.php";
require "footer.php";
?>
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Spa. 9 17:10:00 |
Fanio
Garbės narys
Viršesnis už Dievą
Pranešimai: 5675
Įstojęs: 2006 Sau. 27 23:01:47
|
Štai kodas, nebebus tos paneles kur apibraukei.
Photogallery.php:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."photogallery.php";
?>
<script type="text/javascript" src="highslide/highslide.js"></script>
<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
</style>
<div id="highslide-container"></div>
<?php
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
if (isset($photo_id) && !isNum($photo_id)) fallback(FUSION_SELF);
if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if(isset($photo_id)){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING (album_id)
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='$photo_id' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo_id."'");
$pres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);
opentable($locale['450']);
if ($data['photo_thumb2']) $photo_thumb = PHOTODIR.$data['photo_thumb2'];
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a> >\n";
echo "<a href='".FUSION_SELF."?photo_id=$photo_id'>".$data['photo_title']."</a>\n</td>\n";
if (isset($prev) || isset($next)) {
if (isset($prev)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$prev['photo_id']."' title='".$locale['451']."'><<</a></td>\n";
if (isset($next)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$next['photo_id']."' title='".$locale['452']."'>>></a></td>\n";
}
echo "</tr>\n</table>\n";
tablebreak();
echo "<div align='center' style='margin:5px;'>\n";
echo"<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb2']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
//echo "<div align='center' style='margin:5px;'>\n";
//echo "<a href=\"javascript:;\" onclick=\"window.open('showphoto.php?photo_id=".$data['photo_id']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($photo_size[0]+20).",height=".($photo_size[1]+20)."')\">";
//echo "<img src='".(isset($photo_thumb) ? $photo_thumb : $photo_file)."' alt='".$data['photo_filename']."' title='".$locale['453']."' border='0'></a>\n</div>\n";
echo "<div align='center' style='margin:5px 0px 5px 0px'>\n";
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."<br>\n";
echo $locale['456'].parsebytesize(filesize($photo_file))."<br>\n";
echo $locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['457'].$data['photo_views']."\n";
closetable();
if ($data['photo_allow_comments'] == "1") showcomments("P","photos","photo_id",$photo_id,FUSION_SELF."?photo_id=$photo_id");
if ($data['photo_allow_ratings']) showratings("P",$photo_id,FUSION_SELF."?photo_id=$photo_id");
}
} elseif (isset($album_id)) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'"
);
if (!dbrows($result)) {
fallback(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", "photos", "album_id='$album_id'");
if ($rows) {
tablebreak();
opentable($locale['430']);
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a>\n";
echo "</td>\n</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['photo_title']."</b><br><br>\n";
echo"
<div class='highslide-caption' id='caption-for-thumb".$data['photo_id']."'>";
//THIS SETS DESCRIPTION CAP
if($data['photo_description'] !="") {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td class='tbl1' width='100'>Description:</td><td class='tbl1'> ".$data['photo_description']."</td></tr></table>";
}
//THIS SETS COMMENTS CAP
$result1 = dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_type='P' AND comment_item_id='".$data['photo_id']."' ORDER BY comment_id DESC LIMIT 3");
if(dbrows($result1)) {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td align='center' class='tbl1' colspan='2'><b>Comments:</b></td></tr>";
while ($data1 = dbarray($result1)) {
$commentname = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data1['comment_name']."'");
$commentname2 = dbarray($commentname);
$commentname3 = $commentname2['user_name'];
echo"
<tr><td class='tbl1' width='100'>Comment by: ".$commentname3."</td><td class='tbl1'>".nl2br(parseubb(parsesmileys($data1['comment_message'])))."</td></tr>";
}
echo"
</table>";
}
//THIS SETS COUNT CAP
$calculate_comments = dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
if($calculate_comments >3) {
echo"
<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr>
<td align='center' class='tbl1' colspan='2'>You are viewing the 3 latest comments. [<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Click here to see all comments</a>] (there is currently ".dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")." comments)</td></tr></table>";
}
echo"
</div>
<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb1']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
echo "<br><br>\n<span class='small'>\n";
echo $locale['433'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['434']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Komentuoti</a><br>\n";
echo" ".$locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['435'].$data['photo_views']."</span><br>\n";
echo "</td>\n";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n</div>\n";
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access'));
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta
LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access')." ORDER BY album_order
LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['album_title']."</b><br><br>\n<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "<img src='".PHOTOS.$data['album_thumb']."' alt='".$data['album_thumb']."' title='".$locale['401']."' border='0'>";
} else {
echo $locale['402'];
}
echo "</a><br><br>\n<span class='small'>\n";
echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."<br>\n";
echo $locale['404']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."</span><br>\n";
echo "</td>\n";
$counter++; $k++;
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n</div>\n";
}else{
echo "<center><br>".$locale['406']."<br><br></center>\n";
closetable();
}
}
require "side_right.php";
require "footer.php";
?>
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Fanio - dėkui šen jus geri kažkokie dar norėčiau paprašyti gal galit panaikinti tuos užrašus kur idėjimo data,komentuoti,idėjo, na kad tik foto rodytu , jai galit
code and design solutions tinklalapių kūrimas |
Fanio
Garbės narys
Viršesnis už Dievą
Pranešimai: 5675
Įstojęs: 2006 Sau. 27 23:01:47
|
Padariau kaip prašei.
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."photogallery.php";
?>
<script type="text/javascript" src="highslide/highslide.js"></script>
<!--
2) Initialize the hs object and optionally override the settings defined at the top
of the highslide.js file. The parameter hs.graphicsDir is important!
-->
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<!--
3) These CSS-styles are necessary for the script to work. You may also put
them in an external CSS-file. See the webpage for documentation.
-->
<style type="text/css">
* {
font-family: Verdana, Helvetica;
font-size: 8pt;
}
.highslide {
cursor: url(highslide/graphics/zoomin.cur), pointer;
outline: none;
}
.highslide img {
border: 2px solid gray;
}
.highslide:hover img {
border: 2px solid white;
}
.highslide-image {
border: 2px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
display: none;
border: 2px solid white;
border-top: none;
font-family: Verdana, Helvetica;
font-size: 10pt;
padding: 5px;
background-color: white;
}
.highslide-display-block {
display: block;
}
.highslide-display-none {
display: none;
}
.highslide-loading {
display: block;
color: white;
font-size: 9px;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
padding: 3px;
border-top: 1px solid white;
border-bottom: 1px solid white;
background-color: black;
/*
padding-left: 22px;
background-image: url(highslide/graphics/loader.gif);
background-repeat: no-repeat;
background-position: 3px 1px;
*/
}
a.highslide-credits,
a.highslide-credits i {
padding: 2px;
color: silver;
text-decoration: none;
font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
color: white;
background-color: gray;
}
</style>
<div id="highslide-container"></div>
<?php
define("SAFEMODE", @ini_get("safe_mode") ? true : false);
if (isset($photo_id) && !isNum($photo_id)) fallback(FUSION_SELF);
if (isset($album_id) && !isNum($album_id)) fallback(FUSION_SELF);
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if(isset($photo_id)){
$result = dbquery(
"SELECT tp.*, ta.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING (album_id)
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE photo_id='$photo_id' GROUP BY tp.photo_id"
);
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$data['album_id']."/" : ""));
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result=dbquery("UPDATE ".$db_prefix."photos SET photo_views=(photo_views+1) WHERE photo_id='".$photo_id."'");
$pres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']-1)."' AND album_id='".$data['album_id']."'");
$nres = dbquery("SELECT photo_id FROM ".$db_prefix."photos WHERE photo_order='".($data['photo_order']+1)."' AND album_id='".$data['album_id']."'");
if (dbrows($pres)) $prev = dbarray($pres);
if (dbrows($nres)) $next = dbarray($nres);
opentable($locale['450']);
if ($data['photo_thumb2']) $photo_thumb = PHOTODIR.$data['photo_thumb2'];
$photo_file = PHOTODIR.$data['photo_filename'];
$photo_size = @getimagesize($photo_file);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a> >\n";
echo "<a href='".FUSION_SELF."?photo_id=$photo_id'>".$data['photo_title']."</a>\n</td>\n";
if (isset($prev) || isset($next)) {
if (isset($prev)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$prev['photo_id']."' title='".$locale['451']."'><<</a></td>\n";
if (isset($next)) echo "<td width='1%' class='tbl2'><a href='".FUSION_SELF."?photo_id=".$next['photo_id']."' title='".$locale['452']."'>>></a></td>\n";
}
echo "</tr>\n</table>\n";
tablebreak();
echo "<div align='center' style='margin:5px;'>\n";
echo"<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb2']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
//echo "<div align='center' style='margin:5px;'>\n";
//echo "<a href=\"javascript:;\" onclick=\"window.open('showphoto.php?photo_id=".$data['photo_id']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($photo_size[0]+20).",height=".($photo_size[1]+20)."')\">";
//echo "<img src='".(isset($photo_thumb) ? $photo_thumb : $photo_file)."' alt='".$data['photo_filename']."' title='".$locale['453']."' border='0'></a>\n</div>\n";
echo "<div align='center' style='margin:5px 0px 5px 0px'>\n";
if ($data['photo_description']) echo nl2br(parseubb($data['photo_description']))."</b><br><br>\n";
echo $locale['454']."$photo_size[0] x $photo_size[1] ".$locale['455']."<br>\n";
echo $locale['456'].parsebytesize(filesize($photo_file))."<br>\n";
echo $locale['436'].dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")."<br>\n";
echo $locale['437'].($data['count_votes'] > 0 ? str_repeat("<img src='".IMAGES."star.gif' alt='*' style='vertical-align:middle'>", ceil($data['sum_rating'] / $data['count_votes'])) : $locale['438'])."<br>\n";
echo $locale['457'].$data['photo_views']."\n";
closetable();
if ($data['photo_allow_comments'] == "1") showcomments("P","photos","photo_id",$photo_id,FUSION_SELF."?photo_id=$photo_id");
if ($data['photo_allow_ratings']) showratings("P",$photo_id,FUSION_SELF."?photo_id=$photo_id");
}
} elseif (isset($album_id)) {
define("PHOTODIR", PHOTOS.(!SAFEMODE ? "album_".$album_id."/" : ""));
$result = dbquery(
"SELECT ta.* FROM ".$db_prefix."photo_albums ta WHERE album_id='$album_id'"
);
if (!dbrows($result)) {
fallback(FUSION_SELF);
} else {
$data = dbarray($result);
if (!checkgroup($data['album_access'])) {
fallback(FUSION_SELF);
} else {
$rows = dbcount("(photo_id)", "photos", "album_id='$album_id'");
if ($rows) {
tablebreak();
opentable($locale['430']);
$result = dbquery(
"SELECT tp.*, tu.user_id,user_name, SUM(tr.rating_vote) AS sum_rating, COUNT(tr.rating_item_id) AS count_votes
FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id
LEFT JOIN ".$db_prefix."ratings tr ON tr.rating_item_id = tp.photo_id AND tr.rating_type='P'
WHERE album_id=$album_id GROUP BY photo_id ORDER BY photo_order LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n<td class='tbl2'>\n";
echo "<a href='".FUSION_SELF."'>".$locale['400']."</a> >\n";
echo "<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>".$data['album_title']."</a>\n";
echo "</td>\n</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['photo_title']."</b><br><br>\n";
echo"
<div class='highslide-caption' id='caption-for-thumb".$data['photo_id']."'>";
//THIS SETS DESCRIPTION CAP
if($data['photo_description'] !="") {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td class='tbl1' width='100'>Description:</td><td class='tbl1'> ".$data['photo_description']."</td></tr></table>";
}
//THIS SETS COMMENTS CAP
$result1 = dbquery("SELECT * FROM ".$db_prefix."comments WHERE comment_type='P' AND comment_item_id='".$data['photo_id']."' ORDER BY comment_id DESC LIMIT 3");
if(dbrows($result1)) {
echo"<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr><td align='center' class='tbl1' colspan='2'><b>Comments:</b></td></tr>";
while ($data1 = dbarray($result1)) {
$commentname = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data1['comment_name']."'");
$commentname2 = dbarray($commentname);
$commentname3 = $commentname2['user_name'];
echo"
<tr><td class='tbl1' width='100'>Comment by: ".$commentname3."</td><td class='tbl1'>".nl2br(parseubb(parsesmileys($data1['comment_message'])))."</td></tr>";
}
echo"
</table>";
}
//THIS SETS COUNT CAP
$calculate_comments = dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'");
if($calculate_comments >3) {
echo"
<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'><tr>
<td align='center' class='tbl1' colspan='2'>You are viewing the 3 latest comments. [<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='small'>Click here to see all comments</a>] (there is currently ".dbcount("(comment_id)", "comments", "comment_type='P' AND comment_item_id='".$data['photo_id']."'")." comments)</td></tr></table>";
}
echo"
</div>
<a id='thumb".$data['photo_id']."' href='".PHOTODIR.$data['photo_filename']."' class=\"highslide\" onclick=\"return hs.expand(this)\">
<img src='".PHOTODIR.$data['photo_thumb1']."' alt=\"Highslide JS\"
title='".$locale['431']."'/></a>";
$counter++;
}
echo "</tr>\n</table>\n";
closetable();
}
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3,FUSION_SELF."?album_id=$album_id&")."\n</div>\n";
}
}
} else {
opentable($locale['400']);
$rows = dbcount("(album_id)", "photo_albums", groupaccess('album_access'));
if ($rows) {
$result = dbquery(
"SELECT ta.*, tu.user_id,user_name FROM ".$db_prefix."photo_albums ta
LEFT JOIN ".$db_prefix."users tu ON ta.album_user=tu.user_id
WHERE ".groupaccess('album_access')." ORDER BY album_order
LIMIT $rowstart,".$settings['thumbs_per_page']
);
$counter = 0; $r = 0; $k = 1;
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
while ($data = dbarray($result)) {
if ($counter != 0 && ($counter % $settings['thumbs_per_row'] == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl'>\n";
echo "<b>".$data['album_title']."</b><br><br>\n<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>";
if ($data['album_thumb'] && file_exists(PHOTOS.$data['album_thumb'])){
echo "<img src='".PHOTOS.$data['album_thumb']."' alt='".$data['album_thumb']."' title='".$locale['401']."' border='0'>";
} else {
echo $locale['402'];
}
echo "</a><br><br>\n<span class='small'>\n";
echo $locale['403'].showdate("shortdate", $data['album_datestamp'])."<br>\n";
echo $locale['404']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
echo $locale['405'].dbcount("(photo_id)", "photos", "album_id='".$data['album_id']."'")."</span><br>\n";
echo "</td>\n";
$counter++; $k++;
}
echo "</tr>\n</table>\n";
closetable();
if ($rows > $settings['thumbs_per_page']) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$settings['thumbs_per_page'],$rows,3)."\n</div>\n";
}else{
echo "<center><br>".$locale['406']."<br><br></center>\n";
closetable();
}
}
require "side_right.php";
require "footer.php";
?>
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Fanio tikrai didelis AČIŪ tau :)
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Spa. 9 19:10:24 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
turiu klausima kaip galima butu theme sucentruoti visoms rezoliucijoms ???
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Va man rodo viską normalej o drauguj rodo tema taip:
....
jau pasidariau
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Spa. 9 23:10:44 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Turiu problema su forumu gal padėsite išspresti kodėl taip yra?
code and design solutions tinklalapių kūrimas |
LeBro
Narys
Terminatorius
Pranešimai: 1461
Įstojęs: 2007 Rugp. 10 10:08:52
|
kazka jau iterpinejai turbut... truksta arba per daug kazkokiu tagu prideta
PACHA - best club ever |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Styles:
a {
color : #650000;
text-decoration : none;
}
a:hover {
color : #650000;
text-decoration : underline;
}
a.side {
color : #650000;
text-decoration : none;
}
a:hover.side {
color : #650000;
text-decoration : underline;
}
a.white {
color : #ddd;
text-decoration : none;
}
a:hover.white {
color : #ddd;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
form {
margin : 0px;
}
hr {
height : 1px;
border : 1px solid #eee;
}
hr.side-hr {
height : 1px;
border : 1px solid #eee;
}
td {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #000;
}
.outer-border {
border : 0px solid #000;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #888;
border-top : 1px solid #000;
border-bottom : 1px solid #000;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #444;
padding : 10px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
background-color : #f1f1f1;
border : 1px solid #ccc;
padding : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #000;
height : 20px;
border : 1px solid #FFF;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #7a0000;
border : 1px solid #FFF;
}
.main-body {
font-size : 11px;
color : #000;
background-image: url('images/mainbg.png');
padding : 12px;
}
.side-body {
font-size : 10px;
color : #000;
background-image: url('images/panelbg.png');
padding : 6px;
}
.main-bg {
color : #000;
padding : 10px 5px 10px 5px;
}
.border {
border : 0px solid #e1e1e1;
}
.side-border-left {
color : #000;
padding : 10px 5px 10px 10px;
}
.side-border-right {
color : #000;
padding : 10px 10px 10px 5px;
}
.news-footer {
font-size : 10px;
color : #000;
background-image: url('images/2.png');
padding : 23px ;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
font-weight : bold;
color : #000;
background-image: url('images/1.png');
padding : 16px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
font-weight : bold;
color : #000;
background-image: url('images/p1.png');
border-bottom : 0px solid #e1e1e1;
padding : 16px;
}
.tbl-border {
color : #7a0000;
}
.tbl {
font-size : 11px;
color : #7a0000;
border : 1px solid #7f4307;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #7a0000;
border : 1px solid #7f4307;
padding : 4px;
}
.tbl2 {
font-size : 11px;
border : 1px solid #7f4307;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #000;
background-image: url('images/qoute.gif');
padding : 6px;
}
.quote {
font-size : 11px;
color : #000;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #000;
}
.shoutboxname {
font-weight : bold;
color : #000;
}
.shoutbox {
color : #000;
}
.shoutboxdate {
font-size : 10px;
color : #000;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #000;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #000;
}
.side-label {
color : #000;
padding : 2px 2px 3px 2px;
}
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
gal galit padėti
code and design solutions tinklalapių kūrimas |
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Prie ko čia styles? Tu čia viewthread tvarkykis
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Dėkui jau susitvarkiau
code and design solutions tinklalapių kūrimas |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
1.Taigi kas galėtu man padėti man reiktų kad naujienose kur buna ten parashe admin data komentarai skaityti daugiau ir pns tai man reiktų kad butų tik skaityti daugiau. dėku iš anksto kas padėsit ir jai dar nebusiu daves +10 tai duosiu ;)
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='494'>
<tr>
<td align='center' class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsopts;
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='494' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
2.kur ką keisti kad nebutų to tarpo tarp footerio(apibraukta):
susitvarkiau
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Lap. 2 13:11:14 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Na dar vienas klausimas dabar dėl prisijungimo headerije....
man rodo šitaip:
http://img99.imageshack.us/my.ph...ityiq0.jpg
o jam rodo:
http://img148.imageshack.us/my.p...yltwa2.jpg
Va header.php
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='736' border='0' align='left' cellpadding='0' cellspacing='0' background='".THEME."images/headeris.jpg' height='206 style='background-repeat: no-repeat;'>
<tr>
<td width='235' style='padding-right: 500px; padding-left: 0px; padding-bottom: 10px; padding-top:10px;' valign='middle'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='textbox'>Redaguoti profili</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='textbox'>zinutes [naujo: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='textbox'>Nariai</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='textbox'>Mano profilis</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='textbox'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='textbox'>".$locale['084']."</a><br><br>
<b><span class='ip'>IP: </span></b>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'>Vardas: </td>
<td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=100)'></td>
</tr>
<tr>
<td align='right' class='ip'>".$locale['062'].": </td>
<td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=100)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptazodis</a>\n";
}
echo"</table>\n";
}
echo "</td>
</tr>
</table>\n";
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
?>
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Lap. 2 13:11:28 |
Toonis
VIP narys
Viršesnis už Dievą
Pranešimai: 5741
Įstojęs: 2006 Spa. 17 14:10:03
|
Ir vėl tu šūdą kuri, bliad bliad.
[galingų saliutų foto] |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Toonis parašė:
Ir vėl tu šūdą kuri, bliad bliad.
Pats tu šūdas! jai nenori padėt tai vali iš šitos temos... pz neprašiau ašv čia komentuot jau net padėt nieks negali... nu čia pox jau susitvarkiau
code and design solutions tinklalapių kūrimas |
Toonis
VIP narys
Viršesnis už Dievą
Pranešimai: 5741
Įstojęs: 2006 Spa. 17 14:10:03
|
Jaunelis parašė:
Pats tu šūdas! jai nenori padėt tai vali iš šitos temos... pz neprašiau ašv čia komentuot jau net padėt nieks negali... nu čia pox jau susitvarkiau Nesimušk, ne riaušės. ;>> Prisipažink, kad šūdus kuri, lievas tikrai.
[galingų saliutų foto] |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";
if (!isset($group_id)) {
if (!isset($lookup) || !isNum($lookup)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$lookup'");
if (dbrows($result)) { $data = dbarray($result); } else { redirect("index.php"); }
opentable($locale['420']);
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td colspan='3'>
<table align='center' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='tbl2'><b>".$data['user_name']."</b></td>
<td align='right' class='tbl2'>".getuserlevel($data['user_level'])."</td>
</tr>
</table>
</td>
<tr>
<td align='center' width='150' rowspan='5' class='tbl2'>\n";
echo ($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['u017']."'>" : $locale['u046'])."</td>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u009']."</b></td>
<td class='tbl1'>".($data['user_location'] ? $data['user_location'] : $locale['u048'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u010']."</b></td>
<td class='tbl2'>";
if ($data['user_birthdate'] != "0000-00-00") {
$months = explode("|", $locale['months']);
$user_birthdate = explode("-", $data['user_birthdate']);
echo $months[number_format($user_birthdate['1'])]." ".number_format($user_birthdate['2'])." ".$user_birthdate['0'];
} else {
echo $locale['u048'];
}
echo "</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u021']."</b></td>
<td class='tbl1'>".($data['user_aim'] ? $data['user_aim'] : $locale['u048'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u011']."</b></td>
<td class='tbl2'>".($data['user_icq'] ? $data['user_icq'] : $locale['u048'])."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u012']."</b></td>
<td class='tbl1'>".($data['user_msn'] ? $data['user_msn'] : $locale['u048'])."</td>
</tr>
<tr>
<td align='center' class='tbl1'>\n";
if ($data['user_hide_email'] != "1" || iADMIN) {
echo "[<a href='mailto:".str_replace("@","@",$data['user_email'])."' title='".str_replace("@","@",$data['user_email'])."'>".$locale['u051']."</a>]\n";
}
if ($data['user_web']) {
$urlprefix = !strstr($data['user_web'], "http://") ? "http://" : "";
echo "[<a href='".$urlprefix.$data['user_web']."' title='".$urlprefix.$data['user_web']."' target='_blank'>".$locale['u052']."</a>]\n";
}
if (iMEMBER && $data['user_id'] != $userdata['user_id']) {
echo "[<a href='messages.php?msg_send=".$data['user_id']."' title='".$locale['u060']."'>".$locale['u053']."</a>]\n";
}
echo "</td>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u013']."</b></td>
<td class='tbl2'>".($data['user_yahoo'] ? $data['user_yahoo'] : $locale['u048'])."</td>
</tr>
</table>\n";
tablebreak();
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td class='tbl2' colspan='2'><b>".$locale['422']."</b></td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u040']."</b></td>
<td class='tbl1'>".showdate("longdate", $data['user_joined'])."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u044']."</b></td>
<td class='tbl2'>".($data['user_lastvisit'] != 0 ? showdate("longdate", $data['user_lastvisit']) : $locale['u049'])."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u041']."</b></td>
<td class='tbl1'>".number_format(dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u042']."</b></td>
<td class='tbl2'>".number_format(dbcount("(comment_id)", "comments", "comment_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u043']."</b></td>
<td class='tbl1'>".number_format($data['user_posts'])."</td>
</tr>
</table>\n";
if ($data['user_groups']) {
tablebreak();
echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>\n";
echo "<tr>\n<td class='tbl2'><b>".$locale['423']."</b></td>\n\n</tr>\n<tr>\n<td class='tbl1'>\n";
$user_groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups']));
for ($i = 0;$i < count($user_groups);$i++) {
echo "<a href='".FUSION_SELF."?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a>";
if ($i != (count($user_groups)-1)) { echo ",\n"; } else { echo "\n"; }
}
echo "</td>\n</tr>\n</table>\n";
}
} else {
if (!isNum($group_id)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_id='$group_id'");
if (dbrows($result)) {
$data = dbarray($result);
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_groups REGEXP('^\\\.{$group_id}$|\\\.{$group_id}\\\.|\\\.{$group_id}$') ORDER BY user_level DESC, user_name");
opentable($locale['410']);
echo "<table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>
<tr>
<td align='center' colspan='2' class='tbl1'><b>".$data['group_name']."</b> (".sprintf((dbrows($result)==1?$locale['411']:$locale['412']), dbrows($result)).")</td>
</tr>
<tr>
<td class='tbl2'><b>".$locale['401']."</b></td>
<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['402']."</b></td>
</tr>\n";
while ($data = dbarray($result)) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); $i++;
echo "<tr>\n<td class='$cell_color'>\n<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n</tr>";
}
echo "</table>\n";
} else {
fallback(BASEDIR."index.php");
}
}
closetable();
require_once "side_right.php";
require_once "footer.php";
?>
Gal galit iterpti kad galima butu komentuoti čia profile php failas
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2008 Lap. 16 14:11:34 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
žiurėkit turiu bėdu per mozilla yra taip:
o per IE ir opera atrodytu taip:
kokį faila dadurt kad pvz per opera ir per ie butu normalej ?
code and design solutions tinklalapių kūrimas |
moonlike
Narys
Pulkininkas
Pranešimai: 453
Įstojęs: 2008 Rugs. 24 20:09:39
|
tai rodo kad mozilla valdo
P.S. nezinau...
Pigiai koduoju HTML, xHTML/CSS dizainus. |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
kerniux parašė:
tai rodo kad mozilla valdo
P.S. nezinau...
ne nu butu p* , bet gi ne visi naudoja mozilla ir užėja y psl su kita naršykle pamatys toki vaizda tai nelbj žinau kažkokie failai ar koda koki iteprt ir viskas ore turėtu but.
code and design solutions tinklalapių kūrimas |
moonlike
Narys
Pulkininkas
Pranešimai: 453
Įstojęs: 2008 Rugs. 24 20:09:39
|
zinau as sitas nesamones seniau kaip per html kurdavau budavo sunku padaryti, kad per visas narsykles ta paty rodytu.. oo taip reikia kad koks protingesnis parasytu, nes as nezinau sito...
Pigiai koduoju HTML, xHTML/CSS dizainus. |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
Na ka sveikučiai dbr reikia jūsų pagalbos aišku kas išmanot ir esat dare v7 temas ;) taigi aš bandau inclund'inti y theme.php , header.php bet vis man erroras tai gal kas žinot kaip tai daryti va kodas:
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "<img src='".THEME."images/headeris.jpg'>";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
Ir kaip turėtu atrodyti kodas header.php faile dekingas iškarto ;)
code and design solutions tinklalapių kūrimas
Redagavo Jaunelis 2009 Kov. 16 19:03:09 |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
UP! heeelp
code and design solutions tinklalapių kūrimas |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
O koks header.php faile kodas?
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
man visu pirmą reikia čia padaryti nes rodo error kaip bandau daryti kad kažkas ten bla bla bla tai negalit padėt ??? vietoj to kad klausi kox kodas galėjai includint ... nes rodo kad theme.php faile levai
code and design solutions tinklalapių kūrimas |
edeni
Narys
Terminatorius
Pranešimai: 1502
Įstojęs: 2008 Vas. 7 19:02:18
|
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
include_once("header.php");
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
Megink
|
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
Jaunelis parašė:
man visu pirmą reikia čia padaryti nes rodo error kaip bandau daryti kad kažkas ten bla bla bla tai negalit padėt ??? vietoj to kad klausi kox kodas galėjai includint ... nes rodo kad theme.php faile levai
includinimo viena priklauso nuo headerio kodo
|
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
edeni parašė:
//Header
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
include_once("header.php");
echo "<table cellpadding='0' cellspacing='0' width='897'>\n<tr>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";
Megink
wa čiuvelis iškarto be jokiu ten klausimu veikai
code and design solutions tinklalapių kūrimas |
MAnjack
Garbės narys
Legenda
Pranešimai: 11821
Įstojęs: 2006 Kov. 2 20:03:58
|
Kai papratai darai tai ir šitas veikia
|
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
|
Manjack buk tu geras, nustok tu pjaut ką :}
Rules: 21 & 22 Read first! |
Jaunelis
Narys
Antras po Dievo
Pranešimai: 4735
Įstojęs: 2007 Rugs. 23 08:09:32
|
joo manjack buvo teisus ir dbr su header problemos bet dar pameginsiu
code and design solutions tinklalapių kūrimas |