1
fly2moon2
Re: Help: cant change table td color
  • 2006/1/19 7:55

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi,

Thanks for your suggestions.

I've tried a number of rounds, however, before I can have some results now.


by passing the code to the theme's style.css doesn't have the effects:
.highlight {background-color: #fff000;}

then, I use my browser to point to the css address and press Refresh then have the result:
http://myserver/themes/default/css/style.css


Questions:
- am I supposed to manually "Refresh" the stylesheet this way every time I modified the file?

- funny that I've got the result when view from firefox browser but not in IE (firefox makes use of styleNN.css , although it is same as styleNN.css have the code to @import url(style.css); )


your hints much appreciated,
jl



2
fly2moon2
Re: HELP: nested if condition doesn't give expected result for formatting
  • 2006/1/19 6:39

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi all!


I've found out the problem. There must be some trailing spaces follow the array values. I use the truncate modifier to limit the string into 2 characters only, then it works!

<{if ($item_set[item_data].status|truncate:2:"") == 'LV'}>
     ....................



Thanks for your assistance!
jl



3
fly2moon2
Re: HELP: nested if condition doesn't give expected result for formatting
  • 2006/1/19 6:28

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Thanks John and m0nty,


I also thought that the array doesn't have any value of 'LV'. But, as seen in my code, I've already show up the value of <{$item_set[item_data].status}> at the table cell. I do see occurences of 'LV' in the table.

Result is not expected and I double-check at the html page source; I don't the condition pointing to the correct path.

thanks,
jl



4
fly2moon2
HELP: nested if condition doesn't give expected result for formatting
  • 2006/1/19 5:47

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi,


I'm developing a module and hitting problem at a template.

I want to use smarty engine to do some condition works so that it differetiates based on an array value to provide a different table cell (background) color.


It works find for the "<{if ($item_set[item_data].emp_id) == 'EMPLOYEE01'}>" statement. But when come to the inner/nested if statements for "<{if ($item_set[item_data].status) == 'LV'}>...", the checking doesn't output result as expected (it points (class="others") instead of the (class="lv") when the value is 'LV')

<code>

<{section name=item_data loop=$item_set}>
<{if ($item_set[item_data].emp_id) == 'EMPLOYEE01'}>
<{if ($item_set[item_data].status) == 'LV'}><td class="lv"><{else}><td class="others"><{/if}>
<{$item_set[item_data].status}></td>
<{/if}>
<{/section}>
</code>



Pls guide me what's wrong, and how I can deal with this problem.

Thanks a lot.
jl



5
fly2moon2
Help: can't change table td color
  • 2006/1/19 3:56

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi,


I'm creating a module and making use of template to present my results.


I've added this to the style.css file:

<code>
td.highlight {background-color: #FF3300}
</code>

And I apply it to the template for the module page like this:

<code>
<td class="highlight">HIGHLIGHT CELL</td>
</code>


But I don't see any effects. My objective is to have some cells be highlighted in RED (background) color. Now, I only see white, no matter what value I apply to the background-color.

I find it hard to set the colors for various items in XOOPS modules although I find the Smarty engine/template model is a very good idea. I can't control it as will. Would somebody guides me which parts I've missed or something wrong?

Besides, what's the difference (and when I should use which) between the style.css at the theme folder and a css file under a module folder?



thanks a lot,
jl



6
fly2moon2
Re: Newbie question on dynamically creating dropdown lists
  • 2005/9/13 7:31

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi Pnooka!,


Thanks for your generous sharings! Yes, really appreciate you can share your codes for reference.

Wait for your response then. Have a nice vacation!

best regards,
jackling



7
fly2moon2
Newbie question on dynamically creating dropdown lists
  • 2005/9/13 6:35

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi,


I know this question has been asked before. But I'm really stuck after several attempts:

I want to have a dropdown listbox (e.g. Country), by updating of which would in turn dynamically updates the list of a 2nd dropdown list (e.g. Province). The list info all comes from the database.


I understand that this requires incorporation of Javascript codes. I have failed in previous attempts. And want to confirm the correct approach to this.

At the onChange action of Country list, what action should I use?

Possibility 1: Should I be using a form submit action? Then, upon submission, the Province list box be refreshed and retrieve data based on the Country selected? - - - here, I have problem getting the value of the posted Country box. If the name of the dropdown box is 'Country', how should I get the selected value?

Possibility 2: Should Country box's onChange action ,instead of using form submit action, fire an event to create/re-create the Province list? I don't know if this is feasible? By that, will it be using Javascript to do, instead of using PHP to create the Province list?


Would like you experts' help. Appreciate if there is some working example scripts for better understanding.

thanks a lot,
jackling



8
fly2moon2
Want to follow layout like Xoops main page "Latest XOOPS news" section, how?
  • 2005/8/30 1:56

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi,

I want to separate my topics modularly like what XOOPS main page did for the "Latest XOOPS news" section. Appears to me there are 4 subtopics withing the section. That's neat.

Simply deploying the News module doesn't give me this look. Can somebody guide me what to be done to have this arrangement? Which block(s) I need to set visible and deal with?

thanks in advance.

best regards,
jackling



9
fly2moon2
How can I re-arrange positioning of different module blocks?
  • 2005/8/24 3:09

  • fly2moon2

  • Just popping in

  • Posts: 9

  • Since: 2005/8/17


Hi,

I'm using WF-section and another module called Marquee for scrolling text.

Both are working. Currently, I set the WF-Section module as my startup-module (i.e. the module for the start page), i.e. list of the Sections appearing on the Front Page.

But with this, my Marquee scrolling text, a module block in any case, appears on the page below the WF-Section Listings.

To capture attention, I want the scrolling text appear first (on top portion of the centre block) instead and the WF-Section Listings be below.

I don't know whether this is the right way: I don't need the extra features to Submit, show the Top Ratings etc. Currently, I've set turn OFF all of the WF-Section (including the WF-Section Topics block) blocks' visible property. Being the startup module, I see the Section Listings. That's what I expect. It seems with this arrangement (since the Section Listing is not itself a block?) I can't adjust the positioning of the module?

How can I control the positioning?

thanks a lot.
jackling




TopTop



Login

Who's Online

131 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits