En cours

PHP Color Row and introduce a column in a table

I have a PHP page, i need u put a new column in the table (the table is generated from a database mysql) is simple u need put a new column "POS" with numbers 1 to 20, i need i can modify this information if i want, example if i want 1 to 32 or 1 to 16 in the column.. so just do simple in the php code so i can edit it in the future, second thing i need u put diferent colors to my 4 first rows in my table and 4 colors in the last 4 rows in my table, i need u do this very simple so i can modify the php code and if i want remove some color or add more color to more rows i can do it easy.. is all, thanks.. check my images to more understanding.. i will select the bid of the most fast time of delivery, this a simple project... this the part of my php code than generate my table:

if($divDisplay == "standings") uasort($standings_array, 'Compare_standings');

else ksort($standings_array);

while (list ($key, $value) = each ($standings_array)) {

$standings .= "

<tr class="table_text" bgcolor="#F2F2F2" align="center" valign="middle">

<td style="text-align:left; font-weight:bold;"><img src="".$value["id"].'.png'."">&nbsp<a href="?opt=viewteam&id=".$value["id"]."&sid=".$season."">".$key."</a>&nbsp&nbsp<em><strong>DT</strong></em>&nbsp<img src="".$value["id"].'dt'.'.png'.""></td>";

if($divDisplay == "standings") {

$standings .= "

<td bgcolor="#dfdfdf">".$value["gp"]."</td>

<td>".$value["w"]."</td>

<td>".$value["d"]."</td>

<td>".$value["l"]."</td>

<td bgcolor="#dfdfdf">".$value["pts"]."</td>

<td>".$value["gf"]."</td>

<td>".$value["ga"]."</td>

<td>".$value["gd"]."</td>";

}

$standings .= "

</tr>";

}

if($standings == "") {

$standings.= "

<tr style="background-color:#FFFFFF; text-align:center;">

<td class="table_text" colspan="9">".$_LANG['cc_noteams']."</td>

</tr>";

}

$item_menu = new Menu;

$item_menu->CreateMain($type = "standings");

$menu = $item_menu->get();

ob_start();

include("html/[url removed, login to view]");

$contents = ob_get_contents();

ob_end_clean();

return $contents;

}

?>

Compétences : PHP

Voir plus : time in ga, text em, pts html, pos in php code, php style, php color code, opt in code, include font to html, php table color row, remove my page in, php w, php pos, key generate, gp-, gf, DT, Column, background color, img table, php remove text, php color, php add background, project introduce, php font color, html img

Concernant l'employeur :
( 29 commentaires ) Denver, United States

N° du projet : #1048928

Décerné à :

JulijanAndjelic

Short time, high quality. Please check your PMB.

40 $ USD en 0 jours
(25 Commentaires)
5.5

12 freelance ont fait une offre moyenne de 57 $ pour ce travail

DeamonBizz

please check pmb

38 $ USD en 1 jour
(74 Commentaires)
6.7
webn

Please check PMB

90 $ USD en 1 jour
(91 Commentaires)
6.5
acesolution

lets do it.....

90 $ USD en 1 jour
(104 Commentaires)
6.5
hertzmedia

Will fix this up for you in 2 hours!

100 $ USD en 0 jours
(34 Commentaires)
6.4
jDevAndDesign

please check your pmb

49 $ USD en 1 jour
(88 Commentaires)
6.3
SerhiyVas

Hi sir! I can immediately start on your work. regards, Serg

50 $ USD en 1 jour
(21 Commentaires)
5.7
Miladin

Ready to start anytime.

50 $ USD en 0 jours
(28 Commentaires)
5.3
shaunvdp

Hi I can do this for you right away. Please see PM

60 $ USD en 1 jour
(0 Commentaires)
0.0
leksiber

ready to serve

30 $ USD en 2 jours
(0 Commentaires)
0.0
Oditszapc

Ready to start. You may get your new table today!

38 $ USD en 0 jours
(0 Commentaires)
0.0
tokiral

Hi, I can help you.

50 $ USD en 1 jour
(0 Commentaires)
0.0