Esempio n. 1
0
                            }
                            $html_content .= '<li>' . (int) $percent1 . "%" . ' Funded </li>
                                                <li>|</li>';
                            $html_content .= '<li> $' . number_format($sel_starproject['rewardedAmount']) . ' Pledged</li>';
                            $html_content .= '<li>|</li>';
                            if ($sel_starproject['projectEnd'] > time() && $sel_starproject['fundingStatus'] != 'n') {
                                $end_date = (int) $sel_starproject['projectEnd'];
                                $cur_time = time();
                                $total = $end_date - $cur_time;
                                $left_days = $total / (24 * 60 * 60);
                            } else {
                                $left_days = 0;
                            }
                            $html_content .= '<li>' . roundDays($left_days) . ' days left</li>
                                                <div class="clear"></div>
                                            </ul>
                                        </div>
                                    </div>
                            		<div class="clear"></div>
                        		</div>';
                        }
                    }
                }
            }
        }
    }
    $return_arr["html_content"] = $html_content;
    $return_arr["curr_page"] = $curr_page + 1;
    echo json_encode_html($return_arr);
    exit;
}
Esempio n. 2
0
            $scale = 1.0;
            if (!empty($max1) && $max1 != 0) {
                $percent1 = $value1 * 100 / $max1;
            } else {
                $percent1 = 0;
            }
            $content .= '<li>' . (int) $percent1 . "%" . '<br>Funded </li>';
            $content .= '<li> $' . number_format($sel_project2['rewardedAmount']) . '<br />Pledged</li>';
            if ($sel_project2['projectEnd'] > time() && $sel_project2['fundingStatus'] != 'n') {
                $end_date = (int) $sel_project2['projectEnd'];
                $cur_time = time();
                $total = $end_date - $cur_time;
                $left_days1 = $total / (24 * 60 * 60);
            } else {
                $left_days1 = 0;
            }
            $content .= '<li class="last"> ' . roundDays($left_days1) . '<br>
											Days to Go </li>
									</ul>
								</div>
							
							</div>
						</div>
					 </li>';
        }
    }
    $arr["html"] = $content;
    $arr["total_rec"] = $total_rec;
    echo json_encode_html($arr);
    exit;
}