color rotator

to rotate the colors in a table without js.


echo "<_table>";
$bg1 = "#ffffff"; // background White
$bg2 = "#f2f0f0"; // background L-Gray

while($row = mysql_fetch_array($result))
{
echo "<_tr> bgcolor='$bg1'>

" . $row['id'];
echo "<_ /td><_td>" . $row['Number'];
echo "<_ /td>";
$bg3 = $bg1; // \
$bg1 = $bg2; // Color rotator
$bg2 = $bg3; // /
}
echo "<_ /tr> <_ /table>" ;

used on /4080/4080-lt-002.php 5/29/2014

FW: TrailerReturn h35152

From: guardshack
Sent: Tuesday, December 20, 2016 2:58 PM
To: Shupe, Bill; guardshack; List transportation
Cc: Tharp, Chuck
Subject: TrailerReturn 18

Number is 18
From guardshack@woodfruitticher.com<mailto:guardshack@woodfruitticher.com>

link BACK to input page Just for reference.
See Chuck for future changes

Short code options #2373

Summary of Shortcode Options ( POST content shortcodes PLUGIN )
Option Example Description
form [ cfdb-datatable form=”myform”] Required. Designates the form to display. All rows and columns are displayed by default
role [ cfdb-datatable form=”myform” role=”Author”] Make short code only display output for user’s with minimum-required role. Choices are

Administrator
Editor
Author
Contributor
Subscriber
Anyone

WARNING: this setting is overridden by plugin setting in WP Admin page Contact -> Database Options -> Can See Submission when using shortcodes (since 2.4.1)

show [ cfdb-datatable form=”myform” show=”col1,col2″] Limits columns to be shown to be those designated (comma-delimited list)
hide [ cfdb-datatable form=”myform” hide=”col1,col2″] Does not show listed columns (comma-delimited list)
header [ cfdb-table form=”myform” header=”false”] Show or do not show the table header. Valid values are true (the default) and false
headers [ cfdb-table form=”myform” headers=”your-name=Name,ex_field1=Email”] Allows you to change the name displayed in the table header. Map a form field names to a more readable display names. (Since 2.5.1)

limit [ cfdb-datatable form=”myform” limit=”10″] One number: limit=”10″ means show first 10 rows. Is the same as limit=”0,10″
Two Numbers: limit=”100,10″ means show 10 rows starting at row #100)
random [ cfdb-table form=”myform” random=”2″] Display 2 random rows from those that the short code finds. (Since 2.4)
orderby [ cfdb-datatable form=”myform” orderby=”last-name,first-name”] Sort rows by designated columns. Use “column-name desc” to sort in descending (reverse) order
search [ cfdb-datatable form=”myform” search=”Simpson”] Select rows to display that have any cell with the search text in it (case insensitive). Intended to mimic behavior of the “Search” field in the

DataTable
filter [ cfdb-datatable form=”myform” filter=”col1=Simpson”] Select which rows to display based on filter expression. More powerful than “search”, it can filter on multiple columns with boolean and regular expressions. If both “search” and “filter” are specified, “search” is ignored.
Options specific to this shortcode
edit [ cfdb-datatable form=”myform” edit=”true”] [ cfdb-datatable form=”myform” edit=”cells”] Enables editing mode to edit the cells and column names in the table (true) or just cells (cells). Only works if Editor plugin extension is installed. Editing will not work unless the user is logged in and his role allows for editing (see Options page, Can Edit/Delete Submission data setting. (since Version 2.6)Warning: table column headers can also be edited, but will not work properly if you are using “headers” in this short code to rename them.
dt_options [ cfdb-datatable form=”myform” dt_options=”bJQueryUI:true, sScrollX:’100%’, bScrollCollapse:true”] Allows you to specify DataTable Javascript configuration features
id [ cfdb-datatable form=”myform” id=”myid”] Sets the id attribute on the table tag.
Same as for [cfdb-table] class [ cfdb-datatable form=”myform” class=”myclass”] Sets the class attribute on the table tag.
Same as for [cfdb-table]

* GENERALLY NOT USED because DataTables add its styles.
style [ cfdb-datatable form=”myform” id=”myid” style=”#myid th > td { font-size: x-small; background-color: #E8E8E8; }”] Injects input CSS into a style tag.
Same as for [ cfdb-table]

* GENERALLY NOT USED because DataTables add its styles.