Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
  <title>Support Requests</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

</head>

<body>
<div class="table-responsive">
<table class="styled_table" id="myTable" width="100%">
 <tr><td>
    <nav class="navbar navbar-expand-sm navbar-dark bg-dark">
  <a class="navbar-brand" href="home.php"><img src="images/temp.png" alt="Home" style="width:40px;">  Office of &nbsp;&nbsp;</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
	
  <div class="collapse navbar-collapse" id="navbarNavDropdown">
    <ul class="navbar-nav">
		
      <li class="nav-item">
        <a class="nav-link" href="support_requests-db.php"><i class="fas fa-briefcase"></i> Support Requests</a>
      </li>
			
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownContactsLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-address-card"></i> Contacts</a>
				<div class="dropdown-menu" aria-labelledby="navbarDropdownContactsLink">
          <a class="dropdown-item" href="cancer_survivors-db.php">Cancer Survivors</a>
          <a class="dropdown-item" href="vetted_therapists-db.php">Vetted Therapists</a>
					<a class="dropdown-item" href="peer_support-db.php">Peer Support</a>
					<a class="dropdown-item" href="referral_agencies-db.php">Referral Agencies</a>
					<a class="dropdown-item" href="uncon.php"><font color="red">Survivors</font></a>
        </div>
      </li>
			
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownLookupLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-link"></i> Lookup Data</a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdownLookupLink">
					<a class="dropdown-item" href="states-db.php">States</a>
       		<a class="dropdown-item" href="california_cities-db.php">California Cities</a>
			 		<!-- <a class="dropdown-item" href="cities-db.php">Cities</a> -->
				<!--	<a class="dropdown-item" href="cities_counties_states_zipcodes-db.php">City, County, State, Zip Code</a> -->
					<a class="dropdown-item" href="cause_of_death-db.php">Cause of Death</a>
					<a class="dropdown-item" href="family_relationships-db.php">Family Relationships</a>
       		<a class="dropdown-item" href="military_branches-db.php">Military Branches</a>
					<a class="dropdown-item" href="military_ranks-db.php">Military Ranks</a>
					<a class="dropdown-item" href="uncon.php"><font color="red">Military Deployments</font></a>
					<a class="dropdown-item" href="uncon.php"><font color="red">Combat Incidents</font></a>
					<a class="dropdown-item" href="support_types-db.php">Support Types</a>
					<a class="dropdown-item" href="categories-db.php">Categories</a>
					<a class="dropdown-item" href="uncon.php"><font color="red">Referral Titles</font></a>
					<a class="dropdown-item" href="referral_types-db.php">Referral Types</a>
        </div>
      </li>
			
			<li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownReportsLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-list-alt"></i> Reports</a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdownReportsLink">
          <a class="dropdown-item" href="uncon.php"><font color="red">Issues By Assignment</font></a>
          <a class="dropdown-item" href="uncon.php"><font color="red">Issues By Category</font></a>
          <a class="dropdown-item" href="uncon.php"><font color="red">Issues By Opened By</font></a>
					<a class="dropdown-item" href="uncon.php"><font color="red">Issues By Status</font></a>
        </div>
      </li>
			
			<li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownSettingsLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-cogs"></i> Settings</a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdownSettingsLink">
					<a class="dropdown-item" href="users-db.php">Users</a>
         <!-- <a class="dropdown-item" href="uncon.php"><font color="red">Customize</font></a> -->
          <a class="dropdown-item" href="maintenance.php">Database Maintenance</a>
        </div>
      </li>
			
			<li class="nav-item">
        <a class="nav-link" href="logout.php"><i class="fas fa-sign-out-alt"></i> Logout</font></a>
      </li>
  </ul>
 </div>
</nav>
 </td></tr>
</table>

<table class="styled_table" id="ubTable" width="100%">
 <tr>
   <td>Support Requests<td>
	 <td>admin<td>
   <td>Welcome<td>
 </tr>
</table>

<table id='support_requests' class='table table-striped table-bordered dt-responsive no-wrap' width='100%'>
        <thead>
            <tr>
								<th>Date</th>
								<th>After Hours</th>
								<th>RDO</th>
								<th>Category</th>
								<th>Requesting Employee's Rank</th>
								<th>Area Office</th>
								<th>Division</th>
								<th>Summary</th>
								<th>Assigned Employee ID</th>
								<th>Assigned Employee Name</th>
           </tr>
        </thead>
    </table>
  </div>
              
            
!

CSS

              
                table.styled_table {
  font-family: Helvetica;
	color: grey;
	background-color: #343a40;
  width: 100%;
}
table.db_restore {
  font-family: Helvetica;
	background-color: #e3eaf2;
	border-spacing: 50px;
	border-collapse: seperate;
  width: 100%;
}
td.db_restore {
  font-family: Helvetica;
	vertical-align: top;
	border-spacing: 50px;
	border-collapse: seperate;
}
th.db_restore, td.db_restore {
    padding: 5px;
    text-align: left;
		border-spacing: 50px;
		border-collapse: seperate;
}
h5.db_restore {
  font-family: Helvetica;
	text-decoration: underline;
}
table.db_maintenance {
  font-family: Helvetica;
	background-color: #e3eaf2;
	padding: 5px;
	border-spacing: 50px;
  width: 100%;
}
td.db_maintenance {
  font-family: Helvetica;
	border-spacing: 50px;
	vertical-align: top;
}
th.db_maintenance, td.db_restore {
    padding: 5px;
		border-spacing: 50px;
    text-align: left;
}
h5.db_maintenance {
  font-family: Helvetica;
	text-decoration: underline;
}
div.dom_wrapper {
  position: sticky;  /* Fix to the top */
  top: 0;
  padding: 2px;
  z-index: 100;
  background: rgba(255, 255, 255, 1);  /* hide the scrolling table */
}
              
            
!

JS

              
                    var table = $('#support_requests').DataTable( {
    dom: "<'row dom_wrapper fh-fixedHeader'<'col-sm-12 col-md-6'B><'col-sm-12 col-md-6'lf>>" +
		"<'row'<'col-sm-12'iprt>>" +
		"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
        ajax: 'support_requests-con.php',
	buttons: [
            { extend: 'create',   editor: editor },
            { extend: 'edit',   editor: editor },
            { extend: 'remove', editor: editor },
            { text: 'Reload', action: function ( e, dt, node, config ) {dt.ajax.reload();}},
            { extend: 'pdfHtml5', orientation: 'landscape', filename: 'OESA SMS - Support Requests' },
            { extend: 'copyHtml5', exportOptions: { orthogonal: 'export' } },
            { extend: 'excelHtml5', filename: 'OESA SMS - Support Requests' },
            { extend: 'csvHtml5', filename: 'OESA SMS - Support Requests' },
             'colvis', 'print'
        ],
	'aLengthMenu': [[10, 25, 50, -1], [ 'Daily', 'Weekly', 'Monthly', 'All']],
	'iDisplayLength': 50,
        columns: [
        { data: 'support_requests.date' },
        { data: 'support_requests.after_hours' },
	{ data: 'support_requests.rdo' },
        { data: 'lk_categories.category' },
        { data: 'lk_chp_ranks.rank' },
        { data: 'lk_chp_locations.location' },
	{ data: 'lk_chp_divisions.division' },
        { data: 'support_requests.summary'},
        { data: 'tbl_userid.user_id'},
        { data: 'tbl_fullname.full_name'}
        ],
         responsive: true,
         select: true,
         stateSave: true,
	 fixedHeader: true
    } ); 
              
            
!
999px

Console