Hello Monks,
i've a problem putting the right data into the right place of a table,i think the problem is more in my head then in html.
The Table shoud look like this
|
sup_1 |
sup_2 |
Product |
flag |
data_s |
data_f |
data_s |
data_f |
P_Name |
U |
10 |
36 |
2 |
106 |
The Table is build dynamicly from 3 arrays
the @sup array contains all sup's
the @product array contains all P_Names
the @data array contains the hashref for each row, can have blanks,for test purpose i have a normal array
___sup___
1
2
3
__product__
Now
Promo
Special
Indirect
DATA fields PRODUCT,FLAG,SUP,DATA_S,DATA_F
__data__
Promo;X;2;10;5
Promo;X;1;22;106
Direct;U;1;;
Special;U;1;2;
The table shoud be build out of @product and @sup, and the informations from @data shoud be inserted if it matches,blanks also
my attemps so far are a forech loop for sup, then a for loop for product checking if sup is true or not and insert data.
this ends up in duplicated P_Names and lots of free tabs in the table,so its totals crap ^^
at the moment ims tuc and don't get an idear how to make it, at the end all tabs will be <inputs> to manipulate the data
the table format can not be changed
kd ultibuzz
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|