Exemplo n.º 1
0
 public function show_video()
 {
     $video_id = $this->input['id'];
     ob_end_clean();
     echo hg_build_link(SNS_VIDEO . "video_play.php", array('id' => $video_id));
     exit;
 }
Exemplo n.º 2
0
 public function show()
 {
     $id = $this->user['id'] ? $this->user['id'] : 0;
     $type = $this->input['type'] ? $this->input['type'] : 0;
     if (!$id) {
         $this->check_login();
     }
     $user_id = $this->user['id'];
     include_once ROOT_PATH . 'lib/user/user.class.php';
     $info = new user();
     $user_info = $info->getUserById($user_id, "all");
     $user_info = $user_info[0];
     $id = $user_info['id'];
     $hot_station = $this->mVideo->get_station(0, 0, 0, 10);
     if (is_array($hot_station)) {
         unset($hot_station[count($hot_station) - 1]);
     }
     $hot_video = $this->mVideo->get_video_info(0, 0, 6, '', 2);
     $this->pagelink = hg_build_link('', array('type' => $type));
     $count = 9;
     $page = (intval($this->input['pp']) ? intval($this->input['pp']) : 0) / $count;
     $stationInfo = $this->mVideo->get_user_collect($id, $type, $page, $count);
     if (is_array($stationInfo)) {
         $data['totalpages'] = $stationInfo['total'];
         unset($stationInfo['total']);
         $data['perpage'] = $count;
         $data['curpage'] = $this->input['pp'];
         $data['pagelink'] = $this->pagelink;
         $showpages = hg_build_pagelinks($data);
     }
     $list = array(array('name' => '视频收藏', 'url' => hg_build_link('my_favorites.php')));
     $album_info = $this->mVideo->get_album_info($id, $page, $count);
     $album_total = $album_info['total'];
     $this->page_title = $this->lang['pageTitle'];
     $this->settings['nav_menu'][3] = array("name" => "我的收藏", "url" => SNS_VIDEO . SCRIPTNAME, "last" => 1);
     $gScriptName = SCRIPTNAME;
     $this->tpl->addVar('head_line', $this->settings['nav_menu']);
     $this->tpl->addVar('type', $type);
     $this->tpl->addVar('list', $list);
     $this->tpl->addVar('stationInfo', $stationInfo);
     $this->tpl->addVar('showpages', $showpages);
     $this->tpl->addVar('album_total', $album_total);
     $this->tpl->addVar('id', $id);
     $this->tpl->addVar('user_id', $user_id);
     $this->tpl->addVar('user_info', $user_info);
     $this->tpl->addVar('hot_station', $hot_station);
     $this->tpl->addVar('hot_video', $hot_video);
     $this->tpl->addVar('gScriptName', $gScriptName);
     $this->tpl->addHeaderCode(hg_add_head_element('echo'));
     $this->tpl->setTemplateTitle($this->page_title);
     $this->tpl->outTemplate('my_favorites');
 }
Exemplo n.º 3
0
 public function getMyGroups()
 {
     $groups = array();
     $groups = $this->mGroup->get_my_groups($this->user['id']);
     if (!$groups) {
         echo 0;
     } else {
         $ul = '<ul class="group_list">';
         foreach ($groups as $key => $value) {
             $ul .= '<li class=" " onmouseover="changeCss(this);" onmouseout="changeCss(this);" onclick="choose_groups(' . $value['group_id'] . ',\'' . $value['name'] . '\')" >';
             $ul .= $value['name'] . '</li>';
         }
         $ul .= '</ul>';
         $ul .= '<div style="text-align:right;margin-top:10px;"><input style="height:25px;width:64px;font-size:12px;margin-right:5px;" type="button" id="pub_to_btnYES" value="确定" onclick="confirm_groups()" />&nbsp;&nbsp;<input id="pub_to_btnNO" type="button" value="取消" style="height:25px;width:64px;font-size:12px;margin-right:15px;" onclick="cancle_choice();" /></div>';
         $id = $this->input['id'] ? $this->input['id'] : 0;
         if ($id) {
             $link = hg_build_link(SNS_VIDEO . "video_play.php", array('id' => $id));
             $ul .= '<input type="hidden" id="video_id" value="' . $id . '"/><input type="hidden" id="video_info" value="' . $link . '"/><input type="hidden" id="video_name" value="' . $this->input['title'] . '"/>';
         }
         echo $ul;
     }
 }
Exemplo n.º 4
0
    echo $this->lang['topic_follow'];
    ?>
