Customize the Table of the repeat region

Hello

I have listed the elements of data in dynamic and sorted table using a function in the region of repetition by date.

How can I change the background color of cells table by date?

I have listed data and I want to use another color for each day.


How can I do this?

Thank you.

original-faaedfb340ab9ae54d7cc10ee79cd4e5.png

Unfortunately, you do not use CSS to style the table. There is no matter for this example, all you need to do is place the example CSS in the head section of the document. Then, we need to place a class for the line and it should work.

class ="c">

Tags: Dreamweaver

Similar Questions

  • Adding images to the repeat region

    Hey guys, I recently started using the features of dreamweaver PHP with MySQL and I have my display of table data in a repeat region. I downloaded images to the database, but if I drag 'image' of the Recordset into the repeat region I just get a lot of binary. I read I should maybe use image URL rather than the traction of the database of images, but I don't understand how to get the images in sequence. How do I know what order to display if they are not in the recordset in PHP?  I wonder if I missed some feature of DW, as I suppose it is quite a common thing to want images in a repeat region. Any advice would be great. Thank you

    > I read maybe I should use the URL of the image

    > rather than pulling images from the database

    Fix. Storage of binary files in the database leads to performance problems.

    > but I do not understand how to get the images in sequence. How would

    > PHP know what order to display if they are not in the Recordset?

    The images are stored in the file system. The path to the image is stored in the database. The fields in the recordset with the path of the image - in order to generate the html code that displays the image in the Recordset loop.

  • getElementById() JavaScript does not work with the repeat regions

    I have tries an onmouseover and onmouseout to exchange all divs that recur in a repeating region of php and javascript doesn't seem to work for the first rehearsal of div. Is it because the repeat region creates a lot of identical divs and javascript code is confused?

    The following is a very simple version of my code setup which explains my problem:

    I create a forum where the individual comments are included in their own div ("commentDisplay"). To do this, I created a div and create a repeating region around it so that php will debit all the comments of each of them to give a copy of this div.

    for example:

    <? PHP {? >}

    < div class = "commentDisplay" >

    <? PHP echo $row_whateverRS ['whatever'];? >

    < / div >

    <? } while...? >

    Now, I wanted to create a simple javascript when the user moved their mouse on the station he would hide this div and display another div that holds the same content, but still had a background of different color and, most important, gave the user a chance to respond to the post (similar to the youtube comments section). So I created the following:

    < script... >

    function hideDiv (id) {}

    document.getElementById (id).style.display = 'none '; }

    function revealDiv (id) {}

    document.getElementById (id).style.display = 'block '; }

    < /script >

    and then I created this another div ("commentSwap"), which held the same information, but with a different background and an opportunity to respond (and with display: no) and insert the javascript code:

    <? PHP {? >}

    < div class = 'commentDisplay' onmouseover = "hideDiv ('commentDisplay'); revealDiv ('commentSwap')"onmouseout ="revealDiv ('commentDisplay'); hideDiv ('commentSwap') ">"

    <? PHP echo $row_whateverRS {'some']:?} >

    < / div >

    < div class = "commentSwap" >

    ... same-except the ability to answer

    < / div >

    <? PHP} while...? >

    the problem is that the code seems to work for the first rehearsal of the div and not the rest. In addition, when I move my mouse over the other div it causes the first div share.

    Why is this? Is it because all the Extensible divs (through the repeating region) all have the same name and confuse the javascript?

    Thank you

    YWSW

    YWSW wrote:

    So what do you suggest what to do instead (to produce the same see the div / hide div div result in a repeat region?)

    As shown by the fact that you can not have more than one ID on a page, my suggestion is to create the unique id in your loop. Database table has a primary key with the numeric IDs. As a result, the loop by adding the unique ID of the recordset object to the id of the div that is played repeatedly. Observe the provided code.

    ... same-except the ability to answer

  • Force a line break in the repeat region

    I have a table that displays data from a query in PHP that I made using a single set of records and the repeat region behavior.  I would really like to be able to break the table (add an empty line) every time that a certain field changes the values.  My code (or the code given to me by DW) is as follows.

    <? PHP {? >}

    < tr bgcolor = "#809E7C" class = "reg_dataview_data" >

    < td > < table >

    < td > <? PHP echo $row_rs_Sum09 ["ChildFirst'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['child age'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ["ChildSex'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['Session'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['Status'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['quarter'];? > < table >

    < /tr >

    <? PHP} while ($row_rs_Sum09 = mysql_fetch_assoc ($rs_Sum09));? >

    I would like for the table to break to the change in the value of Session.

    Advice would be greatly appreciated.

    Steve

    Yes, sorry about that. Simple mistake. I forgot to reset the value each time that the loop runs:

                                                                                                   
    

    By the way, attaching images is very hit and Miss in this forum. It is best to use the camera icon at the top of the message field to integrate the image directly into your message.

  • Number of records in the repeat region

    I have a page with a repeat region, which displays the records in Table1. Table1 is related to the Table2 (one to several, MS Access). I want to do is show the number of records in Table2 that are associated with a given row from Table1 shown in the repeat region.

    Think of how many responses listed next to each message in this forum, because that's basically what I do. As it is now, I get the correct number of records for the first line of Table1 shown in the repeat region, but this number is indicated in each line. In other words, if the first record displayed from Table1 has 3 matching records in table 2, 3 number in each row in the repeat region.

    I appreciate all the help that I'm a complete novice.

    Maybe it is not very effective, but I bet you it will do what you want:


    SELECT *.
    FROM table1
    ORDER BY name DESC


    SELECT *.
    FROM table2
    Where tid = #table1.id #.


    #table1.name #.
    #table1.client #.
    #table1.products #.
    $# numberformat (table1.income, '999,999.99') #.
    #table1.frequency #.
    #table2. RecordCount #.

  • fadeIn DIV jQuery (or reversal) within the repeat region

    Hey all. I just started using the repeat regions and am stuck creating a substitution effect. I have a database of products/images and am showing images of an inch in the repeat region by using < img src = "images/thumbs / <?" PHP echo $row_Recordset1 ['productId'];? ' > .png ' and everything works fine. What users flipping the thumb, I want a DIV containing a border orange to fade using jQuery so I can't record a second image with a border for each thumbnail. Normally with static images I would say something like... $("#thumbWrap").hover (function () {$("#border").fadeIn etc, but I have no idea how to implement this kind the DIV border fades independently for each inch in the repeat region.}) Can anyone suggest the best way to achieve this? Thank you guys

    The jQuery code you have posted here is based on ID selectors, but an ID can be used only once on a page. Use classes instead. Something like this might work:

    $('.thumbWrap').hover(function() {
        $(this).parent('div').fadeIn();
    });
    
  • image of exchange within the repeat region

    I am trying to configure a swap image behavior of in a dataset of the repeat region using php/mysql model. Someone at - it help him? See you soon.

    Thank you Rob, who did it. Code below.


    {? >}
    &productID=" onmouseover="MM_swapImage('productImage','','images/',1)" onmouseout="MM_swapImgRestore()">

  • Problems with the repeatable region in table

    Hello!

    I am using a table to display data from a MySQL database. I have two lines put in place. The first is a header row and the second contains the bindings for the info from database. When I select < tr > on the second line and add the reproducible region, it always includes the whole picture, so seen live, the header appears before every single line of text. If I try to select each block and add the reproducible region, it shoots just information horizontally rather than vertically. Any ideas on that?

    Thank you!

    You had to do a little research on Google for this one! I don't know why he always chose the entire table, no matter what I choose, but at least here is a way to manually code around it.

    Here's what the code was originally:

        
      
    1 2 3 4

    Here's what I had to take it:

      
    1 2 3 4
  • Repeat regions inside the repeat regions

    I don't know how to do this.  Dreamweaver has said that we can not put server inside server behaviors behaviors.   But it seems like a pretty standard thing, someone might want to do.  For example:

    Suppose you want to create a menu online.  And say... you have two tables:

    Elements of array

    • item_id
    • Nom_element
    • item_description
    • item_price

    Ingredients of the table

    • ing_id
    • ing_name
    • item_id

    So, on your page, you want to display a repeat of each menu item region in the database.  In addition, within each menu item, you want to have a repeat region of each ingredient that has the same id of the element.

    Who is?  So, it can look like:

    Fishy lips
    Wonderful lips for all you lovers of the shady lip!  Get 'em today!

    Ingredients

    Fishy lips

    Seasoning ladle

    Herbs fish

    Fishy spices

    Luckity Hoppity
    Legs of amazing rabbit that bring good luck!

    Ingredients

    Rabbit legs

    Spices of rabbit

    Language of cow

    Sorry, I'm not a php programmer, but I can explain the concept.

    First of all, your idea to recover the two recordsets and then display the corresponding data in the inner loop should work. But it looks like you get the wrong records.  If I understand, you obtain a list of healthcare providers and then education for each display. Fix? If so, then the caregiver is the outer loop, and education is the inner loop, yet your inner loop made progress helping RS:mysql_fetch_assoc($getCaregiver)

    You could try just those switching.

    However, it is more common first retrieve the recordset of the outer loop. Then, when you browse, you need to run an internal recordset for each iteration of the outside. Your SQL for the internal RS has a filter so that it contains only the matching records.

  • How can I use the Session variable in the repeat region

    I have a session variable assigned to the #(numérotation automatique dans access db) of the posts ID. The variable is set to the recordset object that is displayed first (sort by message ID descending). I would like to find a way to make the variable to assign to all records, if the variable is passed to the delete page. If I use a URL parameter to send the message ID, then someone could change the number in a browser and delete messages not intended for the user.
    If you want to see the example in action goto link at the bottom of the message. Save it and reply links are URL parameters response uses the variable MM_Username to enter the name of the sender for a URL parameter is OK, but click on save and then change the value of msdID in the browser for a different number and you can record and display another message not intended for your login id. The link delete uses a session variable that I posted in the Recordset as the auto access number msdID and the good msdID # do not are they assigned.
    What to hide the URL parameters, it would be simple, but how can I do?
    Thank you
    MikeL7
    PAGE WITH SESSION VARIALBE to DELETE PAGE (save and the response are URL parameters)
    http://www.gohbcc.com/callcenter/EmployeeMessagesVIEW2.asp
    USER name: admin PASSWORD: 1234

    links from other pages of my site will bring to:
    http://www.gohbcc.com/callcenter/EmployeeMessagesVIEW.asp it's the settings of all THE URL enter 2 after VIEW to use session variables

    Your message forced me to find a way to make it work, I put the code to create the variable just before the repeating table in the region and went on to form buttons that post the variable and labeled buttons and it works perfectly. Thank you

  • PHP mail - equivalent of the repeat region in the body?

    My client wants a summary of the products registered in the body of an email. My mail script works great, but I don't know how to add the summary of products (what I call a 'repeat region").

    Thanks in advance for your advice and comments

    Hi David,

    Thanks for the help and apologies for not being precise.

    My recordset looks like:

    cust_id product_name order_date
    PRODUCTA 100 23/12/08
    100 PRODUCTB 23/11/07
    100 PRODUCTC 22/09/07

    For example, a client may have 1 or 100 items, so you can see why I want to create the equivalent of a region that is repeated in the body of the message.

    It is more useful to you?

  • A repeating region: display the entries of dubble only once

    I want to do a Recordset where all the 'cities' are shown only once, it should not be like

    The Hague

    The Hague

    The Hague

    Rotterdam

    Rotterdam

    Amsterdam

    But:

    The Hague

    Rotterdam

    Amsterdam

    This is the recordset object:

    SELECT c_city FROM canteen

    It's the repeat region:

    <? PHP {? > <? php echo $row_allCities ["c_city'];? > <? php} while ($row_allCities = mysql_fetch_assoc ($allCities));? >

    Thankx for any help!

    Add a SEPARATE statement to your application.

    SELECT DISTINCT c_city canteen

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • Need to customize the train area

    Hi all

    I'm working on the irecrutement module. I need to customize the train area which is having 3 pages.i should ignore the page 2.
    Please tell me how to do this.

    Hello
    I would like to know what page you're trying to hide (let me know the navigation). You can do this by using the customization.
    You can customize the shared region train and hide the steps.

    Kind regards
    RAM

  • Cannot change the editable regions-

    Hi people,

    I don't even know what to look for, so if this was taken over by all means please tell me here!

    Running on OS 10.4.9 DW8. I use templates in the redesign of the customer, and I implemented a region repeated inside a DIV. My problem is that when I change a file having this model, my cursor gives me the 'no sign' (circle with slash) when I fly over this area. I can change it in the Code and split mode, but I can't click the repeat region to add another element.

    This happens from time to time and I just did my work in Code view, but this time I need to click on the little sign of the repeat region to add a box in Design view.

    Is this a bug? Is there any solution for this?

    Hi Murray,

    I wish it was! Just a simple old DIV for a sidebar. As I was about to demonstrate by copy/paste code here... when I found the problem! I had a few renegade living in the CSS code (margin-bottom:-9999px) and now that happened I can click in the editable again.)

    Thanks Murray! :)

  • Problems with repeated regions...

    For the life of me and little matter how youtube videos and support I looked, I can't do the repeat regions to work in the way they are supposed to. I use Dreamweaver CC 2014.

    For some reason, he repeats the lines by creating new columns to the wide to the right, which is obviously not what I want. What I am doing wrong? Any ideas?

    This is the screenshot from Dreamweaver.

    Thank you-

    Matthew

    Ah I see. In fact, the code is wrong. The tags line),) must be inside the while loop so that a new row in the table is created for each iteration.

    In addition, in the future, it is preferable that send you the code and not a screenshot of the code. Makes it easier for us to see.

Maybe you are looking for