function frmButtons() { $adPage = osBackPageLink("AdVideo"); $pubPage = osBackPageLink("PubVideo"); return <<<PHTMLCODE \t\t\t<div id="publish_btns"> \t\t\t\t<a href="{$pubPage}"><button id="publish_btn" type="button"></button></a> \t\t\t\t<a href="{$adPage}"><button id="advertise_btn" type="button"></button></a> \t\t\t</div> \t\t PHTMLCODE; }
function frmWelcome() { $u = osBackUser(); $name = strlen($u['userName']) > 1 ? $u['userName'] : $u['email']; $lgoutFrm = $this->_fullname . "lgout"; $d = array(); $link = osBackPageLink("Myacc"); return <<<PHTMLCODE <div id="pers_info"> Welcome <span id="user_name">{$name}</span>! <div id="balance_div">Balance: <span id="balance_span">{$this->balance} \$</span></div> </div> \t\t\t<ul> \t\t\t\t<li> \t\t\t\t\t<a id="signup-link" href="{$link}" >My Account</a> \t\t\t\t</li> \t\t\t\t<li> \t\t\t\t\t<form id="{$lgoutFrm}" style="display:inline;"> \t\t\t\t\t\t<input type="hidden" name="_message" value="frame_logoutBtn" /><input type = "hidden" name="_target" value="{$this->_fullname}" /> \t\t\t\t\t\t<a id="login-link" href="#logout" onclick="JavaScript:sndmsg('{$lgoutFrm}')">Log out</a> \t\t\t\t\t</form> \t\t\t\t</li> \t\t\t</ul> \t\t PHTMLCODE; }
function buttons() { $ProfileFormName = $this->_fullname . "profileBtn"; $BalanceFormName = $this->_fullname . "balanceBtn"; $pubLinkFormName = $this->_fullname . "pubLinkBtn"; $adLinkFormName = $this->_fullname . "adLinkBtn"; $mnu_bg_profile = $this->cur_menue == "profile" ? "#E3E1E1" : "white"; $mnu_bg_myad = $this->cur_menue == "myad" ? "#E3E1E1" : "white"; $mnu_bg_mypub = $this->cur_menue == "mypub" ? "#E3E1E1" : "white"; $mnu_bg_credit = $this->cur_menue == "credit" ? "#E3E1E1" : "white"; $link_profile = osBackPageLink("Myacc_profile"); $link_pubLink = osBackPageLink("Myacc_pubLink"); $link_adLink = osBackPageLink("Myacc_adLink"); $link_balance = osBackPageLink("Myacc_balance"); $html = <<<PHTMLCODE \t\t <div id="content_menu"> \t\t <div class="content_menu_lst" style="background-Color:{$mnu_bg_profile};" id="cml_1" onmouseover="menu_hover('cml_1')" onmouseout="menu_out('cml_1','{$mnu_bg_profile}')" onclick="window.location.href='{$link_profile}';">Profile</div> \t\t <div class="content_menu_lst" style="background-Color:{$mnu_bg_mypub};" id="cml_2" onmouseover="menu_hover('cml_2')" onmouseout="menu_out('cml_2','{$mnu_bg_mypub}')" onclick="window.location.href='{$link_pubLink}';">My Published Videos</div> \t\t <div class="content_menu_lst" style="background-Color:{$mnu_bg_myad};" id="cml_3" onmouseover="menu_hover('cml_3')" onmouseout="menu_out('cml_3','{$mnu_bg_myad}')" onclick="window.location.href='{$link_adLink}';">My Ads & Virals</div> \t\t <div class="content_menu_lst" style="background-Color:{$mnu_bg_credit};" id="cml_4" onmouseover="menu_hover('cml_4')" onmouseout="menu_out('cml_4','{$mnu_bg_credit}')" onclick="window.location.href='{$link_balance}';">Credit</div> \t\t </div> \t\t PHTMLCODE; return $html; }
function frm() { $login = $this->login->_backframe(); $tab = $this->tabbar->_backframe(); $pages = $this->pages->_backframe(); $home = osBackPageLink("Home"); return <<<PHTMLCODE \t\t\t<div id="header_bg"> \t\t\t\t<div id="logo_div"> \t\t\t\t\t<a href="{$home}"> \t\t\t\t\t\t<img id="logo_img" alt="" src="./img/logo.png" border="0"/> \t\t\t\t\t</a> \t\t\t\t</div> \t\t\t\t<div id="menu_div"> \t\t\t\t\t{$tab} \t\t\t\t {$login} \t\t\t\t</div> \t\t\t</div> \t\t\t{$pages} <!-- Histats.com START (hidden counter)--> <script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script> <a href="http://www.histats.com" target="_blank" title="free hit counters" ><script type="text/javascript" > try {Histats.start(1,1613939,4,0,0,0,""); Histats.track_hits();} catch(err){}; </script></a> <noscript><a href="http://www.histats.com" target="_blank"><img src="http://sstatic1.histats.com/0.gif?1613939&101" alt="free hit counters" border="0"></a></noscript> <!-- Histats.com END --> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-23789180-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> \t\t PHTMLCODE; }
function frm() { $html = <<<PHTMLCODE <ul id="menu_list"> \t\t PHTMLCODE; $menu = array(); $cap = ""; /* caption */ foreach ($this->tabs as $el) { if ($cap == "") { $cap = $el; } else { /* caption it is*/ $menu[] = array('caption' => $cap, 'page' => $el); $cap = ""; } } foreach ($menu as $t) { $link = osBackPageLink($t['page']); $html .= <<<PHTMLCODE \t\t\t\t<li><a href="{$link}">{$t['caption']}</a></li> \t\t\t PHTMLCODE; } return $html . "</ul>"; }
function frm() { $login = $this->login->_backframe(); $tab = $this->tabbar->_backframe(); $pages = $this->pages->_backframe(); $home = osBackPageLink("PubVideo"); return <<<PHTMLCODE \t\t\t<div id="header_bg"> \t\t\t\t<div id="logo_div"> \t\t\t\t\t<a href="{$home}"> \t\t\t\t\t\t<img id="logo_img" alt="" src="./img/logo.png" /> \t\t\t\t\t</a> \t\t\t\t</div> \t\t\t\t<div id="menu_div"> \t\t\t\t\t{$tab} \t\t\t\t {$login} \t\t\t\t</div> \t\t\t</div> \t\t\t{$pages} \t\t PHTMLCODE; }
function frm() { $html = <<<PHTMLCODE <ul id="menu_list"> \t\t PHTMLCODE; foreach ($this->tabs as $t) { $link = osBackPageLink($t); $html .= <<<PHTMLCODE \t\t\t\t<li><a href="{$link}">{$t}</a></li> \t\t\t PHTMLCODE; } return $html . "</ul>"; }