<strong>(<span id="liv_topic_follow_num"><?php 
    echo count($topic_follow);
    ?>
</span>)</strong>
		</div>
		<div class="wb-block1">
		<ul class="topic clear">
		<?php 
    if ($topic_follow) {
        foreach ($topic_follow as $key => $value) {
            ?>
		<li class="topic_li" onmouseover="this.className='topic_li_hover'" onmouseout="this.className='topic_li'">
		<?php 
            $title = '<a href="' . hg_build_link('k.php', array('q' => $value['title'])) . '">' . $value['title'] . '</a>';
            echo $title;
            ?>
		<a class="close" href="javascript:void(0);" onclick="del_Topic_Follow('<?php 
            echo $value['topic_id'];
            ?>
',this)"></a>
		<div class="hidden" id="topic_<?php 
            echo $value['topic_id'];
            ?>
"><?php 
            echo $value['title'];
            ?>
</div>
		</li>
		<?php 
Exemplo n.º 5
0
?>
"/>
<?php 
echo hg_add_head_element('echo');
?>
</head>
<body<?php 
echo $html_body_attr;
?>
 class="img_h">
<div class="ucenter-con">
<div id = "notify" style="position:relative;clear:both;width:175px; float:right; z-index:9999"><div id='flownotify'></div></div>
<div class="head">
	<div class="head_top">
		<div class="logo"><a href="<?php 
echo hg_build_link('index.php');
?>
"><img src="<?php 
echo RESOURCE_DIR;
?>
img/logo.jpg"/></a></div>
	    <div class="hright">
	    	<div class="hlink">
	        	<ul class="link_txt">
	                <li><a href="#">帮助</a></li>
	                <li class="lpd">|</li>
	                <li><a href="#">收藏本站</a></li>
	            </ul>
	            <ul class="css_chang">
	            	<li class="cs1"></li>
	                <li class="cs2"></li>
Exemplo n.º 6
0
}

function show_img(id)
{
	var obj_img = '#video_edit_img_' + id;
	var obj_edit = '#video_edit_' + id;

	$(obj_img).show();
	$(obj_edit).hide();
}

</script>
<div class="main_div">
	 <div class="right_tips right_window">
	 	<h3><a href="<?php 
echo hg_build_link("upload.php");
?>
">+上传视频</a>我的视频</h3>
	 	<div class="show_info">
		{if $video_info}
			<table style="margin-top:10px;font-size:12px;">
			<tr class="video_table_head" ><th>视 频</th><th>名称</th><th>状 态</th><th>发布时间</th><th>播放/评论</th><th>时    长</th><th>管理</th></tr>
			{foreach $video_info as $k => $v}
			{code}
				$tong = "";
			{/code}
			{if $v['is_show'] == 2}
			{code}
				$link = hg_build_link(SNS_VIDEO."video_play.php", array('id' =>$v['id']));
				$tar = 'target="_blank"';
				
Exemplo n.º 7
0
<div class="pop" id="pop">
<span style="font-size:12px;color:#0082CB;width:auto;" onclick="closevideo()">关闭</span>
<div id="pop_s"></div>
</div>	
<div class="news-latest">
<div class="tp"></div>
<div class="md"></div>
</div>
<ul class="list clear">
<?php 
//echo "<pre>";
//print_r($statusline);
//echo "</pre>";
foreach ($statusline as $key => $value) {
    $user_url = hg_build_link(USER_URL, array('user_id' => $value['member_id']));
    $text = hg_verify($value['text']);
    $text_show = ':' . ($value['text'] ? $value['text'] : $this->lang['forward_null']);
    if ($value['reply_status_id']) {
        $forward_show = '//@' . $value['user']['username'] . ' ' . $text_show;
        $title = $this->lang['forward_one'] . $value['retweeted_status']['text'];
        $status_id = $value['reply_user_id'];
    } else {
        $forward_show = '';
        $title = $this->lang['forward_one'] . $value['text'];
        $status_id = $value['member_id'];
    }
    $text_show = hg_verify($text_show);
    $transmit_info = $value['retweeted_status'];
    ?>
	<li class="clear" id="mid_<?php 
    echo $value['id'];
Exemplo n.º 8
0
<?php 
if (!empty($statusline) && is_array($statusline)) {
    //print_r($statusline);
    ?>
<div class="zhibo_bor" style="position:relative ;">

<p class="zhibo_rtitle">关于#<?php 
    echo $keywords;
    ?>
#讨论</p>


<ul id="speak" class="zhibo_bbs">
<?php 
    foreach ($statusline as $key => $value) {
        $user_url = hg_build_link(SNS_UCENTER . 'user.php', array('user_id' => $value['member_id']));
        $len = strlen('#' . $keywords . '#');
        if (substr(trim($value['text']), $len - 1, 1) == '#') {
            $value['text'] = substr(trim($value['text']), $len);
        }
        $text = hg_verify($value['text']);
        $text_show = ':' . ($value['text'] ? $value['text'] : $this->lang['forward_null']);
        if ($value['reply_status_id']) {
            $forward_show = '//@' . $value['user']['username'] . ' ' . $text_show;
            $title = $this->lang['forward_one'] . $value['retweeted_status']['text'];
            $status_id = $value['reply_user_id'];
        } else {
            $forward_show = '';
            $title = $this->lang['forward_one'] . $value['text'];
            $status_id = $value['member_id'];
        }
Exemplo n.º 9
0
 public function check($type = "base")
 {
     $this->input['name'] = urldecode($this->input['name']);
     if (preg_match("/^[" . chr(0xa1) . "-" . chr(0xff) . "a-za-z0-9_]+\$/", $this->input['name'])) {
         $this->input['name'] = iconv('GBK', 'UTF-8', $this->input['name']);
     }
     $this->input['name'] = trim(urlencode($this->input['name']));
     $get_userinfo_func = 'getUserById';
     if (!$this->input['user_id'] && !$this->input['name']) {
         if (!$this->user['id']) {
             $this->check_login();
         } else {
             $user_id = intval($this->user['id']);
         }
     } elseif ($this->input['user_id']) {
         $user_id = intval($this->input['user_id']);
         $this->pagelink = hg_build_link('', array('user_id' => $this->input['user_id']));
     } else {
         $user_id = $this->input['name'];
         $this->pagelink = hg_build_link('', array('name' => $this->input['name']));
         $get_userinfo_func = 'getUserByName';
     }
     $info = new user();
     $user_info = $info->{$get_userinfo_func}($user_id, $type);
     return $user_info;
 }
Exemplo n.º 10
0
        } else {
            ?>
	        		 	<li class="mars"><a title="<?php 
            echo $value['user']['username'];
            ?>
" href="<?php 
            echo hg_build_link(SNS_UCENTER . "user.php", array("user_id" => $value['user']['id']));
            ?>
"><img src="<?php 
            echo $value['user']['middle_avatar'];
            ?>
" width="50" height="50" /></a><a title="<?php 
            echo $value['user']['username'];
            ?>
" href="<?php 
            echo hg_build_link(SNS_UCENTER . "user.php", array("user_id" => $value['user']['id']));
            ?>
"><?php 
            echo hg_cutchars($value['user']['username'], 4, " ");
            ?>
</a></li>
	        			<?php 
        }
        $i++;
    }
    ?>
	            </ul>
	        </div>
		<?php 
}
?>
Exemplo n.º 11
0
		{if !is_array($video)||!$video}			
			{code}
				$null_title = "sorry!!!";
				$null_text = "暂未上传视频";
				$null_type = 1;
				$null_url = $_SERVER['HTTP_REFERER'];
			{/code}
			{template:unit/null}
		{else}
			<ul class="video">
			{foreach $video as $key => $value}
				<li class="cus_pad"><a target="_blank" href="<?php 
echo hg_build_link(SNS_VIDEO . "video_play.php", array('id' => $value['id']));
?>
"><img title="{$value['title']}" src="{$value['schematic']}" width="144" height="108" /></a><a title="{$value['title']}" target="_blank" href="<?php 
echo hg_build_link(SNS_VIDEO . "video_play.php", array('id' => $value['id']));
?>
"><?php 
echo hg_cutchars($value['title'], 10, ' ');
?>
</a><span class="txt">播放:<strong>{$value['play_count']}</strong></span><span class="txt">评论:<strong>{$value['comment_count']}</strong></span></li>
			{/foreach}
			</ul>
			<div class="clear"></div>
		{/if}
        {$showpages}
        <div class="clear"></div>
        </div>
		<div class="con_bottom clear"></div>
		</div>
    </div>
Exemplo n.º 12
0
 public function check($type = "base")
 {
     $this->input['name'] = trim(urlencode($this->input['name']));
     $get_userinfo_func = 'getUserById';
     if (!$this->input['user_id'] && !$this->input['name']) {
         if (!$this->user['id']) {
             $this->check_login();
         } else {
             $user_id = intval($this->user['id']);
         }
     } elseif ($this->input['user_id']) {
         $user_id = intval($this->input['user_id']);
         $this->pagelink = hg_build_link('', array('user_id' => $this->input['user_id']));
     } else {
         $user_id = $this->input['name'];
         $this->pagelink = hg_build_link('', array('name' => $this->input['name']));
         $get_userinfo_func = 'getUserByName';
     }
     $info = new user();
     $user_info = $info->{$get_userinfo_func}($user_id, $type);
     return $user_info;
 }
Exemplo n.º 13
0
 /**
  * 
  * 显示用户粉丝界面
  */
 public function show()
 {
     $this->input['name'] = trim($this->input['name']);
     $get_userinfo_func = 'getUserById';
     if (!$this->input['user_id'] && !$this->input['name']) {
         if (!$this->user['id']) {
             $this->check_login();
         } else {
             $user_id = intval($this->user['id']);
         }
     } elseif ($this->input['user_id']) {
         $user_id = intval($this->input['user_id']);
     } else {
         $user_id = $this->input['name'];
         $get_userinfo_func = 'getUserByName';
     }
     $user_info = $this->{$get_userinfo_func}($user_id, 'all');
     if (empty($user_info)) {
         $this->ReportError('用户不存在!');
     }
     if ($user_info['id'] == $this->user['id']) {
         $is_my_page = true;
     } else {
         if ($this->user['id']) {
             $user_relation = $this->get_user_relation($this->user['id'], $user_info['id']);
         } else {
             $is_my_page = true;
         }
     }
     if ($this->input['search'] || $this->input['flag'] == 1) {
         $screen_name = trim($this->input['screen_name']);
         $followers = $this->get_search_result($screen_name);
         if (empty($followers)) {
             $search_result = 1;
         } else {
             $total_nums = $followers[count($followers) - 1];
             //搜索出关注用户的数据记录总数
             unset($followers[count($followers) - 1]);
             $paras = array('flag' => 1, 'screen_name' => $this->input['screen_name']);
         }
     } else {
         $total_nums = $user_info['followers_count'];
         //粉丝的数据记录总数
         $followers = $this->getFans($user_info['id'], $total_nums);
         //获取该用户的粉丝对象
     }
     $paras['user_id'] = $user_info['id'];
     $data['pagelink'] = hg_build_link('', $paras);
     if (empty($followers)) {
         if ($search_result == 1) {
             $no_result = true;
         } else {
             $have_followers = false;
         }
     } else {
         $data['totalpages'] = $total_nums;
         $data['perpage'] = 20;
         $data['curpage'] = $this->input['pp'];
         $showpages = hg_build_pagelinks($data, 1);
         $have_followers = true;
         $followers_ids = array();
         foreach ($followers as $k => $v) {
             $followers_ids[] = $v['id'];
         }
         $ids = implode(',', $followers_ids);
         $relation = $this->get_relation($this->user['id'], $ids);
         //获取当前用户与取得用户的IDS的关系
         $len = count($followers);
         for ($i = 0; $i < $len; $i++) {
             $followers[$i]['is_mutual'] = $relation[$i];
         }
     }
     $last_status = $this->status->show($user_info['last_status_id']);
     if (is_array($last_status)) {
         $last_status = $last_status[0];
     }
     include_once ROOT_PATH . 'lib/class/groups.class.php';
     $this->group = new Group();
     $group = $this->group->get_my_groups($user_info['id']);
     if (is_array($group) && $group) {
         $group_nums = array_pop($group);
     }
     include_once ROOT_PATH . 'lib/video/video.class.php';
     $this->mVideo = new video();
     $concern = $this->mVideo->get_user_station_concern($user_id);
     include_once ROOT_PATH . 'lib/class/relation.class.php';
     $this->relation = new Relation();
     $user_fans = $this->relation->get_fans($user_id, 0, 9);
     $user_friends = $this->relation->get_friends($user_id, 0, 9);
     $this->page_title = $user_info['username'] . '的粉丝';
     //$this->page_title =  $this->lang['pageTitle'];
     $gScriptName = SCRIPTNAME;
     hg_add_head_element('js', RESOURCE_DIR . 'scripts/' . 'dispose.js');
     hg_add_head_element('js', RESOURCE_DIR . 'scripts/' . 'fans.js');
     hg_add_head_element('js', RESOURCE_DIR . 'scripts/' . 'user.js');
     /**
      * 页面中的参数定义
      */
     $user_param = array('user_id' => $user_info['id']);
     $user_param = array('is_my_page' => $is_my_page);
     $id = $user_info['id'];
     $this->tpl->addVar('user_param', $user_param);
     $this->tpl->addVar('user_fans', $user_fans);
     $this->tpl->addVar('user_friends', $user_friends);
     $this->tpl->addVar('user_info', $user_info);
     $this->tpl->addVar('id', $id);
     $this->tpl->addVar('concern', $concern);
     $this->tpl->addVar('relation', $relation);
     $this->tpl->addVar('followers', $followers);
     $this->tpl->addVar('showpages', $showpages);
     $this->tpl->addVar('is_my_page', $is_my_page);
     $this->tpl->addVar('group', $group);
     $this->tpl->addVar('have_followers', $have_followers);
     $this->tpl->addHeaderCode(hg_add_head_element('echo'));
     $this->tpl->setTemplateTitle($this->page_title);
     $this->tpl->outTemplate('fans');
     //数据写入粉丝模板
 }
Exemplo n.º 14
0
<?php

/* $Id: login.php 87 2011-06-21 07:10:24Z repheal $ */
?>
{template:head}
<div class="vui usr_login">
<div class="con-left">	<div class="station_content">		<h3 class="con_top">登陆</h3>	<div class="show_info">
<form action="<?php 
echo hg_build_link(SNS_UCENTER . "login.php");
?>
" method="POST">
<h1>请先登录</h1>
<table id="login" width="300px" border="0" align="center" cellpadding="0" cellspacing="0">
	  
  <tr>
    <td width="169" height="44" align="right" valign="middle">用户名:</td>
    <td width="430" height="44" align="left" valign="middle">
		<div >
			<input type="text" id="username" name="username" style="width:150px;" />
		</div>
	</td>
    <td rowspan="3" width="25" align="center" valign="top" >
   	</td>
  </tr>
  <tr>
    <td height="40" align="right" valign="middle">密&nbsp;&nbsp;码:</td>
    <td width="430" height="41" align="left" valign="middle">
		<div >
			<input type="password" id="password" name="password" style="width:150px;" />
		</div>
	</td>
Exemplo n.º 15
0
            }
            ?>
					<li class="<?php 
            echo $border;
            ?>
