<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<link href="https://nightly.datatables.net/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
<script src="https://nightly.datatables.net/js/jquery.dataTables.js"></script>
<meta charset=utf-8 />
<title>DataTables - JS Bin</title>
</head>
<body>
<table id="messageRows" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th></th>
<th>Status2</th>
<th>Itin. #</th>
<th>Date Made</th>
<th>Last Name</th>
<th>First Name</th>
<th>Arrive Date</th>
<th>Depart Date</th>
<th>Processed</th>
<th><input name="select_all" value="1" type="checkbox"></th>
</tr>
</thead>
<tfoot>
<tr>
<th></th>
<th>Status</th>
<th>Itin. #</th>
<th>Date Made</th>
<th>Last Name</th>
<th>First Name</th>
<th>Arrive Date</th>
<th>Depart Date</th>
<th>Processed</th>
<th></th>
</tr>
</tfoot>
</table>
<table id="dataTable" style="display: none;">
<tr class="dataRow">
<td>C</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710008&shUni=761786&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH8SK2</a>
</td>
<td>Jul 12 2016</td>
<td>Test</td>
<td>Test</td>
<td>Aug 23 2016</td>
<td>Aug 24 2016</td>
<td>N</td>
<td><input type="checkbox" path="selected" value="761786"/></td>
<td>FARGO</td>
<td class="frank">761786</td>
<td>113710008</td>
</tr>
<tr class="dataRow">
<td>C</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710009&shUni=761787&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH8SK2</a>
</td>
<td>Jul 12 2016</td>
<td>Blow</td>
<td>Joe</td>
<td>Aug 23 2016</td>
<td>Aug 24 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="761787"/></td>
<td>FARGO</td>
<td class="frank">761787</td>
<td>113710009</td>
</tr>
<tr class="dataRow">
<td>C</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710010&shUni=761788&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH8SK2</a>
</td>
<td>Jul 12 2016</td>
<td>Doe</td>
<td>Jane</td>
<td>Aug 23 2016</td>
<td>Aug 24 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="761788"/></td>
<td>FARGO</td>
<td class="frank">761788</td>
<td>113710010</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710012&shUni=761789&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH8SM4</a>
</td>
<td>Jul 12 2016</td>
<td>Oswald</td>
<td>Clara</td>
<td>Sep 14 2016</td>
<td>Sep 15 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="761789"/></td>
<td>FARGO</td>
<td class="frank">761789</td>
<td>113710012</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710430&shUni=762091&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH8WD3</a>
</td>
<td>Jul 12 2016</td>
<td>SIMPLE</td>
<td>RES</td>
<td>Oct 01 2016</td>
<td>Oct 02 2016</td>
<td>N</td>
<td><input type="checkbox" path="selected" value="762091"/></td>
<td>FARGO</td>
<td class="frank">762091</td>
<td>113710430</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710633&shUni=762266&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH8XQH</a>
</td>
<td>Jul 12 2016</td>
<td>Hines</td>
<td>Tracie</td>
<td>Dec 01 2016</td>
<td>Dec 11 2016</td>
<td>N</td>
<td><input type="checkbox" path="selected" value="762266"/></td>
<td>FARGO</td>
<td class="frank">762266</td>
<td>113710633</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113710956&shUni=762413&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH90QQ</a>
</td>
<td>Jul 13 2016</td>
<td>Hines</td>
<td>Tracie</td>
<td>Oct 15 2016</td>
<td>Oct 25 2016</td>
<td>N</td>
<td><input type="checkbox" path="selected" value="762413"/></td>
<td>FARGO</td>
<td class="frank">762413</td>
<td>113710956</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113711159&shUni=762537&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH95V6</a>
</td>
<td>Jul 14 2016</td>
<td>Testing</td>
<td>Katya</td>
<td>Sep 14 2016</td>
<td>Sep 15 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="762537"/></td>
<td>FARGO</td>
<td class="frank">762537</td>
<td>113711159</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113711235&shUni=762687&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH99P9</a>
</td>
<td>Jul 14 2016</td>
<td>Explorer</td>
<td>Dora</td>
<td>Oct 01 2016</td>
<td>Oct 04 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="762687"/></td>
<td>FARGO</td>
<td class="frank">762687</td>
<td>113711235</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113711236&shUni=762688&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH99P9</a>
</td>
<td>Jul 14 2016</td>
<td>Explorer</td>
<td>Dora</td>
<td>Oct 01 2016</td>
<td>Oct 04 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="762688"/></td>
<td>FARGO</td>
<td class="frank">762688</td>
<td>113711236</td>
</tr>
<tr class="dataRow">
<td>R</td>
<td>
<a href="/wrd/resDetail.do?hotelCode=FARGO&brandCode=RAD&stayUni=113711238&shUni=762689&searchType=N&startBookingDate=Jul+11+2016&endBookingDate=Jul+14+2016&startArrivalDate=&endArrivalDate=">3WH99RC</a>
</td>
<td>Jul 14 2016</td>
<td>Explorer</td>
<td>Dora</td>
<td>Oct 01 2016</td>
<td>Oct 04 2016</td>
<td></td>
<td><input type="checkbox" path="selected" value="762689"/></td>
<td>FARGO</td>
<td class="frank">762689</td>
<td>113711238</td>
</tr>
</table>
</td></tr>
<tr><td>
/* Global styles */
A,BODY,TD,TH,DIV,FONT,INPUT,OL,UL,LI,SELECT,OPTION,TEXTAREA{color:#000000;font-size:11px;font-weight:normal;font-family:Verdana,Arial,Helvetica,Sans-Serif;}
body {margin: 0px; scrollbar-arrow-color: #FFF; scrollbar-track-color: #E7EFF7; scrollbar-face-color: #21417B; scrollbar-highlight-color: #21417B; scrollbar-3dlight-color: #FFF; scrollbar-darkshadow-color:#21417B; scrollbar-shadow-color: #E7EFF7;}
button1 {padding: 3 4; font-size:10px; font-weight:normal; border: 1px solid black; background-image: url("/images/btn.gif"); cursor:hand;}
button {padding: 0 2; font-size:10px; font-weight:normal; border: 1px solid black; background-color: #21417B; cursor:hand; color:white;}
img {margin: 0px; border: 0px;}
form {margin: 0px; border: 0px;}
span.errors {color: red;}
font.appname {font:bold 18pt 'Arial Narrow',Arial,Helvetica,Sans-Serif; color: #21417B;}
/* Main page */
.mainBody {background-color: white; vertical-align: top; text-align: left; width: 100%; height: 100%; padding: 20 20;}
/* Header and footer */
.header1 {height: 5px; background-color: #21417B;}
.header2 {height: 57px; background-color: #E7EFF7;}
.footer {background-color:#21417B;color:white;border-top:1px solid white;text-align:center;padding:8px;}
.footer a,.footer a:visited{color:white;}
/* Menus */
.hotelsmenu table {background-color: #E7EFF7; height: 35px; border-top: 1px solid black;}
.hotelsmenu td.dtls {vertical-align: middle;}
.nav {background-color: #21417B; padding: 3 0; }
.nav table {height: auto; width: auto;}
.nav td {vertical-align: middle; white-space: nowrap; padding: 1 8; border: 1px solid #E7EFF7; border-width: 0 1 0 0;}
.nav td.sel {vertical-align: middle; background-color: #A6C6E7; padding:0 8}
.nav a {color: #E7EFF7; text-decoration: none; font-size: 10px;}
.nav a:hover {color: white;}
.nav a.sel {color: white; font-weight:bold;}
.subnav {background-color: #4D5D7B; border-top: 1px solid #E7EFF7;}
.crumbs {color:black;padding:0px 0px 20px 0px;width:auto;clear:both}
.crumbs .leftcrumbs {float:left;text-align:left;}
.crumbs .rightcrumbs {float:right;text-align:right;font-weight:bold;}
.crumbs .rightcrumbs a{font-weight:bold;margin:0 4 0 4;}
.crumbs .current{font-weight:bold;}
.bla input1 {border: 1px solid black; background-color: #21417B; color: white; cursor: hand;}
input.button {font-weight:bold; border: 1px solid black; background-image: url("images/btn.gif"); cursor:hand;}
/* Controls */
.controls {}
.controls table {width: 600px; height: auto;}
.controls th {padding: 2 10; text-align: left; font-weight:bold; background-color: #EFE6D5; border: 1px solid black; border-width: 1 0 1 0;}
.controls th.btn {text-align: right; background-color: #21417B;}
.controls .btnimg {vertical-align: bottom; margin: 0 2 1 0;}
.controls td {text-align: right; white-space: nowrap;}
.controls td.value {text-align: left; padding: 3 8;}
.controls hr {width: 350px; height: 11px; color: #E7EFF7; border: 1px solid white; border-width: 5 0 5 0;}
.controls .weekly {width: auto;}
.controls .weekly td {text-align: left; padding: 0 0 0 0;}
.controls .weekly input {margin: 0px; padding: 0 0 0 0; }
/* .controls select.multiple {width: 120px; font-family: "Courier New"; font-weight: normal; overflow: auto;} */
/* Terms */
.terms{}
.terms p {text-align: justify; padding: 0 0 0 60}
.terms p.address {text-align: center}
.terms p.intro {text-align: left}
.terms li {text-align: justify; padding: 0 0 0 20}
/* Functional Overview */
.overview{}
.overview h3 {padding: 0 20 0 0;}
.overview table {width: 100%; height: auto;}
.overview td {vertical-align: top; padding: 0 0 0 0;}
.overview tr {padding: 0 0 0 0;}
.overview li {padding: 0 0 0 0}
/* Display table */
.displaytable{}
table.displaytable {width: auto; height: auto;border: 1px solid black;}
.displaytable td {padding: 2 4 2 4;}
.displaytable tr.even {background-color:#EEEEEE }
.displaytable th {padding: 2 4 2 4; background-color:#604E38;color:white;}
.displaytable th a {color: white;text-decoration: none;}
.displaytable th a:hover {font-weight:bold;}
/********* Login page *********/
.pinstripe {height: 5px; background-color: #21417B; border-bottom: 1px solid white;}
.login {border: 1px solid black; width: 400px; background-color: white;}
/* forms */
.form table {width: auto; height: auto;}
.form td {padding:5 2;vertical-align:middle;}
.formLabel {text-align:right; white-space: nowrap}
.searchLabel {font-weight:bold; text-align:right; white-space: nowrap}
.labelHelper {color:#666666}
.req{color:red;padding:0 1 0 0}
.readonly INPUT, INPUT.readonly{background-color:#D2D2D2;}
/* search styles copied from hdmlite-rates */
.search {}
.search {padding: 0 0 16 0;}
.search table {width: auto; height: auto;}
.search th {font-weight:bold; padding: 3 30 3 4; background-color: #E7EFF7; text-align: left; border: 1px solid black; border-width: 1 0 1 0;}
.search td {font-weight: bold; padding: 0 0 0 20; vertical-align: middle;}
.search td.value {padding: 3 0 3 10;}
.result {}
.result table {width: auto; height: auto;}
.result tr {background-color: white;}
.result th a {font-weight:bold; text-decoration:none;}
.result th a:hover {color: #2141B0;}
.result tr.odd {background-color: eee;}
.result th {font-weight:bold; padding: 3 5 3 5; background-color: #E7EFF7; text-align: left; vertical-align: text-bottom; border: 1px solid black; border-width: 1 0 1 0;}
.result td {padding: 2 5 2 5;}
.detail {}
.detail table {width: 100%; height: auto;}
.detail tr {background-color: white;}
.detail tr.odd {background-color: eee;}
.detail th {font-weight:bold; padding: 3 4 3 4; background-color: #E7EFF7; text-align: left; border: 1px solid black; border-width: 1 0 1 0;}
.detail th.top {font-size:11px; font-weight:bold; padding: 3 4 3 4; background-color: #E7EFF7; text-align: left; border: 1px solid black; border-width: 2 0 2 0;}
.detail td {padding: 2 4 2 4;}
.detailLabel {font-weight:bold; text-align:left; white-space: nowrap}
.detailValue {font-weight:normal; text-align:left; white-space: nowrap; padding: 0 20 0 0;}
.textarea {border: none;overflow: hidden; resize: none;background-color: white;}
.warning {font-weight:bold; color:#FF0000; text-align:left; white-space: nowrap}
.home th {padding: 2 10; text-align: left; font-weight:bold; background-color: #E7EFF7; border: 1px solid #21417B; border-width: 1 0 1 0;}
.vtdMessagePopup {background-color: white; border: 5px solid black; position: absolute; width: 600px; height: 250px; text-align:center}
table.dataTable {
width: 100%;
margin: 0 auto;
clear: both;
border-collapse: separate;
border-spacing: 0
}
table.dataTable thead th, table.dataTable tfoot th {
font-weight: bold
}
table.dataTable thead th, table.dataTable thead td {
padding: 10px 18px;
border-bottom: 1px solid #111
}
table.dataTable thead th:active, table.dataTable thead td:active {
outline: none
}
table.dataTable tfoot th, table.dataTable tfoot td {
padding: 10px 18px 6px 18px;
border-top: 1px solid #111
}
table.dataTable thead .sorting, table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
cursor: pointer;
*cursor: hand
}
table.dataTable thead .sorting, table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
background-repeat: no-repeat;
background-position: center right
}
table.dataTable thead .sorting {
background-image: url("../images/sort_both.png")
}
table.dataTable thead .sorting_asc {
background-image: url("../images/sort_asc.png")
}
table.dataTable thead .sorting_desc {
background-image: url("../images/sort_desc.png")
}
table.dataTable thead .sorting_asc_disabled {
background-image: url("../images/sort_asc_disabled.png")
}
table.dataTable thead .sorting_desc_disabled {
background-image: url("../images/sort_desc_disabled.png")
}
table.dataTable tbody tr {
background-color: #ffffff
}
table.dataTable tbody tr.selected {
background-color: #B0BED9
}
table.dataTable tbody th, table.dataTable tbody td {
padding: 8px 10px
}
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td,
table.dataTable.display tbody th, table.dataTable.display tbody td {
border-top: 1px solid #ddd
}
table.dataTable.row-border tbody tr:first-child th, table.dataTable.row-border tbody tr:first-child td,
table.dataTable.display tbody tr:first-child th, table.dataTable.display tbody tr:first-child td
{
border-top: none
}
table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td
{
border-top: 1px solid #ddd;
border-right: 1px solid #ddd
}
table.dataTable.cell-border tbody tr th:first-child, table.dataTable.cell-border tbody tr td:first-child
{
border-left: 1px solid #ddd
}
table.dataTable.cell-border tbody tr:first-child th, table.dataTable.cell-border tbody tr:first-child td
{
border-top: none
}
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd
{
background-color: #f9f9f9
}
table.dataTable.stripe tbody tr.odd.selected, table.dataTable.display tbody tr.odd.selected
{
background-color: #acbad4
}
table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover
{
background-color: #f6f6f6
}
table.dataTable.hover tbody tr:hover.selected, table.dataTable.display tbody tr:hover.selected
{
background-color: #aab7d1
}
table.dataTable.order-column tbody tr>.sorting_1, table.dataTable.order-column tbody tr>.sorting_2,
table.dataTable.order-column tbody tr>.sorting_3, table.dataTable.display tbody tr>.sorting_1,
table.dataTable.display tbody tr>.sorting_2, table.dataTable.display tbody tr>.sorting_3
{
background-color: #fafafa
}
table.dataTable.order-column tbody tr.selected>.sorting_1, table.dataTable.order-column tbody tr.selected>.sorting_2,
table.dataTable.order-column tbody tr.selected>.sorting_3, table.dataTable.display tbody tr.selected>.sorting_1,
table.dataTable.display tbody tr.selected>.sorting_2, table.dataTable.display tbody tr.selected>.sorting_3
{
background-color: #acbad5
}
table.dataTable.display tbody tr.odd>.sorting_1, table.dataTable.order-column.stripe tbody tr.odd>.sorting_1
{
background-color: #f1f1f1
}
table.dataTable.display tbody tr.odd>.sorting_2, table.dataTable.order-column.stripe tbody tr.odd>.sorting_2
{
background-color: #f3f3f3
}
table.dataTable.display tbody tr.odd>.sorting_3, table.dataTable.order-column.stripe tbody tr.odd>.sorting_3
{
background-color: whitesmoke
}
table.dataTable.display tbody tr.odd.selected>.sorting_1, table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1
{
background-color: #a6b4cd
}
table.dataTable.display tbody tr.odd.selected>.sorting_2, table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2
{
background-color: #a8b5cf
}
table.dataTable.display tbody tr.odd.selected>.sorting_3, table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3
{
background-color: #a9b7d1
}
table.dataTable.display tbody tr.even>.sorting_1, table.dataTable.order-column.stripe tbody tr.even>.sorting_1
{
background-color: #fafafa
}
table.dataTable.display tbody tr.even>.sorting_2, table.dataTable.order-column.stripe tbody tr.even>.sorting_2
{
background-color: #fcfcfc
}
table.dataTable.display tbody tr.even>.sorting_3, table.dataTable.order-column.stripe tbody tr.even>.sorting_3
{
background-color: #fefefe
}
table.dataTable.display tbody tr.even.selected>.sorting_1, table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1
{
background-color: #acbad5
}
table.dataTable.display tbody tr.even.selected>.sorting_2, table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2
{
background-color: #aebcd6
}
table.dataTable.display tbody tr.even.selected>.sorting_3, table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3
{
background-color: #afbdd8
}
table.dataTable.display tbody tr:hover>.sorting_1, table.dataTable.order-column.hover tbody tr:hover>.sorting_1
{
background-color: #eaeaea
}
table.dataTable.display tbody tr:hover>.sorting_2, table.dataTable.order-column.hover tbody tr:hover>.sorting_2
{
background-color: #ececec
}
table.dataTable.display tbody tr:hover>.sorting_3, table.dataTable.order-column.hover tbody tr:hover>.sorting_3
{
background-color: #efefef
}
table.dataTable.display tbody tr:hover.selected>.sorting_1, table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1
{
background-color: #a2aec7
}
table.dataTable.display tbody tr:hover.selected>.sorting_2, table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2
{
background-color: #a3b0c9
}
table.dataTable.display tbody tr:hover.selected>.sorting_3, table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3
{
background-color: #a5b2cb
}
table.dataTable.no-footer {
border-bottom: 1px solid #111
}
table.dataTable.nowrap th, table.dataTable.nowrap td {
white-space: nowrap
}
table.dataTable.compact thead th, table.dataTable.compact thead td {
padding: 4px 17px 4px 4px
}
table.dataTable.compact tfoot th, table.dataTable.compact tfoot td {
padding: 4px
}
table.dataTable.compact tbody th, table.dataTable.compact tbody td {
padding: 4px
}
table.dataTable th.dt-left, table.dataTable td.dt-left {
text-align: left
}
table.dataTable th.dt-center, table.dataTable td.dt-center, table.dataTable td.dataTables_empty
{
text-align: center
}
table.dataTable th.dt-right, table.dataTable td.dt-right {
text-align: right
}
table.dataTable th.dt-justify, table.dataTable td.dt-justify {
text-align: justify
}
table.dataTable th.dt-nowrap, table.dataTable td.dt-nowrap {
white-space: nowrap
}
table.dataTable thead th.dt-head-left, table.dataTable thead td.dt-head-left,
table.dataTable tfoot th.dt-head-left, table.dataTable tfoot td.dt-head-left
{
text-align: left
}
table.dataTable thead th.dt-head-center, table.dataTable thead td.dt-head-center,
table.dataTable tfoot th.dt-head-center, table.dataTable tfoot td.dt-head-center
{
text-align: center
}
table.dataTable thead th.dt-head-right, table.dataTable thead td.dt-head-right,
table.dataTable tfoot th.dt-head-right, table.dataTable tfoot td.dt-head-right
{
text-align: right
}
table.dataTable thead th.dt-head-justify, table.dataTable thead td.dt-head-justify,
table.dataTable tfoot th.dt-head-justify, table.dataTable tfoot td.dt-head-justify
{
text-align: justify
}
table.dataTable thead th.dt-head-nowrap, table.dataTable thead td.dt-head-nowrap,
table.dataTable tfoot th.dt-head-nowrap, table.dataTable tfoot td.dt-head-nowrap
{
white-space: nowrap
}
table.dataTable tbody th.dt-body-left, table.dataTable tbody td.dt-body-left
{
text-align: left
}
table.dataTable tbody th.dt-body-center, table.dataTable tbody td.dt-body-center
{
text-align: center
}
table.dataTable tbody th.dt-body-right, table.dataTable tbody td.dt-body-right
{
text-align: right
}
table.dataTable tbody th.dt-body-justify, table.dataTable tbody td.dt-body-justify
{
text-align: justify
}
table.dataTable tbody th.dt-body-nowrap, table.dataTable tbody td.dt-body-nowrap
{
white-space: nowrap
}
table.dataTable, table.dataTable th, table.dataTable td {
box-sizing: content-box;
box-sizing: content-box
}
.dataTables_wrapper {
position: relative;
clear: both;
*zoom: 1;
zoom: 1
}
.dataTables_wrapper .dataTables_length {
float: left
}
.dataTables_wrapper .dataTables_filter {
float: right;
text-align: right
}
.dataTables_wrapper .dataTables_filter input {
margin-left: 0.5em
}
.dataTables_wrapper .dataTables_info {
clear: both;
float: left;
padding-top: 0.755em
}
.dataTables_wrapper .dataTables_paginate {
float: right;
text-align: right;
padding-top: 0.25em
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
box-sizing: border-box;
display: inline-block;
min-width: 1.5em;
padding: 0.5em 1em;
margin-left: 2px;
text-align: center;
text-decoration: none !important;
cursor: pointer;
*cursor: hand;
color: #333 !important;
border: 1px solid transparent;
border-radius: 2px
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover
{
color: #333 !important;
border: 1px solid #979797;
background-color: white;
background: gradient(linear, left top, left bottom, color-stop(0%, #fff),
color-stop(100%, #dcdcdc));
background: linear-gradient(top, #fff 0%, #dcdcdc 100%);
background: linear-gradient(top, #fff 0%, #dcdcdc 100%);
background: linear-gradient(top, #fff 0%, #dcdcdc 100%);
background: linear-gradient(top, #fff 0%, #dcdcdc 100%);
background: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active
{
cursor: default;
color: #666 !important;
border: 1px solid transparent;
background: transparent;
box-shadow: none
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
color: white !important;
border: 1px solid #111;
background-color: #585858;
background: gradient(linear, left top, left bottom, color-stop(0%, #585858),
color-stop(100%, #111));
background: linear-gradient(top, #585858 0%, #111 100%);
background: linear-gradient(top, #585858 0%, #111 100%);
background: linear-gradient(top, #585858 0%, #111 100%);
background: linear-gradient(top, #585858 0%, #111 100%);
background: linear-gradient(to bottom, #585858 0%, #111 100%)
}
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
outline: none;
background-color: #2b2b2b;
background: gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b),
color-stop(100%, #0c0c0c));
background: linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
background: linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
background: linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
background: linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
background: linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);
box-shadow: inset 0 0 3px #111
}
.dataTables_wrapper .dataTables_paginate .ellipsis {
padding: 0 1em
}
.dataTables_wrapper .dataTables_processing {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 40px;
margin-left: -50%;
margin-top: -25px;
padding-top: 20px;
text-align: center;
font-size: 1.2em;
background-color: white;
background: gradient(linear, left top, right top, color-stop(0%, rgba(255,
255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)),
color-stop(75%, rgba(255, 255, 255, 0.9)),
color-stop(100%, rgba(255, 255, 255, 0)));
background: linear-gradient(left, rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%,
rgba(255, 255, 255, 0) 100%);
background: linear-gradient(left, rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%,
rgba(255, 255, 255, 0) 100%);
background: linear-gradient(left, rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%,
rgba(255, 255, 255, 0) 100%);
background: linear-gradient(left, rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%,
rgba(255, 255, 255, 0) 100%);
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%,
rgba(255, 255, 255, 0) 100%)
}
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
color: #333
}
.dataTables_wrapper .dataTables_scroll {
clear: both
}
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
*margin-top: -1px;
overflow-scrolling: touch
}
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th,
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td {
vertical-align: middle
}
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing
{
height: 0;
overflow: hidden;
margin: 0 !important;
padding: 0 !important
}
.dataTables_wrapper.no-footer .dataTables_scrollBody {
border-bottom: 1px solid #111
}
.dataTables_wrapper.no-footer div.dataTables_scrollHead table,
.dataTables_wrapper.no-footer div.dataTables_scrollBody table {
border-bottom: none
}
.dataTables_wrapper:after {
visibility: hidden;
display: block;
content: "";
clear: both;
height: 0
}
@media screen and (max-width: 767px) {
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate
{
float: none;
text-align: center
}
.dataTables_wrapper .dataTables_paginate {
margin-top: 0.5em
}
}
@media screen and (max-width: 640px) {
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter
{
float: none;
text-align: center
}
.dataTables_wrapper .dataTables_filter {
margin-top: 0.5em
}
}
td.details-control {
background: url('http://iconizer.net/files/Sketchdock_Ecommerce_Icons/orig/plus-blue.png') no-repeat center center;
cursor: pointer;
}
tr.shown td.details-control {
background: url('http://iconizer.net/files/Sketchdock_Ecommerce_Icons/orig/minus-blue.png') no-repeat center center;
}d
function updateDataTableSelectAllCtrl(table){
var $table = table.table().node();
var $chkbox_all = $('tbody input[type="checkbox"]', $table);
var $chkbox_checked = $('tbody input[type="checkbox"]:checked', $table);
var chkbox_select_all = $('thead input[name="select_all"]', $table).get(0);
// If none of the checkboxes are checked
if($chkbox_checked.length === 0){
chkbox_select_all.checked = false;
if('indeterminate' in chkbox_select_all){
chkbox_select_all.indeterminate = false;
}
// If all of the checkboxes are checked
} else if ($chkbox_checked.length === $chkbox_all.length){
chkbox_select_all.checked = true;
if('indeterminate' in chkbox_select_all){
chkbox_select_all.indeterminate = false;
}
// If some of the checkboxes are checked
} else {
chkbox_select_all.checked = true;
if('indeterminate' in chkbox_select_all){
chkbox_select_all.indeterminate = true;
}
}
}
jQuery(document).ready(
function() {
var objectArr = [];
jQuery('.dataRow').each(function() {
var tdArr = this.getElementsByTagName("td");
var message = {
status : tdArr[0].innerHTML,
itinno : tdArr[1].innerHTML,
datemade : tdArr[2].innerHTML,
lastname : tdArr[3].innerHTML,
firstname : tdArr[4].innerHTML,
arrivedate : tdArr[5].innerHTML,
departdate : tdArr[6].innerHTML,
processed : tdArr[7].innerHTML,
select : tdArr[8].innerHTML
};
objectArr.push(message);
});
var rows_selected = [];
jQuery('#messageRows').DataTable(
{
data : objectArr,
"iDisplayLength" : 15,
"aLengthMenu" : [ [ 15, 25, 50, 100, -1 ],
[ 15, 25, 50, 100, "All" ] ],
"columns" : [ {
"className" : 'details-control',
"orderable" : false,
"data" : null,
"defaultContent" : ''
},
{"mData" : "status" },
{"mData" : "itinno" },
{"mData" : "datemade"},
{"mData" : "lastname"},
{"mData" : "firstname"},
{"mData" : "arrivedate"},
{"mData" : "departdate"},
{"mData" : "processed"},
{"mData" : "select"} ],
"order" : [ [ 1, "asc" ], [ 2, "asc" ] ],
});
// Add event listener for opening and closing details
jQuery('#messageRows tbody').on('click', 'td.details-control',
function() {
var tr = $(this).closest('tr');
var table = $('#messageRows').DataTable();
var row = table.row( tr );
var shown = row.child.isShown();
if ( row.child.isShown() ) {
console.log("2.1 Yes, made it here");
// This row is already open - close it
row.child.hide();
console.log("2.2 Yes, made it here");
tr.removeClass('shown');
console.log("2.3 Yes, made it here");
}
else {
console.log("3.1 Yes, made it here " + row.data());
// Open this row
row.child( format(row.data()) ).show();
console.log("3.2 Yes, made it here");
tr.addClass('shown');
console.log("3.3 Yes, made it here");
}
console.log("4 Yes, made it here");
}
);
// Handle click on checkbox
$('#messageRows tbody').on('click', 'input[type="checkbox"]', function(e){
var $row = $(this).closest('tr');
var table = $('#messageRows').DataTable();
var lookAtMe = table.row( $row );
var table = $('#messageRows').DataTable();
// Get row data
var data = table.table( 0 ).data();
// Get row ID
// ----------------------------------------------------
// This is what I need - the "value" part of the select
// ----------------------------------------------------
var rowId = data[0].select;
console.log(rowId.closest('value'));
// Determine whether row ID is in the list of selected row IDs
var index = $.inArray(rowId, rows_selected);
// If checkbox is checked and row ID is not in list of selected row IDs
if(this.checked && index === -1){
rows_selected.push(rowId);
// Otherwise, if checkbox is not checked and row ID is in list of selected row IDs
} else if (!this.checked && index !== -1){
rows_selected.splice(index, 1);
}
if(this.checked){
$row.addClass('selected');
} else {
$row.removeClass('selected');
}
// Update state of "Select all" control
updateDataTableSelectAllCtrl(table);
// Prevent click event from propagating to parent
e.stopPropagation();
});
function format( d ) {
// `d` is the original data object for the row
console.log("formating 1 ");
return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;"><tr><td>Full name:</td><td>TestName</td></tr><tr><td>Extension number:</td><td>Extension1234</td></tr><tr><td>Extra info:</td><td>And any further details here (images etc)...</td></tr></table>';
}
});
This bin was created anonymously and its free preview time has expired. Get a free unrestricted account
Dismiss xShortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + [ | Indents selected lines |
ctrl + ] | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Clone Bin |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |