Exemple #1
0
 function generateScript($adLinkData)
 {
     $userID = osBackUserID();
     $code = 0;
     if (osUserLogedin()) {
         /* User is logedin */
         query("SELECT * FROM publink_info WHERE adLinkUID=" . $adLinkData['adUID'] . " AND publisher={$userID}");
         $code = "!";
         if ($row = fetch()) {
             /* pubLink exist */
             $code = $row['pubUID'];
         } else {
             /* pubLink does not exist */
             $PPV = $adLinkData['AOPV'] * $adLinkData['APRate'];
             $q = "INSERT INTO publink_info(adLinkUID,YTID,publisher,totalView,AOPV,PPV) ";
             $q .= "VALUES('" . $adLinkData['adUID'] . "','" . $adLinkData['videoCode'] . "','{$userID}','0','" . $adLinkData['AOPV'] . "','{$PPV}')";
             query($q);
             $code = mysql_insert_id();
         }
     }
     return $code;
 }
Exemple #2
0
    function frm()
    {
        $user = osBackUser();
        $formName = $this->_fullname . "ApplyBtn";
        $formPass = $this->_fullname . "Pass";
        $userBox = '<input class="persinf_inp" id="profile_name_inp" type="text" size="30" name="userName"/>';
        $bdBox = '<input class="persinf_inp" id="profile_birth_inp" type="text" size="30" name="BDate"/>';
        if (isset($user['userName'])) {
            if (strlen($user['userName']) > 2) {
                $userBox = <<<PHTMLCODE
<input class="persinf_inp" id="profile_name_inp" type="text" size="30" name="user-Name" value="{$user['userName']}" disabled/>
PHTMLCODE;
            }
        }
        if (isset($user['BDate'])) {
            if (strlen($user['BDate']) > 2) {
                $bdBox = <<<PHTMLCODE
<input class="persinf_inp" id="profile_birth_inp" type="text" size="30" name="B-Date" value="{$user['BDate']}" disabled/>
PHTMLCODE;
            }
        }
        if (!osUserLogedin()) {
            $html = "Please Login First";
        } else {
            $html = <<<PHTMLCODE

\t\t\t\t{$this->personalinfomsg}
\t\t\t\t<span class="profile_title_span">Personal Information</span> 
\t\t\t\t<form id="{$formName}" class="persinf_frm" method="post">
\t\t\t\t\t<input type="hidden" name="_message" value="frame_updateInfo" /><input type = "hidden" name="_target" value="{$this->_fullname}" /><br />
\t\t\t\t\t<label class="bold" id="profile_email_lbl">email </label> 
\t\t\t\t\t<input class="persinf_inp" id="profile_email_inp" type="text" size="30" value="{$user['email']}" disabled/> 
\t\t\t\t\t<br /><br /> \t\t\t\t\t
\t\t\t\t\t<label class="bold" id="profile_name_lbl">Full name <span class="red_star">*</span></label> 
\t\t\t\t\t{$userBox}
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<label class="bold" id="profile_birth_lbl">Birth date <span class="red_star">*</span></label> 
\t\t\t\t\t{$bdBox}
\t\t\t\t\t<br /><br /> \t\t\t\t\t
\t\t\t\t\t<label class="notes" id="profile_note_1">* These information must be real for future security checkings (can be filled once)</label> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<label class="bold" id="profile_address_lbl">Full Address</label> 
\t\t\t\t\t<input class="persinf_inp" id="profile_address_inp" type="text" size="30" name="Address" value="{$user['Address']}"/> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<label class="bold" id="profile_country_lbl">Country</label> 
\t\t\t\t\t<input class="persinf_inp" id="profile_country_inp" type="text" size="30" name="Country" value="{$user['Country']}"/> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<label class="bold" id="profile_zipcode_lbl">Postal Code</label> 
\t\t\t\t\t<input class="persinf_inp" id="profile_zipcode_inp" type="text" size="30" name="PostalCode" value="{$user['PostalCode']}" /> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<input class="persinf_inp" id="profile_save_btn" type="button" value="Save" onclick='document.getElementById("{$this->_fullname}getPassword").style.display="block";document.getElementById("profile_save_btn").style.display="none";'/> 
\t\t\t\t\t<div class="persinf_confirm_div" id="{$this->_fullname}getPassword"> 
\t\t\t\t\t\t<label class="bold">Password: </label> 
\t\t\t\t\t\t<input type="password" size="30" name="Password"/> 
\t\t\t\t\t\t<input class="persinf_inp" type="button" value="Confirm" onclick='Javascript:sndmsg("{$formName}")'/> 
\t\t\t\t\t</div> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t</form> 
\t\t\t\t{$this->changepassmsg}
\t\t\t\t<span class="profile_title_span">Change Password</span> 
\t\t\t\t<form id="{$formPass}" class="change_pass_frm" method="post"> 
\t\t\t\t\t<input type="hidden" name="_message" value="frame_changePassword" /><input type = "hidden" name="_target" value="{$this->_fullname}" />
\t\t\t\t\t<label class="bold" id="newpass_lbl">New Password</label> 
\t\t\t\t\t<input class="persinf_inp" id="newpass_inp" name="NewPass1" type="password" size="30" /> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<label class="bold" id="conf_newpass_lbl">Confirm New Pass</label> 
\t\t\t\t\t<input class="persinf_inp" id="conf_newpass_inp" name="NewPass2" type="password" size="30" /> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<label class="bold" id="oldpass_lbl">Current Pass</label> 
\t\t\t\t\t<input class="persinf_inp" id="oldpass_inp" name="Password" type="password" size="30" /> 
\t\t\t\t\t<br /><br /> 
\t\t\t\t\t<input class="persinf_inp" class="bold" id="confpass_btn" type="button" value="Save" onclick='Javascript:sndmsg("{$formPass}")'/> 
\t\t\t\t</form> 
\t\t\t
PHTMLCODE;
        }
        $this->personalinfomsg = "";
        $this->changepassmsg = "";
        return $html;
    }
