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


PHP current_account函数代码示例

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


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

示例1: load_blog

function load_blog($projectUrlName, $blogUrlName)
{
    $currentUser = current_account();
    if ($currentUser < 0) {
        echo '{"result": "user-not-signed-in"}';
        return;
    }
    $blogNum = _getBlogNumFromNothing($projectUrlName, $blogUrlName, $currentUser);
    if ($blogNum == false) {
        return;
    }
    $selectContents = "SELECT contents FROM blog_contents WHERE blog={$blogNum};";
    $contentsResult = query($selectContents);
    if ($contentsResult == false || mysqli_num_rows($contentsResult) != 1) {
        echo '{"result": "blog-load-success", "blog_load_status": "content-not-found"}';
        return;
    }
    $row = mysqli_fetch_assoc($contentsResult);
    $content = $row['contents'];
    echo '{"result": "blog-load-success", "blog_load_status": "content-found", "blog_content": "' . $content . '"}';
    //TODO:
    //load the blog contents
}
开发者ID:andrewdownie,项目名称:projectportfolio.io,代码行数:23,代码来源:editor.php

示例2: template

<?php include template("header");?>
<div class="layout">
  <div class="team_main" style="overflow:hidden">
  <div class="box-content">
  
        <div class="dashboard" id="dashboard"><ul><?php echo current_account('/account/settings.php'); ?></ul> </div>
        
       <div class="left">
          <div class="head-mymlt" >
          <h2></h2>
          <ul>
          	<li><a href="/account/settings.php">帐户设置</a></li>
			<li ><a href="/credit/index.php">帐户余额</a></li>
			<li class="current"><a href="/account/myask.php">我的问答</a></li>
			<li><a href="/account/setbinds.php">手机绑定</a></li>
			<li><a href="/account/setaddress.php">收货地址</a></li>
          </ul>
          </div>  
          
          <div class="sect consult-list">
					<ul class="list">
                    <?php $index=0; ?>	
					<?php if(is_array($asks)){foreach($asks AS $one) { ?>
					<li id="ask-entry-<?php echo $one['id']; ?>"  <?php if(++$index%2 == 0){?>class="huise" <?php }?>>
						<div class="item">
							<p class="user"><strong><?php echo $login_user['username']; ?></strong><span><?php echo Utility::HumanTime($one['create_time']); ?></span></p>
							<div class="clear"></div>
							<p class="text"><?php echo $one['content']; ?></p>
							<p class="reply"><strong>回复:</strong><?php echo $one['comment']; ?></p>
						</div>
					</li>
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:account_myask.php

示例3: template

<?php

include template("header");
?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="settings">
	<div class="dashboard" id="dashboard">
		<ul><?php 
echo current_account('/account/settings.php');
?>
</ul>
	</div>
    <div id="content" class="clr settings-box">
		<div class="box clr">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>Setting</h2></div>
                <div class="sect">
                    <form id="settings-form" method="post" action="/account/settings.php" enctype="multipart/form-data" class="validator">
						<div class="wholetip clr"><h3>1. Basic Info</h3></div>
                        <div class="field email">
                            <label>Email</label>
                            <input type="text" size="30" name="email" id="settings-email-address" class="f-input readonly" readonly="readonly" value="<?php 
echo $login_user['email'];
?>
" />
                        </div>
                        <div class="field">
                            <label>Head Picture</label>
开发者ID:jowino,项目名称:bd786110cact,代码行数:31,代码来源:account_settings.php

示例4: template

<?php include template("header");?>

<div class="layout">

  <div class="team_main" style="overflow:hidden">

  

       <div class="box-content">

        <div class="dashboard" id="dashboard">

		<ul><?php echo current_account('/coupon/index.php'); ?></ul>

	    </div>

       <div class="left">

          <div class="head-mymlt"><h2></h2>

           <ul><?php echo current_coupon_sub('consume'); ?></ul>

          </div>

         <div class="sect" style="border: 1px solid #E5E5E5;">

					<?php if($selector=='index'&&!$coupons){?>

		   <div class="notice">目前没有可用的<?php echo $INI['system']['couponname']; ?></div>

					<?php }?>
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:coupon_consume.php

示例5: template

<?php include template("header");?>
<div class="layout">
  <div class="team_main" style="overflow:hidden">
   <div class="box-content">
     <div class="dashboard" id="dashboard"><ul><?php echo current_account('/credit/score.php'); ?></ul> </div>
   <div class="left">
          <div class="head-mymlt">
          <h2></h2>
          <ul><?php echo current_credit_index('records'); ?></ul>
          </div> 
       
		    <div class="credit-title size14-black">当前的账户积分是:<strong class="size24-red"><?php echo moneyit($login_user['score']); ?></strong>分</div>   <div class="sect" style="border: 1px solid #E5E5E5;">	
	<table id="order-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="150" height="36" align="left" bgcolor="#F8F7F7" class="b-bottom"><div class="left-10px">兑换时间</div></th><th width="398" align="center" bgcolor="#F8F7F7" class="b-bottom">详情</th><th width="150" align="center" bgcolor="#F8F7F7" class="b-bottom">状态</th></tr>
						<?php if(is_array($credits)){foreach($credits AS $index=>$one) { ?>
						<tr <?php echo $index%2?'':'class="alt"'; ?>><td height="32" style="text-align:left;" class="b-bottom"><div class="left-10px"><?php echo date('Y-m-d H:i', $one['create_time']); ?></div></td><td align="left" class="b-bottom"><?php echo ZCredit::Explain($one); ?></td><td align="center" class="b-bottom"><?php if(($one['state']=='unpay')){?>未发货<?php } else { ?>已发货<?php }?></td></tr>
						<?php }}?>
						<tr><td colspan="4"><div class="fanye"><?php echo $pagestring; ?></div></td></tr>
              </table>
		</div>
          
              
   </div>  
     <div class="right"> <?php include template("block_side_score");?> </div>
   </div>
   </div>
</div>


		
开发者ID:noikiy,项目名称:mdwp,代码行数:27,代码来源:credit_records.php

示例6: template

<?php

include template("header");
?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul><?php 
echo current_account('/my/gift_cards/index.php');
?>
</ul>
	</div>
    <div id="content" class="coupons-box clr">
		<div class="box clr">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>My Gifts</h2>
				</div>
                <div class="sect">
					<div style="float:right;margin-right:20px;"></div>
				
					<?php 
if ($selector == 'index' && !$gift_cards) {
    ?>
					<div class="notice">There is no Gifts</div>
					<?php 
}
?>
开发者ID:jowino,项目名称:bd786110cact,代码行数:31,代码来源:my_giftcard_index.php

示例7: delete_blog

function delete_blog($blog_id)
{
    //3. delete the blog,
    $curAccount = current_account();
    if ($curAccount == -1) {
        echo '{"result": "not-logged-in"}';
        return;
    }
    //--  get the project that the blog to be deleted belongs to --------------
    $selectProject = "SELECT project FROM blog_head WHERE blog={$blog_id}";
    $projectResult = query($selectProject);
    if (mysqli_num_rows($projectResult) != 1) {
        echo '{"result": "error-finding-project"}';
    }
    $row = mysqli_fetch_assoc($projectResult);
    $project = $row['project'];
    //-- get the owner of the project, that the blog is in --------------------
    $selectOwner = "SELECT owner FROM project_head WHERE project={$project}";
    $ownerResult = query($selectOwner);
    if (mysqli_num_rows($ownerResult) != 1) {
        echo '{"result": "error-finding-owner"}';
        return;
    }
    $row = mysqli_fetch_assoc($ownerResult);
    $owner = $row['owner'];
    if ($owner === $curAccount) {
        $deleteContents = "DELETE FROM blog_contents WHERE blog={$blog_id}";
        $contentsResult = query($deleteContents);
        $deleteInfo = "DELETE FROM blog_info WHERE blog={$blog_id}";
        $infoResult = query($deleteInfo);
        $deleteHead = "DELETE FROM blog_head WHERE blog={$blog_id}";
        $headResult = query($deleteHead);
        echo '{"result": "delete-blog-success"}';
        return;
    }
    echo '{"result": "not-blog-owner"}';
}
开发者ID:andrewdownie,项目名称:projectportfolio.io,代码行数:37,代码来源:all-blogs.php

示例8: template

<?php include template("header");?>

<div class="layout">
	<div class="team_main" style="overflow:hidden">
		<div class="box-content">
			<div class="dashboard" id="dashboard">
				<ul>
					<?php echo current_account('/account/collect.php'); ?>
				</ul>
			</div>
			<div class="left">
				<div class="head-mymlt" style="margin-right:2px;">
					<h2></h2>
					 <ul>
          				<li class="current"><a href="/account/collect.php">我的收藏</a></li>          				
          			</ul>
				</div>
				<div class="sect" style="width:700px;">
					<table id="coupons-list" cellspacing="1" cellpadding="0" border="0" >
						<tr>
							<th width="350" align="center" height="36" bgcolor="#F8F7F7" class="b-bottom" >
								团购项目
							</th>
							<th width="150" bgcolor="#F8F7F7" class="b-bottom">收藏时间</th>
							<th width="120" bgcolor="#F8F7F7" class="b-bottom">当前状态</th>
							<th width="80" bgcolor="#F8F7F7" class="b-bottom">操作</th>
						</tr>
						<?php if(is_array($collects)){foreach($collects AS $index=>$one) { ?>					
						<tr <?php echo $index%2?'':'class="alt"'; ?> >
							<td class="b-bottom" height="24" align="left" style="padding-left:10px;">
								<a href="/team/<?php echo $one['team_id']; ?>.html" target="_blank"><?php echo $teams[$one['team_id']]['team_jybt']; ?></a>
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:account_collect_index.php

示例9: current_account

</style>



<div class="layout">

  <div class="team_main" style="overflow:hidden">

  

  <div class="box-content">

        <div class="dashboard" id="dashboard">

		<ul><?php echo current_account('/account/settings.php'); ?></ul>

	    </div>



       <div class="left">

          <div class="head-mymlt" >

          <h2></h2>

          <ul><li><a href="/account/settings.php">帐户设置</a></li>

			<li class="current"><a href="/credit/index.php">账户余额</a></li><li><a href="/account/myask.php">我的问答</a></li><li><a href="/account/setbinds.php">手机绑定</a></li><li><a href="/account/setaddress.php">收货地址</a></li>
开发者ID:noikiy,项目名称:mdwp,代码行数:29,代码来源:credit_index.php

示例10: template

<?php

include template("header");
?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="credit">
	<div class="dashboard" id="dashboard">
		<ul><?php 
echo current_account('/credit/index.php');
?>
</ul>
	</div>
    <div id="content">
		<div class="box clr">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Balance</h2>
                </div>
                <div class="sect">
					<h3 class="credit-title">Your Current Balance Is:  <strong><?php 
echo moneyit($login_user['money']);
?>
</strong> Dollars</h3>
					<table id="order-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="120">Time</th><th width="auto">Detail</th><th width="50">Pay and Receive</th><th width="70">Total Amount</th></tr>
						<?php 
if (is_array($flows)) {
    foreach ($flows as $index => $one) {
开发者ID:jowino,项目名称:bd786110cact,代码行数:31,代码来源:credit_index.php

示例11: template

<?php include template("header");?>
<div class="layout">
  <div class="team_main" style="overflow:hidden">
       <div class="box-content-tk">
        <div class="dashboard" id="dashboard">
		<ul><?php echo current_account('/order/index.php'); ?></ul>
	    </div>
         <div class="left ">

        <h2><span class="op-area-a">退款详情</span>
        <span class="op-area-b"><a href="/order/index.php">返回我的订单</a></span>
        </h2>
                <div class="info-section">
            <dl>
                
                <dt>退款详情:</dt>
                <dd>
                <?php if($order['direction']=='yuanlu'){?>
                	<p><em><?php echo $askrefundcount; ?></em> 条退款申请已提交,预计5-10个工作日后全部退款至您的原付款机构</p>
                <?php } else { ?>
                    <p><em><?php echo $askrefundcount; ?></em> 条退款申请已提交,预计5-7个工作日内退款至您的 <a href="/credit/index.php" target="_blank"><?php echo $INI['system']['abbreviation']; ?>余额</a></p>
                <?php }?>
                    <p><em><?php echo $norefundcount; ?></em> 条退款申请被拒绝或取消,如有疑问请联系<?php echo $INI['system']['abbreviation']; ?>客服 0530-3200802</p>
                </dd>
                <!--<dt>如何提现:</dt>
                <dd class="last">
                    <p>提现功能在“我的<?php echo $INI['system']['abbreviation']; ?>” - ”<a href="/credit/index.php" target="_blank"><?php echo $INI['system']['abbreviation']; ?>余额</a>“页面,您可直接从<a href="/credit/index.php" target="_blank"><?php echo $INI['system']['abbreviation']; ?>余额</a>提现</p>
                </dd></dl>-->
        </div>
        
        
开发者ID:noikiy,项目名称:mdwp,代码行数:29,代码来源:order_refunddetail.php

示例12: template

<?php include template("header");?>



<div class="layout">

	<div class="team_main" style="overflow: hidden">

		<div class="box-content">

			<div class="dashboard" id="dashboard">

				<ul><?php echo current_account('/account/mcard.php'); ?>

				</ul>

			</div>

			<div class="left">

				<div class="head-mymlt" style="margin-right: 2px;">

					<h2></h2>

					<ul>

						<li><a href="/account/mcard.php">我的青年VIP卡</a></li>

						<li class="current"><a href="/account/mcard_log.php">刷卡记录</a></li>

					</ul>
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:account_mcard_log.php

示例13: if

		<?php if($login_user){?>
			欢迎您,<?php if($_SESSION['ali_token']){?><?php echo mb_strimwidth($login_user['email'],0,20); ?>!<?php } else { ?>	<?php echo mb_strimwidth($login_user['email'],0,20); ?>!<?php }?> <a  href="/order/index.php" id="myaccount" class="account">我的<?php echo $INI['system']['abbreviation']; ?></a> <a href="/account/logout.php" class="c666">退出</a>
		
		<?php } else { ?>
		<ul class="links">
           欢迎来<?php echo $INI['system']['abbreviation']; ?>!
  请<a href="/account/login.php">登录</a> |  <a href="/account/signup.php">免费注册</a> |  <a href="/thirdpart/qzone/index.php">QQ帐号登录 </a>
		</ul>
		<?php }?>
			<div class="line islogin"></div>
			<?php if($login_user){?>
         
		<ul id="myaccount-menu">
         <ul class="x_sxj"></ul>
        
       <?php echo current_account(null); ?></ul>
	<?php }?>
    </ul>
    </div>

  </div>
  </div>
  
<div class="header">
  <div class="header_con">
    <div class="header_left header_v">
    <dt class="left"><a href="/" target="_parent"><img src="/static/css/i/logo.jpg" alt="<?php echo $INI['system']['sitename']; ?>" /></a></dt>
    </div>
    <div class="header_center header_v" style="margin-left:"><form action="/team/searchGoods.php"  method="get" > <div class="searchGoods"> <ul> <li><input type="text" value="<?php echo $searchName; ?>" class="searchName" name="searchName"  placeholder="请输入关键字"><input type="submit"class="formbutton" value=""></li> </ul></div> </form></div>
       <div class="header_right header_v"> 
       <img src="/static/css/i/header_right_tel.jpg"  />
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:header-wd.php

示例14: if

                  <li >   <div class="menu-dengl">   
 <ul><li class="QQdengl " style="margin-top:8px; margin-left:0px; width:110px;_width:100px;" ><a href="/thirdpart/qzone/index.php">使用QQ帐号登录 
           </a>
    </li>   
     
  </ul>
</div>  
	  </li></ul>
          
		<?php }?>
			
	  </div>
	<?php if($login_user){?>
 		<ul id="myaccount-menu">
        <span class="xia-span">
        <span class="my-yytg">我的米粒团</span><?php echo current_account(null); ?></span></ul>
	<?php }?>
    </div>
    
    
	</div>
</div>

<?php if($session_notice=Session::Get('notice',true)){?>
<div class="sysmsgw" id="sysmsg-success">
<div class="sysmsg">
<div class="tsbj-ls"><div class="tstb-ls"></div><p style="color:#669900; font-weight:bold;"><?php echo $session_notice; ?></p><span class="close">关闭</span></div></div></div>
<?php }?>


<?php if($session_notice=Session::Get('error',true)){?>
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:header-sc.php

示例15: save_project_spec

function save_project_spec($project_id, $new_value)
{
    $deletor_account = current_account();
    if ($deletor_account == -1) {
        echo '{"result": "save-project-failure"}';
        return;
    }
    $sql = "UPDATE project_info SET spec_link='{$new_value}' WHERE project={$project_id};";
    $result = query($sql);
    if (!$result) {
        echo '{"result": "save-project-failure"}';
        return;
    }
    echo '{"result": "save-project-success", "url_name": ""}';
}
开发者ID:andrewdownie,项目名称:projectportfolio.io,代码行数:15,代码来源:project_management.php


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