<?php echo $header; ?>
<?php $currenttemplate =  $this->config->get('config_template'); ?>

<link rel="stylesheet" type="text/css" href="../catalog/view/theme/<?=$currenttemplate?>/stylesheet/icustomfooter.css" />
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script> 
<div id="content">
<div class="breadcrumb">
  <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  <?php } ?>
</div>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
<div class="box">
  <div class="heading">
    <h1><img src="view/image/imodules.png" style="margin-top: -3px;" alt="" /> <span class="iModulesTitle"><?php echo $heading_title; ?></span>
    <ul class="iModuleAdminSuperMenu">
    	<?php $i=0; ?>
    	<?php foreach ($systemlanguages as $lang): $i++; ?>
    	<li class="<?=($i==1) ? 'selected' : ''?>"><?=$footercustomization?> <em style="font-weight: normal;">(<?=$lang['code']?>)</em></li>
        <?php endforeach; ?>
        <li><?=$supportandsettings?></li>
    </ul>
    </h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
  </div>
  	
  	<ul class="iModuleAdminSuperWrappers">
    	<?php foreach ($systemlanguages as $lang):?>
        <?php $langCode = (empty($data[$lang['code']])) ? 'en' : $lang['code']; ?>
    	<!-- START CUSTOMIZATION SUPERWRAPPER -->
    	<li>
            <ul class="iModuleAdminMenu">
                <li class="selected"><?=$aboutus?></li>
                <li><?=$contactus?></li>
                <li><?=$googlemaps?></li>
                <li><?=$contactform?></li>
                <li><?=$twitter?></li>
                <li><?=$facebook?></li>
                <li><?=$youtube?></li>
                <li><?=$customcolumn?></li>
                <li><?=$socialbuttons?></li>
            </ul>
            <div class="content">
                <ul class="iModuleAdminWrappers">
                    <li>
                        <div class="iModuleWrapperTitle"><?=$aboutus?></div>
                        <div class="iModuleFields">
                            <label for="AboutUsShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][AboutUs][Show]" id="AboutUsShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['AboutUs']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['AboutUs']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="AboutUsTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="AboutUsTitle" name="data[<?=$lang['code']?>][Widgets][AboutUs][Title]" value="<?=$data[$langCode]['Widgets']['AboutUs']['Title']?>" />
                             <hr />
                            <label for="AboutUsText"><?=$aboutus_text?></label>
                            <textarea name="data[<?=$lang['code']?>][Widgets][AboutUs][Text]" class="editable"><?=$data[$langCode]['Widgets']['AboutUs']['Text']?></textarea>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$contactus?></div>
                        <div class="iModuleFields">
                            <label for="ContactsShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][Contacts][Show]" id="ContactsShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['Contacts']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['Contacts']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="ContactsIconSet"><?=$contactus_iconset?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][Contacts][IconSet]" id="ContactsIconSet">
                                <option value="" <?=($data[$langCode]['Widgets']['Contacts']['IconSet']=='') ? 'selected=selected' : '';?>><?=$defaultforthefooter?></option>
                                <option value="" disabled="disabled">- - -</option>
                                <option value="whiteicons" <?=($data[$langCode]['Widgets']['Contacts']['IconSet']=='whiteicons') ? 'selected=selected' : '';?>><?=$whiteicons?></option>
                                <option value="blueicons" <?=($data[$langCode]['Widgets']['Contacts']['IconSet']=='blueicons') ? 'selected=selected' : '';?>><?=$blueicons?></option>
                                <option value="greenicons" <?=($data[$langCode]['Widgets']['Contacts']['IconSet']=='greenicons') ? 'selected=selected' : '';?>><?=$greenicons?></option>
                            </select>
                            <hr />
                            <label for="ContactsTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="ContactsTitle" name="data[<?=$lang['code']?>][Widgets][Contacts][Title]" value="<?=$data[$langCode]['Widgets']['Contacts']['Title']?>" />
                             <hr />
                            <label for="ContactsText"><?=$contactus_text?></label>
                            <textarea name="data[<?=$lang['code']?>][Widgets][Contacts][Text]" class="editable"><?=$data[$langCode]['Widgets']['Contacts']['Text']?></textarea>
                            <div class="clearfix"></div>
                            <hr />
                            <label for="ContactsAddress1"><?=$contactus_address?> 1</label>
                            <input type="text" id="ContactsAddress1" name="data[<?=$lang['code']?>][Widgets][Contacts][Address1]" value="<?=$data[$langCode]['Widgets']['Contacts']['Address1']?>" />
                            <hr />
                            <label for="ContactsAddress2"><?=$contactus_address?> 2</label>
                            <input type="text" id="ContactsAddress2" name="data[<?=$lang['code']?>][Widgets][Contacts][Address2]" value="<?=$data[$langCode]['Widgets']['Contacts']['Address2']?>" />
                            <hr />
                            <label for="ContactsPhone1"><?=$contactus_phone?> 1</label>
                            <input type="text" id="ContactsPhone1" name="data[<?=$lang['code']?>][Widgets][Contacts][Phone1]" value="<?=$data[$langCode]['Widgets']['Contacts']['Phone1']?>" />
                            <hr />
                            <label for="ContactsPhone2"><?=$contactus_phone?> 2</label>
                            <input type="text" id="ContactsPhone2" name="data[<?=$lang['code']?>][Widgets][Contacts][Phone2]" value="<?=$data[$langCode]['Widgets']['Contacts']['Phone2']?>" />
                            <hr />
                            <label for="ContactsFax1"><?=$contactus_fax?> 1</label>
                            <input type="text" id="ContactsFax1" name="data[<?=$lang['code']?>][Widgets][Contacts][Fax1]" value="<?=$data[$langCode]['Widgets']['Contacts']['Fax1']?>" />
                            <hr />
                            <label for="ContactsFax2"><?=$contactus_fax?> 2</label>
                            <input type="text" id="ContactsFax2" name="data[<?=$lang['code']?>][Widgets][Contacts][Fax2]" value="<?=$data[$langCode]['Widgets']['Contacts']['Fax2']?>" />
                            <hr />
                            <label for="ContactsEmail1"><?=$contactus_email?> 1</label>
                            <input type="text" id="ContactsEmail1" name="data[<?=$lang['code']?>][Widgets][Contacts][Email1]" value="<?=$data[$langCode]['Widgets']['Contacts']['Email1']?>" />
                            <hr />
                            <label for="ContactsEmail2"><?=$contactus_email?> 2</label>
                            <input type="text" id="ContactsEmail2" name="data[<?=$lang['code']?>][Widgets][Contacts][Email2]" value="<?=$data[$langCode]['Widgets']['Contacts']['Email2']?>" />
                            <hr />
                            <label for="ContactsSkype1"><?=$contactus_skype?> 1</label>
                            <input type="text" id="ContactsSkype1" name="data[<?=$lang['code']?>][Widgets][Contacts][Skype1]" value="<?=$data[$langCode]['Widgets']['Contacts']['Skype1']?>" />
                            <hr />
                            <label for="ContactsSkype2"><?=$contactus_skype?> 2</label>
                            <input type="text" id="ContactsSkype2" name="data[<?=$lang['code']?>][Widgets][Contacts][Skype2]" value="<?=$data[$langCode]['Widgets']['Contacts']['Skype2']?>" />
                            <div class="clearfix"></div>
                        </div>
                    </li>
                   <li>
                        <div class="iModuleWrapperTitle"><?=$googlemaps?></div>
                        <div class="iModuleFields iModuleFieldsLanguage<?=$lang['code']?>">
                            <label for="GoogleMapsShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][GoogleMaps][Show]" id="GoogleMapsShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['GoogleMaps']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['GoogleMaps']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="GoogleMapsTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="GoogleMapsTitle" name="data[<?=$lang['code']?>][Widgets][GoogleMaps][Title]" value="<?=$data[$langCode]['Widgets']['GoogleMaps']['Title']?>" />
                             <hr />
                            <label for="GoogleMapsLongitude"><?=$maps_longlat?></label>
                            <input type="text" class="GoogleMapsLongitude semiField" name="data[<?=$lang['code']?>][Widgets][GoogleMaps][Longitude]" value="<?=$data[$langCode]['Widgets']['GoogleMaps']['Longitude']?>" />
                            <input type="text" class="GoogleMapsLatitude semiField" name="data[<?=$lang['code']?>][Widgets][GoogleMaps][Latitude]" value="<?=$data[$langCode]['Widgets']['GoogleMaps']['Latitude']?>" />
                            <input type="button" class="GoogleMapsPreviewButton" value="<?=$preview?>" />
                            <textarea name="data[<?=$lang['code']?>][Widgets][GoogleMaps][Code]" id="GoogleMapsCode" class="GoogleMapsCode" style="display:none"><?=$data[$langCode]['Widgets']['GoogleMaps']['Code']?></textarea>
                            <hr />
                            <label for="GoogleMapsPreviewDiv"><?=$maps_preview?></label>
                            <div class="GoogleMapsPreviewDiv"></div>
                            <div class="clearfix"></div>
                        </div>
                        <script>
						var mapsCode = '<iframe width="210" height="210" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?ie=UTF8&amp;hq=&amp;t=m&amp;ll=lon,lat&amp;spn=0.020044,0.025749&amp;z=15&amp;output=embed"></iframe>';
                        $('.GoogleMapsPreviewButton').click(function() {
							positionMap($('.GoogleMapsLongitude', $(this).parents('.iModuleFields')).val(),$('.GoogleMapsLatitude', $(this).parents('.iModuleFields')).val(), $(this).parents('.iModuleFields'));
						});
						
						var positionMap = function(lon,lat,context) {
							var newCode = mapsCode.replace('lon', lon);
							newCode = newCode.replace('lat', lat);
							$('.GoogleMapsPreviewDiv', $(context)).html('').html(newCode);
							$('.GoogleMapsCode',$(context)).html('').html(newCode);
						}
						positionMap($('#GoogleMapsLongitude').val(),$('#GoogleMapsLatitude').val(), $(".iModuleFieldsLanguage<?=$lang['code']?>"));
                        </script>
                        
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$contactform?></div>
                        <div class="iModuleFields">
                            <label for="ContactFormShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][ContactForm][Show]" id="ContactFormShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['ContactForm']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['ContactForm']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="ContactFormTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="ContactFormTitle" name="data[<?=$lang['code']?>][Widgets][ContactForm][Title]" value="<?=$data[$langCode]['Widgets']['ContactForm']['Title']?>" />
                             <hr />
                            <label for="ContactFormEmail"><?=$contactform_sendemailsto?></label>
                            <input type="text" id="ContactFormEmail" name="data[<?=$lang['code']?>][Widgets][ContactForm][Email]" value="<?=$data[$langCode]['Widgets']['ContactForm']['Email']?>" />

                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$twitter?></div>
                        <div class="iModuleFields">
                            <label for="TwitterShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][Twitter][Show]" id="TwitterShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['Twitter']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['Twitter']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="TwitterNumberOfTweets"><?=$twitter_numberoftweets?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][Twitter][NumberOfTweets]" id="TwitterNumberOfTweets">
                                <option value="1" <?=($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='1') ? 'selected=selected' : '';?>>1</option>
                                <option value="2" <?=($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='2') ? 'selected=selected' : '';?>>2</option>
                                <option value="3" <?=($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='3') ? 'selected=selected' : '';?>>3</option>
                                <option value="4" <?=($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='4') ? 'selected=selected' : '';?>>4</option>
                            </select>
                            <hr />
                            <label for="TwitterTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="TwitterTitle" name="data[<?=$lang['code']?>][Widgets][Twitter][Title]" value="<?=$data[$langCode]['Widgets']['Twitter']['Title']?>" />
                             <hr />
                            <label for="TwitterKeyword"><?=$twitter_keyword?></label>
                            <input type="text" id="TwitterKeyword" name="data[<?=$lang['code']?>][Widgets][Twitter][Keyword]" value="<?=$data[$langCode]['Widgets']['Twitter']['Keyword']?>" />
        
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$facebook?></div>
                        <div class="iModuleFields">
                            <label for="FacebookShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][Facebook][Show]" id="FacebookShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['Facebook']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['Facebook']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="FacebookTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="FacebookTitle" name="data[<?=$lang['code']?>][Widgets][Facebook][Title]" value="<?=$data[$langCode]['Widgets']['Facebook']['Title']?>" />
                             <hr />
                            <label for="FacebookURL"><?=$facebook_pageurl?></label>
                            <input type="text" id="FacebookURL" name="data[<?=$lang['code']?>][Widgets][Facebook][URL]" value="<?=$data[$langCode]['Widgets']['Facebook']['URL']?>" />
                            <hr />
                            <label for="FacebookHeight"><?=$facebook_widgetheight?></label>
                            <input type="text" id="FacebookHeight" name="data[<?=$lang['code']?>][Widgets][Facebook][Height]" value="<?=@$data[$langCode]['Widgets']['Facebook']['Height']?>" />

                        </div>
                    </li>
                    <li>            	
                    <div class="iModuleWrapperTitle"><?=$youtube?></div>
                        <div class="iModuleFields">
                            <label for="YouTubeShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][YouTube][Show]" id="YouTubeShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['YouTube']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['YouTube']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="YouTubeTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="YouTubeTitle" name="data[<?=$lang['code']?>][Widgets][YouTube][Title]" value="<?=@$data[$langCode]['Widgets']['YouTube']['Title']?>" />
                             <hr />
                            <label for="YouTubeURL"><?=$youtube_url?></label>
                            <input type="text" id="YouTubeURL" name="data[<?=$lang['code']?>][Widgets][YouTube][URL]" value="<?=@$data[$langCode]['Widgets']['YouTube']['URL']?>" />
                            <hr />
                            <label for="YouTubeWidth"><?=$youtube_width?></label>
                            <input type="text" id="YouTubeWidth" name="data[<?=$lang['code']?>][Widgets][YouTube][Width]" value="<?=@$data[$langCode]['Widgets']['YouTube']['Width']?>" />
                            <hr />
                            <label for="YouTubeHeight"><?=$youtube_height?></label>
                            <input type="text" id="YouTubeHeight" name="data[<?=$lang['code']?>][Widgets][YouTube][Height]" value="<?=@$data[$langCode]['Widgets']['YouTube']['Height']?>" />
        
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$customcolumn?></div>
                        <div class="iModuleFields">
                            <label for="CustomShow"><?=$showcolumn?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][Custom][Show]" id="CustomShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['Custom']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['Custom']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="CustomTitle"><?=$titleofthecolumn?></label>
                            <input type="text" id="CustomTitle" name="data[<?=$lang['code']?>][Widgets][Custom][Title]" value="<?=$data[$langCode]['Widgets']['Custom']['Title']?>" />
                             <hr />
                            <label for="CustomText"><?=$custom_text?></label>
                            <textarea class="editable" name="data[<?=$lang['code']?>][Widgets][Custom][Text]"><?=$data[$langCode]['Widgets']['Custom']['Text']?></textarea>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$socialbuttons?></div>
                        <div class="iModuleFields">
                            <label for="ButtonsShow"><?=$showsocialbuttons?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][SocialButtons][Show]" id="ButtonsShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['SocialButtons']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['SocialButtons']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <hr />
                            <label for="FacebookLikeShow"><?=$facebooklikebutton?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][SocialButtons][FacebookLike][Show]" id="FacebookLikeShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['SocialButtons']['FacebookLike']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['SocialButtons']['FacebookLike']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                             <hr />
                            <label for="PinterestPinShow"><?=$pinterestpin?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][SocialButtons][PinterestPin][Show]" id="PinterestPinShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['SocialButtons']['PinterestPin']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['SocialButtons']['PinterestPin']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                             <hr />
                            <label for="GooglePlusShow"><?=$googleplusbutton?></label>
                            <select name="data[<?=$lang['code']?>][Widgets][SocialButtons][GooglePlus][Show]" id="GooglePlusShow">
                                <option value="true" <?=($data[$langCode]['Widgets']['SocialButtons']['GooglePlus']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data[$langCode]['Widgets']['SocialButtons']['GooglePlus']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                </ul>
            
            </div>

        </li>
        <!-- END CUSTOMIZATION SUPERWRAPPER -->
        <?php endforeach; ?>
    	<li>
            <ul class="iModuleAdminMenu">
                <li class="selected"><?=$assistance?></li>
                <li><?=$globalsettings?></li>
            </ul>
            <div class="content">
                <ul class="iModuleAdminWrappers">
                    <li>
                        <div class="iModuleWrapperTitle"><h2><?=$assistancetitle?></h2></div>
                        <div class="iModuleFields">
  							<?=$assistancetext?>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?=$globalsettings?></div>
                        <div class="iModuleFields">
                            <label for="SettingsShow"><?=$showcustomfooter?></label>
                            <select name="data[Settings][Show]" id="SettingsShow">
                                <option value="true" <?=($data['Settings']['Show']=='true') ? 'selected=selected' : '';?>><?=$yes?></option>
                                <option value="false" <?=($data['Settings']['Show']=='false') ? 'selected=selected' : '';?>><?=$no?></option>
                            </select>                            
                            <hr />
                            <label for="SettingsFooterWidth"><?=$footerwidth?></label>
                            <input type="text" id="SettingsFooterWidth" name="data[Settings][FooterWidth]" value="<?=$data['Settings']['FooterWidth']?>" />
                            <hr />
                            <label for="SettingsHideOriginalFooter"><?=$hideoriginalfooter?></label>
                            <select name="data[Settings][HideOriginalFooter]" id="SettingsHideOriginalFooter">
                                <option value="" <?=($data['Settings']['HideOriginalFooter']=='') ? 'selected=selected' : '';?>><?=$no?></option>
                                <option value="display:none;" <?=($data['Settings']['HideOriginalFooter']=='display:none;') ? 'selected=selected' : '';?>><?=$yes?></option>
                            </select>
                            <hr />
                            <label for="SettingsHidePoweredBy"><?=$hidepoweredby?></label>
                            <select name="data[Settings][HidePoweredBy]" id="SettingsHidePoweredBy">
                                <option value="" <?=($data['Settings']['HidePoweredBy']=='') ? 'selected=selected' : '';?>><?=$no?></option>
                                <option value="display:none;" <?=($data['Settings']['HidePoweredBy']=='display:none;') ? 'selected=selected' : '';?>><?=$yes?></option>
                            </select>
                            <hr />
                            <label for="SettingsFontFamily"><?=$footerfontfamily?></label>
                            <select name="data[Settings][FontFamily]" id="SettingsFontFamily">
                                <option value="fontfamilyinherit" <?=($data['Settings']['FontFamily']=='fontfamilyinherit') ? 'selected=selected' : '';?>><?=$defaultfont?></option>
                                <option value="fontfamilyarialhelvetica" <?=($data['Settings']['FontFamily']=='fontfamilyarialhelvetica') ? 'selected=selected' : '';?>>Arial, Helvetica</option>
                                <option value="fontfamilygeorgiatimesnewroman" <?=($data['Settings']['FontFamily']=='fontfamilygeorgiatimesnewroman') ? 'selected=selected' : '';?>>Georgia, Times New Roman</option>
                                <option value="fontfamilytrebuchetms" <?=($data['Settings']['FontFamily']=='fontfamilytrebuchetms') ? 'selected=selected' : '';?>>Trebuchet MS</option>
                            </select>
                            <hr />
                            <label for="SettingsBackgroundPattern"><?=$footerbackgroundstyle?></label>
                            <select name="data[Settings][BackgroundPattern]" id="SettingsBackgroundPattern">
                                <option value="whitebgpattern" <?=($data['Settings']['BackgroundPattern']=='whitebgpattern') ? 'selected=selected' : '';?>><?=$white?></option>
                                <option value="darkbgpattern" <?=($data['Settings']['BackgroundPattern']=='darkbgpattern') ? 'selected=selected' : '';?>><?=$dark?></option>
                            </select>
                            <hr />
                            <label for="SettingsColumnContentOverflow"><?=$whencontentoverflows?></label>
                            <select name="data[Settings][ColumnContentOverflow]" id="SettingsColumnContentOverflow">
                                <option value="overflowhidden" <?=($data['Settings']['ColumnContentOverflow']=='overflowhidden') ? 'selected=selected' : '';?>><?=$hidewhatunfits?></option>
                                <option value="overflowauto" <?=($data['Settings']['ColumnContentOverflow']=='overflowauto') ? 'selected=selected' : '';?>><?=$showscrollers?></option>
                            </select>
                            <hr />
                            <label for="SettingsColumnHeight"><?=$columnheight?></label>
                            <input type="text" id="SettingsColumnHeight" name="data[Settings][ColumnHeight]" value="<?=$data['Settings']['ColumnHeight']?>" />
                            <hr />
                            <label for="SettingsColumnColor"><?=$columntitlecolor?></label>
                            <input type="text" id="SettingsColumnColor" name="data[Settings][ColumnColor]" value="<?=$data['Settings']['ColumnColor']?>" />
                            <hr />
                            <label for="SettingsColumnLineStyle"><?=$columnlinestyle?></label>
                            <select name="data[Settings][ColumnLineStyle]" id="SettingsColumnLineStyle">
                                <option value="dotted" <?=($data['Settings']['ColumnLineStyle']=='dotted') ? 'selected=selected' : '';?>><?=$dotted?></option>
                                <option value="dashed" <?=($data['Settings']['ColumnLineStyle']=='dashed') ? 'selected=selected' : '';?>><?=$dashed?></option>
                                <option value="solid" <?=($data['Settings']['ColumnLineStyle']=='solid') ? 'selected=selected' : '';?>><?=$solid?></option>
                                <option value="double" <?=($data['Settings']['ColumnLineStyle']=='double') ? 'selected=selected' : '';?>><?=$double?></option>
                                <option value="groove" <?=($data['Settings']['ColumnLineStyle']=='groove') ? 'selected=selected' : '';?>><?=$groove?></option>
                                <option value="ridge" <?=($data['Settings']['ColumnLineStyle']=='ridge') ? 'selected=selected' : '';?>><?=$ridge?></option>
                                <option value="inset" <?=($data['Settings']['ColumnLineStyle']=='inset') ? 'selected=selected' : '';?>><?=$inset?></option>
                                <option value="outset" <?=($data['Settings']['ColumnLineStyle']=='outset') ? 'selected=selected' : '';?>><?=$outset?></option>
                                <option value="none" <?=($data['Settings']['ColumnLineStyle']=='none') ? 'selected=selected' : '';?>><?=$noline?></option>
                            </select>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                </ul>
            
            </div>

    	</li>

    </ul>
</div>
</form>
<script>
$('.iModuleAdminMenu li').click(function() {
	$('.iModuleAdminMenu li',$(this).parents('li')).removeClass('selected');
	$(this).addClass('selected');
	$($('.iModuleAdminWrappers li',$(this).parents('li')).hide().get($(this).index())).fadeIn(200);
});

$('.iModuleAdminSuperMenu li').click(function() {
	$('.iModuleAdminSuperMenu > li',$(this).parents('h1')).removeClass('selected');
	$(this).addClass('selected');
	$($('.iModuleAdminSuperWrappers > li',$(this).parents('#content')).hide().get($(this).index())).fadeIn(200);
});


</script>
<script type="text/javascript">
var toolbars = [
		['Save','Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker','-','Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		'/',
		['Font','FontSize','Bold','Italic','Underline','NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],['Link','Unlink','Anchor','Source'],
	];
CKEDITOR.replaceAll('editable', {
	filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $_GET["token"]; ?>',
	filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $_GET["token"]; ?>',
	filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $_GET["token"]; ?>',
	filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $_GET["token"]; ?>',
	filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $_GET["token"]; ?>',
	filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $_GET["token"]; ?>',
	width: '600',
	height: '150',
	toolbar : toolbars
	
});


</script>
<?php echo $footer; ?>