当前位置: 首页>>代码示例>>PHP>>正文


PHP hg_build_link函数代码示例

本文整理汇总了PHP中hg_build_link函数的典型用法代码示例。如果您正苦于以下问题:PHP hg_build_link函数的具体用法?PHP hg_build_link怎么用?PHP hg_build_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了hg_build_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_video

 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;
 }
开发者ID:h3len,项目名称:Project,代码行数:7,代码来源:doshare.php

示例2: show

 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');
 }
开发者ID:h3len,项目名称:Project,代码行数:52,代码来源:my_favorites.php

示例3: getMyGroups

 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;
     }
 }
开发者ID:h3len,项目名称:Project,代码行数:22,代码来源:get_groups.php

示例4: count

    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 
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:follow.tpl.php

示例5: hg_add_head_element

?>
"/>
<?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>
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:head_register_login.tpl.php

示例6: show_img

}

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"';
				
开发者ID:h3len,项目名称:Project,代码行数:30,代码来源:my_video.php

示例7: foreach

<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'];
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:statusline_index.tpl.php

示例8: foreach

<?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'];
        }
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:discuss.tpl.php

示例9: check

 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;
 }
开发者ID:h3len,项目名称:Project,代码行数:26,代码来源:user.php

示例10: hg_build_link

        } 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 
}
?>
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:station_play.tpl.php

示例11: hg_build_link

		{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>
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:space.php

示例12: show

 /**
  * 
  * 显示用户粉丝界面
  */
 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');
     /**
//.........这里部分代码省略.........
开发者ID:h3len,项目名称:Project,代码行数:101,代码来源:fans.php

示例13: hg_build_link

<?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>
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:login.php

示例14: hg_build_link

            }
            ?>
					<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 
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:show.tpl.php

示例15: hg_build_link

    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>
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:my_station.php


注:本文中的hg_build_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。