<style type="text/css">
    #tooltip {
        position: absolute;
        display:none;
        font-size:10px;

	    padding:5px 10px;
        border:1px solid #ccc;
        border-radius:5px;
        background: #fff;
        box-shadow: 2px 2px 3px #888;



}

</style>
<script type="text/javascript">
$(document).ready(function(){
    $(".help a[title]").tooltip();
   // $(".help *").tooltip();
})

            $(document).ready(function() {
                $("#frmUsers").validate({
                    rules: {
			p_email: {
                            required: function () {
                                if($("#p_paypal").is(':checked'))
                                {
                                    return true;
                                }
                                else
                                {
                                    return false;
                                }
                            },
                            email: true
			},
                        p_tocken: {
                            required: function () {
                                if($("#p_paypal").is(':checked'))
                                {
                                    return true;
                                }
                                else
                                {
                                    return false;
                                }
                            }
			},
                        a_email: {
                            required: function () {
                                if($("#e_auth").is(':checked'))
                                {
                                    return true;
                                }
                                else
                                {
                                    return false;
                                }
                            },
                            email: true
			},
                        a_logid: {
                            required: function () {
                                if($("#e_auth").is(':checked'))
                                {
                                    return true;
                                }
                                else
                                {
                                    return false;
                                }
                            }
			},
                        currency: {
                            required: function () {
                                if($("#e_auth").is(':checked'))
                                {
                                    return true;
                                }
                                else
                                {
                                    return false;
                                }
                            }
			},
                        a_tkey: {
                            required: function () {
                                if($("#e_auth").is(':checked'))
                                {
                                    return true;
                                }
                                else
                                {
                                    return false;
                                }
                            }
			}
                    },
                    messages: {
                        p_email: {
                            required: "Required",
                            email  : "Please enter valid email"
                            
			},
                        p_tocken: {
                            required: "Required"
                            
			},
                        a_email: {
                            required: "Required",
                            email  : "Please enter valid email"
                            
			},
                        
                        a_logid: {
                            required: "Required"
                            
			},
                        currency: {
                            required: "Required"
                            
			},
                        a_tkey: {
                            required: "Required"
                            
			}
                        
                    }
                });
                
            });
</script>

<div class="inner_rightpanel">
<div class="bread_crumb">

<div class="clear"></div>
</div>

<div class="content_area_div">

<div class="content_area">
    <div class="success_message"><?php echo  $this->message; ?></div>
<div class="comm_content_block">
<h3>Manage Settings</h3>
<div class="admin_tab_container">
	<div class="admin_tab_menu">
	<ul>
	<li><a href="<?php echo ConfigUrl::base();?>index/settings">General Settings</a></li>
	<li><a href="<?php echo ConfigUrl::base();?>index/paymentsettings" class="selected">Payment Settings</a></li>
         <li><a href="<?php echo ConfigUrl::base();?>index/formfields">Manage Form Fields</a></li>
         <li><a href="<?php echo ConfigUrl::base();?>index/metatag"> Manage Meta-tags</a></li>
	</ul>
	<div class="clear"></div>
	</div>
	<div class="admin_tab_contents">

<!-- Details Comment Section End -->

<form action="" method="POST" id="frmUsers" name="frmUsers">
    <div class="comm_box2">
        <h4>Currency Settings</h4>
    </div>


<table border="0" width="98%" class="list_table" align="center" cellspacing="1" cellpadding="0">
    <tr class="row_color1">
    <td align="left" width="30%">Price For Making Featured</td>
    <td align="left">
        <input type="text" id="currency" name="nFeatured_Amount" class="comm_input"  value="<?php echo $this->nFeatured_Amount;?>">&nbsp;
        <span class="help"><a  title="This is the fees the user has to pay to make an ad featured"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>

    </tr>
    <tr class="row_color1">
    <td align="left" width="30%">Admin Currency</td>
    <td align="left">
        <!--<input type="text" id="currency" name="currency" class="comm_input"  value="<?php echo $this->currency;?>">&nbsp;-->
        <select name="currency" id="currency">
            <option value="USD" <?php if($this->currency=='USD')echo "selected";?>>$</option>
            <!--<option value="GBP">£</option>
             <option value="EUR">€</option>-->
        </select>
        <span class="help"><a  title="The currency to be displayed on the site could be entered here"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
    </tr>
