function executeCommand($database, $action, $ArrayValue) { switch ($action) { case "insert": return insertDataToDb($database, $ArrayValue); case "get": return getDataFromDb($database, $ArrayValue); case "getTotal": return getTotalTinnitus($database); case "getListOfZips": return getListOfZips($database); } }
function index_license_sc() { $license = getDataFromDb('licenses'); $parser = new Parser(); $parser->render(TM_DIR . "/view/indexlicense.php", array('licenses' => $license), true); }
function srevicesShortcode() { $box = getDataFromDb('servicesbox'); $parser = new Parser(); $parser->render(TM_DIR . "/view/services.php", array('box' => $box[0]), true); }
function findTheHit() { $music = getDataFromDb('music'); $parser = new Parser(); $parser->render(TM_DIR . '/view/findhits.php', ['music' => $music]); }
function partners_sc() { $partners = getDataFromDb('partners'); $html = ""; foreach ($partners as $partner) { $html .= '<div><a href="' . $partner['link'] . '"><img src="' . $partner['img'] . '" alt="" ></a></div>'; } return $html; }
function index_channel_sc() { $channels = getDataFromDb('channels'); $parser = new Parser(); $parser->render(ADD_BARON_DIR . "/view/indexchannels.php", array('channels' => $channels), true); }
function link_sc() { $links = getDataFromDb('companylinks'); $html = ''; foreach ($links as $link) { $html .= '<a href="' . $link['link'] . '">' . $link['name'] . '</a> '; } echo $html; }