Đã hoàn thành

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;

}

?>

Kĩ năng: PHP

Xem nhiều hơn: 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

Về Bên Thuê:
( 29 nhận xét ) Denver, United States

ID dự án: #1048928

Được trao cho:

JulijanAndjelic

Short time, high quality. Please check your PMB.

$40 USD trong 0 ngày
(25 Đánh Giá)
5.5

12 freelancer đang chào giá trung bình $57 cho công việc này

DeamonBizz

please check pmb

$38 USD trong 1 ngày
(74 Nhận xét)
6.7
webn

Please check PMB

$90 USD trong 1 ngày
(91 Nhận xét)
6.5
acesolution

lets do it.....

$90 USD trong 1 ngày
(104 Nhận xét)
6.5
hertzmedia

Will fix this up for you in 2 hours!

$100 USD trong 0 ngày
(34 Nhận xét)
6.4
jDevAndDesign

please check your pmb

$49 USD trong 1 ngày
(88 Nhận xét)
6.3
SerhiyVas

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

$50 USD trong 1 ngày
(21 Nhận xét)
5.7
Miladin

Ready to start anytime.

$50 USD trong 0 ngày
(28 Nhận xét)
5.3
shaunvdp

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

$60 USD trong 1 ngày
(0 Nhận xét)
0.0
leksiber

ready to serve

$30 USD trong 2 ngày
(0 Nhận xét)
0.0
Oditszapc

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

$38 USD trong 0 ngày
(0 Nhận xét)
0.0
tokiral

Hi, I can help you.

$50 USD trong 1 ngày
(0 Nhận xét)
0.0