?>
<br />Pledged</li>
                                    
                                    
                                        <?php 
            if ($sel_project['projectEnd'] > time() && $sel_project['fundingStatus'] != 'n') {
                $end_date = (int) $sel_project['projectEnd'];
                $cur_time = time();
                $total = $end_date - $cur_time;
                $left_days1 = $total / (24 * 60 * 60);
            } else {
                $left_days1 = 0;
            }
            ?>
                                    <li class="last"> <?php 
            echo roundDays($left_days1);
            ?>
<br>
                                        Days to Go </li>
                                </ul>
                            </div>
                        <div class="flclear"></div>
                        </div>
                    </div>
                    </li>
              <?php 
        }
    }
} else {
    ?>
						<center><strong>No Record Found.</strong></center>
                         } else {
                             $percent1 = 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);
                      <li> $<?php 
            echo number_format($sel_re_project['rewardedAmount']);
            ?>
<br />Pledged </li>
					  <?php 
            if ($sel_re_project['projectEnd'] > time() && $sel_re_project['fundingStatus'] != 'n') {
                $end_date = (int) $sel_re_project['projectEnd'];
                $cur_time = time();
                $total = $end_date - $cur_time;
                $left_days2 = $total / (24 * 60 * 60);
            } else {
                $left_days2 = 0;
            }
            ?>
                      <li class="last"> <?php 
            echo roundDays($left_days2);
            ?>
<br />
                        Days to Go </li>
                        
                    </ul>
                  </div>
                   <div class="flclear"></div>
                </div>
              </div>
              </li>    		
		<?php 
        }
    } else {
        echo '<br/><center><p>Recently Launched project Not Found Now.</p></center>';
    }
            $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;
}
Example #5
0
}
?>
                                    
                            	<?php 
if (isset($projectBasicDetails) && ($projectBasicDetails['durationType'] == 1 or $projectBasicDetails['projectEnd'] == '0')) {
    ?>
                                    <h6 id="daysToGo"><?php 
    echo roundDays($endDate);
    ?>
</h6>
                                    <p>Days Left</p>
                                <?php 
} else {
    ?>
                                	<h6 id="daysToGo" ><?php 
    echo roundDays($endDate);
    ?>
</h6>
                                    <p>Days Left</p>
                                <?php 
}
?>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
	</div>
  
  </div><!--Wrapper Over-->