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


PHP ProjectTheme_get_users_links函数代码示例

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


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

示例1: ProjectTheme_my_account_completed_projects_area_function

function ProjectTheme_my_account_completed_projects_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content" class="account-main-area">
        
        
         
				
                
                <?php 
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    global $wp_query, $wpdb;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 10;
    $querystr = "\n                        SELECT p.ID \n                        FROM {$wpdb->posts} AS p\n                        LEFT JOIN {$wpdb->prefix}project_bids AS pb ON p.ID = pb.pid\n                        WHERE   p.post_author = '{$uid}'\n                            AND pb.winner = '1'\n                            AND pb.paid = '1'\n                            AND p.post_type = 'project' ";
    $pageposts = $wpdb->get_col($querystr);
    if (empty($pageposts)) {
        echo '<div class="my_box3 border_bottom_0"> <div class="box_content">   ';
        _e("There are no completed projects yet.", 'ProjectTheme');
        echo '</div>  </div> ';
    } else {
        //				$paid = array(
        //						'key' => 'paid_user',
        //						'value' => "1",
        //						'compare' => '='
        //					);
        //
        //				$args = array('post_type' => 'project','author' => $uid, 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page,
        //				'paged' => $query_vars['paged'], 'meta_query' => array($paid));
        $args = array('post_type' => 'project', 'author' => $uid, 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page, 'paged' => $query_vars['paged'], 'post__in' => $pageposts);
        query_posts($args);
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                projectTheme_get_post_paid();
            }
            if (function_exists('wp_pagenavi')) {
                wp_pagenavi();
            }
        } else {
            echo '<div class="my_box3 border_bottom_0"> <div class="box_content">   ';
            _e("There are no completed projects yet.", 'ProjectTheme');
            echo '</div>  </div> ';
        }
        wp_reset_query();
    }
    ?>
        
   
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:59,代码来源:completed_projects.php

示例2: ProjectTheme_my_account_bid_projects_area_function

function ProjectTheme_my_account_bid_projects_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content" class="account-main-area">
 

                <?php 
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 10;
    /*$winner = 	array(
    			'key' => 'bid',
    			'value' => $uid,
    			'compare' => '='
    		);*/
    global $wpdb;
    $s = "select * from " . $wpdb->prefix . "project_bids where uid='{$uid}'";
    $r = $wpdb->get_results($s);
    foreach ($r as $k => $rr) {
        $pids[] = $rr->pid;
    }
    /*$str_pids = implode(',', $pids);
    
    				var_dump($str_pids);*/
    $args = array('post_type' => 'project', 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page, 'paged' => $query_vars['paged'], 'post__in' => $pids);
    query_posts($args);
    $a = 0;
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $a += projectTheme_get_post_my_proposal();
        }
        if (function_exists('wp_pagenavi') && !$a) {
            wp_pagenavi();
        }
    } else {
        echo '<div class="my_box3 border_bottom_0"> <div class="box_content">   ';
        _e("You have not submitted any proposals yet.", 'ProjectTheme');
        echo '</div>  </div> ';
    }
    if ($a) {
        echo '<div class="my_box3"><div class="box_content">';
        _e("There are no projects yet.", 'ProjectTheme');
        echo '</div></div>';
    }
    wp_reset_query();
    ?>
                
         
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:vicpril,项目名称:ProjectTheme,代码行数:57,代码来源:bid_projects.php

示例3: ProjectTheme_my_account_delivered_projects_area_function

function ProjectTheme_my_account_delivered_projects_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content">
        
        
        	<div class="my_box3 border_bottom_0">
            	
            
            	<div class="box_title"><?php 
    _e("Delivered Projects", 'ProjectTheme');
    ?>
</div>
                <div class="box_content">    
				
                
  <?php 
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 10;
    $outstanding = array('key' => 'delivered', 'value' => "1", 'compare' => '=');
    $paid_user = array('key' => 'paid_user', 'value' => "1", 'compare' => '=');
    $winner = array('key' => 'winner', 'value' => $uid, 'compare' => '=');
    $args = array('post_type' => 'project', 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page, 'paged' => $query_vars['paged'], 'meta_query' => array($outstanding, $winner, $paid_user));
    query_posts($args);
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            projectTheme_get_post();
        }
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        }
    } else {
        _e("There are no delivered projects yet.", 'ProjectTheme');
    }
    wp_reset_query();
    ?>
                
                
               
           </div>
           </div>    
        
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:juliosd,项目名称:legacy-master,代码行数:55,代码来源:delivered_projects.php