</table>

<div class="comm_box2">
        <h4>Paypal Settings</h4>
    </div>

<table border="0" width="98%" class="list_table" align="center" cellspacing="1" cellpadding="0">

<tr class="row_color1">
    <td align="left" width="30%">Enabled</td>
    <td align="left"><input id="p_paypal" name="p_paypal" type="checkbox" <?php echo $val= ($this->enablePaypal=='Y') ? 'checked="checked"' : '';?>>&nbsp;
         <span class="help"><a  title="Select the checkbox to enable Paypal"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
<tr class="row_color1">
    <td align="left">PayPal Email</td>
    <td align="left"><input id="p_email" name="p_email" type="text" class="comm_input" value="<?php echo $this->paypalEmail;?>">&nbsp;
         <span class="help"><a  title="Please enter Paypal Email Address"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
<tr class="row_color1">
    <td align="left">Paypal SandBox</td><td align="left"><input id="p_sandbox" name="p_sandbox" type="checkbox" <?php echo $val= ($this->enableSandBox=='Y') ? 'checked="checked"' : '' ;?>>&nbsp;
         <span class="help"><a  title="Select the checkbox to enable Paypal SandBox (Test Mode)"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
<tr class="row_color1">
    <td align="left">PayPal Token</td><td align="left"><input id="p_tocken" name="p_tocken" class="comm_input" type="text" value="<?php echo $this->paypalTocken;?>" size="30">&nbsp;
         <span class="help"><a  title="Provide your payal identity token generated from paypal.com."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>

</tr>
</table>





<div class="comm_box2">
        <h4>Authorize.net Settings</h4>
    </div>

<table border="0" width="98%" class="list_table" align="center" cellspacing="1" cellpadding="0">
    <tr class="row_color1">
        <td align="left" width="30%">Enable</td> <td align="left"><input type="checkbox" id="e_auth" name="e_auth"  <?php echo $val= ($this->authEnable=='Y') ? 'checked="checked"' : '';?>>&nbsp;
             <span class="help"><a  title="Select the checkbox to enable/disable Authorize.net"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
        </td>
</tr>
<tr class="row_color1">
    <td align="left">Merchant Email</td>
    <td align="left"><input id="a_email"  class="comm_input" name="a_email" type="text" value="<?php echo $this->authEmail;?>">&nbsp;
     <span class="help"><a  title="Provide your authorize email id"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
<tr class="row_color1">
    <td align="left">Test Mode</td>
    <td align="left"><input   type="checkbox" name="a_test" <?php echo $val= ($this->authTestMode=='Y') ? 'checked="checked"' : '' ;?>>&nbsp;
     <span class="help"><a  title="Select the checkbox to enable/disable Test Mode"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
<tr class="row_color1">
    <td align="left">Login Id</td>
    <td align="left">
        <input id="a_logid" class="comm_input" name="a_logid" type="text" value="<?php echo $this->authLoginId;?>">&nbsp;
         <span class="help"><a  title="Provide your authorize.net login id."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
<tr class="row_color1">
    <td align="left">Transaction Key</td>
    <td align="left"><input id="a_tkey" class="comm_input" name="a_tkey" type="text" value="<?php echo $this->authtransKey;?>">&nbsp;
         <span class="help"><a  title="Provide your authorize transaction key generated from authorize.net."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
    </td>
</tr>
</table>

    <div class="comm_div" align="center"><br><input type="submit" class="btn_styles" name="Save" value="Save"></div>


</form>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>
<div class="clear"></div>
</div>