Exemple #3
0
    function frm()
    {
        if (!osUserLogedin()) {
            return <<<PHTMLCODE

\t\t\t\t<div class="addvideo_login_msg">Log in first</div>
\t\t\t
PHTMLCODE;
        }
        //else
        $formname = $this->_fullname;
        $of = $this->offer->backInfo();
        $t = new transaction("");
        $balance = $t->backBalance(osBackUserID());
        $countries = "<option value='any'>any</option>";
        query("SELECT DISTINCT CountryName FROM ip_country ORDER BY CountryName");
        $row = fetch();
        while ($row = fetch()) {
            $countries .= "<option value='" . $row['CountryName'] . "'>" . $row['CountryName'] . "</option>";
        }
        $html = <<<PHTMLCODE

\t\t\t<input id="APRatio" value="{$of['APRatio']}" type="hidden"/>
\t\t\t<center><font color=red>{$this->errMessage}</font><br></center>
\t\t\t<span class="addvideo_title">Rocket views video submission</span>
\t\t\t<br /><br />
\t\t\t<span class="addvideo_description">
\t\t\tHere you can submit the youtube video link to be promoted and go viral.<br/>
\t\t\tRemember that higher offer on each view means encouraging more publishers, then higher number of viewers and views.
\t\t\t</span>
\t\t\t<br /><br />
\t\t\t<form name="{$formname}" method="post">
\t\t\t\t<input type="hidden" name="_message" value="frame_addVideo" /><input type = "hidden" name="_target" value="{$this->_fullname}" />
\t\t\t\t<input type="hidden" class="total_price" value="0" name="total" id="theTotal" />
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tTitle<font color="red">*</font>
\t\t\t\t\t<span class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">&nbsp;&nbsp;&nbsp;?
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tChoose a title to give a fast idea to publishers about your video
\t\t\t\t\t\t</span>
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theTitle" name="title" style="width:400px;" onkeypress='setTimeout("checkTitle()",100)' onchange='JavaScript:checkTitle();'><span id="msgTitle"></span>
\t\t\t\t\t<br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tYouTube link<font color="red">*</font>
\t\t\t\t\t<span class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">&nbsp;&nbsp;&nbsp;?
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tCopy and paste the youtube video link from browser's address bar or shortened link provided by youtube share.
\t\t\t\t\t\t</span>
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theYLink" name="link" style="width:400px;" onkeypress='setTimeout("checkYLink()",100)' onchange='JavaScript:checkYLink()'><span id="msgYLink"></span><br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tYour Offer on Price/View<font color="red">*</font>
\t\t\t\t\t<span class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">&nbsp;&nbsp;&nbsp;?
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tThis is the price you offer to publishers for each view counted via their publishing.
\t\t\t\t\t\t\t<br> It is obvious that the higher price you offer to publishers to publish your video,
\t\t\t\t\t\t\t the more publishers will be encouraged and you will get faster and more number of views.
\t\t\t\t\t\t\t <br> It is noticeable that publishers will earn money for real views, simulated to be the closest to youtube number of views.
\t\t\t\t\t\t</span>
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theAOPV" name="AOPV" style="width:50px;" onkeypress='setTimeout("checkAOPV({$of['minAOPV']})",100)' onchange='JavaScript:checkAOPV({$of['minAOPV']})'>
\t\t\t\t\t(min: {$of['minAOPV']}\$) <span id="msgAOPV"></span>
\t\t\t\t\t &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Publishers will earn <span id="publisher_will_earn">0</span>\$ for each view
\t\t\t\t\t<br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tNumber of Viewes<font color="red">*</font>
\t\t\t\t\t<span class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">&nbsp;&nbsp;&nbsp;?
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tThis is the number of views you wish to get at least for the video submitted.
\t\t\t\t\t\t\t<br> When this number is finished, publishers will not earn more money by your link,
\t\t\t\t\t\t\t so they may remove your video from where they have shared it or let it be and let you get more and more views.
\t\t\t\t\t\t</span>
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theNOV" name="NOV" style="width:50px;" onkeypress='setTimeout("checkNOV({$of['minNOV']})",100)' onchange='JavaScript:checkNOV({$of['minNOV']})'>
\t\t\t\t\t(min: {$of['minNOV']})
\t\t\t\t\t<span id="msgNOV"></span>
\t\t\t\t\t<br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tTarget Country
\t\t\t\t\t<span class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">&nbsp;&nbsp;&nbsp;?
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tIf you have a target country for viewers of your video, you can choose it here. 
\t\t\t\t\t\t\tIf a country is selected, publishers will earn for views sent only from that country. 
\t\t\t\t\t\t\t<br> If you have multiple countries targeted, please submit the video for each of those countries separately, with number of views you wish to get in each.
\t\t\t\t\t\t</span>
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<SELECT name="country" style="width:150px;">{$countries}</SELECT>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tTotal:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<span id="theTotalShow" >0.0</span>\$<span id="msgTotal"></span><br />
\t\t\t\t</div>
\t\t\t\t<div style="float:left;">
\t\t\t\t\t<div class="addvideo_label">
\t\t\t\t\t\tYour Balance:
\t\t\t\t\t</div>
\t\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t\t<span id="theBalance">{$balance}</span>\$<br />
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<input style="float:right;" id="theButton" disabled type="button" value="Submit" onclick = "_eSetHTML('addvideowait','<img src=\\'/img/loading.gif\\'>');JavaScript:sndmsg('{$formname}')">
\t\t\t\t<span id="addvideowait" style="float:right;"></span>
\t\t\t</form>
\t\t
PHTMLCODE;
        $this->errMessage = "";
        return $html;
    }
