<?php
$this->load_template('_header.php');
$this->load_template('_top.php');
?>
<script type="text/javascript" src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/js/js_dashboard.js"></script>
<div id="generalspace">
        
    <div id="container">
    
    	<div id="column1"><?php $this->load_template('_verticalmenu-dashboard.php'); ?></div>
        
        <div id="column2">

			<div id="dashboard2">
                
                <div id="listpages">
                
                	<div class="boxdash">
                
                        <div class="title"><?php echo $this->lang('dashboard_pages_title')?></div>
                        
                        <div class="spaceinfo">
                        
                        	<?php $this->load_template('__dashboard-smenu-pages.php');?>
                            
                            <div class="mrg30B">
                            
                            	<div class="txtsize06 bold mrg15T"><?php echo $this->lang('dashboard_pages_search_title');?></div>
                            	<div class="mrg10T">
                                	<div class="fleft" style=" line-height:30px; font-size:0; margin-right:5px;"><input name="q" type="text" id="q" placeholder="<?php echo $this->lang('dashboard_pages_search_entertext');?>" class="boxinput" value="<?php echo stripslashes($D->cadsearch)?>"></div>
                        			<div class="fleft" style=" line-height:30px; font-size:0; margin-top:2px;"><a href="javascript:searchPages();"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/bt-search-page.png"></a></div>
                        			<div class="sh"></div>
                                </div>
                            
                            	<?php if ($D->doSearch==1) { ?>
                                
        	                        <?php if (empty($D->htmlPages)) { ?>
                                
                                <div class="mrg30T"><?php echo $this->lang('dashboard_pages_search_nofounds'); ?></div>
                                
    	                            <?php } else { ?>
                                
                                <div class="mrg10T"><?php echo $D->htmlPages?></div>
                                
	                                <?php } ?> 
                                    
                                
                                <?php } ?>
                                
                                <?php if ($D->cadShort == 1) { ?>
                                    
                                <div class="mrg30T"><?php echo $this->lang('dashboard_pages_search_txtshort'); ?></div>
                                    
                                <?php } ?>

                                
                            </div>
                            
							<script>
                            function searchPages() {
                                var query = $('#q').val();
                                if (query != this.defaultValue){
                                    document.location = siteurl + 'dashboard/pages/search/q:' + escape(query.replace(' ','+'));
                                }
                            }
                            
                            function searchPages13() {
                                var query = $('#q').val();
                            
                                $('#q').keypress(function(x) {
                                    if (x.keyCode == 13) {
                                        query = $(this).val();
                                        if (query != this.defaultValue){
                                            document.location = siteurl + 'dashboard/pages/search/q:' + escape(query.replace(' ','+'));
                                        }
                                    }
                                });
                            }
                            
                            searchPages13();
                            </script>

                        
                    	</div>
                
                	</div>
        
        		</div>
        
        	</div>
        
        </div>
        
        <div id="divseparator" class="sh"></div>
        
        <div id="column3"><?php $this->load_template('_accessories-dashboard.php'); ?></div>
        
        <div class="sh"></div>
    
    </div>
            
</div>    

<?php
$this->load_template('_foot.php');
$this->load_template('_footer.php');
?>