php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2005

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 14.01.2005, 22:30  
Erfahrener Benutzer
 
Registriert seit: 16.03.2004
Beiträge: 170
Kori
Standard Grosse Probleme Code an HTML Grundgerüst anzupassen

Hallo !
Das mein erster post in neuen Jahr,nochmal allein ein Frohes neues!

Also, ich hab folgendes Problem:

Hab mir ein Cupscript von einem Kumpel besorgt, ( Cupscript, so ne Art Tunierscript mit Tunierbaum, Anmeldung etc ) und dieses Cupscript wollte ich auf ein Design anpassen. Aber im Script gibt es einmal die dateien die wichtig sind "inde x.php" und "templates.inc.php". diese beiden müssen irgendwie ins HTML Grundgerüst. Nach langen 5 Stunden hab ich meine Ausdauerer daran verloren, da einfach nix vorran ging.

Ich hoffe ihr könnt mir helfen die einzelnen Codes zusammen fusseln.
gruß und thx im vorraus
Kori

Grundgerüst index.html ( hier habe ich wie in der templates.inc.php schon die hyperlinks so geändert wie sie dort sidn, weiss nicht ob sie richtig sind ;(
Code:
<html>
<head>
<title>blubb</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<style>
ul, li, p, td, div {
  color: #383A3A;
  font-family: verdana;
  font-size: 10px;
}
a            { text-decoration: none }
</style>

<body background="images/bg.png" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#EBEBEB" vlink="#EBEBEB" alink="#EBEBEB">
<table width="651" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
       <td width="20"></td>
       <td bgcolor="#FFFFFF">
	   
<table id="Table_01" width="632" height="891" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td background="images/image_01.png" width="9"></td>
		<td rowspan="16" bgcolor="#FFFFFF" width="7"></td>
		<td colspan="18" rowspan="2">
			[img]images/image_03_empty.jpg[/img]</td>
		<td rowspan="16" bgcolor="#FFFFFF" width="7"></td>
		<td background="image_05.png" width="9"></td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td rowspan="15" background="images/image_01.png" width="9"></td>
		<td rowspan="15" background="image_05.png" width="9"></td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td colspan="18" bgcolor="#FFFFFF">
		</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	
	

	
	<tr>
		<td colspan="2" bgcolor="7D7D7D">
			<center>News</center></td>
		<td width="1">
			[img]images/image_10.png[/img]</td>
		<td bgcolor="7D7D7D" width="76">
			<center>Details</center></td>
		<td width="1">
			[img]images/image_10.png[/img]</td>
		<td bgcolor="7D7D7D" width="76">
			<center><font face="Verdana" color="#EBEBEB">Anmeldung</font></center></td>
		<td width="1">
			[img]images/image_10.png[/img]</td>
		<td bgcolor="7D7D7D" width="76">
			<center><font face="Verdana" color="#EBEBEB">Teams</font></center></td>
		<td width="1">
			[img]images/image_10.png[/img]</td>
		<td bgcolor="7D7D7D" width="76">
			<center><font face="Verdana" color="#EBEBEB">Tunierbraum</font></center></td>
		<td width="1">
			[img]images/image_10.png[/img]</td>
		<td colspan="3" bgcolor="7D7D7D">
			</td>
		<td bgcolor="#FFFFFF" width="4"></td>
		<td colspan="3">
			[img]images/image_21.png[/img]</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	
	
	
	<tr>
		<td colspan="18" bgcolor="#FFFFFF"></td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td background="images/image_23.png" width="15"></td>
		<td colspan="11" background="images/image_23.png"></td>
		<td rowspan="11" bgcolor="#FFFFFF" width="6"></td>
		<td colspan="5" rowspan="3" bgcolor="CCCCCC">
			
			<center>

			[img]images/yo.jpg[/img]</center></td>
			</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td colspan="12" bgcolor="#FFFFFF"></td></td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td colspan="12" rowspan="9" bgcolor="EBEBEB">
			
		</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td colspan="5" bgcolor="#FFFFFF"></td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166" bgcolor="#FFFFFF">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
	</tr>
	<tr>
		<td width="9">
			[img]images/spacer.gif[/img]</td>
		<td width="7">
			[img]images/spacer.gif[/img]</td>
		<td width="15">
			[img]images/spacer.gif[/img]</td>
		<td width="61">
			[img]images/spacer.gif[/img]</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
		<td width="76">
			[img]images/spacer.gif[/img]</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
		<td width="76">
			[img]images/spacer.gif[/img]</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
		<td width="76">
			[img]images/spacer.gif[/img]</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
		<td width="76">
			[img]images/spacer.gif[/img]</td>
		<td width="1">
			[img]images/spacer.gif[/img]</td>
		<td width="14">
			[img]images/spacer.gif[/img]</td>
		<td width="6">
			[img]images/spacer.gif[/img]</td>
		<td width="166">
			[img]images/spacer.gif[/img]</td>
		<td width="4">
			[img]images/spacer.gif[/img]</td>
		<td width="7">
			[img]images/spacer.gif[/img]</td>
		<td width="2">
			[img]images/spacer.gif[/img]</td>
		<td width="15">
			[img]images/spacer.gif[/img]</td>
		<td width="7">
			[img]images/spacer.gif[/img]</td>
		<td width="9">
			[img]images/spacer.gif[/img]</td>
		<td width="1"></td>
	</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Vom Cupscript template.inc.php
Code:
<?

function html_header($tid){
$tinfo=tourney_defaults($tid);


$header="<html>
<head>
<title>$tinfo[name]</title>
<STYLE type='text/css'>
<!--
BODY{
CURSOR: default;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
FONT-SIZE: 12px;
COLOR: #$tinfo[fontcolor];
BACKGROUND: #$tinfo[bgcolor];
MARGIN-LEFT: 0px;
MARGIN-RIGHT: 0px;
MARGIN-TOP: 0px;
MARGIN-BOTTOM: 0px;
MARGIN-WIDTH: 0px;
MARGIN-HEIGHT: 0px;
SCROLLBAR-FACE-COLOR: #$tinfo[tdcolor];
SCROLLBAR-HIGHLIGHT-COLOR: #$tinfo[bgcolor];
SCROLLBAR-SHADOW-COLOR: #$tinfo[bgcolor];
SCROLLBAR-3DLIGHT-COLOR: #$tinfo[bgcolor];
SCROLLBAR-ARROW-COLOR: #$tinfo[bgcolor];
SCROLLBAR-TRACK-COLOR: #$tinfo[bgcolor];
SCROLLBAR-DARKSHADOW-COLOR: #$tinfo[bgcolor]
}
A		{COLOR: #$tinfo[fontcolor]; TEXT-DECORATION: underline}
A:VISITED	{COLOR: #$tinfo[fontcolor]; TEXT-DECORATION: underline}
A:HOVER		{COLOR: #$tinfo[fontcolor]; TEXT-DECORATION: none}
A:ACTIVE	{COLOR: #$tinfo[fontcolor]; TEXT-DECORATION: underline}
UL		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 12px}
LI		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 12px}
P		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 12px}
TD		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 12px}
TR		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 12px}
SELECT		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px}
INPUT		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px}
TEXTAREA	{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px}
OPTION		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px}
FORM		{FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; FONT-SIZE: 10px}
-->
</STYLE>
</head>
<body>