Exemple #4
0
    function frmBalance()
    {
        if (!osUserLogedin()) {
            return "";
        }
        $paypal = $this->frmPaypal();
        $ReCalcFrmName = $this->_fullname . "reCalc";
        $testFrame = $this->_fullname . "test";
        $buttons = $this->buttons();
        $transaction_history = $this->transactionHistory();
        return <<<PHTMLCODE

\t\t\t{$buttons}
\t\t\t<div class="balance_area_div">
\t\t\t\t<div class="balance_info">
\t\t\t\t\t<div class="balance_title_area">
\t\t\t\t\t\t<span class="balance_title_span">Credit information summary</span>
\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\t\t\t\t\t\t<input value="ReCalculate" type="button" class="btn_flat" id="btn_recalc" onclick="_eSetHTML('recalcwait','<img src=\\'/img/loading.gif\\'>');JavaScript:sndevent('{$this->_fullname}','frame_reCalc')" />
\t\t\t\t\t\t<span id="recalcwait"></span>
\t\t\t\t\t</div>
\t\t\t\t\t<div class="balance_label">+ Earned amount by publishing:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->earned} \$</div>
\t\t\t\t\t<div class="balance_label">- Withdrawn amount:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->withdrawn} \$</div>
\t\t\t\t\t<hr width=400 heught=1 class="balance_hr" color="#DBD7D8" /><br/>
\t\t\t\t\t<div class="balance_label">+ Deposited amount:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->paid} \$</div>
\t\t\t\t\t<div class="balance_label">- Paid amount for your ads:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->adpay} \$</div>
\t\t\t\t\t<div class="balance_label">+ Reimbursed amount:<br/><font size=1>&nbsp;&nbsp;&nbsp;after stopping a video's publish</font></div>
\t\t\t\t\t\t<div class="balance_data">{$this->reimbursed} \$</div>
\t\t\t\t\t<hr width=400 heught=1 class="balance_hr" color=black /><br/>
\t\t\t\t\t<div class="balance_label" style="font-size:150%;">&nbsp;&nbsp;&nbsp;&nbsp;Balance:</div>
\t\t\t\t\t\t <div class="balance_data">{$this->balance} \$</div>
\t\t\t\t</div>
\t\t\t\t<div class="balance_section">
\t\t\t\t\t{$paypal}
\t\t\t\t\t{$transaction_history}
\t\t\t\t</div>
\t\t\t</div>
\t\t
PHTMLCODE;
    }
