<div class="main_content">
  <div class="innercontent_outerbox">
      
      <h1>Digital Library</h1>
      <br />
<table width="885" border="0" align="center" cellpadding="5" cellspacing="5">
  <tr>
    <td>
      <form action="" method="get">
        <table width="100%" border="0" cellspacing="5" cellpadding="5">
      <tr>
        <td width="16%" align="left" valign="top">
            <?php echo CHtml::dropDownList('user_group_id',@$_GET['user_group_id'],UserGroup::userGroupFrontEnd(),array(
                'prompt'=>'Category (All)',
                'class'=>'Product_selectbox',
                'onChange'=>'javascript:window.location="'.Yii::app()->createUrl('site/download_center').'?user_group_id="+$("#user_group_id").val()'
                )); ?>
          </td>
            
        <td  width="84%" align="left" valign="top"><label for="textfield2"></label>
          <input type="text" value='<?php echo @$_GET['search_param']; ?>' name="search_param" id="search_param" class="downloadsearch" placeholder="Search Download" />          
          &nbsp;&nbsp;
          <input type="button" value="Search" name="btValide" class="download_search_button" 
                 onclick="window.location='<?php echo Yii::app()->createUrl('site/download_center'); ?>?user_group_id='+$('#user_group_id').val()+'&search_param='+$('#search_param').val()" />
        </td>
        </tr>
    </table>
        
        
        </form>
      
      </td>
  </tr>
</table>
<br />
<br />
<div class="featured_items_boxouter">

<ul class="download">
    <?php if($model!=null):?>
    <?php foreach($model as $eachModel): ?>
    
	<li>
		<a target='_blank' href="<?php echo Yii::app()->getBaseUrl(true); ?>/media/downloadcenter/<?php echo $eachModel->file; ?>" class="thumb">
                    <span>
                        <img src="<?php echo Yii::app()->getBaseUrl(true); ?>/media/downloadcenter/thumbs/120_150<?php echo $eachModel->file; ?>" alt="<?php echo $eachModel->file_title ?>"title="<?php echo $eachModel->file_title ?>" />
                    </span>
                </a>
		<div class="name_box">
                    <?php echo $eachModel->file_title ?>
                </div>
	</li>
        <?php endforeach; ?>
        <?php else: echo "<h1>No downloadables found</h1>"; endif; ?>
	
</ul>

</div><?php
        // the pagination widget with some options to mess
    $this->widget('CLinkPager', array(
            'currentPage'=>$pages->getCurrentPage(),
            'itemCount'=>$item_count,
            'pageSize'=>$page_size,
            'maxButtonCount'=>5,
            //'nextPageLabel'=>'My text >',
            'header'=>'',
        'htmlOptions'=>array('class'=>'pagination classC page-C-01'),
        ));
        ?> </div>
<?php echo $this->renderPartial('_bottom_common_user_product_group'); ?> 