/web/htdocs/www.micro-la.com/home/index.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<html>
<head>
    <base href="http://www.micro-la.com/open/">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    
    
    <title>Microla Optoelectronics s.r.l.</title>
    
    
    <meta name="ROBOTS" content="index,follow" />
    <meta name="REVISIT-AFTER" content="1 month" />
    
    <!-- FAVICON AND APPLE TOUCH -->    
    <link rel="shortcut icon" href="favicon.png">
    <link rel="apple-touch-icon-precomposed" sizes="180x180" href="apple-touch-180x180.png">
    <meta name="msapplication-TileImage" content="mstile.png">
    
    <!-- FONTS -->
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic,700,700italic">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Volkhov:400,400italic">
    
    
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    
    <!-- BOOTSTRAP CSS -->
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css"> 
    
    <!-- FONT AWESOME -->
    <link rel="stylesheet" href="assets/fonts/fontawesome/css/font-awesome.min.css">
    
    <!-- FANCYBOX -->
    <link rel="stylesheet" href="assets/plugins/fancybox/jquery.fancybox.css">
    
    <!-- REVOLUTION SLIDER -->
    <link rel="stylesheet" href="assets/plugins/revolutionslider/css/settings.css">
    <link rel="stylesheet" href="assets/plugins/revolutionslider/css/layers.css">
    <link rel="stylesheet" href="assets/plugins/revolutionslider/css/navigation.css">
    
    <!-- OWL Carousel -->
    <link rel="stylesheet" href="assets/plugins/owl-carousel/owl.carousel.css">
    <link rel="stylesheet" href="assets/plugins/owl-carousel/owl.transitions.css">
    
    <!-- YOUTUBE PLAYER -->
    <link rel="stylesheet" href="assets/plugins/ytplayer/css/jquery.mb.YTPlayer.min.css">
    
    <!-- ANIMATIONS -->
    <link rel="stylesheet" href="assets/plugins/animations/animate.min.css">
    
    <!-- CUSTOM & PAGES STYLE -->
    <link rel="stylesheet" href="assets/css/custom.css">
    <link rel="stylesheet" href="assets/css/pages-style.css">
    
    <link rel="stylesheet" href="/open/css/style.css">
    <script src="/open/js/script.js"></script>
    
</head>    
<body>
<?php
header
('Location: /open/');
exit;
?>    
</body>    
    
</html>




















<?php


session_start
();
include (
'admin/config/config.php');

unset (
$_SESSION['p']);
if (isset (
$_GET['lang'])){
    
    
$_SESSION['lang']= $_GET['lang'];
    
    
$lang =$_SESSION['lang'];

}elseif(isset (
$_SESSION['lang'])) {
    
    
$lang $_SESSION['lang'];
    
}else {
    
    
$lang 'ita';
    
    
$_SESSION['lang'] = $lang;
    
}
    

?>

<!doctype html>
<html lang="<?php if ($lang === 'ita'){echo "it";} elseif($lang === 'eng'){echo "en";}?>">
<head>
    <meta charset="utf-8">
    <?php
    
    $query 
"SELECT * FROM sezioni WHERE nome = 'home'";
    
$res mysql_query($query);
        while(
$dati mysql_fetch_array($res)){
        
$titolo $dati['titolo'];
        
$titolo_eng $dati['titolo_eng'];
        
$descr $dati['descr'];
        
$descr_eng $dati['descr_eng'];
        
$key $dati['keywords'];
        
$key_eng $dati['keywords_eng'];
        }
    
?>
    <title><?php if ($lang === 'ita'){echo $titolo;} elseif($lang === 'eng'){echo $titolo_eng;}?></title>
    <meta name="description" content="<?php if ($lang === 'ita'){echo $descr;} elseif($lang === 'eng'){echo $descr_eng;} ?>" />
    <meta name="keywords" content="<?php if ($lang === 'ita'){echo $key;} elseif($lang === 'eng'){echo $key_eng;} ?>" />
    <meta name="author" content="Design Gang" />
    <meta name="robots" content="index,follow" />
    <meta name="revisit-after" content="7 days" />
    <link rel="stylesheet" href="css/styles.css" type="text/css" media="screen" />

    <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    
    <!-- include jQuery library -->
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <!-- include Cycle plugin -->
    <script type="text/javascript" src="js/jquery.cycle.all.latest.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $('#banner-img').cycle({
        fx: 'scrollLeft', // ..
        before:  onBefore,
        after:   onAfter
        });
                 
                function onBefore() {
                
                        
                }
                function onAfter() {
                
                
                $('#testo_img').html('<h1>'+this.title+'</h1><h2>' + this.alt +'</h2>');
                
                }
    
});
    </script>

</head>
<body>
<?php
    
if($lang === 'ita'){
    
        include(
'parti/header.php');
    
    }
    
    elseif(
$lang === 'eng'){
        
        include (
'parti/header_eng.php');
    
    }
?>
 <div id="wrapper"><!-- #wrapper -->
 <section id="content"><!-- #content -->
     <div id="banner">

        <div id="banner-img">
       <?php
           $percorso 
'admin/parti/img_banner_'.$lang.'/';
        
$query "SELECT * FROM banner WHERE id_sez = '1' AND lang = '".$lang."' ";
        