示例4: ProjectTheme_my_account_unpublished_projects_area_function

function ProjectTheme_my_account_unpublished_projects_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content">
        
        
        	<div class="my_box3 border_bottom_0">
            	
            
            	<div class="box_title"><?php 
    _e("Unpublished Projects", 'ProjectTheme');
    ?>
</div>
                <div class="box_content">    
				
                
                <?php 
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 10;
    $paids = array('key' => 'paid', 'value' => "0", 'compare' => '=');
    $args = array('post_type' => 'project', 'order' => 'DESC', 'orderby' => 'date', 'post_status' => 'draft', 'author' => $uid, 'posts_per_page' => $post_per_page, 'paged' => $query_vars['paged'], 'meta_query' => array($paids));
    query_posts($args);
    //query_posts( "post_status=draft&meta_key=paid&meta_value=0&post_type=project&order=DESC&orderby=id&author=".$uid.
    //"&posts_per_page=".$post_per_page."&paged=".$query_vars['paged'] );
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            projectTheme_get_post(array('unpaid'));
        }
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        }
    } else {
        _e("There are no projects yet.", 'ProjectTheme');
    }
    wp_reset_query();
    ?>
                
                
               
           </div>
           </div>    
        
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:juliosd,项目名称:legacy-master,代码行数:52,代码来源:unpublished_projects.php

示例5: ProjectTheme_my_account_active_projects_area_function

function ProjectTheme_my_account_active_projects_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content">
        
        
        
                <div class="my_box3 border_bottom_0">
            	
            
            	<div class="box_title"><?php 
    _e("My Active Projects", 'ProjectTheme');
    ?>
</div>
                <div class="box_content">    
				
                
                <?php 
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 5;
    query_posts("meta_key=closed&meta_value=0&post_type=project&order=DESC&orderby=id&author=" . $uid . "&posts_per_page=" . $post_per_page . "&paged=" . $query_vars['paged']);
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            projectTheme_get_post_active();
        }
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        }
    } else {
        _e("There are no projects yet.", 'ProjectTheme');
    }
    wp_reset_query();
    ?>
                
                
               
           </div>
           </div>    
		
        
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:juliosd,项目名称:legacy-master,代码行数:50,代码来源:active_projects.php

示例6: ProjectTheme_my_account_area_awaiting_completion_function

function ProjectTheme_my_account_area_awaiting_completion_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content" class="account-main-area">
        
        
          
				
                
                <?php 
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 10;
    $outstanding = array('key' => 'outstanding', 'value' => "1", 'compare' => '=');
    $args = array('post_type' => 'project', 'author' => $uid, 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page, 'paged' => $query_vars['paged'], 'meta_query' => array($outstanding));
    query_posts($args);
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            projectTheme_get_post_awaiting_compl();
        }
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        }
    } else {
        echo '<div class="my_box3 border_bottom_0"> <div class="box_content">   ';
        _e("There are no projects yet.", 'ProjectTheme');
        echo '</div>  </div> ';
    }
    wp_reset_query();
    ?>
                
      
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:roberto95117,项目名称:auction,代码行数:44,代码来源:awaiting_completion.php

示例7: ProjectTheme_my_account_bid_projects_area_function

function ProjectTheme_my_account_bid_projects_area_function()
{
    global $current_user, $wpdb, $wp_query;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    	<div id="content" class="account-main-area">
 

                <?php 
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    $post_per_page = 10;
    $winner = array('key' => 'bid', 'value' => $uid, 'compare' => '=');
    $args = array('post_type' => 'project', 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page, 'pages' => $query_vars['paged'], 'meta_query' => array($winner));
    query_posts($args);
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            projectTheme_get_post_my_proposal();
        }
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi();
        }
    } else {
        echo '<div class="my_box3 border_bottom_0"> <div class="box_content">   ';
        _e("You have not submitted any proposals yet.", 'ProjectTheme');
        echo '</div>  </div> ';
    }
    wp_reset_query();
    ?>
                
         
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:roberto95117,项目名称:auction,代码行数:38,代码来源:bid_projects.php

