www.webdeveloper.com
Results 1 to 2 of 2

Thread: Create User Input Table and Add Total

  1. #1
    Join Date
    Dec 2011
    Posts
    1

    Create User Input Table and Add Total

    Hi All,

    I am trying to modify the table found in the following Link (section 4, Post Event Calculated tonnes) to recreate an identical table that I require:Special Event Follow Up

    Someone prior to me create this sheet and I would like to modify the formula and the headings in that specific table only. How can I recreate an identical table with different headings to represent the items I require. Any help would be greatly appreciated.

    Thanks in advance for your help

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,377
    As as starting point, I believe this is the area you are looking to change.
    Code:
    <!DOC HTML>
    <html>
    <head>
    <title> Untitled </title>
    
    </head>
    <body>
    <div id="sgE-438787-1-340-box" class="sg-question sg-type-table sg-type-table-textbox">
     <input type="hidden" id="sgE-438787-1-340-meta" name="sgE-438787-1-340-meta" value="hidden=false&amp;required=false" />
    
     <div class="sg-question-title">
      Post-event Calculated Tonnage	
     </div>
    
     <div class="sg-question-description sg-question-description-below"><p>Please calculate tonnage, as follows:</p>
      <p><span style="font-size: medium;">[# of pallets or bins] x [weight per pallet or bin]
      = estimated weight in metric tonnes (MT)</span></p>
     </div>
    
     <div class="sg-question-options">
      <table class="sg-table  " cellpadding="0" cellspacing="0" border="0">
       <thead class="sg-header-row-first">
        <tr>
         <th class="sg-first-cell"><span class="sg-access-helper">Post-event Calculated Tonnage</span></th>
         <th  class="sg-second-cell">Number</th><th  class="sg-last-cell">Tonnage</th>
        </tr>
       </thead>			
       <tbody>
        <tr class="sg-odd-row sg-first-row">
         <th class="sg-first-cell">Pallets (0.13 MT)</th>
         <td class="sg-second-cell">
          <input type="text" class="sg-input sg-input-text"
           title="Pallets (0.13 MT): Number" name="sgE-438787-1-341-10118" id="sgE-438787-1-341-10118" value="" size="5" />
         </td>
         <td class="sg-last-cell">
          <input type="text" class="sg-input sg-input-text"
           title="Pallets (0.13 MT): Tonnage" name="sgE-438787-1-341-10119" id="sgE-438787-1-341-10119" value="" size="5" />
         </td>
        </tr>
        <tr class="sg-even-row sg-last-row">
         <th class="sg-first-cell">20 yd bins (2.5 MT)</th>
         <td class="sg-second-cell"><input type="text" class="sg-input sg-input-text"
           title="20 yd bins (2.5 MT): Number" name="sgE-438787-1-342-10118" id="sgE-438787-1-342-10118" value="" size="5" />
         </td>
         <td class="sg-last-cell">
          <input type="text" class="sg-input sg-input-text"
           title="20 yd bins (2.5 MT): Tonnage" name="sgE-438787-1-342-10119" id="sgE-438787-1-342-10119" value="" size="5" />
         </td>
        </tr>
        <tr class="sg-odd-row">
         <th class="sg-first-cell">30 yd bins (3.0 MT)</th>
         <td class="sg-second-cell">
          <input type="text" class="sg-input sg-input-text"
           title="30 yd bins (3.0 MT): Number" name="sgE-438787-1-343-10118" id="sgE-438787-1-343-10118" value="" size="5" />
         </td>
         <td class="sg-last-cell">
          <input type="text" class="sg-input sg-input-text"
           title="30 yd bins (3.0 MT): Tonnage" name="sgE-438787-1-343-10119" id="sgE-438787-1-343-10119" value="" size="5" />
         </td>
        </tr>
        <tr class="sg-even-row">
         <th class="sg-first-cell">40 yd bins (4.0 MT)</th>
         <td class="sg-second-cell">
          <input type="text" class="sg-input sg-input-text"
           title="40 yd bins (4.0 MT): Number" name="sgE-438787-1-344-10118" id="sgE-438787-1-344-10118" value="" size="5" />
         </td>
         <td class="sg-last-cell">
          <input type="text" class="sg-input sg-input-text"
           title="40 yd bins (4.0 MT): Tonnage" name="sgE-438787-1-344-10119" id="sgE-438787-1-344-10119" value="" size="5" />
         </td>
        </tr>
       </tbody>
      </table>
    <!-- /sg-question-options -->
     </div>
    <!-- /sge-box -->
    </div>
    </body>
    </html>
    It is not formatted yet as I have not included the CSS references. Find the appropriate external files and reference them to see it prettier.

    You should be able to change the headings to the desired words as a start.

    It does not calculate yet because you need to find the events that do the calculations with the new formulas you intend to use.
    These are probably located in one of the external JS files. I just have not had the time to look for them yet.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles