function display($showTitle = true, $ajaxSave = false) { global $mod_strings, $app_list_strings, $app_strings; $javascript = <<<EOQ <script type="text/javascript"> function connect_now() { \tvar name = document.getElementById("name").value; \tif (name == "") { \t\talert("{$mod_strings['LBL_MISS_NAME']}"); \t\treturn false; \t} \tvar session_id = document.getElementById("session_id").value; \tif (session_id == "") { \t\tSUGAR.ajaxUI.showLoadingPanel(); \t\tvar _form = document.getElementById("EditView"); \t\t_form.action.value='connectnow'; \t\t_form.return_action.value='EditView'; \t\tif(check_form('EditView')){ \t\t\tSUGAR.ajaxUI.submitForm(_form); \t\t} \t} \treturn false; } </script> EOQ; echo $javascript; if (!empty($this->bean->session_id)) { $ebay = new eBayTradingApi(); $url = $ebay->getSignInURL($this->bean->session_id); echo "<iframe class='teamNoticeBox' title='{$url}' src='{$url}' width='100%' height='480px'></iframe>"; } parent::display($showTitle, $ajaxSave); }
public function setup() { $this->session->setTokenMode(0); parent::setup(); }