示例8: ProjectTheme_my_account_payments_area_function


//.........这里部分代码省略.........
        		
            <div class="my_box3">
            
            
            	<div class="box_title"><?php 
            _e('Payment Transactions', 'ProjectTheme');
            ?>
 </div>
            	<div class="box_content">
            
                
                <?php 
            $s = "select * from " . $wpdb->prefix . "project_payment_transactions where uid='{$uid}' order by id desc";
            $r = $wpdb->get_results($s);
            if (count($r) == 0) {
                echo __('No activity yet.', 'ProjectTheme');
            } else {
                $i = 0;
                echo '<table width="100%" cellpadding="5">';
                foreach ($r as $row) {
                    if ($row->tp == 0) {
                        $class = "redred";
                        $sign = "-";
                    } else {
                        $class = "greengreen";
                        $sign = "+";
                    }
                    echo '<tr style="background:' . ($i % 2 ? "#f2f2f2" : "#f9f9f9") . '" >';
                    echo '<td>' . $row->reason . '</td>';
                    echo '<td width="25%">' . date_i18n('d-M-Y H:i:s', $row->datemade) . '</td>';
                    echo '<td width="20%" class="' . $class . '"><b>' . $sign . ProjectTheme_get_show_price($row->amount) . '</b></td>';
                    echo '</tr>';
                    $i++;
                }
                echo '</table>';
            }
            ?>
    
                 
            </div>
            </div>
        <?php 
        }
    }
    ?>
            
            
                
        </div> <!-- end dif content -->

    		

        <script type="text/javascript">
		
		
		
		
		
		
		
		
		
		
        	$(document).ready(function(){
            		$('input[name="deposit"]').click(function(ev){
            			ev.preventDefault();
            			var amount = $(this).parent().find('input[name="amount"]').val();
            			console.log(amount);
            			if (amount>0){
    						
            				$(this).parent().submit();
            			}
            			else{
            				$(this).prev().css('border-color','red');
            			}
    				});

            		$( 'input[name="amount"]' ).keypress(function( event ) {
            		  var kk = event.which;
            		  console.log(kk);
            		  
            		  if((kk>47 && kk<58) || kk==13 || kk==0 || kk==8 || kk==46){
            		  	return true;
            		  }
            		  else{
            		  	return false;
            		  }
            		  
            		});
            	});
        </script>
        
        <?php 
    ProjectTheme_get_users_links();
    ?>
        
    
	
<?php 
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:payments.php

示例9: ProjectTheme_my_account_private_messages_area_function


//.........这里部分代码省略.........
					mode : "specific_textareas",
					theme : "modern", 
					/*plugins : "autolink, lists, spellchecker, style, layer, table, advhr, advimage, advlink, emotions, iespell, inlinepopups, insertdatetime, preview, media, searchreplace, print, contextmenu, paste, 

directionality, fullscreen, noneditable, visualchars, nonbreaking, xhtmlxtras, template",*/
					editor_selector :"tinymce-enabled"
				});
			});
						
			</script>
                
                <tr>
                <td valign="top" class="no_wrap"><?php 
            _e("Message", "ProjectTheme");
            ?>
<font style="color:red;">*</font>&nbsp;:</td>
                <td><textarea name="message_a" class="tinymce-enabled" id="message_a"  rows="6" cols="50" ></textarea></td>
                </tr>
                
                
                <tr>
                <td valign="top" class="no_wrap"><?php 
            _e("Attach File", "ProjectTheme");
            ?>
:</td>
                <td>
                	<div style="display: block;">
                		<span style="display:inline-block;"><input type="file" id="file_instant" name="file_instant" class="" multiple=""/></span>
                		<span class="del21" style="float:right;cursor:pointer;" value="clear" onclick="file_clear(); textarea_instant();">Delete</span>
                	</div>
                	<div style="display: block;">
                		<?php 
            _e('Only PDF, TXT, ZIP, Office files and Images.', 'ProjectTheme');
            ?>
                	</div>
                </td>
                </tr>
                
                
                 <tr>
                <td width="140">&nbsp;</td>
                <td></td>
                </tr>
                
                 <tr>
                <td width="140">&nbsp;</td>
                <td><input name="send_a" class="submit_bottom2" type="submit"  value="<?php 
            _e("Send Message", 'ProjectTheme');
            ?>
