<?php 
    if ($pn > $pj + 1) {
        ?>


            <?php 
    }
} else {
    ?>
        <tr style="vertical-align:top"><td style="padding-left: 10px; padding-right: 10px;">
        
        <div class="fl2_date">
            <div class="fl2_date_day">
            <?php 
    echo str_ago_pub(strtotimeEx($row['create_date']));
    ?>
            </div>
            <div class="fl2_date_date">
            <?php 
    echo strftime("%d ", strtotimeEx($row['create_date'])) . monthtostr(strftime("%m", strtotimeEx($row['create_date']))) . ", " . $daysOfWeek[date("N", strtotimeEx($row['create_date']))];
    ?>
            </div>
            <div class="clear"></div>
        </div>
            <div class="fl2_offer">
            <?php 
    if ($row['logo_name']) {
        ?>
            <div class="fl2_offer_logo">
                <a href="http://<?php 

            <?php 
            }
        } else {
            $is_personal = $prj['kind'] == 9;
            ?>
        <table cellpadding="4" cellspacing="0" style="width:100%; border:0" id="project-item<?php 
            echo $prj["id"];
            ?>
"><tr style="vertical-align:top"><td style="padding-left: 10px; padding-right: 10px;">
        
        <div class="fl2_date">
			<div class="fl2_date_day">
			<?php 
            echo str_ago_pub($project->getCreateDateEx());
            ?>
			</div>
			<div class="fl2_date_date">
			<?php 
            echo strftime("%d ", $project->getCreateDateEx()) . monthtostr(strftime("%m", $project->getCreateDateEx())) . ", " . $daysOfWeek[date("N", $project->getCreateDateEx())];
            ?>
			</div>
			<div class="clear"></div>
		</div>
            <div class="fl2_offer">
            <?php 
            if ($prj['cost']) {
                $priceby_str = getPricebyProject($prj['priceby']);
                ?>
                 <div class="fl2_offer_budget">Бюджет: <?php 
            ?>
			</td>
            </tr></table>

	    <?php 
            if ($pn > $pj + 1) {
                ?>
			<div style="height:1px; background:#d7d7d7; width:920px; margin:5px 0;"></div><?php 
            }
        } else {
            ?>
        <table  cellpadding="4" cellspacing="0" border="0"><tr valign="top"><td style="padding-left: 10px;" width="510px">
        <div class="fl2_date">
			<div class="fl2_date_day">
			<?php 
            echo str_ago_pub(strtotimeEx($prj['post_date']));
            ?>
			</div>
			<div class="fl2_date_date">
			<?php 
            echo strftime("%d ", strtotimeEx($prj['post_date'])) . monthtostr(strftime("%m", strtotimeEx($prj['post_date']))) . strftime(", %A", strtotimeEx($prj['post_date']));
            ?>
			</div>
			<div class="clear"></div>
		</div>
            <div class="fl2_offer"><?php 
            if ($prj['cost']) {
                ?>
<div class="fl2_offer_budget">Бюджет: <?php 
                echo CurToChar($prj['cost'], $prj['currency']);
                ?>