<div id="sub_menu">
<a href="<?php echo Yii::app()->createUrl('site/index'); ?>"> Home</a>&nbsp;&nbsp;<img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/submenu_13.jpg" width="9" height="10" />&nbsp;&nbsp;&nbsp;case studies</div>
<div id="content">
  <div id="business_solution_leftcontent">
    <?php $this->renderPartial('productgroup_left_menu');  ?>
    <?php $this->renderPartial('pages/leftcontent'); ?>
  </div>
  <div id="overview_rightcontent">
    <div id="business_solution_subheadding"> Case Studies </div>
    <div id="partnerlevel_slider"> D-Link is pleased to offer a range of revenue-driving and margin-enhancing promotions.
      These special promotions are generally offered on a quarterly basis across our core
      networking products or around special channel sales initiatives. </div>
     
    <script type="text/javascript">
    $(document).ready(function()
    {
        $('.casestudy_each').click(function()
		{
			$(this).next(".thepet").slideToggle("slow");
		});
        
    });
		
</script>
    <div id="partnerlevel_slider">
      <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'paper-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
    ),
)); ?>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="47"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:20px">
                <tr> <span style="font-size:14px;">
                  <td width="25%" align="left" valign="middle"><strong>Search by product model :</strong></td>
                  </span>
                  <td width="25%" align="left" valign="middle"><?php echo $form->dropDownList($model,'user_group_id',UserGroup::getGroups(),
											 array(
												'style'=>'width:150px',
												'prompt'=>'Select user group',
												'ajax' => array(
												'type'=>'POST',
												'url'=>CController::createUrl('site/updateProductGroup'), 
												//'update'=>'#Product_product_group_id',
												'data'=>array('user_group_id'=>'js:this.value'), 
												'success'=>'js:function(data){
													$("#Paper_product_group_id").html(data)
													$("#Paper_product_category_id").html("<option value=\"\">Select category</option>")
													$("#Paper_product_id").html("<option value=\"\">Select product</option>")
													}'
            ))); ?>
                     </td>
                  <td width="25%" align="left" valign="middle"><?php echo $form->dropDownList($model,'product_group_id',ProductGroup::getProductGroup($model->user_group_id),array(
												'style'=>'width:150px',
												'prompt'=>'Select group',
												'ajax' => array(
												'type'=>'POST',
												'url'=>CController::createUrl('site/updateProductCategory'), 
												'data'=>array(
															  'user_group_id'=>'js:$("#Paper_user_group_id :selected").val()',  
															  'product_group_id'=>'js:this.value'
															  ),  
												'success'=>'js:function(data){
													$("#Paper_product_category_id").html(data)
													$("#Paper_product_id").html("<option value=\"\">Select product</option>")
													}'
																		  ))); ?>
                     </td>
                  <td width="22%" align="left" valign="middle"><?php  echo $form->dropDownList($model,'product_category_id',ProductCategory::getProductCategory($model->user_group_id,$model->product_group_id),array(
												'style'=>'width:150px',
												'prompt'=>'Select category',
												'ajax' => array(
												'type'=>'POST',
												'url'=>CController::createUrl('site/updateProduct'), 
												'update'=>'#Paper_product_id',
												'data'=>array(
															  'user_group_id'=>'js:$("#Paper_user_group_id :selected").val()',  
															  'product_group_id'=>'js:$("#Paper_product_group_id :selected").val()',  
															  'product_category_id'=>'js:this.value'
															  ),  
																		  ))); ?>
                     </td>
                  <td width="5%" align="left" valign="top"></td>
                </tr>
                <tr> <span style="font-size:14px;">
                  <td width="25%" align="left" valign="middle"></td>
                  </span>
                  <td width="25%" align="left" valign="middle"><?php  echo $form->dropDownList($model,'region_id',Country::getCountry(),array('prompt'=>'Selecet country',
				  'style'=>'width:150px',
				  )); ?>
                    </td>
                  <td width="25%" align="left" valign="middle"><?php echo $form->dropDownList($model,'industry_id',Industry::getIndustry(),array('style'=>'width:150px',
				  'prompt'=>'Select industry',)); ?>
                     </td>
                  <td width="22%" align="left" valign="middle"><?php for($i=date('Y');$i>=1990;$i--) $years[$i]=$i; ?>
        <?php echo $form->dropDownList($model,'year',$years,array(
		'style'=>'width:150px',
		'prompt'=>'Select year',)); ?>
                     </td>
                  <td width="3%" align="right" valign="top"><input type="submit" name="button" id="button" value="Go" style="width:70px" /></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="60">
            <style type="text/css">
