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


PHP ProjectTheme_get_user_profile_link函数代码示例

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


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

示例1: ProjectTheme_template_redirect_milestones

function ProjectTheme_template_redirect_milestones()
{
    $mlls = "PT_milestone_payments_installed_1_aaa";
    $opt = get_option($mlls);
    if (isset($_POST['submits1no_me_thing_ok'])) {
        wp_redirect(get_permalink(get_option('ProjectTheme_my_account_milestones_id')));
        exit;
    }
    if (isset($_POST['submits1yes_me_ok_p'])) {
        global $wpdb;
        $release_id = $_POST['release_id'];
        $s = "select * from " . $wpdb->prefix . "project_milestone where id='{$release_id}'";
        $r = $wpdb->get_results($s);
        $row = $r[0];
        global $current_user;
        get_currentuserinfo();
        $post_me = get_post($row->pid);
        //-------------------------
        $cr = projectTheme_get_credits($current_user->ID);
        if ($row->released == 0 and $cr >= $row->amount) {
            $amount = $row->amount;
            $projectTheme_fee_after_paid = get_option('projectTheme_fee_after_paid');
            if (!empty($projectTheme_fee_after_paid)) {
                $deducted = $amount * ($projectTheme_fee_after_paid * 0.01);
            } else {
                $deducted = 0;
            }
            $cr = projectTheme_get_credits($row->uid);
            projectTheme_update_credits($row->uid, $cr + $amount - $deducted);
            $reason = sprintf(__('Milestone payment received from <a href="%s">%s</a> for the project <a href="%s">%s</a>', 'ProjectTheme'), ProjectTheme_get_user_profile_link($current_user->ID), $current_user->user_login, get_permalink($post_me->ID), $post_me->post_title);
            projectTheme_add_history_log('1', $reason, $amount, $row->uid, $current_user->ID);
            $reason = sprintf(__('Payment fee taken for milestone payment for the project <a href="%s">%s</a>', 'ProjectTheme'), get_permalink($post_me->ID), $post_me->post_title);
            projectTheme_add_history_log('0', $reason, $deducted, $row->uid);
            $wpdb->query("update " . $wpdb->prefix . "project_milestone set released='1' where id='{$release_id}'");
            //-----------------------
            $usr_dt = get_userdata($row->uid);
            $cr = projectTheme_get_credits($current_user->ID);
            //projectTheme_update_credits($row->uid, $cr - $amount);
            projectTheme_update_credits($current_user->ID, $cr - $amount);
            $reason = sprintf(__('Milestone payment sent to <a href="%s">%s</a> for the project <a href="%s">%s</a>', 'ProjectTheme'), ProjectTheme_get_user_profile_link($usr_dt->ID), $usr_dt->user_login, get_permalink($post_me->ID), $post_me->post_title);
            projectTheme_add_history_log('0', $reason, $amount, $current_user->ID, $row->uid);
        }
        //-------------------------
        wp_redirect(get_permalink(get_option('ProjectTheme_my_account_milestones_id')) . "?submit_ok_p=1");
        exit;
    }
    //---------------------------------
    if (empty($opt)) {
        ProjectTheme_insert_pages('ProjectTheme_my_account_milestones_id', 'Milestone Payments', '[project_theme_my_account_milestones]', get_option('ProjectTheme_my_account_payments_id'));
        update_option($mlls, 'DONE');
        global $wpdb;
        $ss = "CREATE TABLE `" . $wpdb->prefix . "project_milestone` (\n\t\t\t\t\t`id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,\n\t\t\t\t\t`owner` INT NOT NULL ,\n\t\t\t\t\t`pid` INT NOT NULL ,\n\t\t\t\t\t`uid` INT NOT NULL ,\n\t\t\t\t\t`description_content` TEXT NOT NULL ,\n\t\t\t\t\t`datemade` BIGINT NOT NULL DEFAULT '0',\n\t\t\t\t\t`completion_date` BIGINT NOT NULL DEFAULT '0' ,\n\t\t\t\t\t`date_released` BIGINT NOT NULL DEFAULT '0' ,\n\t\t\t\t\t`amount` VARCHAR( 255 ) NOT NULL  \n\t\t\t\t\t \n\t\t\t\t\t) ENGINE = MYISAM ;\n\t\t\t\t\t";
        $wpdb->query($ss);
        $ss = "ALTER TABLE `" . $wpdb->prefix . "project_milestone` ADD  `released` TINYINT NOT NULL DEFAULT '0';";
        $wpdb->query($ss);
    }
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:57,代码来源:ProjectTheme_milestones.php

示例2: widget

    function widget($args, $instance)
    {
        extract($args);
        echo $before_widget;
        if ($instance['title']) {
            echo $before_title . apply_filters('widget_title', $instance['title']) . $after_title;
        }
        $user_limit = $instance['user_limit'];
        $user_tp = $instance['user_tp'];
        global $wpdb;
        if ($user_tp == "both") {
            $inr = '';
            $whr = '';
        }
        if ($user_tp == "service_provider") {
            $inr = "INNER JOIN {$wpdb->usermeta} m ON m.user_id = users.ID ";
            $whr = "m.meta_key = 'wp_capabilities' AND m.meta_value LIKE '%service_provider%' AND";
        }
        if ($user_tp == "service_contractor") {
            $inr = "INNER JOIN {$wpdb->usermeta} m ON m.user_id = users.ID ";
            $whr = "m.meta_key = 'wp_capabilities' AND m.meta_value LIKE '%business_owner%' AND";
        }
        //$widget_id = $args['widget_id'];
        if (empty($user_limit)) {
            $user_limit = 5;
        }
        $querystr = "\r\n\t\t\t\t\tSELECT users.user_email email,users.ID UID, users.user_registered dt, users.user_login username, ratings.touser uid, \r\n\t\t\t\t\tAVG(ratings.grade) rate FROM " . $wpdb->prefix . "project_ratings ratings, {$wpdb->users} users \r\n\t\t\t\t\t" . $inr . " where " . $whr . "\t\t\t\t\r\n\t\t\t\t\tusers.ID=ratings.touser \r\n\t\t\t\t\tgroup by ratings.touser order by rate DESC LIMIT {$user_limit}";
        $r = $wpdb->get_results($querystr);
        if (count($r) == 0) {
            echo __('No rated users yet.', 'ProjectTheme');
        } else {
            echo '<table width="100%">';
            foreach ($r as $row) {
                $hash = md5(strtolower(trim($row->email)));
                $dt = date_i18n("jS \\of F, Y", strtotime($row->dt));
                echo '<tr>';
                echo '<td width="20%"><a href="' . ProjectTheme_get_user_profile_link($row->UID) . '"><img class="image_class"
						src="' . ProjectTheme_get_avatar($row->UID, 40, 40) . '" width="40" /></a></td>';
                echo '<td><b><a href="' . ProjectTheme_get_user_profile_link($row->UID) . '">' . $row->username . '</a></b><br/>
						 ' . sprintf(__('Joined on: %s', 'ProjectTheme'), $dt) . '
						<br/>' . ProjectTheme_get_project_stars(floor($row->rate / 2)) . '
						</td>';
                echo '</tr>';
            }
            echo '</table>';
        }
        echo $after_widget;
    }
开发者ID:juliosd,项目名称:legacy-master,代码行数:48,代码来源:best-rated-users.php

示例3: __

     echo '<th><b>' . __('Project Title', 'ProjectTheme') . '</b></th>';
     echo '<th><b>' . __('From User', 'ProjectTheme') . '</b></th>';
     echo '<th><b>' . __('Aquired on', 'ProjectTheme') . '</b></th>';
     echo '<th><b>' . __('Price', 'ProjectTheme') . '</b></th>';
     echo '<th><b>' . __('Rating', 'ProjectTheme') . '</b></th>';
     echo '</tr>';
     foreach ($r as $row) {
         $post = $row->pid;
         $post = get_post($post);
         $bid = projectTheme_get_winner_bid($row->pid);
         $user = get_userdata($row->fromuser);
         echo '<tr>';
         echo '<th><img class="img_class" src="' . ProjectTheme_get_first_post_image($row->pid, 42, 42) . '" 
                             alt="' . $post->post_title . '" width="42" /></th>';
         echo '<th><a href="' . get_permalink($row->pid) . '">' . $post->post_title . '</a></th>';
         echo '<th><a href="' . ProjectTheme_get_user_profile_link($user->user_login) . '">' . $user->user_login . '</a></th>';
         echo '<th>' . date('d-M-Y H:i:s', get_post_meta($row->pid, 'closed_date', true)) . '</th>';
         echo '<th>' . projectTheme_get_show_price($bid->bid) . '</th>';
         echo '<th>' . ProjectTheme_get_project_stars(floor($row->grade / 2)) . ' (' . floor($row->grade / 2) . '/5)</th>';
         echo '</tr>';
         echo '<tr>';
         echo '<th></th>';
         echo '<th colspan="5"><b>' . __('Comment', 'ProjectTheme') . ':</b> ' . $row->comment . '</th>';
         echo '</tr>';
         echo '<tr><th colspan="6"><hr color="#eee" /></th></tr>';
     }
     echo '</table>';
 } else {
     _e("There are no reviews to be awarded.", "ProjectTheme");
 }
 ?>
