<?





if(is_file($f='../common/cms.php')) include($f);  if(is_file($f='../../common/cms.php')) include($f);



switch ($_SERVER['SERVER_NAME']){

    case 'localhost':case '192.168.1.102': $db_db="webs_magline"; break;

      default: $db_db="lihiumlk_webs_magline"; break;

}


loadContent();

$prj_emails="evin@lithium.lk"; 


?>

<!DOCTYPE html>

<html lang="en">



<head>

<?  outhead("Magline Switchboards Pvt Ltd");$CONTACT=$pool[3];  ?>

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" >

<link href="common/modules/swiper/swiper.min.css" rel="stylesheet">

<script src="common/modules/swiper/swiper.min.js"></script>

	<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" >
<!-- 
	<link rel="stylesheet" xhref="common/modules/swiper/swiper.min.css">

		<script xsrc="common/modules/swiper/swiper.min.js"></script> -->

	<link href="modules/Fonts/fonts.css" rel="stylesheet">

	<link href="modules/fancybox/jquery.fancybox.css" rel="stylesheet" >





<meta content="width=device-width, initial-scale=1.0" name="viewport" >

<!-- Link Swiper's CSS -->

<link href="../package/swiper-bundle.min.css" rel="stylesheet">

<link href="https://unpkg.com/swiper/swiper-bundle.css" rel="stylesheet" >

<link href="https://unpkg.com/swiper/swiper-bundle.min.css" rel="stylesheet" >

<script src="https://unpkg.com/swiper/swiper-bundle.js"></script>

<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>

<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>





<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js" rel="stylesheet">

<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" rel="stylesheet">

<link href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" rel="stylesheet">

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css" >



</head>



<body>



<header>

	<div class="navi">

		<a class="logo" href="index.php"><img src="images/logo.png" alt="MAGLINE SWITCHBOARD (PVT) LIMITED"></a> </div>

</header>


<nav><ul><? 
		?><li><a href="index.php" <?= $current->id==1?'class="active"':'' ?>>Home</a></li><? 
		foreach([5,4,2,2,3] as $i) {
			
		?><li><a href="<?= $pool[$i]->getURL() ?>" <?= $current->id==$i?'class="active"':'' ?>><?= $pool[$i]->menu ?></a></li><? 
			
		}
	?></ul></nav> 




<div class="nav1" style="margin-top: 300px;">

      <ul>

        <li><a href="https://wa.me/+94715810288" target="_blank" aria-label="whatsapp"><i class="fab fa-whatsapp "  style="height: 40px; width: 40px;" ></i><span>Whatsapp</span></a></li>

        <li><a href="https://www.facebook.com/people/Magline-Switchboards-PVT-LTD/100068000845907" target="_blank" aria-label="facebook" ><i class="fab fa-facebook-f "  style="height: 40px; width: 40px;" ></i><span>Facebook</span></a></li>
        
        <li><a href="https://www.youtube.com/channel/UCcaqiHYHHI5-oO_kXfZtJ7g" target="_blank" aria-label="youtube" ><i class="fab fa-youtube "  style="height: 40px; width: 40px;" ></i><span>Youtube</span></a></li>
        
        <li><a href="https://www.linkedin.com/in/magline-switchboard-87422b264/" target="_blank" aria-label="linkedin" ><i class="fab fa-linkedin "   style="height: 40px; width: 40px;" ></i><span>Linkedin</span></a></li>

        <li><a href="https://twitter.com/MaglineSwitchb1" target="_blank" aria-label="twitter" ><i class="fab fa-twitter "  style="height: 40px; width: 40px;" ></i><span>Twitter</span></a></li>



      

       </ul>

    </div>	

	

	