Exemple #5
0
function osBackUserRole()
{
    return osUserLogedin() ? $_SESSION['user']['role'] : false;
}
Exemple #6
0
    function frmBalance()
    {
        if (!osUserLogedin()) {
            return "";
        }
        $ReCalcFrmName = $this->_fullname . "reCalc";
        $testFrame = $this->_fullname . "test";
        $buttons = $this->buttons();
        $transaction_history = $this->transactionHistory();
        return <<<PHTMLCODE

\t\t\t{$buttons}
\t\t\t<div class="balance_area_div">
\t\t\t\t<div class="balance_info">
\t\t\t\t\t<div class="balance_title_area">
\t\t\t\t\t\t<span class="balance_title_span">Credit Information</span>
\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\t\t\t\t\t\t<input value="ReCalculate" type="button" class="btn_flat" onclick="JavaScript:sndevent('{$this->_fullname}','frame_reCalc')" />
\t\t\t\t\t</div>
\t\t\t\t\t<div class="balance_label">Balance:</div>
\t\t\t\t\t\t <div class="balance_data">{$this->balance} \$</div>
\t\t\t\t\t<div class="balance_label">Paid:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->paid} \$</div>
\t\t\t\t\t<div class="balance_label">adPay:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->adpay} \$</div>
\t\t\t\t\t<div class="balance_label">Re-imbursed:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->reimbursed} \$</div>
\t\t\t\t\t<div class="balance_label">Earned:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->earned} \$</div>
\t\t\t\t</div>
\t\t\t\t<div class="balance_section">
\t\t\t\t\t<div class="balance_test">
\t\t\t\t\t\t<form name="{$testFrame}" method="post">
\t\t\t\t\t\t\t<input type="hidden" name="_message" value="frame_test" /><input type = "hidden" name="_target" value="{$this->_fullname}" />
\t\t\t\t\t\t\t<input name="amount" size=5 />
\t\t\t\t\t\t\t<input value="test" type="button" onclick='JavaScript:sndmsg("{$testFrame}")' />
\t\t\t\t\t\t</form>
\t\t\t\t\t</div>
\t\t\t\t\t{$transaction_history}
\t\t\t\t</div>
\t\t\t</div>
\t\t
PHTMLCODE;
    }