开发者ID:simplix-fr,项目名称:o-g,代码行数:31,代码来源:user-profile.php

示例4: ProjectTheme_my_account_payments_area_function


//.........这里部分代码省略.........
            if (ProjectTheme_is_user_business($uid)) {
                ?>
                   
                        <div class="clear10"></div>
            
            <div class="my_box3">
            
            
            	<div class="box_title"><?php 
                _e('Pending Outgoing Payments', 'ProjectTheme');
                ?>
</div>
            	<div class="box_content">
                
                
      				<?php 
                $s = "select * from " . $wpdb->prefix . "project_escrow where released='0' AND fromid='{$uid}' order by id desc";
                $r = $wpdb->get_results($s);
                if (count($r) == 0) {
                    echo __('No payments pending yet.', 'ProjectTheme');
                } else {
                    echo '<table width="100%">';
                    echo '<tr>';
                    echo '<td><b>' . __('User', 'ProjectTheme') . '</b></td>';
                    echo '<td><b>' . __('Project', 'ProjectTheme') . '</b></td>';
                    echo '<td><b>' . __('Date', 'ProjectTheme') . '</b></td>';
                    echo '<td><b>' . __('Amount', 'ProjectTheme') . '</b></td>';
                    echo '<td><b>' . __('Options', 'ProjectTheme') . '</b></td>';
                    echo '</tr>';
                    foreach ($r as $row) {
                        $post = get_post($row->pid);
                        $from = get_userdata($row->toid);
                        echo '<tr>';
                        echo '<td><a href="' . ProjectTheme_get_user_profile_link($from->ID) . '">' . $from->user_login . '</a></td>';
                        echo '<td><a href="' . get_permalink($post->ID) . '">' . $post->post_title . '</a></td>';
                        echo '<td>' . date_i18n('d-M-Y H:i:s', $row->datemade) . '</td>';
                        echo '<td>' . ProjectTheme_get_show_price($row->amount) . '</td>';
                        echo '<td><a href="' . ProjectTheme_get_payments_page_url('releasepayment', $row->id) . '" class="green_btn">' . __('Release Payment', 'ProjectTheme') . '</a></td>';
                        echo '</tr>';
                    }
                    echo '</table>';
                }
                ?>
                  
               
            </div>
            </div> <?php 
            }
            ?>
        <?php 
        } elseif ($pg == 'escrow') {
            ?>
        
        
        <div class="my_box3">
           
            
            	<div class="box_title"><?php 
            _e('Make Escrow Payment', 'ProjectTheme');
            ?>
</div>
            	<div class="box_content">
              
                
                
                <?php 
开发者ID:roberto95117,项目名称:auction,代码行数:67,代码来源:payments.php

示例5: projectTheme_send_email_to_project_payer

function projectTheme_send_email_to_project_payer($pid, $payer_user_id, $receiver_user_id, $amount, $pay_by_credits = '0')
{
    $paid_user = get_post_meta($pid, 'paid_user', true);
    if ($paid_user == "0") {
        $post = get_post($pid);
        $payer_user = get_userdata($payer_user_id);
        $datemade = current_time('timestamp', 0);
        $perm = get_permalink($pid);
        $receiver_user = get_userdata($receiver_user_id);
        //-----------
        update_post_meta($pid, 'paid_user', "1");
        update_post_meta($pid, "paid_user_date", $datemade);
        $receiver_user_id = get_post_meta($pid, 'winner', true);
        //-----------
        $subject = sprintf(__("Your payment was completed for the project: %s", 'ProjectTheme'), $post->post_title);
        $message = sprintf(__('You have paid for the project <a href="%s">%s</a> the amount of: %s %s to user: 

	<b>%s</b>', "ProjectTheme"), $perm, $post->post_title, $amount, $cure, $receiver_user->user_login);
        //sitemile_send_email($receiver_user->user_email, $subject , $message); // send email for the payment received
        $subject = sprintf(__("Details for closed Project: %s", 'ProjectTheme'), $post->post_title);
        $message = sprintf(__('The project <a href="%s">%s</a> was just closed. Here is the user email for the other party: %s', "ProjectTheme"), $perm, $post->post_title, $payer_user->user_email);
        //sitemile_send_email($receiver_user->user_email, $subject , $message); // send email for the details
        //------------
        $subject = sprintf(__("Your have received payment for the project: %s", 'ProjectTheme'), $post->post_title);
        $message = sprintf(__('You have been just paid for the project <a href="%s">%s</a> the amount of: %s %s from user: 

	<b>%s</b>', "ProjectTheme"), $perm, $post->post_title, $amount, $cure, $payer_user->user_login);
        //sitemile_send_email($payer_user->user_email, $subject , $message); // send email for the payment received
        $subject = sprintf(__("Details for closed Project: %s", 'ProjectTheme'), $post->post_title);
        $message = sprintf(__('The project <a href="%s">%s</a> was just closed. Here is the user email for the other party: %s', "ProjectTheme"), $perm, $post->post_title, $receiver_user->user_email);
        //sitemile_send_email($payer_user->user_email, $subject , $message); // send email for the details
        //------------
        if ($pay_by_credits == '1') {
            $cr = projectTheme_get_credits($payer_user_id);
            projectTheme_update_credits($payer_user_id, $cr - $amount);
            $uprof = ProjectTheme_get_user_profile_link($receiver_user->ID);
            //get_bloginfo('siteurl')."/user-profile/".$receiver_user->user_login;
            $reason = sprintf(__('Payment sent to <a href="%s">%s</a> for project <a href="%s">%s</a>', 'ProjectTheme'), $uprof, $receiver_user->user_login, $perm, $post->post_title);
            projectTheme_add_history_log('0', $reason, $amount, $payer_user_id, $receiver_user_id);
            //=========================
            $projectTheme_fee_after_paid = get_option('projectTheme_fee_after_paid');
            if (!empty($projectTheme_fee_after_paid)) {
                $deducted = $amount * ($projectTheme_fee_after_paid * 0.01);
            } else {
                $deducted = 0;
            }
            $cr = projectTheme_get_credits($receiver_user_id);
            projectTheme_update_credits($receiver_user_id, $cr + $amount - $deducted);
            $uprof = ProjectTheme_get_user_profile_link($payer_user_id->ID);
            $reason = sprintf(__('Payment received from <a href="%s">%s</a> for project <a href="%s">%s</a>', 'ProjectTheme'), $uprof, $payer_user_id->user_login, $perm, $post->post_title);
            projectTheme_add_history_log('1', $reason, $amount, $receiver_user_id, $payer_user_id);
            //--------
            $reason = sprintf(__('Payment fee for project <a href="%s">%s</a>', 'ProjectTheme'), $perm, $post->post_title);
            projectTheme_add_history_log('0', $reason, $deducted, $receiver_user_id);
        }
    }
    //------------
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:58,代码来源:functions.php

示例6: projectTheme_orders

function projectTheme_orders()
{
    global $menu_admin_project_theme_bull;
    echo '<div class="wrap">';
    echo '<div class="icon32" id="icon-options-general-orders"><br/></div>';
    echo '<h2 class="my_title_class_sitemile">ProjectTheme Orders</h2>';
    if (isset($_GET['mark_delivered'])) {
        $tm = current_time('timestamp', 0);
        $pid = $_GET['mark_delivered'];
        update_post_meta($pid, 'mark_coder_delivered', "1");
        update_post_meta($pid, 'mark_coder_delivered_date', $tm);
        $winner_bd = projectTheme_get_winner_bid($pid);
        //------------------------------------------------------------------------------
        ProjectTheme_send_email_on_delivered_project_to_bidder($pid, $winner_bd->uid);
        ProjectTheme_send_email_on_delivered_project_to_owner($pid);
        echo '<div class="saved_thing">Marked Delivered!</div>';
    }
    if (isset($_GET['mark_completed'])) {
        $tm = current_time('timestamp', 0);
        $pid = $_GET['mark_completed'];
        $pstpst = get_post($pid);
        update_post_meta($pid, 'mark_seller_accepted', "1");
        update_post_meta($pid, 'mark_seller_accepted_date', $tm);
        update_post_meta($pid, 'outstanding', "0");
        update_post_meta($pid, 'delivered', "1");
        //update_post_meta($pid, 'paid_user',		"1");
        //------------------------------------------------------------------------------
        ProjectTheme_send_email_on_completed_project_to_bidder($pid, $pstpst->post_author);
        ProjectTheme_send_email_on_completed_project_to_owner($pid);
        echo '<div class="saved_thing">Marked Completed!</div>';
    }
    if (isset($_GET['mark_paid'])) {
        $tm = current_time('timestamp', 0);
        $pid = $_GET['mark_paid'];
        update_post_meta($pid, 'paid_user_date', $tm);
        update_post_meta($pid, 'paid_user', "1");
        echo '<div class="saved_thing">Marked Paid!</div>';
    }
    ?>
    
        <div id="usual2" class="usual"> 
  <ul> 
    <li><a href="#tabs1">Open Orders</a></li> 
    <li><a href="#tabs2">Delivered Orders</a></li>
    <li><a href="#tabs3">Completed Orders</a></li>
    <li><a href="#tabs4">Paid Orders</a></li>
    <!-- <li><a href="#tabs4">Failed &amp; Disputed Orders</a></li> -->
    <?php 
    do_action('ProjectTheme_main_menu_orders_tabs');
    ?>
  </ul> 
  <div id="tabs1" style="display: none; ">
    	<?php 
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 25;
    $outstanding = array('key' => 'outstanding', 'value' => "1", 'compare' => '=');
    $winner = array('key' => 'winner', 'value' => 0, 'compare' => '!=');
    $delivered2 = array('key' => 'delivered', 'value' => "1", 'compare' => '!=');
    $mark_coder_delivered = array('key' => 'mark_coder_delivered', 'value' => "1", 'compare' => '!=');
    $pj = $_GET['pj1'];
    if (empty($_GET['pj1'])) {
        $pj = 1;
    }
    $args = array('post_type' => 'project', 'order' => 'DESC', 'posts_per_page' => $post_per_page, 'paged' => $pj, 'meta_query' => array($outstanding, $winner, $delivered2, $mark_coder_delivered));
    add_filter('posts_join', 'projectTheme_posts_join_0');
    add_filter('posts_orderby', 'projectTheme_posts_orderby_0');
    query_posts($args);
    if (have_posts()) {
        echo '<table class="widefat post fixed">';
        echo '<thead>';
        echo '<th>Project Title</th>';
        echo '<th>Project Creator</th>';
        echo '<th>Bidder</th>';
        echo '<th>Winning Bid</th>';
        echo '<th>Date Ordered</th>';
        echo '<th>Expected Delivery</th>';
        echo '<th>Options</th>';
        echo '</thead>';
        while (have_posts()) {
            the_post();
            $bid = projectTheme_get_winner_bid(get_the_ID());
            $bidsa = $bid;
            $bid = ProjectTheme_get_show_price($bid->bid);
            $post = get_post(get_the_ID());
            $creator = get_userdata($post->post_author);
            $winner = get_post_meta(get_the_ID(), 'winner', true);
            $winner = get_userdata($winner);
            $winner = '<a href="' . ProjectTheme_get_user_profile_link($winner->ID) . '">' . $winner->user_login . '</a>';
            $creator = '<a href="' . ProjectTheme_get_user_profile_link($post->post_author) . '">' . $creator->user_login . '</a>';
            $tm_d = get_post_meta(get_the_ID(), 'expected_delivery', true);
            $tm_d = date_i18n('d-M-Y H:i:s', $tm_d);
            $closed_date = get_post_meta(get_the_ID(), 'closed_date', true);
            $winner_date = date_i18n('d-M-Y H:i:s', $closed_date);
            echo '</tr>';
            echo '<th><a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></th>';
            echo '<th>' . $creator . '</th>';
//.........这里部分代码省略.........
开发者ID:simplix-fr,项目名称:o-g,代码行数:101,代码来源:admin_menu.php

示例7: ProjectTheme_my_account_feedbacks_area_function

function ProjectTheme_my_account_feedbacks_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
  <div id="content" class="account-main-area">
	
	 <div class="box_title"><?php 
    _e("Reviews I need to award", 'ProjectTheme');
    ?>
</div>
	 <div class="my_box3">
                <div class="box_content">    
				
              	<?php 
    global $wpdb;
    $query = "select * from " . $wpdb->prefix . "project_ratings where fromuser='{$uid}' AND awarded='0'";
    $r = $wpdb->get_results($query);
    if (count($r) > 0) {
        echo '<table class="table">';
        echo '<tr>';
        echo '<th>&nbsp;</th>';
        echo '<th><b>' . __('Project Title', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('To User', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('Aquired on', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('Price', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('Options', 'ProjectTheme') . '</b></th>';
        echo '</tr>';
        foreach ($r as $row) {
            $post = $row->pid;
            $post = get_post($post);
            $bid = projectTheme_get_winner_bid($row->pid);
            $user = get_userdata($row->touser);
            $dmt2 = get_post_meta($row->pid, 'closed_date', true);
            if (!empty($dmt2)) {
                $dmt = date_i18n('d-M-Y H:i:s', $dmt2);
            }
            echo '<tr>';
            echo '<th><img class="img_class" width="42" height="42" src="' . ProjectTheme_get_first_post_image($row->pid, 42, 42) . '" 
                                alt="' . $post->post_title . '" /></th>';
            echo '<th><a href="' . get_permalink($row->pid) . '">' . $post->post_title . '</a></th>';
            echo '<th><a href="' . ProjectTheme_get_user_profile_link($user->ID) . '">' . $user->user_login . '</a></th>';
            echo '<th>' . $dmt . '</th>';
            echo '<th>' . projectTheme_get_show_price($bid->bid) . '</th>';
            echo '<th><a href="' . get_bloginfo('siteurl') . '/?p_action=rate_user&rid=' . $row->id . '">' . __('Rate User', 'ProjectTheme') . '</a></th>';
            echo '</tr>';
        }
        echo '</table>';
    } else {
        _e("There are no reviews to be awarded.", "ProjectTheme");
    }
    ?>
                
                
           </div>
           </div>    
           
           <!-- ##### -->
           <div class="clear10"></div>
           
           
           
           <div class="box_title"><?php 
    _e("Reviews I am waiting ", 'ProjectTheme');
    ?>
</div>
           
           <div class="my_box3"> 
                <div class="box_content">    
				
              	<?php 
    global $wpdb;
    $query = "select * from " . $wpdb->prefix . "project_ratings where touser='{$uid}' AND awarded='0'";
    $r = $wpdb->get_results($query);
    if (count($r) > 0) {
        echo '<table class="table">';
        echo '<tr>';
        echo '<th>&nbsp;</th>';
        echo '<th><b>' . __('Project Title', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('From User', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('Aquired on', 'ProjectTheme') . '</b></th>';
        echo '<th><b>' . __('Price', 'ProjectTheme') . '</b></th>';
        //echo '<th><b>'.__('Options','ProjectTheme').'</b></th>';
        echo '</tr>';
        foreach ($r as $row) {
            $post = $row->pid;
            $post = get_post($post);
            $bid = projectTheme_get_winner_bid($row->pid);
            $user = get_userdata($row->fromuser);
            $dmt2 = get_post_meta($row->pid, 'closed_date', true);
            if (!empty($dmt2)) {
                $dmt = date_i18n('d-M-Y H:i:s', $dmt2);
            }
            echo '<tr>';
            echo '<th><img class="img_class" width="42" height="42"  src="' . ProjectTheme_get_first_post_image($row->pid, 42, 42) . '" 
                                alt="' . $post->post_title . '" /></th>';
            echo '<th><a href="' . get_permalink($row->pid) . '">' . $post->post_title . '</a></th>';
            echo '<th><a href="' . ProjectTheme_get_user_profile_link($user->ID) . '">' . $user->user_login . '</a></th>';
            echo '<th>' . $dmt . '</th>';
//.........这里部分代码省略.........
开发者ID:simplix-fr,项目名称:o-g,代码行数:101,代码来源:feedbacks.php

示例8: ProjectTheme_my_account_private_messages_area_function


//.........这里部分代码省略.........
                </div>
            
            <!--#######-->
            
            <div class="clear10"></div>
            
            	<div class="my_box3">
            	
            
            	<div class="box_title"><?php 
        _e("Latest Sent Items", "ProjectTheme");
        ?>
</div>
                <div class="box_content">  
                <?php 
        global $wpdb;
        $uidss = $current_user->ID;
        $s = "select * from " . $wpdb->prefix . "project_pm where initiator='{$uidss}'  AND show_to_source='1' order by id desc limit 4";
        $r = $wpdb->get_results($s);
        if (count($r) > 0) {
            echo '<table width="100%" class="privatemesg">';
            echo '<tr>';
            echo '<td>' . __('To User', 'ProjectTheme') . '</td>';
            echo '<td>' . __('Subject', 'ProjectTheme') . '</td>';
            echo '<td>' . __('Date', 'ProjectTheme') . '</td>';
            echo '<td>' . __('Options', 'ProjectTheme') . '</td>';
            echo '</tr>';
            foreach ($r as $row) {
                //if($row->rd == 0) $cls = 'bold_stuff';
                //else
                $cls = '';
                $user = get_userdata($row->user);
                echo '<tr>';
                echo '<td class="' . $cls . '"><a href="' . ProjectTheme_get_user_profile_link($row->user) . '">' . $user->user_login . '</a></td>';
                echo '<td class="' . $cls . '">' . substr($row->subject, 0, 30) . '</td>';
                //echo '<td class="'.$cls.'">'.date_i18n('d-M-Y H:i:s',$row->datemade).'</td>';
                echo '<td class="' . $cls . ' conv_time">' . $row->datemade . '</td>';
                echo '<td><a href="' . ProjectTheme_get_priv_mess_page_url('read-message', $row->id) . '">' . __('Read', 'ProjectTheme') . '</a> | 
						<a id="privatedel"  href="' . ProjectTheme_get_priv_mess_page_url('delete-message', $row->id) . '">' . __('Delete', 'ProjectTheme') . '</a></td>';
                echo '</tr>';
            }
            echo '</table>';
        } else {
            _e('No messages here.', 'ProjectTheme');
        }
        ?>
                 
               
                </div>
                </div>
            
            
		<!-- page content here -->	
			
        <?php 
    } elseif ($third_page == 'inbox') {
        global $current_user;
        get_currentuserinfo();
        $myuid = $current_user->ID;
        //echo $myuid;
        ?>
        
        
		<!-- page content here -->	
			
            
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:65,代码来源:private_messages.php

示例9: ProjectTheme_my_account_payments_area_function

function ProjectTheme_my_account_payments_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>

<div id="content" class="account-main-area">

            
            <?php 
    $pg = $_GET['pg'];
    if (!isset($pg)) {
        $pg = 'home';
    }
    global $wpdb;
    if ($_GET['pg'] == 'closewithdrawal') {
        $id = $_GET['id'];
        $s = "select * from " . $wpdb->prefix . "project_withdraw where id='{$id}' AND uid='{$uid}'";
        $r = $wpdb->get_results($s);
        if (count($r) == 1) {
            $row = $r[0];
            $amount = $row->amount;
            $cr = projectTheme_get_credits($uid);
            projectTheme_update_credits($uid, $cr + $amount);
            $s = "delete from " . $wpdb->prefix . "project_withdraw where id='{$id}' AND uid='{$uid}'";
            $wpdb->query($s);
            echo '<div class="">';
            echo sprintf(__('Request canceled! <a href="%s">Return to payments</a>.', 'ProjectTheme'), get_permalink(get_option('ProjectTheme_my_account_payments_id')));
            echo '</div>';
        }
    }
    if ($_GET['pg'] == 'releasepayment') {
        $id = $_GET['id'];
        $escrow = Escrow::get_by_field('id', $id);
        $bid = Bid::get_by_id($escrow->bid);
        $s = "select * from " . $wpdb->prefix . "project_escrow where id='{$id}' AND fromid='{$uid}'";
        $r = $wpdb->get_results($s);
        if (count($r) == 1 and $r[0]->released != 1) {
            $row = $r[0];
            $amount = $row->amount;
            $toid = $row->toid;
            $pid = $row->pid;
            $my_pst = get_post($pid);
            $projectTheme_get_winner_bid = projectTheme_get_winner_bid($pid);
            ProjectTheme_send_email_when_on_completed_project($pid, $projectTheme_get_winner_bid->uid, $projectTheme_get_winner_bid->bid);
            //-------------------------------------------------------------------------------
            $projectTheme_fee_after_paid = get_option('projectTheme_fee_after_paid');
            if (!empty($projectTheme_fee_after_paid)) {
                $deducted = $amount * ($projectTheme_fee_after_paid * 0.01);
            } else {
                $deducted = 0;
            }
            //-------------------------------------------------------------------------------
            $cr = projectTheme_get_credits($toid);
            projectTheme_update_credits($toid, $cr + $amount - $deducted);
            $reason = sprintf(__('Escrow payment received from <a href="%s">%s</a> for the project <a href="%s">%s</a>', 'ProjectTheme'), ProjectTheme_get_user_profile_link($current_user->ID), $current_user->user_login, get_permalink($my_pst->ID), $my_pst->post_title);
            projectTheme_add_history_log('1', $reason, $amount, $toid, $uid);
            if ($deducted > 0) {
                $reason = sprintf(__('Payment fee for project <a href="%s">%s</a>', 'ProjectTheme'), get_permalink($my_pst->ID), $my_pst->post_title);
            }
            projectTheme_add_history_log('0', $reason, $deducted, $toid);
            //-----------------------------
            $email = get_bloginfo('admin_email');
            $site_name = get_bloginfo('name');
            $usr = get_userdata($uid);
            $usr2 = get_userdata($toid);
            $subject = __("Money Escrow Completed", 'ProjectTheme');
            //$message = sprintf(__("You have released the escrow of: %s","ProjectTheme"), ProjectTheme_get_show_price($amount));
            //$message = sprintf(__('Escrow Payment completed, sent %s to <a href="%s">%s</a> for project <a href="%s">%s</a>','ProjectTheme'), $amount, ProjectTheme_get_user_profile_link($usr2->ID), $usr2->user_login, get_permalink($my_pst->ID), $my_pst->post_title);
            $message = sprintf(__('Escrow Payment completed, sent %s to %s for %s', 'ProjectTheme'), $amount, $usr2->user_login, $my_pst->post_title);
            ProjectTheme_send_email($usr->user_email, $subject, $message);
            //($usr->user_email, $subject , $message);
            //-----------------------------
            //$usr = get_userdata($toid);
            $reason = sprintf(__('Escrow Payment completed, sent to <a href="%s">%s</a> for project <a href="%s">%s</a>', 'ProjectTheme'), ProjectTheme_get_user_profile_link($usr2->ID), $usr2->user_login, get_permalink($my_pst->ID), $my_pst->post_title);
            projectTheme_add_history_log('0', $reason, $amount, $uid, $toid);
            $subject = __("Money Escrow Completed", "ProjectTheme");
            //$message = sprintf(__("You have received the amount of: %s","ProjectTheme"), ProjectTheme_get_show_price($amount));
            //$message = sprintf(__('Escrow Payment received $ %s, from <a href="%s">%s</a> for project <a href="%s">%s</a>','ProjectTheme'), $amount, ProjectTheme_get_user_profile_link($usr->ID), $usr->user_login, get_permalink($my_pst->ID), $my_pst->post_title);
            $message = sprintf(__('Escrow Payment received $ %s, from %s for project %s', 'ProjectTheme'), $amount, $usr->user_login, $my_pst->post_title);
            ProjectTheme_send_email($usr2->user_email, $subject, $message);
            //($usr->user_email, $subject , $message);
            //-----------------------------
            /*
             * Update bid and project meta
             */
            $tm = current_time('timestamp', 0);
            if (!empty($bid)) {
                Bid::update_meta_by_id($bid->id, 'paid', "1");
                Bid::update_meta_by_id($bid->id, 'paid_user_date', $tm);
                Project::update_postmeta($bid->pid, 'paid_user');
            } else {
                // for old projects
                update_post_meta($pid, 'paid_user', '1');
                update_post_meta($pid, 'paid_user_date', current_time('timestamp', 0));
            }
            $s = "update " . $wpdb->prefix . "project_escrow set released='1', releasedate='{$tm}' where id='{$id}'";
            $r = $wpdb->query($s);
        }
//.........这里部分代码省略.........
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:payments.php

示例10: ProjectTheme_my_account_milestones_area_function


//.........这里部分代码省略.........
            ?>
</td>
                                <td><?php 
            _e('Amount', 'ProjectTheme');
            ?>
</td>
                                <td width="170"><?php 
            _e('Description', 'ProjectTheme');
            ?>
</td>                                
                                <td><?php 
            _e('Due Date', 'ProjectTheme');
            ?>
</td>
                                <td><?php 
            _e('Options', 'ProjectTheme');
            ?>
</td>
                            </tr>
                        
                        
                        <?php 
            foreach ($r as $row) {
                $post_p = get_post($row->pid);
                $project_title = $post_p->post_title;
                $user_of_milestone = get_userdata($row->uid);
                ?>
                				<tr>
                                	<td><?php 
                echo '<a href="' . get_permalink($row->pid) . '">' . $project_title . '</a>';
                ?>
</td>
                                    <td><?php 
                echo '<a href="' . ProjectTheme_get_user_profile_link($user_of_milestone->ID) . '">' . $user_of_milestone->user_login . '</a>';
                ?>
</td>
                                    <td><?php 
                echo projecttheme_get_show_price($row->amount);
                ?>
</td>
                                    <td><?php 
                echo $row->description_content;
                ?>
</td>
                                    <td><?php 
                echo date_i18n('d-M-Y', $row->completion_date);
                ?>
</td>
                                	<td><a href="<?php 
                echo projectTheme_release_milestone_link($row->id);
                ?>
" class="green_btn block"><?php 
                _e('Release Payment', 'ProjectTheme');
                ?>
</a></td>
                                </tr>
                
                		<?php 
            }
            ?>
                        
                        </table>
                
                <?php 
        } else {
            _e('There are no outgoing payments.', 'ProjectTheme');
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:67,代码来源:milestones_old.php

示例11: ProjectTheme_display_provider_search_page_disp

    function ProjectTheme_display_provider_search_page_disp()
    {
        ?>
	
	
    	<div id="content" >
        	
            <div class="my_box3">
            	<div class="padd10">
            
            	<div class="box_title"><?php 
        _e("Service Provider Search", "ProjectTheme");
        ?>
</div>
                <div class="box_content"> 
<?php 
        $ProjectTheme_enable_2_user_tp = get_option('ProjectTheme_enable_2_user_tp');
        $pg = $_GET['pg'];
        if (empty($pg)) {
            $pg = 1;
        }
        $nrRes = 15;
        //------------------
        $offset = ($pg - 1) * $nrRes;
        //------------------
        if (isset($_GET['username'])) {
            $args['search'] = "*" . trim($_GET['username']) . "*";
        }
        // prepare arguments
        $args['orderby'] = 'display_name';
        $arr_aray = array();
        if (!empty($_GET['rating_over'])) {
            $arr_sbg = array('key' => 'cool_user_rating', 'value' => $_GET['rating_over'], 'compare' => '>');
            array_push($arr_aray, $arr_sbg);
        }
        if ($ProjectTheme_enable_2_user_tp == "yes") {
            $arr_sbg = array('key' => 'user_tp', 'value' => 'service_provider', 'compare' => '=');
            array_push($arr_aray, $arr_sbg);
        }
        //-----------------------------------------------
        $args['meta_query'] = $arr_aray;
        $args['number'] = $nrRes;
        $args['offset'] = $offset;
        $args['count_total'] = true;
        //-----------------------------------------------
        $wp_user_query = new WP_User_Query($args);
        // Get the results
        $ttl = $wp_user_query->total_users;
        $nrPages = ceil($ttl / $nrRes);
        $authors = $wp_user_query->get_results();
        // Check for results
        if (!empty($authors)) {
            echo '<table width="100%">';
            // loop trough each author
            echo '<tr>';
            echo '<td><strong>' . __('Username', 'ProjectTheme') . '</strong></td>';
            echo '<td><strong>' . __('User Rating', 'ProjectTheme') . '</strong></td>';
            echo '<td><strong>' . __('Options', 'ProjectTheme') . '</strong></td>';
            echo '</tr>';
            foreach ($authors as $author) {
                // get all the user's data
                $author_info = get_userdata($author->ID);
                echo '<tr>';
                echo '<td><a href="' . ProjectTheme_get_user_profile_link($author->ID) . '">' . $author_info->user_login . '<a/></td>';
                echo '<td>' . ProjectTheme_project_get_star_rating($author->ID) . '</td>';
                echo '<td><a href="' . ProjectTheme_get_priv_mess_page_url('send', '', '&uid=' . $author_info->ID) . '">' . __('Contact Provider', 'ProjectTheme') . '</a></td>';
                echo '</tr>';
            }
            echo '</table>';
            echo '<div class="div_class_div">';
            $totalPages = $nrPages;
            $my_page = $pg;
            $page = $pg;
            $batch = 10;
            $nrpostsPage = $nrRes;
            $end = $batch * $nrpostsPage;
            if ($end > $pagess) {
                $end = $pagess;
            }
            $start = $end - $nrpostsPage + 1;
            if ($start < 1) {
                $start = 1;
            }
            $links = '';
            $raport = ceil($my_page / $batch) - 1;
            if ($raport < 0) {
                $raport = 0;
            }
            $start = $raport * $batch + 1;
            $end = $start + $batch - 1;
            $end_me = $end + 1;
            $start_me = $start - 1;
            if ($end > $totalPages) {
                $end = $totalPages;
            }
            if ($end_me > $totalPages) {
                $end_me = $totalPages;
            }
            if ($start_me <= 0) {
                $start_me = 1;
//.........这里部分代码省略.........
开发者ID:juliosd,项目名称:legacy-master,代码行数:101,代码来源:provider_search.php

示例12: projectTheme_get_post_awaiting_compl_function_old


//.........这里部分代码省略.........
                                </p>

							</li>

                            

                            

                            <li>

								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/price.png" width="15" height="15" /> 

								<h3><?php 
    echo __("Winning Bid", 'ProjectTheme');
    ?>
:</h3>

								<p><?php 
    $bid = projectTheme_get_winner_bid(get_the_ID());
    echo ProjectTheme_get_show_price($bid->bid);
    ?>

                                

                                </p>

							</li>

					

             				

                            <li>

								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/location.png" width="15" height="15" /> 

								<h3><?php 
    echo __("Winner", 'ProjectTheme');
    ?>
:</h3>

								<p><?php 
    $winner = get_post_meta(get_the_ID(), 'winner', true);
    $winner = get_userdata($winner);
    echo '<a href="' . ProjectTheme_get_user_profile_link($winner->ID) . '">' . $winner->user_login . '</a>';
    ?>
</p>

							</li>

                        



							

                            <li>

								<img src="<?php 
    echo get_bloginfo('template_url');
    ?>
/images/clock.png" width="15" height="15" /> 

								<h3><?php 
    echo __("Delivery On", 'ProjectTheme');
    ?>
:</h3>

								<p><?php 
    $tm_d = get_post_meta(get_the_ID(), 'expected_delivery', true);
    echo date_i18n('d-M-Y H:i:s', $tm_d);
    ?>
</p>

							</li>

							

					

                    

						</ul>

                      

               

                  </div>   

                     

                     </div></div></div> <?php 
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:deleted-code.php

示例13: get_userdata

     $show_this_around = 1;
 } else {
     if ($private_bids == 'yes' or $private_bids == '1' or $private_bids == 1) {
         if ($uid == $row->uid) {
             $show_this_around = 1;
         } else {
             $show_this_around = 0;
         }
     } else {
         $show_this_around = 1;
     }
 }
 if ($show_this_around == 1) {
     $user = get_userdata($row->uid);
     echo '<div class="myrow">';
     echo '<div><i class="bid-person"></i> <a href="' . ProjectTheme_get_user_profile_link($user->ID) . '">' . $user->user_login . '</a></div>';
     echo '<div><i class="bid-money"></i>  ' . ProjectTheme_get_show_price($row->bid) . '</div>';
     echo '<div><i class="bid-clock"></i> ' . date_i18n("d-M-Y H:i:s", $row->date_made) . '</div>';
     echo '<div><i class="bid-days"></i> ' . sprintf(__("%s days", "ProjectTheme"), $row->days_done) . '</div>';
     //if($owner == 1 && $closed == "0")
     //echo '<div><input name="bids" data-pid="' . get_the_ID() . '" data-bid="' . $row->id . '" type="checkbox"></div>';
     if ($owner == 1) {
         $nr = 7;
         if ($row->winner != 1 && $ending > current_time('timestamp', 0) && $closed == 0) {
             echo '<div><i class="bid-select"></i>  <a href="' . get_bloginfo('siteurl') . '/?p_action=choose_winner&pid=' . get_the_ID() . '&bid=' . $row->id . '">' . __('Select as Winner', 'ProjectTheme') . '</a></div>';
         }
         if ($ProjectTheme_enable_project_files != "no") {
             if (projecttheme_see_if_project_files_bid(get_the_ID(), $row->uid) == true) {
                 echo '<div> <i class="bid-days"></i> ';
                 echo '<a href="#" class="get_files" rel="' . get_the_ID() . '_' . $row->uid . '">' . __('See Bid Files', 'ProjectTheme') . '</a> ';
                 echo '</div>';
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:31,代码来源:single-project.php

示例14: ProjectTheme_post_new_area_function


//.........这里部分代码省略.........
                    echo '<th>' . __('Days to Complete', 'ProjectTheme') . '</th>';
                    if ($owner == 1) {
                        if (empty($winner)) {
                            echo '<th>' . __('Choose Winner', 'ProjectTheme') . '</th>';
                        }
                        if ($ProjectTheme_enable_project_files != "no") {
                            echo '<th>' . __('Bid Files', 'ProjectTheme') . '</th>';
                        }
                        echo '<th>' . __('Messaging', 'ProjectTheme') . '</th>';
                    }
                    if ($closed == "1") {
                        echo '<th>' . __('Winner', 'ProjectTheme') . '</th>';
                    }
                    echo '</tr></thead><tbody>';
                }
                //-------------
                foreach ($res as $row) {
                    if ($owner == 1) {
                        $show_this_around = 1;
                    } else {
                        if ($private_bids == 'yes' or $private_bids == '1' or $private_bids == 1) {
                            if ($uid == $row->uid) {
                                $show_this_around = 1;
                            } else {
                                $show_this_around = 0;
                            }
                        } else {
                            $show_this_around = 1;
                        }
                    }
                    if ($show_this_around == 1) {
                        $user = get_userdata($row->uid);
                        echo '<tr>';
                        echo '<th><a href="' . ProjectTheme_get_user_profile_link($user->ID) . '">' . $user->user_login . '</a></th>';
                        echo '<th>' . ProjectTheme_get_show_price($row->bid) . '</th>';
                        echo '<th>' . date("d-M-Y H:i:s", $row->date_made) . '</th>';
                        echo '<th>' . $row->days_done . '</th>';
                        if ($owner == 1) {
                            $nr = 7;
                            if (empty($winner)) {
                                // == 0)
                                echo '<th><a href="' . get_bloginfo('siteurl') . '/?p_action=choose_winner&pid=' . $PID_PID . '&bid=' . $row->id . '">' . __('Select', 'ProjectTheme') . '</a></th>';
                            }
                            if ($ProjectTheme_enable_project_files != "no") {
                                echo '<th>';
                                if (projecttheme_see_if_project_files_bid($PID_PID, $row->uid) == true) {
                                    echo '<a href="#" class="get_files" rel="' . $PID_PID . '_' . $row->uid . '">' . __('Bid Files', 'ProjectTheme') . '</a>';
                                } else {
                                    _e('None', 'ProjectTheme');
                                }
                                echo '</th>';
                            }
                            echo '<th><a href="' . ProjectTheme_get_priv_mess_page_url('send', '', '&uid=' . $row->uid . '&pid=' . $PID_PID) . '">' . __('Send Message', 'ProjectTheme') . '</a></th>';
                        } else {
                            $nr = 4;
                        }
                        if ($closed == "1") {
                            if ($row->winner == 1) {
                                echo '<th>' . __('Yes', 'ProjectTheme') . '</th>';
                            } else {
                                echo '<th>&nbsp;</th>';
                            }
                        }
                        echo '</tr>';
                        echo '<tr>';
                        echo '<th colspan="' . $nr . '" class="my_td_with_border">' . $row->description . '</th>';
开发者ID:roberto95117,项目名称:auction,代码行数:67,代码来源:post_new.php

示例15: ProjectTheme_my_account_private_messages_area_function


//.........这里部分代码省略.........
                </div>
            
            <!--#######-->
            
            <div class="clear10"></div>
            
            	<div class="my_box3">
            	
            
            	<div class="box_title"><?php 
        _e("Latest Sent Items", "ProjectTheme");
        ?>
</div>
                <div class="box_content">  
                <?php 
        global $wpdb;
        $uidss = $current_user->ID;
        $s = "select * from " . $wpdb->prefix . "project_pm where initiator='{$uidss}'  AND show_to_source='1' order by id desc limit 4";
        $r = $wpdb->get_results($s);
        if (count($r) > 0) {
            echo '<table width="100%">';
            echo '<tr>';
            echo '<td>' . __('To User', 'ProjectTheme') . '</td>';
            echo '<td>' . __('Subject', 'ProjectTheme') . '</td>';
            echo '<td>' . __('Date', 'ProjectTheme') . '</td>';
            echo '<td>' . __('Options', 'ProjectTheme') . '</td>';
            echo '</tr>';
            foreach ($r as $row) {
                //if($row->rd == 0) $cls = 'bold_stuff';
                //else
                $cls = '';
                $user = get_userdata($row->user);
                echo '<tr>';
                echo '<td class="' . $cls . '"><a href="' . ProjectTheme_get_user_profile_link($row->user) . '">' . $user->user_login . '</a></td>';
                echo '<td class="' . $cls . '">' . $row->subject . '</td>';
                echo '<td class="' . $cls . '">' . date_i18n('d-M-Y H:i:s', $row->datemade) . '</td>';
                echo '<td><a href="' . ProjectTheme_get_priv_mess_page_url('read-message', $row->id) . '">' . __('Read', 'ProjectTheme') . '</a> | 
						<a href="' . ProjectTheme_get_priv_mess_page_url('delete-message', $row->id) . '">' . __('Delete', 'ProjectTheme') . '</a></td>';
                echo '</tr>';
            }
            echo '</table>';
        } else {
            _e('No messages here.', 'ProjectTheme');
        }
        ?>
      
               
                </div>
                </div>
            
            
		<!-- page content here -->	
			
        <?php 
    } elseif ($third_page == 'inbox') {
        global $current_user;
        get_currentuserinfo();
        $myuid = $current_user->ID;
        //echo $myuid;
        ?>
        
        
		<!-- page content here -->	
			
            
            	<div class="my_box3">
开发者ID:roberto95117,项目名称:auction,代码行数:67,代码来源:private_messages.php


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