<? if($current->id==1){ ?>

<div class="col5 ">

	<!-- Swiper -->





<div class="swiper-container ">

    <div class="swiper-wrapper">

       <? $i=0; foreach($pool[16]->getImages() as $img){ ?>

        <div class="swiper-slide swiper-slide-prev">

        	<div class="swiper-zoom-container">

        <img alt="MAGLINE SWITCHBOARD (PVT) LIMITED" src="<?= $img ?>">

        </div> </div>

       	<? $i++; } ?>

    </div>

    <div class="swiper-pagination"></div>





    <div class="swiper-scrollbar"></div>

</div></div>





<script>

const swiper = new Swiper('.swiper-container', {autoplay:{delay: 3000,},loop: true,pagination: '.swiper-pagination.ho',slidesPerView: 1,paginationClickable: true,nextButton: '.swiper-button-next',prevButton: '.swiper-button-prev',spaceBetween: 0});

</script>

<article>

	<div class="wel" style="padding-bottom: 60px;">

		<div class="hsp2 wel">

			<h1><?= $pool[17]->getTitle(); ?></h1>

			<h2><?= $pool[17]->getDescription();?></h2>

			<p><?= $pool[17]->getText();  ?></p>

		</div>

	</div>

	<div class="ser">

		<div class="txt">

			<h1 class=""><?= $pool[5]->gettitle() ?></h1>

			<p><?= $pool[5]->getText(200) ?></p>

		</div>

		<div class="newsmain">

			<div class="news">

				<div class="wrap">

					<div class="col4 gap30 " data-aos="fade-up" data-aos-delay="300">

						<?  for($i=0;$i<5;$i++)  foreach($pool[5]->getChildren() as $c){ ?>

						<div>

							<div class="maintile">

								<div class="img">

									<img alt="" data-src="?w=370&amp;h=200&amp;src=<?=$c->getImage('banner')  ?>" height="200" src="<?= PIXEL ?>" width="370">

								</div>

								<div class="content">

									<div class="rrr1">

										<h2><?=  $c->menu ?></h2>

										<p><?= $c->getText(100) ?></p>

									</div>

									<div class="prodcats ">

										<div class="catlst">

											<div class="prodcat ">

												<div class="butn">

													<a href="<?= $c->getURL(); ?>">

													<p>View More</p>

													</a></div>

											</div>

										</div>

									</div>

								</div>

							</div>

						</div>

						<? $i++; } ?></div>

				</div>

			</div>

		</div>

	</div>

</article>

<div class="vson" style="background-image: url('images/template/vision-back.jpg')">

	<h1 class="vis"><?= $pool[20]->getTitle();  ?></h1>

	<p><?= $pool[20]->getArticle();  ?></p>

	<h1 class="mis"><?= $pool[14]->getTitle();  ?></h1>

	<p><?= $pool[14]->getArticle();  ?></p>

	<h1 class="val"><?= $pool[6]->getTitle();  ?></h1>

	<p><?= $pool[6]->getArticle();  ?></p>

</div>

<article>

	<div class="clnts"> 

		<div class="ttl">

			<h1 style="font-weight:bold">Our Clients</h1>

		</div>

				<div class=" swiper-container part">

	<div class="swiper-wrapper ">

		<? $i=$icc=0; foreach($pool[47]->getChildren() as $z){ $img= $z->getImage('icon');   ?> 

			<div class="swiper-slide"> 

							<a href="<?= $z->from ?>" target="_blank">



		<img src="<?= PIXEL ?>" data-src="?w=auto&h=100&src=<?= rawurlencode($img) ?>" alt="<?= $z->from ?>" height="100" width="auto"> 

				<!--h4><?= $z->title ?></h4--></a>

			</div>

		<? $i++; } ?> 

	</div>

	

</div>	</div>

</article>

<? }else{ ?>

<article>

	<div>

		<? $current->execute(); ?></div>

</article>

<? } ?><? function webcon($n,$s,$t='tel:'){ if(!$s)return; ?>

<div class="<?= strtolower( reset(explode(' ',$n))) ?>">

	<? foreach(explode(',',$s) as $v)if($v=str_replace(' ','',trim($v))){  ?>

	<a href="<?= "$t$v" ?>"><?= $v ?></a><? } ?></div>

<? } ?>