">
						<a href="<?php 
            echo hg_build_link(SNS_UCENTER . "user.php", array("user_id" => $v['user_id']));
            ?>
"><img class="station_logo" src="<?php 
            echo $v['small'];
            ?>
"/></a>
						<ul class="his_list">
							<?php 
            $url = hg_build_link(SNS_VIDEO . "station_play.php", array('sta_id' => $v['id']));
            ?>
							<li><a href="<?php 
            echo $url;
            ?>
"><?php 
            echo $v['web_station_name'];
            ?>
:</a>
								<?php 
            if (is_array($programe)) {
                //										$num = $total;
                $num = 1;
                foreach ($programe as $kp => $vp) {
                    ?>
										<a style="color:#333;" title="<?php 
Exemplo n.º 16
0
    echo UPLOAD_URL . LOGO_DIR;
    ?>
0.gif"/>
						<?php 
}
?>
						
						
					</div>
					<div {$style_2} id="get_station" class="station_info">
						<ul>
							<li class="station_name">
								<span class="enter_program">
								{if ALLOW_PROGRAME}
								<a href="<?php 
echo hg_build_link("my_program.php");
?>
">进入节目单</a>
								{/if}
								</span>
								<span id="get_station_name">{$stationInfo['web_station_name']}</span>
							</li>
							<li>
								<span style="display: inline-block;">{$_lang['station_brief']}</span>
								<span id="get_brief" style=" line-height: 25px;letter-spacing: 1pt;display: inline;">{$stationInfo['brief']}</span>
							</li>
							<li>
								<span style="display: inline-block;">{$_lang['station_tags']}</span>
								<span id="get_tags">{$stationInfo['tags']}</span>
							</li>
						</ul>
Exemplo n.º 17
0
    echo $this->lang['topic_follow'];
    ?>
<strong>(<span id="liv_topic_follow_num"><?php 
    echo count($topic_follow);
    ?>
</span>)</strong>
		</div>
		<div class="wb-block1">
		<ul class="topic clear">
		<?php 
    if ($topic_follow) {
        foreach ($topic_follow as $key => $value) {
            ?>
		<li class="topic_li" onmouseover="this.className='topic_li_hover'" onmouseout="this.className='topic_li'">
		<?php 
            $title = '<a title="' . $value['title'] . '" href="' . hg_build_link('k.php', array('q' => $value['title'])) . '">' . hg_cutchars($value['title'], 10, " ") . '</a>';
            echo $title;
            ?>
		<a class="close" href="javascript:void(0);" onclick="del_Topic_Follow('<?php 
            echo $value['topic_id'];
            ?>
',this)"></a>
		<div class="hidden" id="topic_<?php 
            echo $value['topic_id'];
            ?>
"><?php 
            echo $value['title'];
            ?>
</div>
		</li>
		<?php 
Exemplo n.º 18
0
			<li>
				<a title="<?php 
        echo $value['web_station_name'];
        ?>
" href="<?php 
        echo hg_build_link(SNS_VIDEO . "station_play.php", array('sta_id' => $value['id']));
        ?>
"><img src="<?php 
        echo $value['small'];
        ?>
"/></a><br/>
				<a title="<?php 
        echo $value['web_station_name'];
        ?>
" href="<?php 
        echo hg_build_link(SNS_VIDEO . "station_play.php", array('sta_id' => $value['id']));
        ?>
"><?php 
        echo hg_cutchars($value['web_station_name'], 5, " ");
        ?>
</a>
			</li>
			<?php 
    }
    ?>
				</ul>
				<div class="clear1"></div>
			</div>
		</div>
		</div>
	<?php 
Exemplo n.º 19
0
			<div class="pop" id="pop">
				<span style="font-size:12px;color:#0082CB;width:auto;" onclick="closevideo()">关闭</span>
				<div id="pop_s"></div>
			</div>
			<div class="con_middle con_middle_search">
			{if is_array($video_info)} 
				<ul>
				{foreach $video_info as $key => $value}
						<li class="search_li">
							<ul class="search_result">
								<li><a target="_blank" href="<?php 
echo hg_build_link("video_play.php", array("id" => $value['id']));
?>
"><img src="{$value['schematic']}"/></a></li>
								<li>名称:<a target="_blank" href="<?php 
echo hg_build_link("video_play.php", array("id" => $value['id']));
?>
"><?php 
echo hg_match_red(hg_cutchars($value['title'], 7, " "), $name);
?>
</a></li>
								<li>标签:<?php 
echo $value['tags'] ? hg_tags(hg_cutchars($value['tags'], 7, " "), $name) : "暂无";
?>
</li>
								<li>播发次数:{$value['play_count']}</li>
							</ul>
						</li>
					{/foreach}
				</ul> 
				{$showpages}
Exemplo n.º 20
0
        ?>
><a href="<?php 
        echo $link;
        ?>
"><?php 
        echo $this->nav['lang'][$k];
        ?>
</a></li><?php 
        echo $split;
        ?>
						<?php 
        $i++;
    }
    ?>
                       </ul></li><!-- <li class="user_setting"><a href="<?php 
    echo hg_build_link(SNS_UCENTER . "userprofile.php");
    ?>
">设置</a></li> --><li class="user_logout"><a href="<?php 
    echo SNS_UCENTER;
    ?>
login.php?a=logout">退出</a></li>  
					</ul> 
				</div>
			<?php 
}
?>
		</div>
	</div>
	<div class="tab_menu clear">
	<?php 
if (SECOND_NAV_URL) {
Exemplo n.º 21
0
">个人设置</a>
		<a href="<?php 
    echo hg_build_link('login.php', array('a' => 'logout'));
    ?>
">退出</a>
	</div> 
	<?php 
}
?>
	<div class="user-name">
		<a href="<?php 
echo hg_build_link('user.php', array('user_id' => $user_info['id']));
?>
">
			<h5><?php 
echo $user_info['username'];
?>
</h5>
		</a> 
	</div>
	<a href="<?php 
echo hg_build_link('user.php', array('user_id' => $user_info['id']));
?>
"><img title="<?php 
echo $user_info['username'];
?>
" src="<?php 
echo $user_info['middle_avatar'];
?>
"></a>
</div>
Exemplo n.º 22
0
?>
">关注</a></div></li>
                        <li class="line" style="width:60px;"><div class="p1"><?php 
echo $this->user['followers_count'];
?>
</div><div><a href="<?php 
echo hg_build_link(SNS_UCENTER . "fans.php", array('user_id' => $this->user['id']));
?>
">粉丝</a></div></li>
                        <li class="line" style="width:60px;"><div class="p1"><?php 
echo $this->user['status_count'];
?>
</div><div><a href="<?php 
echo hg_build_link(SNS_UCENTER . "user.php", array('user_id' => $this->user['id']));
?>
">点滴</a></div></li>
                        <li style="width:60px;"><div class="p1"><?php 
