<?php if(isset($this->updateMessage)){ ?>
<div class="success_message"><?php  echo $this->updateMessage; ?></div>
<?php } ?>
<script src="<?php echo BASE_URL; ?>public/js/library/product-rating.js" type="text/javascript"></script>
<div class="comm_div row">
	<div class="col-xs-12 col-md-6">
				<div class="home_block1">
					<div class="comm_content_block_buzdash">
					<h3>My Latest Listings</h3>
					<div class="pading_10">
					<div class="table-responsive">
						<table class="table table-bordered table-striped" cellpadding="0" cellspacing="1" border="0" width="100%">

						<tr>
							<th align="left" valign="top" width="5%">#</th>
							<th align="left" valign="top" width="66%">Ad Title </th>
							<th align="left" valign="top" width="19%">Posted On </th>
							<!--th align="left" valign="top" width="10%"></th-->
						</tr>
							<?php
							$counter=1;
							foreach($this->listArray as $lArray)
							{
							?>
						<tr class="row_color1">
						<td align="left" valign="top"><?php echo $counter++;?></td>
						<td align="left" valign="top"><a target="_blank" href="<?php echo ConfigUrl::base();?>index/viewlisting/<?php echo $lArray->alias; ?> " style="color:#666;"><?php echo $lArray->Title; ?></a></td>
						<td align="left" valign="top"><?php echo $lArray->dPostDate; ?></td>
						<!--td align="left" valign="top"><a href="<?php echo ConfigUrl::base();?>index/viewlisting/<?php echo $lArray->nBusId; ?>/">View</a></td-->
						</tr>
                                                <?php } ?>
						</table>
					</div>
				</div>
				</div>
				</div>
	</div>
	<div class="col-xs-12 col-md-6">
				<div class="home_block2">
					<div class="comm_content_block_buzdash">
					<h3>Top Rated Posts</h3>
					<div class="pading_10">
					<div class="table-responsive">
					<table class="table table-bordered table-striped" cellpadding="0" cellspacing="1" border="0" width="100%">

						<tr>
						<th align="left" valign="top" width="10%">#</th>
						<th align="left" valign="top" width="60%" >Ad Title</th>
						<th align="center" valign="top" width="30%">Rating</th>
						</tr>
                                                <?php
                                                $counter =1;
                                                foreach ($this->catArray as $cat)
                                                {
                                                    ?>
                                                    <tr class="row_color1">
                                                        <td align="center" valign="top"><?php echo $counter++; ?></td>
                                                        <td align="left" valign="top"><a target="_blank" href="<?php echo ConfigUrl::base();?>index/viewlisting/<?php echo $cat->alias; ?>" style="color:#666;"><?php echo $cat->Title; ?></a></td>
                                                        <?php
                                                        $productRating = $this->index->ProductRatingStar($cat->nProductId);                                                       
                                                        if ($productRating > 0) {
                                                        ?>
                                                            <td align="center" valign="top">
                                                            <div class="rating_<?php echo $productRating; ?>" id="rating_<?php echo $productRating; ?>"></div>
															</td>
                                                        <?php
                                                        } else {
                                                        ?>
                                                            <td align="left" valign="top">
                                                            <?php
                                                            echo "Not  Rated  Yet";
                                                        } ?>
                                                            </td>
                                                    </tr>
                                                    <?php
                                                } ?>
						</table>

					</div>
				</div>
				</div>

				</div>
	</div>
			<div class="clear"></div>
			</div>
