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

<link rel="stylesheet" type="text/css" href="../catalog/view/theme/<?php echo $currenttemplate?>/stylesheet/icustomfooter.css" />
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script> 
<script type="text/javascript" src="view/template/module/icustomfooter/icustomfooter.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="<?php echo ($i==1) ? 'selected' : ''?>"><?php echo $footercustomization?> <span style="font-weight: normal; text-transform:uppercase"><?php echo $lang['code']?></span></li>
        <?php endforeach; ?>
        <li><?php echo $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"><?php echo $aboutus?></li>
                <li><?php echo $contactus?></li>
                <li onclick="$('.GoogleMapsPreviewButton').click();"><?php echo $googlemaps?></li>
                <li><?php echo $contactform?></li>
                <li><?php echo $twitter?></li>
                <li><?php echo $facebook?></li>
                <li><?php echo $youtube?></li>
                <li><?php echo $customcolumn?> 1</li>
                <li><?php echo $customcolumn?> 2</li>
                <li><?php echo $customcolumn?> 3</li>
                <li><?php echo $customcolumn?> 4</li>
                <li><?php echo $customcolumn?> 5</li>
                <li><?php echo $socialbuttons?></li>
                <li>Payment Icons</li>
            </ul>
            <div class="content">
                <ul class="iModuleAdminWrappers">
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $aboutus?></div>
                        <div class="iModuleFields">
                            <label for="AboutUsShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][AboutUs][Show]" id="AboutUsShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['AboutUs']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['AboutUs']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                            <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][aboutus]" value="<?php echo $data[$langCode]['Positions']['aboutus']?>" />
                             <hr />
                            <label for="AboutUsTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="AboutUsTitle" name="data[<?php echo $lang['code']?>][Widgets][AboutUs][Title]" value="<?php echo $data[$langCode]['Widgets']['AboutUs']['Title']?>" />
                            <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="AboutUsText"><?php echo $aboutus_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea name="data[<?php echo $lang['code']?>][Widgets][AboutUs][Text]" class="editable"><?php echo $data[$langCode]['Widgets']['AboutUs']['Text']?></textarea>
                            </td></tr>
                            </table>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $contactus?></div>
                        <div class="iModuleFields">
                            <label for="ContactsShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Contacts][Show]" id="ContactsShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Contacts']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Contacts']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                            <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][contacts]" value="<?php echo $data[$langCode]['Positions']['contacts']?>" />
                             <hr />
                            <label for="ContactsIconSet"><?php echo $contactus_iconset?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Contacts][IconSet]" id="ContactsIconSet">
                                <option value="" <?php echo ($data[$langCode]['Widgets']['Contacts']['IconSet']=='') ? 'selected=selected' : '';?>><?php echo $defaultforthefooter?></option>
                                <option value="" disabled="disabled">- - -</option>
                                <option value="whiteicons" <?php echo ($data[$langCode]['Widgets']['Contacts']['IconSet']=='whiteicons') ? 'selected=selected' : '';?>><?php echo $whiteicons?></option>
                                <option value="blueicons" <?php echo ($data[$langCode]['Widgets']['Contacts']['IconSet']=='blueicons') ? 'selected=selected' : '';?>><?php echo $blueicons?></option>
                                <option value="greenicons" <?php echo ($data[$langCode]['Widgets']['Contacts']['IconSet']=='greenicons') ? 'selected=selected' : '';?>><?php echo $greenicons?></option>
                            </select>
                            <hr />
                            <label for="ContactsTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="ContactsTitle" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Title]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Title']?>" />
                             <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="ContactsText"><?php echo $contactus_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea name="data[<?php echo $lang['code']?>][Widgets][Contacts][Text]" class="editable"><?php echo $data[$langCode]['Widgets']['Contacts']['Text']?></textarea>
                            </td></tr>
							</table>
                            <div class="clearfix"></div>
                            <hr />
                            <label for="ContactsAddress1"><?php echo $contactus_address?> 1</label>
                            <input type="text" id="ContactsAddress1" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Address1]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Address1']?>" />
                            <hr />
                            <label for="ContactsAddress2"><?php echo $contactus_address?> 2</label>
                            <input type="text" id="ContactsAddress2" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Address2]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Address2']?>" />
                            <hr />
                            <label for="ContactsPhone1"><?php echo $contactus_phone?> 1</label>
                            <input type="text" id="ContactsPhone1" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Phone1]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Phone1']?>" />
                            <hr />
                            <label for="ContactsPhone2"><?php echo $contactus_phone?> 2</label>
                            <input type="text" id="ContactsPhone2" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Phone2]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Phone2']?>" />
                            <hr />
                            <label for="ContactsFax1"><?php echo $contactus_fax?> 1</label>
                            <input type="text" id="ContactsFax1" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Fax1]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Fax1']?>" />
                            <hr />
                            <label for="ContactsFax2"><?php echo $contactus_fax?> 2</label>
                            <input type="text" id="ContactsFax2" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Fax2]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Fax2']?>" />
                            <hr />
                            <label for="ContactsEmail1"><?php echo $contactus_email?> 1</label>
                            <input type="text" id="ContactsEmail1" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Email1]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Email1']?>" />
                            <hr />
                            <label for="ContactsEmail2"><?php echo $contactus_email?> 2</label>
                            <input type="text" id="ContactsEmail2" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Email2]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Email2']?>" />
                            <hr />
                            <label for="ContactsSkype1"><?php echo $contactus_skype?> 1</label>
                            <input type="text" id="ContactsSkype1" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Skype1]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Skype1']?>" />
                            <hr />
                            <label for="ContactsSkype2"><?php echo $contactus_skype?> 2</label>
                            <input type="text" id="ContactsSkype2" name="data[<?php echo $lang['code']?>][Widgets][Contacts][Skype2]" value="<?php echo $data[$langCode]['Widgets']['Contacts']['Skype2']?>" />
                            <div class="clearfix"></div>
                        </div>
                    </li>
                   <li>
                        <div class="iModuleWrapperTitle"><?php echo $googlemaps?></div>
                        <div class="iModuleFields iModuleFieldsLanguage<?php echo $lang['code']?>">
                            <label for="GoogleMapsShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][GoogleMaps][Show]" id="GoogleMapsShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['GoogleMaps']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['GoogleMaps']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                            <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][googlemaps]" value="<?php echo $data[$langCode]['Positions']['googlemaps']?>" />
                             <hr />
                            <label for="GoogleMapsTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="GoogleMapsTitle" name="data[<?php echo $lang['code']?>][Widgets][GoogleMaps][Title]" value="<?php echo $data[$langCode]['Widgets']['GoogleMaps']['Title']?>" />
                             <hr />
                            <label for="GoogleMapsLongitude"><?php echo $maps_longlat?></label>
                            <input type="text" class="GoogleMapsLongitude semiField" name="data[<?php echo $lang['code']?>][Widgets][GoogleMaps][Longitude]" value="<?php echo $data[$langCode]['Widgets']['GoogleMaps']['Longitude']?>" />
                            <input type="text" class="GoogleMapsLatitude semiField" name="data[<?php echo $lang['code']?>][Widgets][GoogleMaps][Latitude]" value="<?php echo $data[$langCode]['Widgets']['GoogleMaps']['Latitude']?>" />
                            <input type="button" class="GoogleMapsPreviewButton" value="<?php echo $preview?>" />
                            <textarea name="data[<?php echo $lang['code']?>][Widgets][GoogleMaps][Code]" id="GoogleMapsCode" class="GoogleMapsCode" style="display:none"><?php echo $data[$langCode]['Widgets']['GoogleMaps']['Code']?></textarea>
                            <hr />
                            <label for="GoogleMapsPreviewDiv"><?php echo $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=lat,lon&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);
						}
                        </script>
                        
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $contactform?></div>
                        <div class="iModuleFields">
                            <label for="ContactFormShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][ContactForm][Show]" id="ContactFormShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['ContactForm']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['ContactForm']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                            <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][contactform]" value="<?php echo $data[$langCode]['Positions']['contactform']?>" />
                             <hr />
                            <label for="ContactFormUseCaptcha">CAPTCHA Spam Protection</label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][ContactForm][UseCaptcha]" id="ContactFormUseCaptcha">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['ContactForm']['UseCaptcha']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['ContactForm']['UseCaptcha']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                            <label for="ContactFormTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="ContactFormTitle" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][Title]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['Title']?>" />
                             <hr />
                            <label for="ContactFormEmail"><?php echo $contactform_sendemailsto?></label>
                            <input type="text" id="ContactFormEmail" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][Email]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['Email']?>" />
                             <hr />
                            <label for="ContactFormEmailSubject">Email Subject</label>
                            <input type="text" id="ContactFormEmailSubject" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][EmailSubject]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['EmailSubject']?>" />
                             <hr />
                            <label for="ContactFormLabelName">Name box label</label>
                            <input type="text" id="ContactFormLabelName" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelName]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelName']?>" />
                             <hr />
                            <label for="ContactFormLabelEmail">Email box label</label>
                            <input type="text" id="ContactFormLabelEmail" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelEmail]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelEmail']?>" />
                             <hr />
                            <label for="ContactFormLabelMessage">Message box label</label>
                            <input type="text" id="ContactFormLabelMessage" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelMessage]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelMessage']?>" />
                             <hr />
                            <label for="ContactFormLabelCaptcha">CAPTCHA box label</label>
                            <input type="text" id="ContactFormLabelCaptcha" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelCaptcha]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelCaptcha']?>" />
                             <hr />
                            <label for="ContactFormLabelSend">Send button label</label>
                            <input type="text" id="ContactFormLabelSend" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelSend]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelSend']?>" />
                             <hr />
                            <label for="ContactFormLabelSuccess">Successful sent message</label>
                            <input type="text" id="ContactFormLabelSuccess" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelSuccess]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelSuccess']?>" />
                             <hr />
                            <label for="ContactFormLabelRequired">Required field message</label>
                            <input type="text" id="ContactFormLabelRequired" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelRequired]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelRequired']?>" />
                             <hr />
                            <label for="ContactFormLabelNotValid">Not valid message</label>
                            <input type="text" id="ContactFormLabelNotValid" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelNotValid]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelNotValid']?>" />
                             <hr />
                            <label for="ContactFormLabelInvalidCaptcha">Not valid CAPTCHA</label>
                            <input type="text" id="ContactFormLabelInvalidCaptcha" name="data[<?php echo $lang['code']?>][Widgets][ContactForm][LabelInvalidCaptcha]" value="<?php echo $data[$langCode]['Widgets']['ContactForm']['LabelInvalidCaptcha']?>" />
                            
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $twitter?></div>
                        <div class="iModuleFields">
                            <label for="TwitterShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Twitter][Show]" id="TwitterShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Twitter']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Twitter']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][twitter]" value="<?php echo $data[$langCode]['Positions']['twitter']?>" />
                             <hr />
                           <label for="TwitterNumberOfTweets"><?php echo $twitter_numberoftweets?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Twitter][NumberOfTweets]" id="TwitterNumberOfTweets">
                                <option value="1" <?php echo ($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='1') ? 'selected=selected' : '';?>>1</option>
                                <option value="2" <?php echo ($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='2') ? 'selected=selected' : '';?>>2</option>
                                <option value="3" <?php echo ($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='3') ? 'selected=selected' : '';?>>3</option>
                                <option value="4" <?php echo ($data[$langCode]['Widgets']['Twitter']['NumberOfTweets']=='4') ? 'selected=selected' : '';?>>4</option>
                            </select>
                            <hr />
                            <label for="TwitterTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="TwitterTitle" name="data[<?php echo $lang['code']?>][Widgets][Twitter][Title]" value="<?php echo $data[$langCode]['Widgets']['Twitter']['Title']?>" />
                             <hr />
                            <label for="TwitterMethod">Fetch Tweets From</label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Twitter][Method]" id="TwitterMethod">
                                <option value="profile" <?php echo ($data[$langCode]['Widgets']['Twitter']['Method']=='profile') ? 'selected=selected' : '';?>>Twitter profile</option>
                                <option value="keyword" <?php echo ($data[$langCode]['Widgets']['Twitter']['Method']=='keyword') ? 'selected=selected' : '';?>>Keyword mentioned in Twitter</option>
                            </select>
                             <hr />
                            <label for="TwitterProfile">Twitter Profile</label>
                            <input type="text" id="TwitterProfile" name="data[<?php echo $lang['code']?>][Widgets][Twitter][Profile]" value="<?php echo $data[$langCode]['Widgets']['Twitter']['Profile']?>" />
                            <hr />
                            <label for="TwitterKeyword"><?php echo $twitter_keyword?></label>
                            <input type="text" id="TwitterKeyword" name="data[<?php echo $lang['code']?>][Widgets][Twitter][Keyword]" value="<?php echo $data[$langCode]['Widgets']['Twitter']['Keyword']?>" />
        
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $facebook?></div>
                        <div class="iModuleFields">
                            <label for="FacebookShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Facebook][Show]" id="FacebookShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Facebook']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Facebook']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][facebook]" value="<?php echo $data[$langCode]['Positions']['facebook']?>" />
                             <hr />
                            <label for="FacebookTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="FacebookTitle" name="data[<?php echo $lang['code']?>][Widgets][Facebook][Title]" value="<?php echo $data[$langCode]['Widgets']['Facebook']['Title']?>" />
                             <hr />
                            <label for="FacebookURL"><?php echo $facebook_pageurl?></label>
                            <input type="text" id="FacebookURL" name="data[<?php echo $lang['code']?>][Widgets][Facebook][URL]" value="<?php echo $data[$langCode]['Widgets']['Facebook']['URL']?>" />
                            <hr />
                            <label for="FacebookHeight"><?php echo $facebook_widgetheight?></label>
                            <input type="text" id="FacebookHeight" name="data[<?php echo $lang['code']?>][Widgets][Facebook][Height]" value="<?php echo $data[$langCode]['Widgets']['Facebook']['Height']?>" />

                        </div>
                    </li>           	
                    <li>            	
                    <div class="iModuleWrapperTitle"><?php echo $youtube?></div>
                        <div class="iModuleFields">
                            <label for="YouTubeShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][YouTube][Show]" id="YouTubeShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['YouTube']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['YouTube']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][youtube]" value="<?php echo $data[$langCode]['Positions']['youtube']?>" />
                             <hr />
                            <label for="YouTubeTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="YouTubeTitle" name="data[<?php echo $lang['code']?>][Widgets][YouTube][Title]" value="<?php echo $data[$langCode]['Widgets']['YouTube']['Title']?>" />
                             <hr />
                            <label for="YouTubeURL"><?php echo $youtube_url?></label>
                            <input type="text" id="YouTubeURL" name="data[<?php echo $lang['code']?>][Widgets][YouTube][URL]" value="<?php echo $data[$langCode]['Widgets']['YouTube']['URL']?>" />
                            <hr />
                            <label for="YouTubeWidth"><?php echo $youtube_width?></label>
                            <input type="text" id="YouTubeWidth" name="data[<?php echo $lang['code']?>][Widgets][YouTube][Width]" value="<?php echo $data[$langCode]['Widgets']['YouTube']['Width']?>" />
                            <hr />
                            <label for="YouTubeHeight"><?php echo $youtube_height?></label>
                            <input type="text" id="YouTubeHeight" name="data[<?php echo $lang['code']?>][Widgets][YouTube][Height]" value="<?php echo $data[$langCode]['Widgets']['YouTube']['Height']?>" />
        
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $customcolumn?> 1</div>
                        <div class="iModuleFields">
                            <label for="CustomShow"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Custom][Show]" id="CustomShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Custom']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Custom']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                              <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][custom1]" value="<?php echo $data[$langCode]['Positions']['custom1']?>" />
                             <hr />
                           <label for="CustomTitle"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="CustomTitle" name="data[<?php echo $lang['code']?>][Widgets][Custom][Title]" value="<?php echo $data[$langCode]['Widgets']['Custom']['Title']?>" />
                             <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="CustomText"><?php echo $custom_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea class="editable" name="data[<?php echo $lang['code']?>][Widgets][Custom][Text]"><?php echo $data[$langCode]['Widgets']['Custom']['Text']?></textarea>
                            </td></tr>
							</table>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $customcolumn?> 2</div>
                        <div class="iModuleFields">
                            <label for="Custom2Show"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Custom2][Show]" id="Custom2Show">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Custom2']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Custom2']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][custom2]" value="<?php echo $data[$langCode]['Positions']['custom2']?>" />
                             <hr />
                            <label for="Custom2Title"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="Custom2Title" name="data[<?php echo $lang['code']?>][Widgets][Custom2][Title]" value="<?php echo $data[$langCode]['Widgets']['Custom2']['Title']?>" />
                             <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="Custom2Text"><?php echo $custom_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea class="editable" name="data[<?php echo $lang['code']?>][Widgets][Custom2][Text]"><?php echo $data[$langCode]['Widgets']['Custom2']['Text']?></textarea>
                            </td></tr>
							</table>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $customcolumn?> 3</div>
                        <div class="iModuleFields">
                            <label for="Custom3Show"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Custom3][Show]" id="Custom3Show">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Custom3']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Custom3']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][custom3]" value="<?php echo $data[$langCode]['Positions']['custom3']?>" />
                             <hr />
                            <label for="Custom3Title"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="Custom3Title" name="data[<?php echo $lang['code']?>][Widgets][Custom3][Title]" value="<?php echo $data[$langCode]['Widgets']['Custom3']['Title']?>" />
                             <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="Custom3Text"><?php echo $custom_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea class="editable" name="data[<?php echo $lang['code']?>][Widgets][Custom3][Text]"><?php echo $data[$langCode]['Widgets']['Custom3']['Text']?></textarea>
                            </td></tr>
							</table>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $customcolumn?> 4</div>
                        <div class="iModuleFields">
                            <label for="Custom4Show"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Custom4][Show]" id="Custom4Show">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Custom4']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Custom4']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][custom4]" value="<?php echo $data[$langCode]['Positions']['custom4']?>" />
                             <hr />
                            <label for="Custom4Title"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="Custom4Title" name="data[<?php echo $lang['code']?>][Widgets][Custom4][Title]" value="<?php echo $data[$langCode]['Widgets']['Custom4']['Title']?>" />
                             <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="Custom4Text"><?php echo $custom_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea class="editable" name="data[<?php echo $lang['code']?>][Widgets][Custom4][Text]"><?php echo $data[$langCode]['Widgets']['Custom4']['Text']?></textarea>
                            </td></tr>
							</table>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $customcolumn?> 5</div>
                        <div class="iModuleFields">
                            <label for="Custom5Show"><?php echo $showcolumn?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][Custom5][Show]" id="Custom5Show">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['Custom5']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['Custom5']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                             <label>Column Position</label>
                            <input type="text" name="data[<?php echo $lang['code']?>][Positions][custom5]" value="<?php echo $data[$langCode]['Positions']['custom5']?>" />
                             <hr />
                            <label for="Custom5Title"><?php echo $titleofthecolumn?></label>
                            <input type="text" id="Custom4Title" name="data[<?php echo $lang['code']?>][Widgets][Custom5][Title]" value="<?php echo $data[$langCode]['Widgets']['Custom5']['Title']?>" />
                             <hr />
                            <table>
                            <tr><td valign="top" style="padding:0;margin:0;">
                            <label for="Custom5Text"><?php echo $custom_text?></label>
                            </td><td valign="top" style="padding:0;margin:0;">
                            <textarea class="editable" name="data[<?php echo $lang['code']?>][Widgets][Custom5][Text]"><?php echo $data[$langCode]['Widgets']['Custom5']['Text']?></textarea>
                            </td></tr>
							</table>
                            <div class="clearfix"></div>
                        </div>
                    </li>
                    <li>
                        <div class="iModuleWrapperTitle"><?php echo $socialbuttons?></div>
                        <div class="iModuleFields">
                            <label for="ButtonsShow"><?php echo $showsocialbuttons?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][SocialButtons][Show]" id="ButtonsShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />
                            <label for="FacebookLikeShow"><?php echo $facebooklikebutton?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][SocialButtons][FacebookLike][Show]" id="FacebookLikeShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['FacebookLike']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['FacebookLike']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                             <hr />
                            <label for="TwitterPinShow">Twitter Tweet</label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][SocialButtons][TwitterPin][Show]" id="TwitterPinShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['TwitterPin']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['TwitterPin']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                             <hr />
                            <label for="PinterestPinShow"><?php echo $pinterestpin?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][SocialButtons][PinterestPin][Show]" id="PinterestPinShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['PinterestPin']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['PinterestPin']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                             <hr />
                            <label for="GooglePlusShow"><?php echo $googleplusbutton?></label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][SocialButtons][GooglePlus][Show]" id="GooglePlusShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['GooglePlus']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['SocialButtons']['GooglePlus']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <div class="clearfix"></div>
                        </div>
                    </li>

                    <li>
                        <div class="iModuleWrapperTitle">Payment Icons</div>
                        <div class="iModuleFields">
                            <label for="PaymentIconsShow">Show Payment Icons</label>
                            <select name="data[<?php echo $lang['code']?>][Widgets][PaymentIcons][Show]" id="PaymentIconsShow">
                                <option value="true" <?php echo ($data[$langCode]['Widgets']['PaymentIcons']['Show']=='true') ? 'selected=selected' : '';?>><?php echo $yes?></option>
                                <option value="false" <?php echo ($data[$langCode]['Widgets']['PaymentIcons']['Show']=='false') ? 'selected=selected' : '';?>><?php echo $no?></option>
                            </select>
                            <hr />

    
    <?php
    

    
    $fulldir = '../catalog/view/theme/'.$currenttemplate.'/image/icustomfooter/paymenticons/';
	$raw_image_files = scandir($fulldir);
	$imgurl = '../catalog/view/theme/'.$currenttemplate.'/image/icustomfooter/paymenticons/';

    
    
	$image_files = array();
	foreach ($raw_image_files as $key => $value) {
		if (strstr($value,'.png') !== false || strstr($value,'.jpg') !== false || strstr($value,'.gif') !== false) {
        	$name = $value;
        	$name = str_replace('.png','',$name);
        	$name = str_replace('.jpg','',$name);
        	$name = str_replace('.gif','',$name);
            $name = preg_replace('/[^a-z ]/i', '', $name);
			array_push($image_files,array('path' => $imgurl. $value, 'name'=>$name, 'origname' => $value));
		}
	}
    
    
	
    if (!empty($_GET['moveUp'])) {
    	$moveUp = $_GET['moveUp']; 
        $oldName = $_GET['icon'];
    	$newName = $moveUp.'_'.preg_replace('/[^a-z .]/i', '', $oldName);
        rename($fulldir.$oldName,$fulldir.$newName);
        
        $oldName = $image_files[$moveUp-1]['origname'];
        $newName = ($moveUp+1).'_'.preg_replace('/[^a-z .]/i', '', $oldName);
        rename($fulldir.$oldName,$fulldir.$newName);
        echo '<script>document.location = "index.php?route='.$_GET['route'].'&token='.$_GET['token'].'&tab=14"</script>';

    }
    
	
    if (!empty($_GET['moveDown'])) {
    	$moveDown = $_GET['moveDown']; 
        $oldName = $_GET['icon'];
    	$newName = ($moveDown+1).'_'.preg_replace('/[^a-z .]/i', '', $oldName);
        rename($fulldir.$oldName,$fulldir.$newName);
      
        $oldName = $image_files[$moveDown]['origname'];
        $newName = ($moveDown).'_'.preg_replace('/[^a-z .]/i', '', $oldName);
        rename($fulldir.$oldName,$fulldir.$newName);
        echo '<script>document.location = "index.php?route='.$_GET['route'].'&token='.$_GET['token'].'&tab=14"</script>';
    }
 
 
    if (!empty($_GET['delete'])) {
		$delete = base64_decode($_GET['delete']);
       	unlink($delete);
        echo '<script> alert("The payment icon was deleted"); document.location = "index.php?route='.$_GET['route'].'&token='.$_GET['token'].'&tab=14"</script>';
    }
    ?>

                            <label for="PaymentIconsList">Payment Icons</label>
                            <table class="paymentIconsTable">
                            <tr style="border-bottom:1px dashed #ccc;">
                            
                            	<td align="left" valign="top"><img src="../catalog/view/theme/<?php echo $currenttemplate?>/image/icustomfooter/payment-icon.png" onclick="$('#iconFile').click()"/></td>
                                <td style="padding-left:10px; padding-top:6px;" valign="top">
                                <input type="text" name="iconTitle" class="iconTitleVisible" value="" onchange="$('#iconTitle').val($(this).val())" placeholder="Title of the icon" />
                                
                                </td>
                                <td style="padding-left:10px; padding-top:6px;" valign="top">
                                <input type="button" value="+ Upload Icon" onclick="if ($('.iconTitleVisible').val().length > 0) { $('#iconForm').submit() } else { alert('Please enter title of the icon'); }" />
                                </td>                                 	
                            </tr>
                            <?php foreach ($image_files as $key => $img) { ?>
                            	<tr>
                                	<td align="left" valign="top"><img src="<?php echo $img['path']; ?>"/></td>
                                    <td style="padding-left:10px; padding-top:10px;" valign="top"><?php echo $img['name']; ?></td>
                                    <td style="padding-left:10px; padding-top:10px;" valign="top"><span>[<a href="javascript:if(confirm('Sure you want to delete payment icon \'<?php echo $img['name']?>\'?')) document.location='<?php echo 'index.php?route='.$_GET['route'].'&token='.$_GET['token'].'&tab=14&delete='.base64_encode($img['path'])?>'">Delete</a>]</span>&nbsp;&nbsp;<span>[<a href="<?php echo 'index.php?route='.$_GET['route'].'&token='.$_GET['token'].'&tab=14&moveUp='.($key).'&icon='.$img['origname']?>">Move Up</a>]</span>&nbsp;&nbsp;<span>[<a href="<?php echo 'index.php?route='.$_GET['route'].'&token='.$_GET['token'].'&tab=14&moveDown='.($key+1).'&icon='.$img['origname']?>">Move Down</a>]</span></td>                                    	
                                </tr>
                            <?php } ?>
                            </table>
                            <div class="clearfix"></div>
                        </div>
                    </li>

                </ul>
            
            </div>

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

    	</li>

    </ul>
</div>
</form>

<form method="post" enctype="multipart/form-data" style="display:none;" id="iconForm" action="index.php?route=<?php echo $_GET['route']?>&token=<?php echo $_GET['token']?>&tab=14">
<input type="text" name="iconTitle" id="iconTitle" />
<input type="file" name="file" id="iconFile" />
<input type="submit" value="+ Upload Icon" />
</form>
<script>
var tab = "<?php echo (!empty($_GET['tab']))?$_GET['tab']:'0'?>";

var autoPositionTabs = function(){
	if(tab) {
		$('.iModuleAdminMenu li').removeClass('selected');
		$('.iModuleAdminMenu li').eq(tab).addClass('selected');
		$('.iModuleAdminWrappers li').hide().eq(tab).fadeIn(200);
	}
}

autoPositionTabs();

$('.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; ?>