Table Join

Allows you to join other tables. Only INNER JOIN supported. Keys in all joined tables must exist and be unique.


public function table_join()
{
  $xcrud = get_xcrud();
  $xcrud->table('employees');
  $xcrud->join('officeCode','offices','officeCode'); // ... INNER JOIN offices ON employees.officeCode = offices.officeCode ...
  
  //this line loads the <script> below it from a view
  $data['script'] = view('scripts', ['code' => 'table_join']);
  
  <script>
      $(document).ready(function() {
          $(".xcrud-list").tableHeadFixer({"head" : false, "left" : 2}); 
      });
  </script>
    
  $data['content'] = $xcrud->render();
  
  return view('demos', $data);
}

Employees

#LastnameFirstnameExtensionEmailOfficecodeReportstoJobtitleCityPhoneAddressline1Addressline2StateCountryPostalcodeTerritoryOrdering 
1MUrrDianeCC123ty89cvcvthyht@hh.com2855President6Boston+1 215 837 08251550 Court PlaceSuite 102MAUSA02107NA1
2GerardMartinx2312ty89cvcvthyht@hh.com4Sales RepParis+33 14 723 440443 Rue Jouffroy D'abbansFrance75017EMEA4
3Chieni5Patrickfgjhjpchieni@gmail.com4VP MarketingParis+33 14 723 440443 Rue Jouffroy D'abbansFrance75017EMEA4
4YgyGggFgbj7@hj.com15FfSan Francisco+1 650 219 4782100 Market StreetSuite 300CAUSA94080NA0
5DARA2DATRATRETANTAdara@gmail.com5454GIGIONETokyo+81 33 224 50004-1 KioichoChiyoda-KuJapan102-8578Japan2
Search