<?php $this->beginContent('application.views.front.layouts.home'); ?>
<div id="header">
  <div id="logout_box">
    <?php if(Yii::app()->user->isGuest){ ?>
    <br />&nbsp;&nbsp;&nbsp;
    <a href="<?php echo Yii::app()->createUrl('site/login'); ?>">Login</a> 
    &nbsp;&nbsp;|&nbsp;&nbsp;
    <a href="<?php echo Yii::app()->createUrl('site/registration'); ?>">Register</a> 
    &nbsp;&nbsp;|&nbsp;&nbsp; 
    <a href="#">Contact Us&nbsp;&nbsp;</a> 
    <?php } else { ?>
    <span style="font-size:14px;">Welcome, <?php echo Yii::app()->user->fullname; ?></span>
    <br />
    <a href="<?php echo Yii::app()->createUrl('site/logout'); ?>">Logout</a> 
    &nbsp;&nbsp;|&nbsp;&nbsp; <a href="<?php echo Yii::app()->createUrl('site/editprofile'); ?>">Profile Update</a>
    <?php } ?>
    </div>
  <div id="business_solution_logo"><a href="home.html"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/logo_04.png" width="168" height="62" alt="logo" /></a></div>
  <div id="business_solution_menu">
    <ul class="menu">
      <li><a href="#">Partner</a>
        <ul>
          <li><a href="<?php echo Yii::app()->createUrl('site/dlinkchannelpartnerprogram'); ?>" class="documents">Channel Partner</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/partnerlevel'); ?>" class="messages">Partner Level</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/technologyspecializations'); ?>" class="messages">Technology Specializations</a></li>
        </ul>
      </li>
      <li><a href="#">Product & Solution </a>
        <ul>
        <?php
$userGroups	=	UserGroup::model()->findAll(array('condition'=>'isActive="Y"'));
foreach($userGroups as $eachUserGroup):
?>
          <li><a href="#" class="documents"><?php echo $eachUserGroup->group_name; ?></a></li>
          <?php 
		  $productGroups	=	ProductGroup::model()->findAll(array('condition'=>'user_group_id='.$eachUserGroup->id.' and isActive="Y"'));
		foreach($productGroups as $eachProductGroup):
		  ?>
          <li><a href="<?php echo Yii::app()->createUrl('site/productgroup',array('id'=>$eachProductGroup->id,'user_group_id'=>$eachUserGroup->id,'name'=>preg_replace('/[^a-z0-9_]/','',strtolower( str_replace(" ", "_", $eachProductGroup->product_group_name))))); ?>" class="documents"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="arrow" /> <?php echo $eachProductGroup->product_group_name; ?></a></li>
          <?php endforeach; ?>
          <?php endforeach; ?>
        </ul>
 </li>
      <li><a href="#">Marketing </a>
        <ul>
          <li><a href="<?php echo Yii::app()->createUrl('site/promotions'); ?>" class="documents">Promotions</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/flash'); ?>" class="documents"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Flash</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/graphicresources'); ?>" class="documents"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Graphic Resources</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/marketinformation'); ?>" class="documents"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Market Information</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/marketingtoolbox'); ?>" class="documents"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Marketing Toolbox</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/events'); ?>" class="messages">Events</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/seminarorroadshow'); ?>" class="documents"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Seminar / Roadshow Collaterals</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/monthlynewsletter'); ?>" class="documents"> Monthly Newsletter</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/pressresource'); ?>" class="signout">Press</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/pressreleases'); ?>" class="messages"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="arrow" /> Press Releases</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/newscoverage'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="arrow" /> News Coverage</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/pressresource'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="arrow" /> Press Resources</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/publications'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="arrow" /> Publications</a></li>
        </ul>
      </li>
      <li><a href="#">Resources </a>
        <ul>
          <li><a href="<?php echo Yii::app()->createUrl('site/videoresource'); ?>" class="documents">Videos</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/videoclip'); ?>" class="messages">Camera Video Clip</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/downloadlibrary'); ?>" class="signout">Downloads</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/aespec'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> A&E Spec</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/configurationguide'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Configuration Guide</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/whitepaper'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> White Paper</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/salesguide'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Sales Guide</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/software'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Utility / Software</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/firmware'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Firmware</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/manual'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Manual</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/trainingmeterials'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Training Materials</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/testreport'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Test Report</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/productimage'); ?>" class="signout"> Product Image</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/worddescriptions'); ?>" class="signout"> Word Descriptions</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/configurationexample'); ?>" class="signout"> Configuration Example</a></li>
        </ul>
      </li>
      <li><a href="#">Tools </a>
        <ul>
          <li><a href="<?php echo Yii::app()->createUrl('site/toolsforpartners'); ?>" class="documents">Partner Tools</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/productselectorpro'); ?>" class="documents"> <img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Product Selector Pro</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/wifiplanner'); ?>" class="messages"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Wi-fi- Planner</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/productinterfaceviewer'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Product Interface Viewer</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/surveilanceprojectdesigner'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Surveillance Project Designer</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/wirelesscalculator'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Wireless Calculator</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/switchemulator'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Switch Emulator</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/firewallemulator'); ?>" class="signout"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Firewall Emulator</a></li>
        </ul>
      </li>
      <li><a href="#">Academy</a>
        <ul>
          <li><a href="<?php echo Yii::app()->createUrl('site/certification'); ?>" class="documents">Certification</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/certificationfaq'); ?>" class="messages"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> FAQ</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/training'); ?>" class="messages">Training</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/trainingschedule'); ?>" class="messages"><img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/arrow_44.png" width="8" height="11" alt="bullet" /> Schedule</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/onlineexam'); ?>" class="signout">Online Exam</a></li>
        </ul>
      </li>
      <li><a href="#">Rewards </a>
        <ul>
          <li><a href="#" class="documents">Rewards 01</a></li>
          <li><a href="#" class="messages">Rewards 02</a></li>
          <li><a href="#" class="signout">Rewards 03</a></li>
          <li><a href="#" class="signout">Rewards 04</a></li>
        </ul>
      </li>
    </ul>
  </div>
  <?php if(!(Yii::app()->user->isGuest)){ ?>
  <div id="myaccount_button">
    <ul class="menu">
      <li><a href="#">My Account</a>
        <ul>
          <li><a href="<?php echo Yii::app()->createUrl('site/viewprofile'); ?>" class="documents">View Profile</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/editprofile'); ?>" class="messages">Edit Profile</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/changepassword'); ?>" class="signout">Change Password</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/submitpaper'); ?>" class="signout">Submit a paper</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/pointstable'); ?>" class="signout">Points Table</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/mywallet'); ?>" class="signout">My Wallet</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/redeempoints'); ?>" class="signout">Redeem Points</a></li>
          <li><a href="<?php echo Yii::app()->createUrl('site/logout'); ?>" class="signout">Logout</a></li>
        </ul>
      </li>
    </ul>
  </div>
  <?php } ?>
</div>
<?php echo $content; ?>
<?php $this->endContent(); ?>
