<?php /* Smarty version 2.6.19, created on 2008-09-03 10:31:52
         compiled from individualism.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'individualism.tpl', 112, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><?php echo $this->_tpl_vars['user']; ?>
的个人主页</title>
</head>
<body>
<table width="1004" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="97">&nbsp;</td>
    <td width="811"><table width="810" height="35" border="0" align="center" cellpadding="0" cellspacing="0" background="images/首页_03.gif">
  <tr>
   <td width="110" align="center"><a href="subscibe/<?php echo $this->_tpl_vars['user_id']; ?>
.xml" class="white_STYLE3"><img src="images/2464.jpg" width="16" height="16" border="0"></a></td>
<?php if ($this->_tpl_vars['name'] != $this->_tpl_vars['names1'] || $this->_tpl_vars['names'] != T): ?>
    <td width="113" align="center"><a href="individualism_video.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&&video_user=<?php echo $this->_tpl_vars['user']; ?>
" class="white_STYLE3">视频</a></td>
   

 <td width="110" align="center">
 
<a href="subscibe_program.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&&video_user=<?php echo $this->_tpl_vars['user']; ?>
" class="white_STYLE3">订阅(<?php echo $this->_tpl_vars['subscibe_counts']; ?>
)</a></td> 
 <?php endif; ?>
<?php if ($this->_tpl_vars['user'] == $this->_tpl_vars['name']): ?>

 <td width="166" align="center"><a href="my_video_manage.php?video_user=<?php echo $this->_tpl_vars['name']; ?>
" class="white_STYLE3">我上传的节目</a></td>
 <td width="168" align="center"><a href="cancel_subscibe.php?video_user=<?php echo $this->_tpl_vars['name']; ?>
" class="white_STYLE3">我订阅的播客</a></td> <?php endif; ?> 
 <td width="283" align="center"><span class="white_STYLE3"> <?php if ($this->_tpl_vars['names'] == 'T'): ?> </span>
   <div align="center" class="white_STYLE3"><a href="program.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&video_user=<?php echo $this->_tpl_vars['user']; ?>
&subscibe_user=<?php echo $this->_tpl_vars['name']; ?>
">订阅节目</a></div>
   <span class="white_STYLE3"><?php endif; ?></span></td>
 </tr>
</table></td>
    <td width="96">&nbsp;</td>
  </tr>
</table>

<table width="1004" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="318" height="394" background="images/个人主页_02.gif">
	
	
	
	
	  <table width="318" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="114">&nbsp;</td>
          <td width="183" height="74">&nbsp;</td>
          <td width="21">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td height="281" valign="top"><table width="183" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center" valign="middle">
<!--从数据库中读取出以二进制格式存储的图片-->
<img src="head_picture.php?recid=<?php echo $this->_tpl_vars['user_id']; ?>
" width="120" height="135" border="3" style=" border-color:#CCCCCC; margin-top:5px; margin-left:5px; margin-bottom:5px; margin-right:5px;" ></td>
                </tr>
                <tr>
                  <td align="center" valign="middle"><table width="183" border="0" cellspacing="0" cellpadding="0">
              
<?php unset($this->_sections['video_name']);
$this->_sections['video_name']['name'] = 'video_name';
$this->_sections['video_name']['loop'] = is_array($_loop=$this->_tpl_vars['video_user']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['video_name']['show'] = true;
$this->_sections['video_name']['max'] = $this->_sections['video_name']['loop'];
$this->_sections['video_name']['step'] = 1;
$this->_sections['video_name']['start'] = $this->_sections['video_name']['step'] > 0 ? 0 : $this->_sections['video_name']['loop']-1;
if ($this->_sections['video_name']['show']) {
    $this->_sections['video_name']['total'] = $this->_sections['video_name']['loop'];
    if ($this->_sections['video_name']['total'] == 0)
        $this->_sections['video_name']['show'] = false;
} else
    $this->_sections['video_name']['total'] = 0;
if ($this->_sections['video_name']['show']):

            for ($this->_sections['video_name']['index'] = $this->_sections['video_name']['start'], $this->_sections['video_name']['iteration'] = 1;
                 $this->_sections['video_name']['iteration'] <= $this->_sections['video_name']['total'];
                 $this->_sections['video_name']['index'] += $this->_sections['video_name']['step'], $this->_sections['video_name']['iteration']++):
$this->_sections['video_name']['rownum'] = $this->_sections['video_name']['iteration'];
$this->_sections['video_name']['index_prev'] = $this->_sections['video_name']['index'] - $this->_sections['video_name']['step'];
$this->_sections['video_name']['index_next'] = $this->_sections['video_name']['index'] + $this->_sections['video_name']['step'];
$this->_sections['video_name']['first']      = ($this->_sections['video_name']['iteration'] == 1);
$this->_sections['video_name']['last']       = ($this->_sections['video_name']['iteration'] == $this->_sections['video_name']['total']);
?>
      <tr>
                      <td width="103" height="25" align="right">主页浏览：</td>
                      <td width="80" height="25">&nbsp;<?php echo $this->_tpl_vars['video_user'][$this->_sections['video_name']['index']]['tb_individualism_accessing']; ?>
</td>
                    </tr>
                    <tr>
                      <td height="25" align="right" valign="middle">收视数：</td>
                      <td>&nbsp;<?php echo $this->_tpl_vars['video_plays']; ?>
</td>
                    </tr>
                    
                    <tr>
                      <td height="32" align="right" valign="middle">订阅：</td>
                      <td><?php echo $this->_tpl_vars['subscibe_counts']; ?>
</td>
                    </tr>
                    <tr>
                      <td height="25" align="right" valign="middle">播客：</td>
                      <td><?php echo $this->_tpl_vars['user']; ?>
</td>
                    </tr>
<?php endfor; endif; ?>
                  </table></td>
                </tr>
    </table></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td height="39">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
    <td width="686" valign="top" background="images/个人主页_03.gif"><table width="686" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="26" height="67">&nbsp;</td>
	   
	    <td width="540"></td>
        <td width="120">&nbsp;</td>
      </tr>
      <tr>
        <td height="280">&nbsp;</td>
        <td valign="top"><table width="540" height="140" border="0" align="center" cellpadding="0" cellspacing="0">
   <?php if ($this->_tpl_vars['discuss_false'] == 'F'): ?>
  <tr>
    <td colspan="2" align="center">没有上传视频！</td>
  </tr>
<?php else: ?>
 <tr>

      <?php $number=0; ?>
  <?php unset($this->_sections['video_id']);
$this->_sections['video_id']['name'] = 'video_id';
$this->_sections['video_id']['loop'] = is_array($_loop=$this->_tpl_vars['video1']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['video_id']['show'] = true;
$this->_sections['video_id']['max'] = $this->_sections['video_id']['loop'];
$this->_sections['video_id']['step'] = 1;
$this->_sections['video_id']['start'] = $this->_sections['video_id']['step'] > 0 ? 0 : $this->_sections['video_id']['loop']-1;
if ($this->_sections['video_id']['show']) {
    $this->_sections['video_id']['total'] = $this->_sections['video_id']['loop'];
    if ($this->_sections['video_id']['total'] == 0)
        $this->_sections['video_id']['show'] = false;
} else
    $this->_sections['video_id']['total'] = 0;
if ($this->_sections['video_id']['show']):

            for ($this->_sections['video_id']['index'] = $this->_sections['video_id']['start'], $this->_sections['video_id']['iteration'] = 1;
                 $this->_sections['video_id']['iteration'] <= $this->_sections['video_id']['total'];
                 $this->_sections['video_id']['index'] += $this->_sections['video_id']['step'], $this->_sections['video_id']['iteration']++):
$this->_sections['video_id']['rownum'] = $this->_sections['video_id']['iteration'];
$this->_sections['video_id']['index_prev'] = $this->_sections['video_id']['index'] - $this->_sections['video_id']['step'];
$this->_sections['video_id']['index_next'] = $this->_sections['video_id']['index'] + $this->_sections['video_id']['step'];
$this->_sections['video_id']['first']      = ($this->_sections['video_id']['iteration'] == 1);
$this->_sections['video_id']['last']       = ($this->_sections['video_id']['iteration'] == $this->_sections['video_id']['total']);
?>
      <?php if(($number % 2) == 0){  ?></tr>      
<tr> <?php 
} ?>
        <td colspan="5"><table width="270" border="0" cellspacing="1" cellpadding="1">
		  	<tr>
				<td width="125" align="center" valign="middle"><a href="look.php?video_id=<?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
&video_name=<?php echo ((is_array($_tmp=$this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" target="_blank"><img name="news" src="<?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_picture']; ?>
" width="120" height="120" alt="<?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_explain']; ?>
" border="0" /></a></td>
				<td width="145" align="center" valign="middle"><table width="145" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="25" colspan="2" align="center"><?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_name']; ?>
</td>
                  </tr>
                  <tr>
                    <td width="45" height="25" align="right" valign="middle">类型：</td>
                    <td width="100"><div>

<?php unset($this->_sections['type_ids']);
$this->_sections['type_ids']['name'] = 'type_ids';
$this->_sections['type_ids']['loop'] = is_array($_loop=$this->_tpl_vars['video_type1']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['type_ids']['show'] = true;
$this->_sections['type_ids']['max'] = $this->_sections['type_ids']['loop'];
$this->_sections['type_ids']['step'] = 1;
$this->_sections['type_ids']['start'] = $this->_sections['type_ids']['step'] > 0 ? 0 : $this->_sections['type_ids']['loop']-1;
if ($this->_sections['type_ids']['show']) {
    $this->_sections['type_ids']['total'] = $this->_sections['type_ids']['loop'];
    if ($this->_sections['type_ids']['total'] == 0)
        $this->_sections['type_ids']['show'] = false;
} else
    $this->_sections['type_ids']['total'] = 0;
if ($this->_sections['type_ids']['show']):

            for ($this->_sections['type_ids']['index'] = $this->_sections['type_ids']['start'], $this->_sections['type_ids']['iteration'] = 1;
                 $this->_sections['type_ids']['iteration'] <= $this->_sections['type_ids']['total'];
                 $this->_sections['type_ids']['index'] += $this->_sections['type_ids']['step'], $this->_sections['type_ids']['iteration']++):
$this->_sections['type_ids']['rownum'] = $this->_sections['type_ids']['iteration'];
$this->_sections['type_ids']['index_prev'] = $this->_sections['type_ids']['index'] - $this->_sections['type_ids']['step'];
$this->_sections['type_ids']['index_next'] = $this->_sections['type_ids']['index'] + $this->_sections['type_ids']['step'];
$this->_sections['type_ids']['first']      = ($this->_sections['type_ids']['iteration'] == 1);
$this->_sections['type_ids']['last']       = ($this->_sections['type_ids']['iteration'] == $this->_sections['type_ids']['total']);
?>
<?php if ($this->_tpl_vars['video_type1'][$this->_sections['type_ids']['index']]['tb_type_id'] == $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_type']): ?>
<?php echo $this->_tpl_vars['video_type1'][$this->_sections['type_ids']['index']]['tb_type_name']; ?>

<?php endif; ?> 
<?php endfor; endif; ?>


</div></td>
                  </tr>
                  
                  <tr>
                    <td height="25" align="right" valign="middle">时间：</td>
                    <td><?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_date']; ?>
</td>
                  </tr>
                  <tr>
                    <td height="25" align="right" valign="middle">播客：</td>
                    <td><?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_author']; ?>
</td>
                  </tr>
                  <tr>
                    <td height="25" colspan="2" align="center" valign="middle"><a href="look.php?video_id=<?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
&video_name=<?php echo ((is_array($_tmp=$this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'url') : smarty_modifier_escape($_tmp, 'url')); ?>
" target="_blank">播放</a> &nbsp;&nbsp;<a href="download.php?id=<?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
">下载</a>
                        
                      &nbsp;&nbsp;<a href="#" onClick="javascript:Wopen=open('intro.php?id=<?php echo $this->_tpl_vars['video1'][$this->_sections['video_id']['index']]['tb_video_id']; ?>
','','height=700,width=665,scrollbars=no');">介绍</a></td>
                  </tr>
              </table></td>
		  	</tr>
		  </table></td>
        <?php if(($number %2) != 0){ ?> 
      <?php 

}
      $number++;
       ?>
      <?php endfor; endif; ?>  </tr> 

</table></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="47">&nbsp;</td>
        <td valign="bottom">
		<table width="540" height="25" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
              <td width="355"><div align="left">&nbsp;&nbsp;视频&nbsp;<?php echo $this->_tpl_vars['total1']; ?>
&nbsp;条&nbsp;每页显示&nbsp;<?php echo $this->_tpl_vars['pagesize1']; ?>
&nbsp;条&nbsp;第&nbsp;<?php echo $this->_tpl_vars['page1']; ?>
&nbsp;页/共&nbsp;<?php echo $this->_tpl_vars['pagecount1']; ?>
&nbsp;页</div></td>
              <td width="285"><div align="right">

<?php if ($this->_tpl_vars['page1'] == 1): ?>首页&nbsp;上一页<?php else: ?><a href="individualism.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&video_user=<?php echo $this->_tpl_vars['user']; ?>
&pages=1">首页</a>&nbsp;<a href="individualism.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&video_user=<?php echo $this->_tpl_vars['user']; ?>
&pages=<?php echo $this->_tpl_vars['page1']-1; ?>
" >上一页</a><?php endif; ?> &nbsp;<?php if ($this->_tpl_vars['page1'] == $this->_tpl_vars['pagecount1']): ?>下一页&nbsp;尾页<?php else: ?><a href="individualism.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&video_user=<?php echo $this->_tpl_vars['user']; ?>
&pages=<?php echo $this->_tpl_vars['page1']+1; ?>
">下一页</a>&nbsp;<a href="individualism.php?user_id=<?php echo $this->_tpl_vars['user_id']; ?>
&video_user=<?php echo $this->_tpl_vars['user']; ?>
&pages=<?php echo $this->_tpl_vars['pagecount1']; ?>
">尾页</a><?php endif; ?>

</div></td>            </tr>
<?php endif; ?>
</table>		</td>
        <td>&nbsp;</td>
      </tr>

    </table></td>
  </tr>
</table>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/登录后_11.gif"></td>
  </tr>
</table>
</body>
</html>
