<?php 
$this->load->view('site/templates/commonheader'); 
$this->load->view('site/templates/shop_header');
?>
<script type="text/ecmascript" src="js/site/custom_validation.js" ></script>
<div class="add_shop">
 	<section>
    	<div class="main">
            <div style="margin-top:20px" class="manage-listing-heading">
                <h1><?php if($this->lang->line('shop_appearance') != '') { echo stripslashes($this->lang->line('shop_appearance')); } else echo 'Info & Appearance'; ?> </h1>
                <p><?php if($this->lang->line('shop_fleshout') != '') { echo stripslashes($this->lang->line('shop_fleshout')); } else echo 'Flesh out your shop with the following information'; ?> </p>
            </div>            
            <form id="policies" class="shop-form-policies" action="site/shop/shop_appearance_setting" method="post" enctype="multipart/form-data">
            <div class="shop-policies-section">
            <div class="shop-form-section-inner">
            <div class="shop_member">
                <label class="label-text"><?php if($this->lang->line('shop_shoptitle') != '') { echo stripslashes($this->lang->line('shop_shoptitle')); } else echo 'Shop Title'; ?>  </label>
                <input id="shop_title" class="headline-shop" type="text" maxlength="55" value="<?php  echo stripslashes($selectSeller_details[0]['shop_title']); ?>" name="shop_title"  onKeyUp="change('shop_title','goo_item_title')" />
            </div>                        
            <hr>                        
            <div class="shop_member">
                <label class="label-text"><?php if($this->lang->line('shop_shopbanner') != '') { echo stripslashes($this->lang->line('shop_shopbanner')); } else echo 'Shop Banner Image'; ?> </label>
                <input type="file" name="shop_banner" id="shop_banner_img" />
                <div style="padding:0px 0px 0px 141px;"><img id="loadedImgshop" src="images/loader64.gif" style="widows:25px; height:25px; display:none" /></div>
                
                <p class="inline-message" id="ErrImage"><?php if($this->lang->line('shop_upload') != '') { echo stripslashes($this->lang->line('shop_upload')); } else echo 'Upload a .jpg, .gif or .png that is 760px by 100px and no larger than 2MB'; ?>.<!--<a href="javascript:void(0);"><?php if($this->lang->line('shop_getideas') != '') { echo stripslashes($this->lang->line('shop_getideas')); } else echo 'Get ideas'; ?>.</a>--></p>
            </div>            
            <hr>
            <div class="shop_member">
                <label style="margin-top:0" class="label-text"><?php if($this->lang->line('shop_local') != '') { echo stripslashes($this->lang->line('shop_local')); } else echo 'Local Markets'; ?> </label>
                
                <input type="checkbox" <?php  if(stripslashes($selectSeller_details[0]['local_markets'])=="Yes"){ echo 'checked="checked"';} ?>  value="true" name="local_markets"><?php if($this->lang->line('shop_upcoming') != '') { echo stripslashes($this->lang->line('shop_upcoming')); } else echo 'Show upcoming local markets you will attend on your shop page'; ?>? 
            </div>            
            <hr>
            <div class="shop_member">
                <label class="label-text"><?php if($this->lang->line('shop_links') != '') { echo stripslashes($this->lang->line('shop_links')); } else echo 'Links'; ?></label>
                <table class="fb-table">
                    <tbody>
                        <tr class="fb-link">
                            <td class="shown"><label><?php if($this->lang->line('shop_facebook') != '') { echo stripslashes($this->lang->line('shop_facebook')); } else echo 'Facebook Page'; ?></label></td>
                            <td  class="fb-account "><a id="fb-account-link" href="javascript:void(0)"><?php if($this->lang->line('user_connect_facebook') != '') { echo stripslashes($this->lang->line('user_connect_facebook')); } else echo 'Connect with Facebook'; ?></a></td>
                        </tr>            
                        <tr class="fb-link">
                            <td class="shown"><label style="background-position: 0 -219px;"><?php if($this->lang->line('shop_twitter') != '') { echo stripslashes($this->lang->line('shop_twitter')); } else echo 'Twitter Page'; ?></label></td>                
                            <td  class="fb-account "><a id="fb-account-link" href="javascript:void(0);"><?php if($this->lang->line('user_connect_twitter') != '') { echo stripslashes($this->lang->line('user_connect_twitter')); } else echo 'Connect with Twitter'; ?></a></td>
                        </tr>
                    </tbody>
                </table>
                
                <div class="facebook-mesg">
                    <span class="blue_arrow"></span>
                    <p  class="inline-message"><?php if($this->lang->line('shop_enable') != '') { echo stripslashes($this->lang->line('shop_enable')); } else echo 'Enable to gain Facebook fans and Twitter followers for your shop'; ?>.
                    <!--<a href="javascript:void(0);"><?php if($this->lang->line('user_learn_more') != '') { echo stripslashes($this->lang->line('user_learn_more')); } else echo 'Learn more'; ?></a>-->.</p>            
                </div>            
                <hr>
                <div class="shop_member">
                    <label class="label-text"> <?php if($this->lang->line('shop_announcement') != '') { echo stripslashes($this->lang->line('shop_announcement')); } else echo 'Shop Announcement'; ?>  </label>
                    <textarea id="shop_announcement" class="message121" rows="4" name="shop_announcement" style="overflow: hidden; border-color:#ccc; height: 101px;"  onKeyUp="change('shop_announcement','goo_item_desc')"><?php  echo stripslashes($selectSeller_details[0]['shop_announcement']); ?></textarea>
                    <p class="inline-message"><?php if($this->lang->line('shop_additionalpolicies') != '') { echo stripslashes($this->lang->line('shop_additionalpolicies')); } else echo 'Additional policies, FAQs, custom orders, wholesale & consignment, guarantees, etc'; ?>.</p>
                    <div id="showpreview">
                        <p> <?php if($this->lang->line('shop_preview') != '') { echo stripslashes($this->lang->line('shop_preview')); } else echo 'Preview how your shop homepage will appear in Google search results'; ?>: </p>
                        <div class="preview-body"><p class="showing-msg"><span id="goo_item_title"><?php  echo stripslashes($selectSeller_details[0]['shop_title']); ?></span><span id="goo_item_desc"><?php  echo stripslashes($selectSeller_details[0]['shop_announcement']); ?></span>. </p></div>
                        <!--<p class="prev-notebook"><?php if($this->lang->line('shop_havequestions') != '') { echo stripslashes($this->lang->line('shop_havequestions')); } else echo 'Have questions'; ?>?<a target="_blank" href="javascript:void(0);"> <?php if($this->lang->line('shop_learnabout') != '') { echo stripslashes($this->lang->line('shop_learnabout')); } else echo 'Learn about how your shop appears on Google'; ?>. </a></p> -->          
                    </div>
                </div>
                <hr>
                <div class="shop_member">
                    <label class="label-text"><?php if($this->lang->line('shop_message') != '') { echo stripslashes($this->lang->line('shop_message')); } else echo 'Message to Buyers'; ?> </label>
                    <textarea id="msg_to_buyers" class="message121" rows="4" name="msg_to_buyers" style="overflow: hidden; height: 101px; border-color: #CCCCCC;"><?php  echo stripslashes($selectSeller_details[0]['msg_to_buyers']); ?></textarea>
                    <p class="inline-message"><?php if($this->lang->line('shop_include') != '') { echo stripslashes($this->lang->line('shop_include')); } else echo 'We include this message on receipt pages and in the email buyers receive when they purchase from your shop'; ?>. </p>
                </div>           
                <div class="shop_member">
                    <label class="label-text"><?php if($this->lang->line('shop_messagebuyers') != '') { echo stripslashes($this->lang->line('shop_messagebuyers')); } else echo 'Message to Buyers for Digital Items'; ?> </label>
                    <textarea id="msg_to_buyers_for_digiitem" class="message121" rows="4" name="msg_to_buyers_for_digiitem" style="overflow: hidden; height: 101px; border-color: #CCCCCC;"><?php  echo stripslashes($selectSeller_details[0]['msg_to_buyers_for_digiitem']); ?></textarea>
                    <p class="inline-message"><?php if($this->lang->line('shop_downloads') != '') { echo stripslashes($this->lang->line('shop_downloads')); } else echo 'If you sell digital items, we include this message on the Downloads page for digital orders. It applies to all digital listings purchased from your shop'; ?>.<!--<a href="javascript:void(0);"> <?php if($this->lang->line('shop_aboutselling') != '') { echo stripslashes($this->lang->line('shop_aboutselling')); } else echo 'Learn about selling digital items'; ?>. </a>--> </p>
                </div>
			</div>
		</div>
        </div>
        <div class="wid">
            <span class="button-large">
                <span>
                    <input type="submit" value="<?php if($this->lang->line('user_save_changes') != '') { echo stripslashes($this->lang->line('user_save_changes')); } else echo "Save Changes"; ?>" />
                </span>
            </span>
        </div>  
        <input type="hidden" name="shop-banner" value="shop-banner-img" />          
    	</form> 
		</div>
	</section> 	
</div>

<?php 
$this->load->view('site/templates/footer');
?>