Exemple #7
0
    function frm()
    {
        if (!osUserLogedin()) {
            return "";
        }
        $myAccFormName = $this->_fullname . "myacc";
        $html = <<<PHTMLCODE

\t\t\tBalance: {$this->balance} \$
\t\t\t<form name="{$myAccFormName}" method="post">
\t\t\t\t<input type="hidden" name="_message" value="frame_showMyAccount" /><input type = "hidden" name="_target" value="{$this->_fullname}" />
\t\t\t\t<input value ="My Page" type = "button" onclick = 'JavaScript:sndmsg("{$myAccFormName}")'  class="press" style="margin-top: 0px;" />
\t\t\t</form>
\t\t
PHTMLCODE;
        return $html;
    }
    function frmBalance()
    {
        if (!osUserLogedin()) {
            return "";
        }
        $paypal = $this->frmPaypal();
        $ReCalcFrmName = $this->_fullname . "reCalc";
        $testFrame = $this->_fullname . "test";
        $buttons = $this->buttons();
        $transaction_history = $this->transactionHistory();
        return <<<PHTMLCODE

\t\t\t{$buttons}
\t\t\t<div class="balance_area_div">
\t\t\t\t<div class="balance_info">
\t\t\t\t\t<div class="balance_title_area">
\t\t\t\t\t\t<span class="balance_title_span">Credit Information</span>
\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\t\t\t\t\t\t<input value="ReCalculate" type="button" class="btn_flat" onclick="JavaScript:sndevent('{$this->_fullname}','frame_reCalc')" />
\t\t\t\t\t</div>
\t\t\t\t\t<div class="balance_label">Balance:</div>
\t\t\t\t\t\t <div class="balance_data">{$this->balance} \$</div>
\t\t\t\t\t<div class="balance_label">Paid:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->paid} \$</div>
\t\t\t\t\t<div class="balance_label">adPay:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->adpay} \$</div>
\t\t\t\t\t<div class="balance_label">Re-imbursed:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->reimbursed} \$</div>
\t\t\t\t\t<div class="balance_label">Earned:</div>
\t\t\t\t\t\t<div class="balance_data">{$this->earned} \$</div>
\t\t\t\t</div>
\t\t\t\t<div class="balance_section">
\t\t\t\t\t{$paypal}
\t\t\t\t\t{$transaction_history}
\t\t\t\t</div>
\t\t\t</div>
\t\t
PHTMLCODE;
    }
Exemple #9
0
    function frm()
    {
        if (!osUserLogedin()) {
            return <<<PHTMLCODE

\t\t\t\t<div class="addvideo_login_msg">Log in first</div>
\t\t\t
PHTMLCODE;
        }
        //else
        $formname = $this->_fullname;
        $of = $this->offer->backInfo();
        $t = new transaction("");
        $balance = $t->backBalance(osBackUserID());
        $countries = "<option value='any'>any</option>";
        query("SELECT DISTINCT CountryName FROM ip_country ORDER BY CountryName");
        $row = fetch();
        while ($row = fetch()) {
            $countries .= "<option value='" . $row['CountryName'] . "'>" . $row['CountryName'] . "</option>";
        }
        $html = <<<PHTMLCODE

\t\t\t<center><font color=red>{$this->errMessage}</font><br></center>
\t\t\t<form name="{$formname}" method="post">
\t\t\t\t<input type="hidden" name="_message" value="frame_addVideo" /><input type = "hidden" name="_target" value="{$this->_fullname}" />
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tTitle:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theTitle" name="title" size=40 onkeypress='setTimeout("checkTitle()",100)' onchange='JavaScript:checkTitle();'><span id="msgTitle"><font color="red">*</font></span><br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tYoutube link:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theYLink" name="link" size=40 onkeypress='setTimeout("checkYLink()",100)' onchange='JavaScript:checkYLink()'><span id="msgYLink"><font color="red">*</font></span><br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tYour Offer on Price/View:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theAOPV" name="AOPV" size=5 onkeypress='setTimeout("checkAOPV({$of['minAOPV']})",100)' onchange='JavaScript:checkAOPV({$of['minAOPV']})'> (min: {$of['minAOPV']})<span id="msgAOPV"><font color="red">*</font></span><br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tNumber of Viewes:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<input id="theNOV" name="NOV" size=5 onkeypress='setTimeout("checkNOV({$of['minNOV']})",100)' onchange='JavaScript:checkNOV({$of['minNOV']})'> (min: {$of['minNOV']})<span id="msgNOV"><font color="red">*</font></span><br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tCountry:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t<SELECT name="country" style="width:150px;">{$countries}</SELECT>
\t\t\t\t</div>
\t\t\t\t<hr>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tTotal:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t\$<input type="text" class="total_price" value="0" name="total" id="theTotal" size=10 disabled/><span id="msgTotal"></span><br />
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_label">
\t\t\t\t\tBalance:
\t\t\t\t</div>
\t\t\t\t<div class="addvideo_field">
\t\t\t\t\t\$<span id="theBalance">{$balance}</span><br />
\t\t\t\t</div>
\t\t\t\t<input style="float:right;" id="theButton" disabled type="button" value="Submit" onclick = 'JavaScript:sndmsg("{$formname}")'>
\t\t\t</form>
\t\t
PHTMLCODE;
        $this->errMessage = "";
        return $html;
    }