" /></td>
                </tr>
                
                </table>
      			</form>
                
                </div>
                </div>
             
        
        <?php 
        }
    }
    ?>
        
             
        </div> <!-- end dif content -->
        <script type="text/javascript">
		


        	$(document).ready(function(){
        		
        		$('.conv_time').each(function(){
        			var tm = parseInt($(this).text())*1000;
        			console.log(tm);
        			var time = new Date(tm);
        			$(this).text(time.toLocaleString());
        		});
        	
});

         
        	function file_clear(){
       			$('#file_instant').val('');
    		}
			
		 
			
		  
   
   </script>
        
        <?php 
    ProjectTheme_get_users_links();
    ?>
        
    
	
<?php 
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:private_messages.php

示例10: ProjectTheme_my_account_disputes_area_function


//.........这里部分代码省略.........
            
            	<div class="box_title"><?php 
    _e("Closed Disputes", "ProjectTheme");
    ?>
</div>
                <div class="box_content"> 
                <div class="box_title"><?php 
    _e("As Initiator", "ProjectTheme");
    ?>
</div>
                    <?php 
    if ($closed_disputes) {
        echo '<table class="closed_disputes">';
        echo '<tr>';
        echo '<td>Date create</td>';
        echo '<td>Defendant</td>';
        echo '<td>Comment</td>';
        echo '<td>Winner</td>';
        echo '<td>Closed on</td>';
        echo '<td>Verdict</td>';
        echo '</tr>';
        foreach ($closed_disputes as $key => $closed_dispute) {
            $user = get_userdata($closed_dispute->defendant);
            $user_winner = get_userdata($closed_dispute->winner);
            echo '<tr>';
            //echo '<td>'.date('m-d-Y H:i',$closed_dispute->datemade).'</td>';
            echo '<td class="conv_time">' . $closed_dispute->datemade . '</td>';
            echo '<td>' . $user->user_login . '</td>';
            echo '<td class="disp_com">' . $closed_dispute->comment . '</td>';
            echo '<td>' . $user_winner->user_login . '</td>';
            echo '<td>' . date('m-d-Y H:i', $closed_dispute->closedon) . '</td>';
            echo '<td class="disp_com">' . $closed_dispute->admin_comment . '</td>';
            echo '</tr>';
        }
        echo '</table>';
    } else {
        _e('There are no closed disputes.', 'ProjectTheme');
    }
    ?>
                
                </div>
                <div class="box_content"> 
                <div class="box_title"><?php 
    _e("As Defendant", "ProjectTheme");
    ?>
</div>
                    <?php 
    if ($closed_disputes_on_me) {
        echo '<table class="closed_disputes">';
        echo '<tr>';
        echo '<td>Date create</td>';
        echo '<td>Initiator</td>';
        echo '<td>Comment</td>';
        echo '<td>Winner</td>';
        echo '<td>Closed on</td>';
        echo '<td>Verdict</td>';
        echo '</tr>';
        foreach ($closed_disputes_on_me as $key => $closed_dispute) {
            $user = get_userdata($closed_dispute->initiator);
            $user_winner = get_userdata($closed_dispute->winner);
            echo '<tr>';
            //echo '<td>'.date('m-d-Y H:i',$closed_dispute->datemade).'</td>';
            echo '<td class="conv_time">' . $closed_dispute->datemade . '</td>';
            echo '<td>' . $user->user_login . '</td>';
            echo '<td class="disp_com">' . $closed_dispute->comment . '</td>';
            echo '<td>' . $user_winner->user_login . '</td>';
            echo '<td>' . date('m-d-Y H:i', $closed_dispute->closedon) . '</td>';
            echo '<td class="disp_com">' . $closed_dispute->admin_comment . '</td>';
            echo '</tr>';
        }
        echo '</table>';
    } else {
        _e('There are no closed disputes.', 'ProjectTheme');
    }
    ?>
                
                </div>
                </div>
                </div>

                <div class="clear10"></div>
                
                
                
                
                </div>  
                 <script type="text/javascript">
            $(document).ready(function(){
                
                $('.conv_time').each(function(){
                    var tm = parseInt($(this).text())*1000;
                    console.log(tm);
                    var time = new Date(tm);
                    $(this).text(time.toLocaleString());
                });
            });
        </script> 
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:disputes.php