$res mysql_query($query);
            while(
$dati mysql_fetch_array($res)){
                
$titolo $dati['titolo'];
                
$testo $dati['testo'];
                
$file $dati['file'];
            
       
?>
        <img src="<?php echo $percorso.$file?>" width="920" height="508" title="<?php echo $titolo?>" alt="<?php echo $testo?>" />
       <?php
               
}//FINE WHILE
       
?>
      </div> 
     
      <div id="payoff">
        <h1><?php if ($lang === 'ita') echo "Sistemi LASER e dispositivi optoelettronici"; if ($lang === 'eng') echo "LASER system and Optoelectronic devices";?></h1> 
           <?php
               $percorso 
'admin/parti/img_brochure_'.$lang.'/';
            
$query "SELECT * FROM brochure WHERE id_sez = '1' AND lang = '".$lang."' ";
            
$res mysql_query($query);
            if(
mysql_num_rows($res) > 0){
                while(
$dati mysql_fetch_array($res)){
                    
$titolo $dati['titolo'];
                    
$testo $dati['testo'];
                    
$file $dati['file'];
            
       
?>    
                <a href="<?php echo $percorso.$file?>" title="<?php echo $titolo?>">&raquo; <?php if ($lang === 'ita') echo "Visualizza la brochure"; if ($lang === 'eng') echo "Download brochure"?></a>
      <?php 
                
}//FINE WHILE
            
}//FINE CONDIZIONE > 0
      
?>
      </div>
      
   </div><!-- END div BANNER -->
      
        <div class="news">
          <section id="centrale">
          
            <h3><?php if ($lang === 'ita') echo "ULTIME NOTIZIE"; if ($lang === 'eng') echo "LAST NEWS";?>  </h3>
             
             <?php
             $page 
1;
             
$resultsPerPage 4;
             
$startResults = ($page 1) * $resultsPerPage;
             
$numberOfRows mysql_num_rows(mysql_query('SELECT * FROM news'));
             
$totalPages ceil($numberOfRows $resultsPerPage);
             
             
             
$percorso 'admin/parti/img_news_'.$lang.'/';
             
$query "SELECT * FROM news WHERE lang = '".$lang."' ORDER BY data DESC LIMIT $startResults$resultsPerPage";
             
$res mysql_query($query);
               if(
mysql_num_rows($res) > 0){
                while(
$dati mysql_fetch_array($res)){
                    
$id $dati['id'];
                    
$titolo $dati['titolo'];
                    
$testo $dati['testo'];
                    
$file $dati['file'];
                    
$data $dati['data'];
                    
                    list(
$yyyy,$mm,$dd) = explode ('-'$data);
                        
$data_n ''.$dd.'/'.$mm.'/'.$yyyy.'';
             
?>
             
             <article id="news-<?php echo $id?>">
                      <h4><a href="news.php?p=news#<?php echo $id?>" title="<?php echo $titolo?>"><?php echo $titolo?></a></h4>
                       <p>
                      <img src="<?php echo $percorso.$file?>"  class="news_thumb" style="max-width:80px;max-height:50px;" title="<?php echo $titolo?>" alt="<?php echo $titolo?>" />
                     </p>
                     
                         <p>
                             <?php echo $testo?>
                         </p>
                         
                         <time pubdate datetime="<?php echo $data?>"><?php echo $data_n?></time>    
                      
             </article>
             <?php 
                
}//FINE WHILE
               
}//FINE CONDIZIONE > 0
               
?> 
           </section>  
            <div class="sponsor">
            <h3> <?php if ($lang === 'ita') echo "Poli Tecnologici di Innovazione"; if ($lang === 'eng') echo "Technological Centers of Innovation";?></h3>
                <a href="http://mesapiemonte.it/scheda-microla.html" target="_blank"><img src="immagini/sponsor/test/logo_mesap.jpg"  class="sponsor_thumb"  title="" alt="" /></a>
                <a href="http://www.biopmed.eu/" target="_blank"><img src="immagini/sponsor/test/logo_biomed.jpg"  class="sponsor_thumb"  title="" alt="" /></a>
                <a href="http://www.tecnogranda.it/it/index.php" target="_blank"><img src="immagini/sponsor/test/logo_tecnogranda.jpg"  class="sponsor_thumb" title="" alt="" /></a>
        </div>
        
        <div class="sponsor">
            <h3> <?php if ($lang === 'ita') echo "Partner"; if ($lang === 'eng') echo "Partners";?></h3>
                <a href="http://www.datalogic.com" target="_blank"><img src="immagini/partner/logo_datalogic.jpg"  class="sponsor_thumb"  title="" alt="" /> </a>
                <a href="http://www.mager-ab.it" target="_blank"><img src="immagini/partner/logo_mager.jpg"  class="sponsor_thumb"  title="" alt="" /></a>
                <a href="http://www.metcompany.eu" target="_blank"><img src="immagini/partner/logo_met.jpg"  class="sponsor_thumb" title="" alt="" /></a>
                <a href="http://www.pegasoqualityservice.it" target="_blank"><img src="immagini/partner/logo_pegaso.jpg"  class="sponsor_thumb" title="" alt="" /></a>
        </div>
        </div>    
  
 </section><!--end of #content -->
  <div id="push"></div>
 </div><!--end of #wrapper -->
 <?php
    
if($lang === 'ita'){
    
        include(
'parti/footer.php');
    
    }
    
    elseif(
$lang === 'eng'){
        
        include (
'parti/footer_eng.php');
    
    }
?>
</body>
</html>