";

if(($tinfo[logo])&&($tinfo[logo]!="http://")){
 $header.="
 <center>[img]$tinfo[logo][/img]
 </center>
";
}

if($tinfo[tid])
$header.="
<center>
[Home]
[Details] 
[Signup] 
[Players]
[Brackets] 
</center>
";


return("$header");
}


function html_footer(){


$footer="
</body></html>";


return("$footer");
}






?>
Vom Cupscript index.php
Code:
<?
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//DO NOT EDIT THIS FILE
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
include("./config.inc.php");
include("./template.inc.php");
include("./global.inc.php");
$config[header]=html_header($tourney[id]);

$config[footer]=$config[tailer].html_footer($tourney[id]);
$tinfo=tourney_defaults($tourney[id]);


if(($action)&&(!$tinfo[tid])){
error("Unknown Tournament ID

Click Here for the Tournament List");
exit;
}

if((!$action)&&($tinfo[tid])){
$action="details";
}

switch($action){

case "details":
tourney_details($tourney);
break;

case "signup":
tourney_signup();
break;

case "tourney_signup_2":
tourney_signup_2($signup);
break;

case "players":
tourney_players();
break;

case "playerinfo":
tourney_playerinfo($player);
break;

case "brackets":
tourney_brackets();
break;


default:
tourney_list($search);
break;
}


//START FUNCTIONS

function tourney_list($search){
global $config,$tinfo;


if($search[type]==1){
 $searchfield=characters($search[field]);
 $searchfield="%".$searchfield."%";
 $maxresults="25";
 
 $searchinfo=mysql_query("SELECT tid FROM tourneys WHERE name LIKE '$searchfield' LIMIT $maxresults");
 while(list($tid)=mysql_fetch_row($searchinfo)) {
 $searchresult[$tid]="1";
 }
}

echo"$config[header]";
?>
<center>
Tournaments




<table width='500' border='0' cellpadding='1' cellspacing='1'>
 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='center' width='50'>TID</td>
  <td align='left' width='290'>Tournament</td>
  <td align='center' width='50'>Details</td>
  <td align='center' width='60'>Brackets</td>
  <td align='center' width='50'>Signup</td>
</tr>
<?
$tourneylist=mysql_query("SELECT tid,size,active,name FROM tourneys ORDER BY name");
while(list($tid,$size,$active,$name)=mysql_fetch_row($tourneylist)){

if(($search[type]==1)&&($searchresult[$tid])){
$resultmatch="1";
$showmainlink="1";
}
elseif(($search[type]==2)&&($search[field]==$tid)){
$resultmatch="1";
$showmainlink="1";
}
elseif(($search[type]==1)||($search[type]==2)){
$resultmatch="";
$showmainlink="1";
}
else{
$resultmatch="1";
$showmainlink="";
}

 if($resultmatch){
?>
 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='center' width='50'><? echo"$searchresulta $tid $searchresultb"; ?></td>
  <td align='left' width='290'><? echo"$searchresulta $name $searchresultb"; ?></td>
  <td align='center' width='50'>Details</td>
  <td align='center' width='60'>Brackets</td>
  <td align='center' width='50'>Signup</td>
</tr>
<?
 }
}
if($showmainlink){
?>

 <tr>
  <td align='right' width='500' colspan='5'>
List All Tournaments</td>
</tr>

<?
}
?>


</table>




<form method='post'>
Search For <input type='text' name='search[field]' value=''>
In <select name='search[type]'>
<option value='1'>Tournament Names</option>
<option value='2'>Tournament ID's</option>
</select>  
<input type='submit' name='' value='Search &gt;&gt;'>
</form>


</center>
<?
echo"$config[footer]";
}


function tourney_search($search){


}



function tourney_details($tourney){
global $config,$tinfo;

$SearchArray = array("\n","&lt;","&gt;");
$ReplaceArray = array("
","<",">");
$tinfo[details]=str_replace($SearchArray,$ReplaceArray,$tinfo[details]);

$UrlSearchArray = array("/([^]_a-z0-9-=\"'\/])((https?|ftp|news):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\};<>]*)/si","/^((https?|ftp|news):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\};<>]*)/si",);
$UrlReplaceArray = array("\\1\\2\\4","\\1\\3");
$tinfo[details]=preg_replace($UrlSearchArray,$UrlReplaceArray,$tinfo[details]);

echo"$config[header]";
?>
<center>
Tournament Directors: <? echo"$tinfo[directors]"; ?>



<? echo"$tinfo[name]"; ?> Details



<table width='500' border='0' cellpadding='1' cellspacing='1'>
 <tr>
  <td align='left' width='100%'><? echo"$tinfo[details]"; ?></td>
</tr>
</table>


</center>
<?
echo"$config[footer]";
}


function tourney_signup(){
global $config,$tinfo;

echo"$config[header]";
?>
<center>
<? echo"$tinfo[name]"; ?> Signup




<?
if($tinfo[active]){
?>

<table width='400' border='0' cellpadding='1' cellspacing='1'>
<form method='post'>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'>Name</td>
  <td align='center' width='200'><input type='text' name='signup[name]' value='' size='30' maxlength='20'></td>
</tr>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'>Email Address</td>
  <td align='center' width='200'><input type='text' name='signup[email]' value='' size='30' maxlength='50'></td>
</tr>

<?
if($tinfo[field1]){
?>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'><? echo"$tinfo[field1]"; ?></td>
  <td align='center' width='200'><input type='text' name='signup[field1]' value='' size='30' maxlength='100'></td>
</tr>

<?
}
if($tinfo[field2]){
?> 

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'><? echo"$tinfo[field2]"; ?></td>
  <td align='center' width='200'><input type='text' name='signup[field2]' value='' size='30' maxlength='100'></td>
</tr>

<?
}
if($tinfo[field3]){
?>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'><? echo"$tinfo[field3]"; ?></td>
  <td align='center' width='200'><input type='text' name='signup[field3]' value='' size='30' maxlength='100'></td>
</tr>

<?
}
?>

 <tr>
  <td align='left' width='200'></td>
  <td align='right' width='200'>

  <input type='hidden' name='action' value='tourney_signup_2'>
  <input type='submit' name='' value='Signup &gt;&gt;'></td>
</tr>
  
</form>
</table>

<?
}else{
?>


Signups are currently disabled


<?
}
?>
  


</center>
<?
echo"$config[footer]";
}



function tourney_signup_2($signup){
global $config,$tinfo;

while(list($varib,$value)=each($signup)){
$signup[$varib]=characters($value);
 if(!$signup[$varib]){
 error("All fields are required");
 exit;
 }
}


if(mysql_num_rows(mysql_query("SELECT pid FROM players2 WHERE tid='$tinfo[tid]' AND name='$signup[name]'"))){
error("That Name is already in use on this tournament");
exit;
}

if(mysql_num_rows(mysql_query("SELECT pid FROM players2 WHERE tid='$tinfo[tid]' AND email='$signup[email]'"))){
error("That Email Adddress is already in use on this tournament");
exit;
}

if(mysql_num_rows(mysql_query("SELECT pid FROM players2 WHERE tid='$tinfo[tid]' AND ipaddress='$config[ip]'"))){
error("Your IP Adddress is already in use on this tournament");
exit;
}

mysql_query("INSERT INTO players2 VALUES (
NULL,
'$tinfo[tid]',
'$config[ip]',
'$config[stamp]',
'$signup[name]',
'$signup[email]',
'$signup[field1]',
'$signup[field2]',
'$signup[field3]');");


echo"$config[header]";
?>
<center>


You have been added to the player signups!

Entering the tournament does not guarantee you a spot.



</center>
<?
echo"$config[admintail] $config[footer]";
}



function tourney_players(){
global $config,$tinfo;

echo"$config[header]";
?>
<center>
<? echo"$tinfo[name]"; ?> Players




<table width='250' border='0' cellpadding='1' cellspacing='1'>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='center' width='50'>#</td>
  <td align='center' width='200'>Name</td>
</tr>

<?
$tourneyreports=mysql_query("SELECT pid,name FROM players2 WHERE tid='$tinfo[tid]' ORDER BY joined");
while(list($pid,$name)=mysql_fetch_row($tourneyreports)){
$count++;
?>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='center' width='50'><? echo"$count"; ?></td>
  <td align='center' width='200'><? echo"$name"; ?></td>
</tr>

<?
}
?>

</table>



</center>
<?
echo"$config[footer]";
}



function tourney_playerinfo($player){
global $config,$tinfo;

$player=mysql_query("SELECT * FROM players2 WHERE pid='$player[id]'");
$player=mysql_fetch_array($player);


if(($action)&&(!$tinfo[tid])){
error("Unknown Player ID");
exit;
}

echo"$config[header]";
?>
<center>
<? echo"$tinfo[name]"; ?> Player Information




<table width='500' border='0' cellpadding='1' cellspacing='1'>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'>Name</td>
  <td align='left' width='300'><? echo"$player[name]"; ?></td>
</tr>

 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'>Email</td>
  <td align='left' width='300'>[email='<? echo"$player[email]"; ?>']<? echo"$player"; ?></td>
</tr>

<?
if($tinfo[field1]){
?>
 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'><? echo"$tinfo[field1]"; ?></td>
  <td align='left' width='300'><? echo"$player[field1]"; ?></td>
</tr>
<?
}
if($tinfo[field2]){
?>
 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'><? echo"$tinfo[field2]"; ?></td>
  <td align='left' width='300'><? echo"$player[field2]"; ?></td>
</tr>
<?
}
if($tinfo[field3]){
?>
 <tr bgcolor='<? echo"$tinfo[tdcolor]"; ?>'>
  <td align='left' width='200'><? echo"$tinfo[field3]"; ?></td>
  <td align='left' width='300'><? echo"$player[field3]"; ?></td>
</tr>
<?
}
?>

</table>



</center>
<?
echo"$config[footer]";
}


function tourney_brackets(){
global $config,$tinfo;

$brackets=mysql_query("SELECT bid,pid,name FROM brackets2 WHERE tid='$tinfo[tid]' ORDER BY bid");
while(list($bid,$pid,$name)=mysql_fetch_row($brackets)){

 if($pid){
 $bracket[$bid]="<code>$name";
 }else{
 $bracket[$bid]="$name";
 }

$pid="";
}

$brackets="$tinfo[size]";

//TEMP FOR TESTING
//$brackets="64";

$spots=($brackets * 2 - 1);

$temp_rows="$brackets";
while($temp_rows > 1){
$rowcount++;
if($rowcount > 1){
$temp_rows=($temp_rows / 2);
}
$listrows.="-> $temp_rows";
$rows="$rowcount";
}

$rowwidths=round(100 / $rows - 0.5);

$actualrows=($rows * 2);

/*
//UNCOMMENT SECTION FOR DEBUGGING
echo"
[Bracket Stats]

Brackets: $brackets

Spots: $spots

Game Rows: $rows

Actual Rows: $actualrows

Row Widths: $rowwidths

Pattern: $listrows

<hr>";
*/

////////////////////////////////

echo"$config[header]";
?>
<ul>
<? echo"$tinfo[name]"; ?> Brackets


[/list]


<table border='0' width='100%' cellspacing='0' cellpadding='0'>
<tr>

<?

$counter="$brackets";

while($counter > 1){

if($round){
$counter=($counter / 2);
}

$lastcb="$countbrackets";
$countbrackets="";
$game="";
$round++;


$finals=($rows - 1);
$winner=($rows);
$roundgamesay="Round $round Games";
if($round=="$winner"){
$roundgamesay="Winner!";
}
if($round=="$finals"){
$roundgamesay="Finals";
}


?>

<td align='center' valign='center' width='<? echo"$rowwidths"; ?>%' colspan='2'><? echo"$roundgamesay"; ?>

<table border='0' width='100%' bordercolor='#FF0000' cellspacing='0' cellpadding='0'>

<?

$spacesetcount="";


while($countbrackets < $counter){
$countbrackets++;
$spot++;

$spacesetcount++;
if($spacesetcount=="4"){
$spacesetcount="";
}


$bracketid="$round"."_"."$countbrackets";

?>

<tr bgcolor='#<? echo"$tinfo[tdcolor]"; ?>'>
<td align='left' valign='center' width='100%' bgcolor='#<? echo"$tinfo[tdcolor]"; ?>'><? echo"$bracket[$bracketid]"; ?></td>
<td align='left' valign='center' width='100%'></td>
</tr>

<?

if($countbrackets < $counter){
$spacecounter++;
$spacecounter=($spacecounter + 1);
if($spacecounter==2){

$roundx2p1=($lastroundx2p1 * 2 + 1);
if($round==1){
$roundx2p1="1";
}


 while($countspaces < $roundx2p1){
 $countspaces++;
 

 $spacesetbgcolor="#$tinfo[tdcolor]";
 
 if((!$spacesetcount)||($spacesetcount=="2")){
 $spacesetbgcolor="";
 }
 
 $spacecentercount++;
 
 $spacecenterword="";
 $alignspacer1="left";
 $spacecentercountcheck=($lastroundx2p1 + 1);
 
 if($spacecentercount=="$spacecentercountcheck"){
 
  $spacecenterwordcount++;
  if(($spacecenterwordcount==1)||($spacecenterwordcount==3)){
  $actualgamecount++;
  $spacecenterword="Game $actualgamecount";
  $alignspacer1="center";
   if($spacecenterwordcount==3){
   $spacecenterwordcount="";
   $spacecenterwordcount++;
   }
  }
  
 }
 
 ?>
 <tr>
 <td align='<? echo"$alignspacer1"; ?>' valign='center'> <? echo"$spacecenterword"; ?></td>
 <td align='left' valign='center' bgcolor='<? echo"$spacesetbgcolor"; ?>'></td>
 </tr>
 <?
 
 }
$spacecounter="";
$countspaces="";
$spacecentercount="";
}
}


}

$spacecenterwordcount="";
$actualgamecount="";

$lastroundx2p1="$roundx2p1";
?>

</table>
</td>

<?
}
?>

</tr>
</table>



<?

}

?>
Kori ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 14.01.2005, 22:34  
Erfahrener Benutzer
 
Registriert seit: 21.07.2004
Beiträge: 377
juhuwoorps
Standard

Nicht dein Ernst, oder?
__________________
Und geht auch alles in die Binsen, immer heftig weiter grinsen!
juhuwoorps ist offline  
Alt 14.01.2005, 22:40  
Erfahrener Benutzer
 
Registriert seit: 16.03.2004
Beiträge: 170
Kori
Standard

was soll ich machen?!
ich selbst kann es nicht, ich kann mich nur an andere wenden
Kori ist offline  
Alt 15.01.2005, 00:37  
Erfahrener Benutzer
 
Registriert seit: 26.09.2004
Beiträge: 430
toscho
Standard

24 Druckseiten Quälcode gepostet. Ich glaube, das ist Rekord.

*bookmark*
toscho ist offline  
Alt 15.01.2005, 00:39  
Gast
 
Beiträge: n/a
Standard

Code:
      <td width="9">
         [img]images/spacer.gif[/img]</td>
      <td width="7">
         [img]images/spacer.gif[/img]</td>
      <td width="15">
         [img]images/spacer.gif[/img]</td>
      <td width="61">
         [img]images/spacer.gif[/img]</td>
      <td width="1">
         [img]images/spacer.gif[/img]</td>
      <td width="76">
         [img]images/spacer.gif[/img]</td>
      <td width="1">
         [img]images/spacer.gif[/img]</td>
      <td width="76">
         [img]images/spacer.gif[/img]</td>
      <td width="1">
         [img]images/spacer.gif[/img]</td>
      <td width="76">
         [img]images/spacer.gif[/img]</td>
      <td width="1">
         [img]images/spacer.gif[/img]</td>
      <td width="76">
         [img]images/spacer.gif[/img]</td>
      <td width="1">
         [img]images/spacer.gif[/img]</td>
      <td width="14">
         [img]images/spacer.gif[/img]</td>
      <td width="6">
         [img]images/spacer.gif[/img]</td>
      <td width="166">
         [img]images/spacer.gif[/img]</td>
      <td width="4">
         [img]images/spacer.gif[/img]</td>
      <td width="7">
         [img]images/spacer.gif[/img]</td>
      <td width="2">
         [img]images/spacer.gif[/img]</td>
      <td width="15">
         [img]images/spacer.gif[/img]</td>
      <td width="7">
         [img]images/spacer.gif[/img]</td>
      <td width="9">
         [img]images/spacer.gif[/img]</td>
      <td width="1"></td>
Das is meine Lieblingsstelle
alt="", hm nicht schlecht. Einfach nur köstlich.
 
Alt 15.01.2005, 10:36  
Gast
 
Beiträge: n/a
Standard

Du glaubst doch nicht im ernst dass wir das für dich scripten?!
 
Alt 15.01.2005, 10:42  
TRW
Erfahrener Benutzer
 
Registriert seit: 20.10.2004
Beiträge: 759
TRW
Standard

Du verlangst da echt schon ziemlich viel. Man würde dir sicherlich helfen wenn man die Zeit und die Geduld dafür hätte, aber wer kann das schon aufbringen?...
Das wird bestimmt keiner für dich machen.
Wenn dir das wichtig ist kann ich dir nur empfehlen jemanden dafür zu bezahlen -> Gesuche :wink:
TRW ist offline  
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Erledigt] [S] Html oder Php Code Hamii27 HTML, Usability und Barrierefreiheit 9 23.07.2008 22:32
[Erledigt] HTML Code aus JavaScript ausgeben alexxtwentyeight JavaScript, Ajax und mehr 1 17.06.2008 08:18
Probleme mit PHP Code HappyDieMuschel PHP Tipps 2008 7 28.05.2008 06:34
Design und Code Trennen TeazY PHP Tipps 2008 29 21.05.2008 12:08
Nur bestimmten Html Code zulassen? litterauspirna PHP Tipps 2008 5 29.04.2008 12:30
Html Code maskieren mit php Mania PHP Tipps 2008 5 12.10.2007 08:34
Html Code Komplett auslesen PHP Tipps 2005 15 04.01.2005 22:59
HTML Code in Variable - GEFAHR? Beatbox PHP Tipps 2004-2 4 18.12.2004 14:02
[Erledigt] HTML Formular durch PHP Code per Mail versenden PHP Tipps 2004-2 3 12.11.2004 11:48
Probleme mit dem Code! Tschuu HTML, Usability und Barrierefreiheit 7 05.11.2004 17:08
JS Variable im HTML Code verwenden HTML, Usability und Barrierefreiheit 1 05.10.2004 08:52
Probleme bei Code PHP Tipps 2004 22 03.08.2004 13:48
Code Html for food Off-Topic Diskussionen 11 19.07.2004 00:19
html code in eine textarea durch buttondruck PHP Tipps 2004 8 23.06.2004 14:46
[Erledigt] html code in eine textarea durch link HTML, Usability und Barrierefreiheit 1 22.06.2004 20:06

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
html code für die template grosse, php grundgerüst index, grundgerüst png php, js variable in html

Alle Zeitangaben in WEZ +2. Es ist jetzt 10:00 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.