示例11: ProjectTheme_my_account_milestones_area_function


//.........这里部分代码省略.........
                
                
                  <div class="my_box3">
            	<div class="padd10">
            
            	<div class="box_title"><?php 
    _e("Incoming Milestone Payments", "ProjectTheme");
    ?>
</div>
                <div class="box_content"> 
            	
                
                
                <?php 
    $s = "select * from " . $wpdb->prefix . "project_milestone where uid='{$uid}' AND released='0' order by datemade desc";
    $r = $wpdb->get_results($s);
    if (count($r) > 0) {
        ?>
                        <table class="bdd_bdd" width="100%">
                        	<tr>
                            	<td width="150"><?php 
        _e('Project', 'ProjectTheme');
        ?>
</td>
                                <!--<td><?php 
        _e('Service Provider', 'ProjectTheme');
        ?>
</td>-->
                                <td><?php 
        _e('Service Owner', 'ProjectTheme');
        ?>
</td>
                                <td><?php 
        _e('Amount', 'ProjectTheme');
        ?>
</td>
                                <td width="170"><?php 
        _e('Description', 'ProjectTheme');
        ?>
</td>                                
                                <td><?php 
        _e('Due Date', '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);
            $user_of_milestone = get_userdata($row->owner);
            ?>
                				<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>
                                	 
                                </tr>
                
                		<?php 
        }
        ?>
                        
                        </table>
                
                <?php 
    } else {
        _e('There are no incoming payments.', 'ProjectTheme');
    }
    ?>
                
                </div>
                </div>
                </div>
           
                
                </div>   
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:milestones_old.php

示例12: ProjectTheme_my_account_private_messages_area_function


//.........这里部分代码省略.........
                $rtt = ProjectTheme_get_my_awarded_projects2($current_user->ID);
                ?>
                <tr>
                <td width="140"><?php 
                _e("Send To", "ProjectTheme");
                ?>
:</td>
                <td><input size="20" name="to_as" type="text" value="" /> <?php 
                if ($rtt) {
                    _e('or', 'ProjectTheme');
                    echo " " . $rtt;
                }
                ?>
</td>
                </tr>
                <?php 
            }
            ?>
                
                <tr>
                <td width="140"><?php 
            _e("Subject", "ProjectTheme");
            ?>
:</td>
                <td><input size="50" name="subject_a" type="text" value="<?php 
            echo $subject;
            ?>
" /></td>
                </tr>
                
                 <script>
			
			jQuery(document).ready(function(){
			tinyMCE.init({
					mode : "specific_textareas",
					theme : "modern", 
					/*plugins : "autolink, lists, spellchecker, style, layer, table, advhr, advimage, advlink, emotions, iespell, inlinepopups, insertdatetime, preview, media, searchreplace, print, contextmenu, paste, directionality, fullscreen, noneditable, visualchars, nonbreaking, xhtmlxtras, template",*/
					editor_selector :"tinymce-enabled"
				});
			});
						
			</script>
                
                <tr>
                <td valign="top"><?php 
            _e("Message", "ProjectTheme");
            ?>
:</td>
                <td><textarea name="message_a" class="tinymce-enabled" rows="6" cols="50"></textarea></td>
                </tr>
                
                
                <tr>
                <td valign="top"><?php 
            _e("Attach File", "ProjectTheme");
            ?>
:</td>
                <td><input type="file" name="file_instant" class="" /> <?php 
            _e('Only PDF, ZIP, Office files and Images.', 'ProjectTheme');
            ?>
</td>
                </tr>
                
                
                 <tr>
                <td width="140">&nbsp;</td>
                <td></td>
                </tr>
                
                 <tr>
                <td width="140">&nbsp;</td>
                <td><input name="send_a" class="submit_bottom2" type="submit" value="<?php 
            _e("Send Message", 'ProjectTheme');
            ?>
" /></td>
                </tr>
                
                </table>
      			</form>
                
                </div>
                </div>
             
        
        <?php 
        }
    }
    ?>
        
             
        </div> <!-- end dif content -->
        
        <?php 
    ProjectTheme_get_users_links();
    ?>
        
    
	
<?php 
}
开发者ID:roberto95117,项目名称:auction,代码行数:101,代码来源:private_messages.php

示例13: ProjectTheme_my_account_pay_with_credits_area_function


