This topic is locked

who change the colour in every row in list page

5/26/2008 11:36:47 PM
PHPRunner General questions
E
edysoftware author

as change the colour in every record (row) in the page list?

the form show 10 record, i want that every row have one color, by exam:

the first row is the bacground white

the second row is the background blue

the third row is the background white

the fourth row is the background blue
best regards

J
Jane 5/27/2008

Hi,
this option has already been is the PHPRunner.

E
edysoftware author 5/27/2008

Hi,

this option has already been is the PHPRunner.


sorry the question was "as" and not who.

but in where is that option?
my english isn't vero good.

J
Jane 5/28/2008

Hi,
select any style or layout on the Choose theme tab.

That's all.

E
edysoftware author 6/4/2008

sorry, the question is HOW change the colour in every row in list page, in the templete "cars"

i create one view, with only 4 fields, in the form list i have the page of default, only merge the fields in the table to show the picture.

in this picture show my list page


thks by your attencion.

J
Jane 6/5/2008

Hi,
I see what you're saying.

First you need to edit list page on the Visual Editor tab.

See my changes in Bold:

...

{foreach from=$rowinfo item=row}

<TD>

<TABLE cellSpacing=0 width="100%" border=0>

<TBODY>

<TR {$row.shadeclass}>

...


Then build your project, open generated Cars_list.php file, find this code:

$row=array();



And add following just after:

if(!$shade)

{

$row["shadeclass"]='class="shade"';

$row["shadeclassname"]="shade";

$shade=true;

}

else

{

$row["shadeclass"]="";

$row["shadeclassname"]="";

$shade=false;

}

E
edysoftware author 6/11/2008

hello, I did the above and does not work
can you help me?

thks

Hi,

I see what you're saying.

First you need to edit list page on the Visual Editor tab.

See my changes in Bold:
Then build your project, open generated Cars_list.php file, find this code:
And add following just after:

J
Jane 6/17/2008

Hi,
It's difficult to tell you what's happening without seeing actual files. does not work means nothing.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.