echo $this->user['video_count'];
?>
</div><div><a href="<?php 
echo hg_build_link(SNS_UCENTER . "user.php", array('user_id' => $this->user['id']));
?>
">视频</a></div></li>
                    </ul>
                </div> 
        </div> 
        <div class="g_bre3"><img src="./res/img/hc_area_bottom.gif" width="246" height="7" /></div> 
    </div>
    </div>
    <?php 
include hg_load_template('foot');
Exemplo n.º 23
0
                <ul class="epg">
                <?php 
        if (!$value['program']) {
            ?>
                <li><a href="#">用户暂未设置节目单</a></li>
               <?php 
        } else {
            foreach ($value['program'] as $k => $v) {
                if ($v['play']) {
                    ?>
	                		<li class="nowplay">
	                		<?php 
                    echo hg_encode_time($v['start_time']);
                    ?>
	                		<a target="_blank" href="<?php 
                    echo hg_build_link('station_play.php', array('sta_id' => $v['sta_id'], 'user_id' => $v['user_id']));
                    ?>
"><?php 
                    echo $v['programe_name'];
                    ?>
</a>
	                		</li>
                		<?php 
                } else {
                    ?>
	                		<li>
	                		<?php 
                    echo hg_encode_time($v['start_time']);
                    ?>
	                		<?php 
                    echo $v['programe_name'];
Exemplo n.º 24
0
" name="referto" />
		</form> -->
		<div class="pad-all">
				
		<div class="bk-top1">热门话题</div>                                                                                                                                                                                              
		<div class="wb-block1">
		<?php 
    if ($topic) {
        ?>
		<ul class="topic clear">
			<?php 
        foreach ($topic as $value) {
            ?>
			<li>
				<a href="<?php 
            echo hg_build_link('k.php', array('q' => $value['title']));
            ?>
">
				<?php 
            echo $value['title'];
            ?>
</a><span>(<?php 
            echo $value['relate_count'];
            ?>
)</span>
			</li>
			<?php 
        }
        ?>
		</ul>
		
Exemplo n.º 25
0
							case 1:
								break;
							case 4:
								break;
							case 7:
								break;
							default:
								$style = ' class="cus_pad"';
								break;
						}
	        		{/code}
	        			<li{$style}><a title="{$value['username']}" href="<?php 
echo hg_build_link("user.php", array('user_id' => $value['id']));
?>
"><img src="{$value['middle_avatar']}" width="50" height="50" /></a><a title="{$value['username']}" href="<?php 
echo hg_build_link("user.php", array('user_id' => $value['id']));
?>
"><?php 
echo hg_cutchars($value['username'], 4, " ");
?>
</a></li>
	        		{code}
	        		  $i++;
	        		{/code}	
	        	{/foreach}
        	 </ul>
        	{/if}
        </div>
        <div class="g_bre3"></div>
       <div style="text-align:center;">
    {code}
Exemplo n.º 26
0
	<div class="show_info">
			<div class="album">
				<ul class="album_ul">
					{if $album_info}
						{foreach $album_info as $key => $value}
						<li class="album_li" onmousemove="album_mouse({$value['id']},0)" onmouseout="album_mouse({$value['id']},1)">
							<a href="javascript:void(0);" onclick="manage_album_video({$value['id']});"><img src="{$value['cover']}"/></a>
							<div id="album_na_{$value['id']}" class="album_na">
								<a href="javascript:void(0);" onclick="manage_album_video({$value['id']});"><?php 
echo hg_cutchars($value['name'], 8, " ");
?>
({$value['video_count']})</a>
							</div>
							<div id="album_ma_{$value['id']}" class="album_ma" style="display:none;">
<!--								<a target="_blank" href="<?php 
echo hg_build_link('user_album_video.php', array('id' => $value['id'], 'user_id' => $value['user_id']));
?>
">预览</a>-->
								<a href="javascript:void(0);" onclick="del_album({$value['id']});">删除</a>
								<a href="javascript:void(0);" onclick="edit_album_info({$value['id']});">编辑</a>
							</div>
						</li>
					{/foreach}
					{else}
					<li>
						{code}
							$null_title = "sorry!!!";
							$null_text = "暂未创建专辑";
							$null_type = 1;
							$null_url = $_SERVER['HTTP_REFERER'];
						{/code}
Exemplo n.º 27
0
					</div>
					<div class="comment-con"><?php 
echo hg_show_face($value['content']);
?>
</div>
				{if is_array($value['reply'])}
				<ul class="reply_list" id="rep_{$value['id']}">
				{foreach $value['reply'] as $k=>$v}
					<li id="com_{$v['id']}" class="clear">
						<div class="comment-img"><a href="<?php 
echo hg_build_link('user.php', array('user_id' => $v['user']['id']));
?>
"><img src="{$v['user']['middle_avatar']}"/></a></div>
						<div class="comment-bar">
							<a class="bar-left" href="<?php 
echo hg_build_link('user.php', array('user_id' => $v['user']['id']));
?>
">{$v['user']['username']}</a>
							<div class="bar-right">
								<span><?php 
echo hg_get_date($v['create_time']);
?>
</span>
								{if $state != 2}
								<a href="javascript:void(0);" onclick="del_comment({$v['id']},{$v['cid']},{$type});">删除</a>
								{else}
								<a href="javascript:void(0);" onclick="recover_comment({$v['id']},{$v['cid']},{$type});">恢复</a>
								{/if}
							</div>
						</div>
						<div class="comment-con"><?php 
Exemplo n.º 28
0
include hg_load_template('head');
include hg_load_template('tips');
?>
<div class="user">
	<div class="content clear">
	<?php 
if ($stationInfo && $stationInfo['id']) {
    ?>
	<ul class="station">
	<li style="font-size:16px;font-weight:600;"><?php 
    echo $stationInfo['user']['username'] . $this->lang['station'];
    ?>
</li>
	<li class="clear" style="padding:10px 0;">
	<a class="logo" href="<?php 
    echo hg_build_link('user_program.php', $id ? array('sta_id' => $stationInfo['id'], 'user_id' => $this->input['user_id'] ? $this->input['user_id'] : ($this->user['id'] ? $this->user['id'] : 0)) : array('sta_id' => $stationInfo['id']));
    ?>
"><img src="<?php 
    echo $stationInfo['ori'];
    ?>
"/></a>
		<ul class="station-info">
			<li><?php 
    echo $this->lang['station_name'] . $stationInfo['web_station_name'];
    ?>
</li>
			<li><?php 
    echo $this->lang['station_brief'] . $stationInfo['brief'];
    ?>
</li>
			<li><?php 
Exemplo n.º 29
0
{/if}
</div>
<div class="content-right ">
	<div class="pad-all">
	<div class="bk-top1">我的资料</div>
	<div class="wb-block1">
{if $_user['id'] > 0}
	<div class="user">
	<div class="user-set">
		<h5><a href="{code} echo hg_build_link(SNS_UCENTER.'user.php' , array('user_id' => $user_info['id']));{/code}">{$user_info['username']}</a></h5>
		<a href="{code} echo hg_build_link(SNS_UCENTER.'userprofile.php');{/code}">个人设置</a>
		<a href="{code} echo hg_build_link(SNS_UCENTER.'login.php' , array('a' => 'logout'));{/code}">{$_lang['logout']}</a>
		<div class="user-name" style="width:270px;">
			<a>{$user_info['location']}</a>
		</div>
	</div> 
	<a href="<?php 
echo hg_build_link(SNS_UCENTER . 'avatar.php');
?>
"><img src="{$user_info['middle_avatar']}" title="{$user_info['username']}>" /></a>
	</div>
	<!-- load userInfo  -->
	{template:unit/userInfo}
	</div>
	<!-- end load -->
{/if}
</div> 
</div>
</div>
{template:foot}
Exemplo n.º 30
0
    /**
     * 获得专辑中的视频
     * @param $album_id
     * @param $page
     * @param $count
     * @return $ret 专辑信息
     */
    public function get_album_video()
    {
        $count = $this->count;
        $page = $this->page;
        $album_id = $this->input['album_id'] ? $this->input['album_id'] : 0;
        $disabled = $this->input['album_video'] ? '' : 'disabled';
        $html = '';
        if (!$album_id) {
            $html = '';
        } else {
            $album_video = $this->mVideo->get_album_video($album_id, $page, $count);
            $html = '<h3>
				<a href="javascript:void(0);" onclick="edit_album_info(' . $album_video['id'] . ');">修改专辑信息</a>    <a target="_blank" href="user_album_video.php?id=' . $album_video['id'] . '&user_id=' . $album_video['user_id'] . '">播放专辑</a>
			<input type="hidden" id="album_id" value="' . $album_video['id'] . '"/>
			<input type="hidden" id="album_name" value="' . $album_video['name'] . '"/>
			<input type="hidden" id="album_brief" value="' . $album_video['brief'] . '"/>
			<input type="hidden" id="album_sort" value="' . $album_video['sort_id'] . '"/>
			<input type="hidden" id="album_total" value="' . $album_video['video']['total'] . '"/>
			<span class="blod">专辑:<a title="' . $album_video['name'] . '" style="color: #000000; cursor: pointer; float: none; padding: 0; text-decoration: none;">' . hg_cutchars($album_video['name'], 8, " ") . '</a></span>
			<span style="margin-left:30px;">共' . ($album_video['video']['total'] ? $album_video['video']['total'] : 0) . '个视频</span>
		</h3><div class="show_info_tips show_info">';
            if ($album_video) {
                $data['totalpages'] = $album_video['video']['total'];
                unset($album_video['video']['total']);
                $data['perpage'] = $count;
                $data['curpage'] = $this->input['pp'];
                $data['onclick'] = 'onclick="album_page_show(this,4);"';
                $showpages = hg_build_pagelinks($data);
            }
            $html .= '<div class="video_cp clear"><input type="button" value="添加视频" onclick="add_album_video(' . $album_id . ');"/><input name="get" type="button" onclick="del_album_video();" value="删除视频" ' . $disabled . '/><input name="get" onclick="move_album_show(' . $album_id . ');" type="button" value="移动到专辑" ' . $disabled . '/>
				' . $showpages . '</div>
				<div class="video_list" id="video_list clear">
				<table width="100%" cellspacing=0 cellpadding=0>
				<tr><th width="100px">序号</th><th>视频名称</th><th>添加时间</th><th>会员</th><th>播放次数</th><th>管理</th></tr>
				';
            if ($album_video['video'] && is_array($album_video['video'])) {
                $i = 1;
                foreach ($album_video['video'] as $key => $value) {
                    $tr .= '<tr>
								<td width="100px"><input name="vch" type="checkbox" value="' . $value['id'] . '" onclick="check_list(this,4);"/>' . $i . '</td>
								<td><a target="_blank" title="' . $value['title'] . '" href="' . hg_build_link('video_play.php', array('id' => $value['id'])) . '"><img src="' . $value['schematic'] . '"/></a>
									<a target="_blank" title="' . $value['title'] . '" href="' . hg_build_link('video_play.php', array('id' => $value['id'])) . '">' . hg_cutchars($value['title'], 6, " ") . '</a>
								</td>
								<td>' . $value['create_time'] . '</td>
								<td><a target="_blank" title="' . $value['user']['username'] . '" href="' . hg_build_link('user.php', array('id' => $value['user']['id'])) . '">' . hg_cutchars($value['user']['username'], 5, " ") . '</a></td>
								<td>' . $value['play_count'] . '</td>
								<td>
									<a href="javascript:void(0);" onclick="edit_album_cover(' . $value['id'] . ',' . $album_video['id'] . ');">设为封面</a>|<a href="javascript:void(0);" onclick="del_album_video(' . $value['id'] . ');">移除</a>
								</td>
							</tr>';
                    $i++;
                }
            }
            $html .= $tr . '</table>
				</div>
				<div><a class="f_r" onclick="return_album();" href="javascript:void(0);">返回列表</a></div>
				<div class="video_cp clear"><input type="button" value="添加视频" onclick="add_album_video(' . $album_id . ');"/><input name="get" type="button" onclick="del_album_video();" value="删除视频" ' . $disabled . '/><input name="get" type="button" onclick="move_album_show(' . $album_id . ');" value="移动到专辑" ' . $disabled . '/>' . $showpages . '</div>
				</div>';
        }
        echo $html;
        exit;
    }