<aside>

	<div>

		<ul class="col6 gap30">

			<li class="hsp2">

			<div class="con">

				<div class="address">

					<address>

						<b><?= $CONTACT->Company ?></b><br><?= str_replace("\n", "<br>", $CONTACT->Address) ?>

					</address>

				</div>

				<? 

		            	webcon('Hotline',$CONTACT->Hotline);

		            	webcon('General',$CONTACT->Phone);

		            	webcon('Fax',$CONTACT->Fax);

		            	webcon('Email',$CONTACT->Email,'mailto:'); 

					?></div>

			</li>

			<li>

			<h3>Quick Links</h3>


			<ul><? 
		?><li><a href="index.php" <?= $current->id==1?'class=""':'' ?>>Home</a></li><? 
		foreach([4,2,3] as $i) {
			
		?><li><a href="<?= $pool[$i]->getURL() ?>" <?= $current->id==$i?'class=""':'' ?>><?= $pool[$i]->menu ?></a></li><? 
			
		}
	?>

				<li class="qr">

				<div class="qrimg" style="background-image: url(images/qr.png)">

				</div>

				</li>

			</ul>

			</li>

			<li>

			<h3>Products </h3>

			<ul>

				<? foreach($pool[5]->getChildren() as $c) { ?>

				<li><? $c->printNav(0); ?></li>

				<? } ?>

			</ul>

			</li>

			<li class="hsp2">

				<form method="post" action="<?= $CONTACT->getURL() ?>"> 

  				<input name="CMS_Emailer" value="module_emailer" type="hidden">



				<h3>Send us an Inquiry</h3>

				<input name="I[Name]" placeholder="Name" required="" type="text" value="<?= $I['Name'] ?>">

				<input name="I[Telephone]" placeholder="Phone" required="" type="tel" value="<?= $I['Telephone'] ?>">

				<input name="I[Email]" placeholder="Email" required="" type="email" value="<?= $I['Email'] ?>">

				<input name="I[Subject]"  type="hidden" value="Quick Responce">

					<textarea name="I[Message]" placeholder="Message"><?= $I['Message'] ?></textarea><input type="submit" name="submit" value="Submit"> 

			</form>

			</li>

		</ul>

	</div>

</aside>

<footer>

	<div>

		<div class="social">

			<? if($u=$CONTACT->Facebook){  ?>

			<a class="FB" href="<?= $u ?>" target="_blank">Facebook</a><? } ?> <? if($u=$CONTACT->Twitter){   ?>

			<a class="TW" href="<?= $u ?>" target="_blank">Twitter</a><? } ?> <? if($u=$CONTACT->LinkedIn){  ?>

			<a class="LI" href="<?= $u ?>" target="_blank">LinkedIn</a><? } ?> <? if($u=$CONTACT->YouTube){   ?>

			<a class="YT" href="<?= $u ?>" target="_blank">YouTube</a><? } ?> <? if($u=$CONTACT->Blogger){   ?>

			<a class="BL" href="<?= $u ?>" target="_blank">Blog</a><? } ?> <? if($u=$CONTACT->Instagram){ ?>

			<a class="IG" href="<?= $u ?>" target="_blank">Instagram</a><? } ?> <? if($u=$CONTACT->Google){    ?>

			<a class="GP" href="<?= $u ?>" target="_blank">Google+</a><? } ?>

			<a class="RS" href="/rss.xml" target="_blank">RSS Feed</a> </div>

		<? outbottom(); ?>

		<p class="developed">Powered by

		<a href="http://www.lithium.lk" target="_blank">Lithium</a></p>

		<p class="copyright">&copy; <?= Date('Y'); ?>

		<a href="<?= $root ?>" target="_blank"><?= $pool[1]->title ?></a></p>

	</div>

</footer>

<script>

		function d(path){

					document.getElementById('mainview').style.backgroundImage="url('"+path+"')";

		}

	</script>



</body>



</html>