//.........这里部分代码省略.........
                </div>
                <div  class="title_holder" > 
                     <h2><a href="<?php 
    echo get_permalink($pid);
    ?>
" rel="bookmark" title="Permanent Link to <?php 
    echo $post_ar->post_title;
    ?>
">
                        <?php 
    echo $post_ar->post_title;
    ?>
</a></h2>
      			</div>
                <?php 
    if (isset($_GET['pay'])) {
        echo '<div class="details_holder sk_sk_class">';
        $post_ar = get_post($pid);
        $cr = projectTheme_get_credits($uid);
        $bid = projectTheme_get_winner_bid($pid);
        $amount = $bid->bid;
        if ($cr < $amount) {
            echo '<div class="error2">';
            echo __('You do not have enough credits to pay for this project.', 'ProjectTheme');
            echo '</div><div class="clear10 flt_lft"></div>';
            ?>
                            
							<div class="tripp">
							<a class="post_bid_btn" href="<?php 
            echo ProjectTheme_get_payments_page_url('deposit');
            ?>
"><?php 
            echo __('Add More Credits', 'ProjectTheme');
            ?>
</a>
							</div>
                    
							<?php 
        } else {
            projectTheme_send_email_to_project_payer($pid, $uid, $bid->uid, $amount, '1');
            echo __('Your payment has been sent.', 'ProjectTheme');
        }
        echo '</div>';
        ?>
           
                
                <?php 
    } else {
        ?>
                <div class="details_holder sk_sk_class mm11">  
           
                <b>
                 <?php 
        echo __('The price for the project is', 'ProjectTheme');
        ?>
: <?php 
        $bid = projectTheme_get_winner_bid($pid);
        echo projectTheme_get_show_price($bid->bid);
        ?>
</b>
                <br/><br/>
                
               <?php 
        _e("Your credits amount", 'ProjectTheme');
        ?>
: <?php 
        echo projectTheme_get_credits($uid);
        ?>
 <?php 
        echo projectTheme_currency();
        ?>
 <br/><br/>
               <a class="post_bid_btn" href="<?php 
        echo ProjectTheme_get_pay_with_credits_page_url($pid, '&pay=yes');
        ?>
"><?php 
        echo __('Pay Now', 'ProjectTheme');
        ?>
</a> 
               
               <a class="post_bid_btn" href="<?php 
        echo ProjectTheme_get_payments_page_url('deposit');
        ?>
"><?php 
        echo __('Add More Credits', 'ProjectTheme');
        ?>
</a>
                </div><?php 
    }
    ?>
                
               
           </div></div>
           </div>    
        
        
  		</div>      
<?php 
    ProjectTheme_get_users_links();
}
开发者ID:simplix-fr,项目名称:o-g,代码行数:101,代码来源:pay_with_credits.php

示例14: ProjectTheme_my_account_area_main_function


//.........这里部分代码省略.........
</div>
                <div class="box_content">    
			
			
				<?php 
        global $wp_query;
        $query_vars = $wp_query->query_vars;
        $post_per_page = 3;
        $outstanding = array('key' => 'outstanding', 'value' => "1", 'compare' => '=');
        $winner = array('key' => 'winner', 'value' => $uid, 'compare' => '=');
        $args = array('post_type' => 'project', 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => $post_per_page, 'paged' => 1, 'meta_query' => array($outstanding, $winner));
        query_posts($args);
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                projectTheme_get_post_outstanding_project();
            }
        } else {
            _e("There are no projects yet.", 'ProjectTheme');
        }
        wp_reset_query();
        ?>

			</div>
			</div>   
           
           
           
           
           
        <div class="my_box3">
        
            
            	<div class="box_title"><?php 
        _e("My Latest Bids", 'ProjectTheme');
        ?>
</div>
                <div class="box_content">    
			
			
				<?php 
        query_posts("meta_key=bid&meta_value=" . $uid . "&post_type=project&order=DESC&orderby=id&posts_per_page=3");
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                projectTheme_get_post();
            }
        } else {
            _e("There are no projects yet.", 'ProjectTheme');
        }
        wp_reset_query();
        ?>

			</div>
			</div>
            
            
            
            <div class="my_box3">
        
            
            	<div class="box_title"><?php 
        _e("My Latest Won Projects", 'ProjectTheme');
        ?>
