Dizzy Docs
logo logo
  • Home
  • Documents
    • API

      All API Documentation

    • Chatty

      Chat App

    • PDO

      Everything PDO

    • Vici

      Tutorials & Courses

    • Coding

      Everything Coding

    • Tech Stuff

      Geek Out

    • Random

      Docs with no Home

    • Business Workflows

      Everything we need to know for work

  • Notes
  • Manual
logo logo
Free Trail


Doc Navigation

  • Getting Started
  • briefcaseDizzyDoc Samples
  • briefcasePDO Crud
    • Forms
    • Filter and Search
    • Settings
    • Action Buttons
    • Filter Samples
    • Customizations
    • PHP Codes
    • Graphs / Charts
    • Misc
    • Plugins
    • Useless Right Now
    • References / Notes
  • PDO
    • Table
      • Table View
      • Table Formatting
    • Forms
      • Form View
      • Form Formatting
  • briefcaseLinks
    • Tools
    • References
Column Action Button Samples
			    
				// COLUMN ACTION BUTTON - SWITCH ON/OFF
				$action = array("1"=>"0","0"=>"1");//action to be performed, like when value is 1 set it to 0
				$text = array("1" => "approved","0"=>"unapproved");
				$pdocrud->enqueueActions($action,"switch",$text,"booking_status",array());
				//
				// COLUMN ACTION - OPEN LINK (WITH PK)
				$action = "http://www.google.com?url={pk}";//{another example of adding url {} text will be replaced by the primary key value
				$pdocrud->enqueueActions($action,"url","","first_name",array());
			    
			  
Side Action Button Samples
			    
				// SIDE ACTION BUTTON - OPEN LINK (WITH PK)
				$action = "http://google.com/?id={pk}";//pk will be replaced by primary key value
				$text = '';
				$attr = array("title"=>"Redirect URL");
				$pdocrud->enqueueBtnActions("url", $action, "url",$text,"booking_status", $attr);
				//
				// SIDE ACTION BUTTON - SWITCH ON/OFF (1 - 0)
				$action = array("1"=>"0","0"=>"1");//action to be performed, like when value is 1 set it to 0
				$text = array("1" => '',"0"=>'');
				$attr = array("title"=>"Switch Button");
				$pdocrud->enqueueBtnActions("btnswitch", $action, "btnswitch",$text,"booking_status", $attr);
				echo $pdocrud->dbTable("bookroom")->render();
				//
				// SIDE ACTION BUTTON - SWITCH ON/OFF (Yes - null)
				$action = array("Yes"=>null,null=>"Yes");//action to be performed, like when value is 1 set it to 0
				$text = array("Yes" => '',null=>'');
				$attr = array("title"=>"Request Return");
				$pdocrud->enqueueBtnActions("btnswitch", $action, "btnswitch",$text,"return_request", $attr);
				//
				// FedEX Tracking Lookup
				$action = "https://www.fedex.com/fedextrack/?trknbr={tracking_number}";//pk will be replaced by primary key value
				$text = '';
				$attr = array("title"=>"Redirect");
				$pdocrud->enqueueBtnActions("url", $action, "url",$text,"client_id", $attr);
				//
				// USPS Tracking Lookup
				$action = "https://tools.usps.com/go/TrackConfirmAction?tRef=fullpage&tLabels={ret_tracking}";//pk will be replaced by primary key value
				$text = '';
				$attr = array("title"=>"Redirect");
				$pdocrud->enqueueBtnActions("url2", $action, "url2",$text,"ret_tracking", $attr);
				//
				// NPI Lookup
				$action = "https://npiregistry.cms.hhs.gov/registry/search-results-table?number={pcp_npi}";//pk will be replaced by primary key value
				$text = '';
				$attr = array("title"=>"Redirect");
				$pdocrud->enqueueBtnActions("url", $action, "url",$text,"client_id", $attr);
				//
				// ICD-10 Lookup
				$action = "https://www.icd10data.com/search?s={icd_code}";//pk will be replaced by primary key value
				$text = '';
				$attr = array("title"=>"Redirect");
				$pdocrud->enqueueBtnActions("url", $action, "url",$text,"icd_code", $attr);


			    
			  
Top Action Button Samples
			    
				// TOP ACTION BUTTON - OPEN LINK
				$pdocrud->enqueueBtnTopActions("Report",  "View Report", "http://www.google.com", array(), "btn-report");
			    
			  

© 2020 All Rights Reserved by KbDoc

Video Playback Not Supported