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


PHP public_function::getuserinfo方法代码示例

本文整理汇总了PHP中public_function::getuserinfo方法的典型用法代码示例。如果您正苦于以下问题:PHP public_function::getuserinfo方法的具体用法?PHP public_function::getuserinfo怎么用?PHP public_function::getuserinfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在public_function的用法示例。


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

示例1: date

			 		if($types_option=="piliangoptions"){
			 			echo "<input type='checkbox' name='quanxuan[]' value='".$select_blog_record['blog_id']."' style='vertical-align:text-middle; margin-bottom:6px;'/>";
			 		}
			 		?>
			 		<span class="contenttitle"><a href="javascript:viewblog(<?php echo $select_blog_record['blog_id'];?>);"><?php echo $select_blog_record['blog_title'];?></a></span>
			 	</td>
			 	<td align="right">
			 		<span id="editxminfo"><a href="write_blog.php?blogid=<?php echo $select_blog_record['blog_id'];?>&page=<?php echo $page;?>">编辑</a></span>
					<span id="editxminfo"><a href="javascript:deleteblog(<?php echo $select_blog_record['blog_id'];?>)">删除</a></span>
					<span id="editxminfo"><a href="javascript:edittypeblog(<?php echo $select_blog_record['blog_id'];?>)">修改分类</a></span>
					<span id="editxminfo"><a href="javascript:editprivblog(<?php echo $select_blog_record['blog_id'];?>)">设置权限</a></span>&nbsp;
			 	</td>
			 </tr>
			<tr style="height:20px;line-height:20px;">
				<td colspan="2" align="left" class="showtips">
						<span><?php echo $public_function->getuserinfo($select_blog_record['blog_userid'])."发表于:";?></span>
						<span>
							<?php 
				 	  		if(date("Y-m-d",strtotime($select_blog_record['blog_date']))==date("Y-m-d",strtotime(CURRENT_TIME))){
				 	  			echo date("H:i",strtotime($select_blog_record['blog_date']));
				 	  		}else if((date("Y",strtotime($select_blog_record['blog_date']))==date("Y",strtotime(CURRENT_TIME)))&&(date("Y-m-d",strtotime($select_blog_record['blog_date']))!=date("Y-m-d",strtotime(CURRENT_TIME)))){
				 	  			echo date("m-d",strtotime($select_blog_record['blog_date']));
				 	  		}else{
				 	  			echo date("Y-m-d",strtotime($select_blog_record['blog_date']));
				 	  		}
				 	  	?>
						</span>
				</td>
			</tr>
			<tr>
				<td class="showcontent" colspan="2" align="left" style="width:80px;border-bottom: solid;border-width: 1px;border-color: #ececec;">
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:gl_blog.php

示例2: date

					<span id="editxminfo3"><a href="shyule_index.php">返回主页</a></span>&nbsp;
				</td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td align="center" colspan="2" style="color:#000000;font-size: 25px;">
					<span style="background-color: blue;color:red;"><?php 
echo $select_array['bbs_title'];
?>
</span>
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">
					<span id="editxminfo">楼主:<a href="#"><?php 
echo $public_function->getuserinfo($select_array['bbs_author']);
?>
</a></span>
					<span id="editxminfo">时间:<?php 
echo date("Y-m-d H:i:s", strtotime($select_array['bbs_time']));
?>
</span>
					<span id="editxminfo">点击:<?php 
echo $bbs_function->getTieZiClickNum($fatieid);
?>
</span>
					<span id="editxminfo">回复:<?php 
echo $bbs_function->getTieZiHuiTieNum($fatieid);
?>
</span>
				</td>
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:shyule_bbs_scan.php

示例3: date

        ++$cnt;
        $bbs_fatiebyid_array = $bbs_function->getTiezi($select_array['bbsid']);
        ?>
									<tr style="cursor:pointer;height:30px;" class="bianse">
										<td align="left" width="" style="border-left:solid;border-right:solid;border-bottom:solid;border-color:#ececec;border-width:1px;"> 
											<span id="editxminfo"><a href="shyule_bbs_scan.php?fatieid=<?php 
        echo $bbs_fatiebyid_array['ids'];
        ?>
