get_actions_from_current_basket( $_REQUEST['resId'], $_REQUEST['collId'], 'PAGE_USE', false ); if (count($actions) > 0) { $frmStr .= '' . _ACTIONS . ' : '; $frmStr .= ' '; } else { $frmStr .= _NO_AVAILABLE_ACTIONS_FOR_THIS_BASKET; echo "{status : 2, error_txt : '" . addslashes($frmStr) . "'}"; exit (); } echo "{status : 0, selectAction : '" . addslashes($frmStr) . "'}"; exit ();