</div>
                <div class="box_content">    
			
			
				<?php 
        query_posts("meta_key=winner&meta_value=" . $uid . "&post_type=project&order=DESC&orderby=id&posts_per_page=3");
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                projectTheme_get_post();
            }
        } else {
            _e("There are no projects yet.", 'ProjectTheme');
        }
        wp_reset_query();
        ?>

			</div>
			</div>
            
        
        <?php 
    }
    ?>
   
                
        </div> <!-- end dif content -->
        
        <?php 
    ProjectTheme_get_users_links();
    ?>
        
    
	
<?php 
}
开发者ID:juliosd,项目名称:legacy-master,代码行数:101,代码来源:my_account.php

示例15: ProjectTheme_my_account_personal_info_function


//.........这里部分代码省略.........
                    $chk = projectTheme_check_list_emails($term3->term_id, $rr) == 1 ? "checked='checked'" : "";
                    echo '&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <input type="checkbox" ' . $chk . ' name="email_cats[]" 
										value="' . $term3->term_id . '" /> ' . $term3->name . "<br/>";
                }
            }
        }
        ?>
                        
                        </div>
                        <br/>
                        </p>
                    </li>
        
        <?php 
        $ProjectTheme_enable_project_location = get_option('ProjectTheme_enable_project_location');
        if ($ProjectTheme_enable_project_location != "no") {
            ?>
        	   <li>
                        <h2>&nbsp;</h2>
                        <p>
						*<?php 
            _e('you will get an email notification when a project is posted in the selected locations', 'ProjectTheme');
            ?>
						<div style="border:1px solid #ccc;background:#f2f2f2; overflow:auto; width:350px; border-radius:5px; height:160px;">
                        
                        <?php 
            global $wpdb;
            $ss = "select * from " . $wpdb->prefix . "project_email_alerts_locs where uid='{$uid}'";
            $rr = $wpdb->get_results($ss);
            $terms = get_terms('project_location', 'parent=0&orderby=name&hide_empty=0');
            foreach ($terms as $term) {
                $chk = projectTheme_check_list_emails($term->term_id, $rr) == true ? "checked='checked'" : "";
                echo '<input type="checkbox" name="email_locs[]" ' . $chk . ' value="' . $term->term_id . '" /> ' . $term->name . "<br/>";
                $terms2 = get_terms('project_location', 'parent=' . $term->term_id . '&orderby=name&hide_empty=0');
                foreach ($terms2 as $term2) {
                    $chk = projectTheme_check_list_emails($term2->term_id, $rr) == 1 ? "checked='checked'" : "";
                    echo '&nbsp;&nbsp; &nbsp; <input type="checkbox" name="email_locs[]" ' . $chk . ' value="' . $term2->term_id . '" /> ' . $term2->name . "<br/>";
                    $terms3 = get_terms('project_location', 'parent=' . $term2->term_id . '&orderby=name&hide_empty=0');
                    foreach ($terms3 as $term3) {
                        $chk = projectTheme_check_list_emails($term3->term_id, $rr) == 1 ? "checked='checked'" : "";
                        echo '&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <input type="checkbox" ' . $chk . ' name="email_locs[]" 
										value="' . $term3->term_id . '" /> ' . $term3->name . "<br/>";
                    }
                }
            }
            ?>
                        
                        </div>
                        <br/>
                        </p>
                    </li>
        
        
        <?php 
        }
    }
    if ($k == 0) {
        echo '<style>#other_infs_mm, #bk_save_not, #other_infs_mm1 { display:none; } </style>';
    }
    ?>
		 
        
        			
                    <li id="bk_save_not">
        <h2>&nbsp;</h2> <input type="hidden" value="<?php 
    echo $uid;
    ?>
" name="user_id" />
        <p><input type="submit" class="my-buttons" name="save-info" value="<?php 
    _e("Save", 'ProjectTheme');
    ?>
" /></p>
        </li>
                    
        </ul>
                
                
              
                </div>
                </div>
                
                
             
            
            
            
            
		</form>

                
        </div> <!-- end dif content -->
        
        <?php 
    ProjectTheme_get_users_links();
    ?>
        
    
	
<?php 
}
开发者ID:vicpril,项目名称:ProjectTheme,代码行数:101,代码来源:personal_information.php


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