&readcount=yes">&nbsp;<?php 
        echo $bbs_fatiebyid_array['bbs_title'];
        ?>
</a></span>&nbsp;	
										</td>
										<td align="center" style="border-right:solid;border-bottom:solid;border-color:#ececec;border-width:1px;">
											<span id="editxminfo"><a href="#"><?php 
        echo $public_function->getuserinfo($bbs_fatiebyid_array['bbs_author']);
        ?>
</a></span>&nbsp;	
										</td>
										<td align="right" style="border-right:solid;border-bottom:solid;border-color:#ececec;border-width:1px;">
											<?php 
        echo date("m-d H:i", strtotime($select_array['sctime']));
        ?>
&nbsp;	
										</td>
									</tr>
									<?php 
    }
    ?>
						<tr>
							<td colspan="5">
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:myfatieshoucang.php

示例4:

			</tr>
			<tr style="height:30px;">
				<td align="right" style="width: 100px;border:solid;border-color: #ececec;border-width: 2px;">
					<input type="hidden" name="jbid" value="<?php 
echo $jbid;
?>
"/>
					<input type="hidden" name="jbdx" value="<?php 
echo $bbs_tiezi_array['bbs_author'];
?>
"/>
					<span>举报对象:</span>
				</td>
				<td align="left" style="border-top:solid;border-bottom:solid;border-right:solid;border-color: #ececec;border-width: 2px;">
					<?php 
echo $public_function->getuserinfo($bbs_tiezi_array['bbs_author']);
?>
				</td>
			</tr>
			<tr style="height:30px;">
				<td align="right" style="border-left:solid;border-bottom:solid;border-right:solid;border-color: #ececec;border-width: 2px;">
					<span>举报原因:</span>
				</td>
				<td align="left" style="border-bottom:solid;border-right:solid;border-color: #ececec;border-width: 2px;">
					<span>
						<?php 
$result = mysql_query("select * from blog_bbs_weigui_type");
$num = mysql_num_rows($result);
for ($i = 0; $i < $num; $i++) {
    $array = mysql_fetch_array($result);
    ?>
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:shyule_bbs_jb.php

示例5: stripslashes

require_once '../../../include/public_function.php';
$public_function = new public_function();
$blog_userid = $_SESSION['UID'];
$blog_type = $_SESSION['UTYPE'];
$pfatieid = str_replace(" ", "", $_POST['pfatieid']);
$fatieid = str_replace(" ", "", $_POST['fatieid']);
$fatietypes = str_replace(" ", "", $_POST['fatietypes']);
$fatiepage = str_replace(" ", "", $_POST['fatiepage']);
$bbs_content = '';
if (!empty($_POST['content1'])) {
    if (get_magic_quotes_gpc()) {
        $bbs_content = stripslashes($_POST['content1']);
    } else {
        $bbs_content = $_POST['content1'];
    }
}
$bbs_time = CURRENT_TIME;
$bbs_utime = CURRENT_TIME;
//²éѯÌõ¼þ
$select_result = mysql_query("select * from blog_bbs_content where ids='{$pfatieid}'");
$select_array = mysql_fetch_array($select_result);
$bbs_atwho = "@" . $public_function->getuserinfo($select_array['bbs_author']);
$bbs_type = $select_array['bbs_type'];
if ($fatietypes == "insert") {
    $insert_result = mysql_query("insert into blog_bbs_content(pids,bbs_content,bbs_author,bbs_time,bbs_utime,bbs_atwho,bbs_floor,bbs_type) values('{$pfatieid}','{$bbs_content}','{$blog_userid}','{$bbs_time}','{$bbs_utime}','{$bbs_atwho}','{$fatieid}','{$bbs_type}')");
    if ($insert_result > 0) {
        echo "<script>location.href='../shyule_bbs_scan.php?fatieid=" . $fatieid . "&page=" . $fatiepage . "'</script>";
    } else {
        echo "<script>location.href='../shyule_bbs_scan.php?fatieid=" . $fatieid . "&page=" . $fatiepage . "'</script>";
    }
}
开发者ID:ZH9009,项目名称:jjczj,代码行数:31,代码来源:shyule_bbs_replay_action.php


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