<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>
$(document).ready(function(){
    $(".help a[title]").tooltip();
   // $(".help *").tooltip();
})
</script>
<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" class="selected">General Settings</a></li>
        <?php if(SITE_PAYMENT_MODE=="paid") {?>
	<li><a href="<?php echo ConfigUrl::base();?>index/paymentsettings">Payment Settings</a></li>
        <?php } ?>
        <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">
	
	<!-- Site Settings -->
<form name="frmSettings" method="post" action="" class="settings_tblspace" enctype="multipart/form-data">
    <table border="0" cellpadding="0" cellspacing="0" class="form_tbls"  width="100%">
    <tr>
        <th width="42%" valign="top">License Key : </th>
            <td width="58%"><input type="text" class="txt_area" id="licenseKey"  name="licenseKey" value="<?php echo stripslashes($this->setting['licenseKey']);?>"/>
                <span class="help"><a  title="Your license key is emailed to you after purchase. The license key should be entered here to verify and activate the software"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>
    </tr>
    <tr>
            <th valign="top">Site Name :</th>
            <td><input type="text" class="txt_area" id="siteName" name="siteName" value="<?php echo stripslashes($this->setting['siteName']);?>"/>
              <span class="help"><a  title="Name your site. This name is the website title. This will be visible to users within the browser tab. Try to use keywords describing your site to help visitors understand your page quickly"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top">Site Title :</th>
            <td><input type="text" class="txt_area" id="siteTitle" name="siteTitle" value="<?php echo stripslashes($this->setting['siteTitle']);?>"/>
            <span class="help"><a  title="The contents of this field will appear in several places including the title of the website"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Site Listing Mode :</th>
            <td><?php echo $this->radio('siteListingMode', array('classifieds','product'), $this->setting['siteListingMode'] , 'rdo_btn', array('&nbsp;Classifieds Listing Mode&nbsp;','&nbsp;Product Listing Mode&nbsp;'), array('siteListingMode1','siteListingMode2')) ?>
            <span class="help"><a  title="How do you want your ads to be displayed?"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top">Site Secure URL :</th>
            <td><input type="text" class="txt_area" id="secureURL" name="secureURL" value="<?php echo stripslashes($this->setting['secureURL']);?>"/>
                <span class="help"><a  title="This is for SSL certificates only. This information is provided by your hosting company"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Admin Email :</th>
            <td><input type="text" class="txt_area" id="adminEmail" name="adminEmail" value="<?php echo stripslashes($this->setting['adminEmail']);?>"/>
                <span class="help"><a  title="This is the email where all site notifications, alerts and approvals will be sent."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    
     <tr>
            <th valign="top"> Number Of Records Per Page :</th>
            <td><input type="text" class="txt_area" id="pageListCount" name="pageListCount" value="<?php echo stripslashes($this->setting['pageListCount']);?>"/>
                <span class="help"><a  title="Number of records to be displayed in each page."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
     <tr>
            <th valign="top"> Site Logo :<br>(Ideal size is 150 X 34 or greater.)</th>
            <td>
                <input type="file" class="txt_area" name="siteLogo">
                 <span class="help"><a  title="This is where you can change the logo of the site. Click browse to upload a file saved on your computer"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
                <?php
                $siteLogo=ConfigUrl::imageroot('default').$this->setting['siteLogo'];
                if(is_file($siteLogo)) {
                ?><br>
                <img src="<?php echo ConfigUrl::images('default').$this->setting['siteLogo'];?>?dummy=8484744" alt="siteLogo" />
                <?php
                }
                ?>
               
            </td>

    </tr>
    <tr>
            <th valign="top"> Enable Site Banner :</th>
            <td><?php echo $this->radio('enablesiteBanner', array('Y','N'), $this->setting['enablesiteBanner'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enablesiteBanner1','enablesiteBanner2')) ?>
            <span class="help"><a  title="Do you want to display a custom banner on your site? Enable this function by selecting Yes "><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Site Banner :<br>(Ideal size is 468 X 60 or greater.)</th>
            <td><input type="file" class="txt_area" name="siteBanner">
                <span class="help"><a  title="Upload a file from your computer to add your custom banner"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
                <?php
                $siteBanner=ConfigUrl::imageroot('default').$this->setting['siteBanner'];
                if(is_file($siteBanner)) {
                ?><br><br>
                <img src="<?php echo ConfigUrl::images('default').$this->setting['siteBanner'];?>" alt="siteBanner" width="550" height="100" />
                <?php
                }
                ?>
                
            </td>

    </tr>

      <tr>
            <th valign="top">Banner URL :</th>
            <td>
                <input type="text" class="txt_area" name="banner_link" value="<?php echo $this->setting['banner_link']; ?>">
                <span class="help"><a  title="When users click on the banner, what page will they be directed to? Enter the URL here.Eg http://www.example.com"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>

            </td>

    </tr>
    <tr>
            <th valign="top"> Enable Google AdSense :</th>
            <td><?php echo $this->radio('enableGoogleAdsense', array('Y','N'), $this->setting['enableGoogleAdsense'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableGoogleAdsense1','enableGoogleAdsense2')) ?>
                <span class="help"><a  title="Enable this if you have a Google AdSense account"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Google AdSense Value :</th>
            <td><textarea class="text_area" name="googleAdsense"><?php echo $this->setting['googleAdsense'] ?></textarea>
            <span class="help"><a  title="If you have an AdSense account, enter your code here for analytics purposes"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Site Style :</th>
            <td><?php echo $this->select('siteStyle', $this->theme, $this->setting['siteStyle'], 'dropdwn_menu'); ?>
            <span class="help"><a  title="You may select the color scheme of your site here. Choose one of the preloaded templates to change the look and feel of your site instantly"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>
    </tr>
     <!--<tr>
            <th valign="top"> Listing Mode :</th>
            <td><?php echo $this->radio('listing_mode', array('planbased','nonplanbased'), $this->setting['listing_mode'] , 'rdo_btn', array('&nbsp;Plan&nbspbased&nbsp;','&nbsp;Non-plan&nbspbased&nbsp;'), array('planmode1','planmode2')) ?>
                <span class="help"><a  title="Select mode of listing"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>-->

      <tr>
            <th valign="top"> Site Operation Mode :</th>
            <td><?php echo $this->radio('operationMode', array('paid','free'), $this->setting['operationMode'] , 'rdo_btn', array('&nbsp;Paid&nbsp;','&nbsp;Free&nbsp;'), array('operationMode1','operationMode2')) ?>
                <span class="help"><a  title="Will you charge users to post ads on your site? If so, select plans and then go to the plans section in the main admin menu to create and/or edit them"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
     <tr>
            <th valign="top"> User Approval :</th>
            <td><?php echo $this->radio('userApproval', array('automatic','email','admin'), $this->setting['userApproval'] , 'rdo_btn', array('&nbsp;Automatic Approval&nbsp;','&nbsp;Email Approval&nbsp;','&nbsp;Admin Approval&nbsp;'), array('userApproval1','userApproval2','userApproval3')) ?>
            <span class="help"><a  title="Automatic: User Registration and User post don't need approval from Admin.  Email: Users will be approved through email verification and Each Post Submitted by User will have to  approved from admin main panel.  Admin:  Admin will have  manually approve each posting and each user registration  from  main admin panel"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>
    </tr>
     <!--<tr>
            <th valign="top"> Meta Keywords :</th>
            <td><textarea class="text_area" name="metaKeywords"><?php echo $this->setting['metaKeywords']; ?></textarea>
                <span class="help"><a  title="Meta Keywords, or tags, are additional copy included in your website's HTML.�(1) keep your list of keywords or keyword phrases down to 10 - 15 unique words or phrases; (2) separate the words or phrases using a comma (you do not need to leave a space between words separated by commas); (3) do not repeat words or phrases; (4) put your most important word or phrases at the beginning of your list"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Meta Description :</th>
            <td><textarea class="text_area" name="metaDescription"><?php echo $this->setting['metaDescription']; ?></textarea>
                <span class="help"><a  title="15. The meta description is a meta tag that is used to describe the current Web page. It provides a short summary of the page so that readers can decide whether the page is what they are looking for or looks interesting"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>-->
    
    <tr>
            <th valign="top"> Enable Rating :</th>
            <td><?php echo $this->radio('enableRating', array('Y','N'), $this->setting['enableRating'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableRating1','enableRating2')) ?>
                <span class="help"><a  title="Would you like users to rate listings on your site?"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Enable Comments :</th>
            <td><?php echo $this->radio('enableComments', array('Y','N'), $this->setting['enableComments'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableComments1','enableComments2')) ?>
            <span class="help"><a  title="Would you like users to have the ability to publicly comment on website postings?"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Enable Forum  :</th>
            <td><?php echo $this->radio('enable_forum', array('Y','N'), $this->setting['enable_forum'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableForum1','enableForum2')) ?>
                <span class="help"><a  title="Allow your users to connect with each other with an optional built-in forum"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
     <tr>
            <th valign="top"> Enable Captcha  :</th>
            <td><?php echo $this->radio('enable_captcha', array('Y','N'), $this->setting['enable_captcha'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableCaptcha1','enableCaptcha2')) ?>
                <span class="help"><a  title="A CAPTCHA image shows a random string which the user has to type to submit a form.  Enabling this will ensure the user interacting with your site is a real person"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Enable Facebook Login :</th>
            <td><?php echo $this->radio('enableFb', array('Y','N'), $this->setting['enableFb'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableFb1','enableFb2')) ?>
                <span class="help"><a  title="Would you like your site integrated with Facebook?"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>
    </tr>
    <tr>
            <th valign="top"> Facebook App Id :</th>
            <td><input type="text" class="txt_area" id="faceBookAppId" name="facebookAppId" value="<?php echo stripslashes($this->setting['facebookAppId']);?>"/>
            <span class="help"><a  title="To use the Facebook plugin, enter the Facebook Application ID/API. Leave this empty if your site doesn't require the plugin"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Facebook App Secret :</th>
            <td><input type="text" class="txt_area" id="facebookSecret" name="facebookSecret" value="<?php echo stripslashes($this->setting['facebookSecret']);?>"/>
                <span class="help"><a  title="A Facebook Application Secret is need to connect to the Facebook plugin. Leave this empty if your site doesn't require this."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
<?php 
    $x=phpversion();
    $x=explode('-', $x);
    if(version_compare(phpversion(), "5.3.0", ">=")): 
?>
    <tr>
            <th valign="top"> Enable Twitter Login :</th>
            <td><?php echo $this->radio('enableTwitter', array('Y','N'), $this->setting['enableTwitter'] , 'rdo_btn', array('&nbsp;Yes&nbsp;','&nbsp;No&nbsp;'), array('enableTwitter1','enableTwitter2')) ?>
                <span class="help"><a  title="Enable this to integrate your site with Twitter?"><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Twitter Consumer Key :</th>
            <td><input type="text" class="txt_area" id="twitterConsumerKey" name="twitterConsumerKey" value="<?php echo stripslashes($this->setting['twitterConsumerKey']);?>"/>
            <span class="help"><a  title="To use the Twitter plugin, enter the Twitter Consumer Key. Leave this empty if your site doesn't require the plugin."><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
    <tr>
            <th valign="top"> Twitter Consumer Secret :</th>
            <td><input type="text" class="txt_area" id="twitterConsumerSecret" name="twitterConsumerSecret" value="<?php echo stripslashes($this->setting['twitterConsumerSecret']);?>"/>
            <span class="help"><a  title="A Twitter Application Secret is used to connect to the Twitter plugin.  Leave this empty if your site doesn't require the plugin. "><img src="<?php echo ConfigUrl::images('default')?>question_mark.jpg" border="0" height="15"></a></span>
            </td>

    </tr>
<?php endif; ?>
    <tr>
            <th valign="top"> Recaptcha Public Key :</th>
            <td><input type="text" class="txt_area" id="recaptchaPublicKey" name="recaptchaPublicKey" value="<?php echo stripslashes($this->setting['recaptchaPublicKey']);?>"/>
                
            <br>Please provide recaptcha public key if you have any, <br>else the default key will function
            </td>

    </tr>
    <tr>
            <th valign="top"> Recaptcha Private Key :</th>
            <td><input type="text" class="txt_area" id="recaptchaPrivateKey" name="recaptchaPrivateKey" value="<?php echo stripslashes($this->setting['recaptchaPrivateKey']);?>"/>
                
            <br>Please provide recaptcha private key if you have any, <br>else the default key will function
            </td>

    </tr>
    <tr>
    <th>&nbsp;</th>
    <td valign="top">
            <input type="submit"  value="Save"  name="submit" class="btn_styles"/>
    </td>
    </tr>
    </table>
  </form>
	
	</div>
<div class="clear"></div>
</div>



	</div>