.bst_table{
	font-family:arial;
	font-size:12px;
	color:#666;
} 
	.bst_table a{color:#666; text-decoration:none}
	.bst_table a:hover{color:#666; text-decoration:underline}


</style>
            <div >
            <?php echo ($caseStudies==null)?'No Results found':''; ?>
            <?php foreach($caseStudies as $eachModel): ?>
                <div class="mails_outer">
                  <div class="mypetsouter casestudy_each">
                    <div class="mypets petscol openpet" headerindex="0h">
                      <div class="mails_line_blue">
                        <div>
                          <table width="745" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#999999" class="bst_table"  >
                            <tr>
                              <td width="22%" align="left" valign="top"><a href="javascript:;"><?php echo $eachModel->title_of_the_paper; ?></a></td>
                              <td width="47%" align="left" valign="top"><?php echo $eachModel->year; ?></td>
                              <td width="14%" align="left" valign="middle">
                              <?php
							  echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/front/1/downloadflash_03_03.png","",array("width"=>"20","height"=>"19")).round(filesize(Yii::app()->basePath."/../media/paper/".$eachModel->filename)/1000,2)." KB",Yii::app()->request->getBaseUrl(true).'/media/paper/'.$eachModel->filename,array('target'=>'_blank'));
							  ?>
                              <td width="17%" align="left" valign="top"><?php echo $eachModel->date_added; ?></td>
                            </tr>
                          </table>
                        </div>
                      </div>
                    </div>
                    <div class="mails_com_prof m_prof"> </div>
                  </div>
                  <div class="company_dtlWrapper thepet" contentindex="0c" style="display: none; ">
                    <div class="mails_content">
                      <div id="case_study_tittle"><?php echo $eachModel->title_of_the_paper; ?></div>
                      <div id="case_study_description"> <?php echo $eachModel->content; ?>
                        <div id="case_study_downloadbutton"> <a target="_blank" href="<?php echo Yii::app()->request->getBaseUrl(true).'/media/paper/'.$eachModel->filename; ?>"><img src="<?php echo Yii::app()->baseUrl;?>/images/front/1/download_button_06.png" width="126" height="69" alt="download" /></a></div>
                      </div>
                    </div>
                  </div>
                  <div class="clear"></div>
                </div>
                <?php endforeach; ?> 
              </div></td>
          </tr>
        </table>
      <?php $this->endWidget(); ?>
    </div>
  </div>
</div>
<style>
input.sub_Button  {border:none;color:#fff;cursor:pointer;float:left;font-size:11px;font-weight:bold;height:28px;margin:0;padding:0 0 5px 0;width:auto; text-align:center; line-height:28px;}
input.Btn_80 {width:80px;background:url(/images/frontend/btn_80.png) no-repeat left top;}
input.Btn_100 {width:100px;background:url(/images/frontend/btn_100.png) no-repeat left top;}
input.Btn_130 {width:130px;background:url(/images/frontend/btn_130.png) no-repeat left top;}
input.sub_Button_gray  {border:none;color:#fff;cursor:pointer;float:left;font-size:11px;font-weight:bold;height:25px;margin:0;padding:0 0 5px 0;width:auto;text-align:center;line-height:25px;}
input.Btn_gray_80 {width:80px;background:url(/images/frontend/btn_gray_80.png) no-repeat left top;}
input.Btn_gray_100 {width:100px;background:url(/images/frontend/btn_gray_100.png) no-repeat left top;}
input.Btn_gray_110 {width:110px;background:url(/images/frontend/btn_gray_110.png) no-repeat left top;}
input.Btn_gray_130 {width:130px;background:url(/images/frontend/btn_gray_130.png) no-repeat left top;}
button.sub_Button  {border:none;color:#fff;cursor:pointer;float:left;font-size:11px;font-weight:bold;height:28px;margin:0;padding:0 0 5px 0;text-align:center; line-height:28px;}
button.Btn_80 {width:80px;background:url(/images/frontend/btn_r_80.png) no-repeat left top;}
button.Btn_100 {width:100px;background:url(/images/frontend/btn_100.png) no-repeat left top;}
button.Btn_130 {width:130px;background:url(/images/frontend/btn_130.png) no-repeat left top;}
button.sub_Button_gray  {border:none;color:#fff;cursor:pointer;float:right;font-size:11px;font-weight:bold;height:25px;margin:0;padding:0 0 5px 0;text-align:center; line-height:25px;}
button.Btn_gray_80 {width:80px;background:url(/images/frontend/btn_gray_80.png) no-repeat left top;}
button.Btn_gray_100 {width:100px;background:url(/images/frontend/btn_gray_100.png) no-repeat left top;}
button.Btn_gray_110 {width:110px;background:url(/images/frontend/btn_gray_110.png) no-repeat left top;}
button.Btn_gray_130 {width:130px;background:url(/images/frontend/btn_gray_130.png) no-repeat left top;}
.color555 {color:#555!important}

/***********mailWrapper***************/
.col_784 {float:left;margin:0;padding:0;width:590px;}
.w756 {width:514px!important}
.mail_wrapper {width:590px; float:left; margin:0px; padding:0px; height:auto;}
.mails_outer {float:left;width:744px; padding:0; margin:0;position:relative; }

.mails_head {float:left;width:744px; padding:0; margin:0 0 8px 0; height:30px; font-size:11px; font-weight:bold; text-align:left; color:#fff; background:#6B8093; line-height:17px}
.mails_head_value  {float:left;padding:7px 0px 0 5px; margin:0; text-align:left;width:20px;}
*:first-child+html .mails_head_value{padding-top:3px; }
.mails_head_value input {float:left; padding:0; margin:0;}
.mails_head_sender {float:left;padding:5px 5px 0 0px ;margin:0;width:148px;}
.mails_head_flag   {float:left;padding:5px 5px 0 0 ;margin:0;width:40px; }
.mails_head_rating {float:left;padding:5px 5px 0 0 ;margin:0;width:80px; }
.mails_head_subject{float:left;padding:5px 0px 0 0 ;margin:0;width:100px; }
.mypetsouter {float:left;margin:0 0 8px 0;padding:0; height:auto;width:744px; background:#d9e6ef;}
.mails_line_0 {float:left; margin:0; text-align:left;width:20px; height:15px;}
*:first-child+html .mails_line_0{padding-top:3px; }
.mails_line_0 input {float:left}
.mypets {cursor:pointer;}
/*.openpet {background:#FEC9AF;}*/
.petscol {float:left;padding:0px 0 2px 0;margin:0px; width:744px; font-size:11px; font-weight:bold; text-align:left;color:#555;}
.petscol img {border:none; text-decoration:none}
.mails_line_blue {float:left;margin:0px; padding:0;width:744px;}
.mails_sender { float:left;  padding:0px 5px 0 0px;margin:0;width:175px;height:auto}
.mails_flag {float:left;padding:0px 5px 0 0;margin:0;width:25px;height:auto}
.mails_flag a {border:none; text-decoration:none}
.mails_flag a img {border:none; text-decoration:none; float:left}
.mails_rating {float:left;padding:0px 5px 0 0;margin:0;width:92px;height:auto}
.mails_rating a {border:none; text-decoration:none}
.mails_rating a img {border:none; text-decoration:none; float:left}
.mails_subject{float:left;padding:0px 5px 0 8px ;margin:0;width:150px;height:auto}
.mails_com_prof {float:left;padding:0px 0px 0 0 ;margin:0;width:100px;height:auto;}
.mails_com_prof a.profile { background:url(/images/frontend/profile.png) no-repeat left top; width:97px; height:21px; float:left; border:none; text-decoration:none; font-size:11px; font-weight:normal; color:#fff; padding:0 0 0 23px; margin:0; line-height:16px; }
.mail_details {display:block;float:left; padding:0; margin:0;width:590px;}
.company_dtlWrapper {float:left; margin:0px;padding:0;width:744px;}
.mails_content {float:left; padding:10px 10px ; margin:0;width:700px; }	
.company_details {float:left;margin:0px 0 8px 0;padding:5px 0;width:704px;background:#F3F3F3;border:1px solid #6B8093;}
.company_loc {float:left; padding:0 0 0 10px; margin:0; }
.onemail {float:left; margin:0 0 10px 0;padding:10px 10px;display:block;width:690px; border-bottom:1px dotted #6B8093;}
.onemail_dtls {float:left; padding:0 16px 0 0; margin:0; width:590px;}
.onemail_dtls p {color:#555;float:left;font-size:12px;line-height:16px;margin:0;padding:0; font-weight:normal;text-align:justify}
.mails_time {float:right; margin:0; padding:0; width:120px; color:#555 }
.twomail {float:left; margin:0 0 10px 0;padding:10px 10px;display:block;width:716px; border-bottom:1px dotted #6B8093; background:#D9EBF9}	
.yellow_light {background:#FEFFC6!important;}
.gray {background:#C3C3C3!important;}
.thepet {display:none;}
.mail_controls {float:left; padding:10px 10px 0 10px; margin:0; width:700px; height:25px;background:#6B8093;}
.rate_user {
	float:left;
	padding:0;
	margin:0;
	width:526px;
	height:auto;
	color:#fff
}
.rate_user p{float:left;padding:0 10px 0 0;margin:0px; font-size:11px; font-weight:bold; text-align:left;color:#fff;}
.rate_user a {border:none; text-decoration:none}
.rate_user a img {border:none; text-decoration:none; float:left}
.mail_fullcontrols {float:left; padding:10px 10px 0 10px; margin:0; width:570px; height:25px;background:#6B8093;}

/**********pagination***********/
.pag_nav {width:100%; float:left; padding:0; margin:0;}
ul.pag_navigation {display:block;float:left;list-style:none;margin:10px 0;padding:0;}
ul.pag_navigation li {display:inline-block;margin:0 5px 0 0;padding:0; float:left; font-size:13px; font-weight:normal; text-align:left;color:#fff;line-height:16px;}
ul.pag_navigation li a {  border: 1px solid #D1D1D1;color:#1a1a1a;line-height:16px;padding:3px 5px;text-decoration:none;}
ul.pag_navigation li.act a {background:#ccc;color:#555; font-weight:bold;border: 1px solid #BEB7A9;}
ul.pag_navigation li a:hover {background:#ccc;color:#555;border: 1px solid #BEB7A9;}
.mails_communication{ width:100px; float:left;}
.mails_head_communication {width:150px; float:left; padding-top:3px}
.mails_date{ width:100px; float:left}
.mails_head_date{width:100px; float:left; padding-top:3px}
.mails_head_sender pl10{ width:200px}
.mails_subject{ width:90px; float:left}


/* page */
body {font-family:Tahoma, Geneva, sans-serif;background-color:#fff;color:#555; font-size:12px; font-weight:normal; padding:0; margin:0}
.mt0 {margin-top:0px!important}
.mr0 {margin-right:0px!important}
.mb0 {margin-bottom:0px!important}
.ml0 {margin-left:0px!important}
.pt0 {padding-top:0px!important}
.pr0 {padding-right:0px!important}
.pb0 {padding-bottom:0px!important}
.pl0 {padding-left:0px!important}
.fleft {float:left!important;}
.fright {
	float:right!important;
	clear: none;
}
.clear {clear:both;}




</style>