예제 #1
0
     echo '<div class="item_col price">';
     if ($i->price) {
         echo DJClassifiedsTheme::priceFormat($i->price, $i->currency);
     } else {
         echo '---';
     }
     echo '</div>';
 }
 if ($par->get('column_date_a', '1')) {
     echo '<div class="item_col date_start">';
     echo DJClassifiedsTheme::formatDate(strtotime($i->date_start), '', $par->get('date_format_type', 0));
     echo '</div>';
 }
 if ($par->get('column_date_e', '1')) {
     echo '<div class="item_col date_exp">';
     echo DJClassifiedsTheme::formatDate(strtotime($i->date_exp), '', $par->get('date_format_type', 0));
     echo '</div>';
 }
 if ($par->get('column_displayed', '1')) {
     echo '<div class="item_col date_exp last" align="center">' . $i->display . '</div>';
 }
 if ($par->get('column_distance', '0')) {
     echo '<div class="item_col col_distance">';
     if ($i->latitude && $i->longitude) {
         if (isset($_COOKIE["djcf_latlon"])) {
             echo '<span class="Tips1" title="' . JText::_('COM_DJCLASSIFIEDS_IN_A_STRAIGHT_LINE') . '">';
             echo round($i->distance_latlon) . ' ';
             if ($par->get('column_distance_unit', 'km') == 'km') {
                 echo JText::_('COM_DJCLASSIFIEDS_KM');
             } else {
                 echo JText::_('COM_DJCLASSIFIEDS_MI');
예제 #2
0
파일: default.php 프로젝트: politik86/test2
					</span>
				<?php 
    }
    ?>
			</div>
		</div>
		
		<?php 
}
?>
		<?php 
echo '<div class="disp_item"><img src="http://imakler.az/templates/jm-joomads/images/img-view.png" alt="Date-icon" height="20" width="20" style="padding-right: 5px;">';
echo $item->display;
echo '</div>';
echo '<div class="pub_date"><img src="http://imakler.az/templates/jm-joomads/images/date.png" alt="Date-icon" height="20" width="20" style="padding-right: 5px;">';
echo DJClassifiedsTheme::formatDate(strtotime($item->date_start));
echo '</div>';
?>
		<?php 
if ($par->get('favourite', '1')) {
    if ($user->id > 0 && $item->f_id) {
        echo '<a title="' . JText::_('COM_DJCLASSIFIEDS_DELETE_FROM_FAVOURITES') . '" href="index.php?option=com_djclassifieds&view=item&task=removeFavourite&cid=' . $item->cat_id . '&id=' . $item->id . '&Itemid=' . $Itemid . '">';
        echo ' <img src="' . JURI::base() . '/components/com_djclassifieds/assets/images/fav_a.png" width="16px" class="fav_ico"/>';
        echo '<span class="fav_label">' . JText::_('COM_DJCLASSIFIEDS_FAVOURITE') . '</span>';
        echo '</a>';
    } else {
        echo '<a title="' . JText::_('COM_DJCLASSIFIEDS_ADD_TO_FAVOURITES') . '" href="index.php?option=com_djclassifieds&view=item&task=addFavourite&cid=' . $item->cat_id . '&id=' . $item->id . '&Itemid=' . $Itemid . '">';
        echo ' <img src="' . JURI::base() . '/components/com_djclassifieds/assets/images/fav_na.png" width="16px" class="fav_ico"/>';
        echo '<span class="nfav_label">' . JText::_('COM_DJCLASSIFIEDS_ADD_TO_FAVOURITES') . '</span>';
        echo '</a>';
    }
예제 #3
0
파일: default.php 프로젝트: kidaa30/lojinha
             echo '</a>';
         }
     }
 }
 if ($params->get('show_title', '1') == 1) {
     $title_c = $params->get('char_title_nr', 0);
     if ($title_c > 0 && strlen($i->name) > $title_c) {
         $i->name = mb_substr($i->name, 0, $title_c, 'utf-8') . ' ...';
     }
     echo '<a class="title" href="' . JRoute::_(DJClassifiedsSEO::getItemRoute($i->id . ':' . $i->alias, $i->cat_id . ':' . $i->c_alias)) . '">' . $i->name . '</a>';
 }
 if ($params->get('show_date') == 1 || $params->get('show_cat') == 1 || $params->get('show_price') == 1 || $params->get('show_type', '1')) {
     echo '<div class="date_cat">';
     if ($params->get('show_date') == 1) {
         echo '<span class="date">';
         echo DJClassifiedsTheme::formatDate(strtotime($i->date_start), '', $cfpar->get('date_format_type_modules', 0));
         echo '</span>';
     }
     if ($params->get('show_cat') == 1) {
         echo '<span class="category">';
         if ($params->get('cat_link') == 1) {
             echo '<a class="title_cat" href="' . JRoute::_(DJClassifiedsSEO::getCategoryRoute($i->cat_id . ':' . $i->c_alias)) . '">' . $i->c_name . '</a>';
         } else {
             echo $i->c_name;
         }
         echo '</span>';
     }
     if ($params->get('show_type', '1') && $i->type_id > 0) {
         if (isset($types[$i->type_id])) {
             echo '<span class="type">';
             $type = $types[$i->type_id];
예제 #4
0
 /**
  * Plugin that returns the object list for DJ-Mediatools album
  * 
  * Each object must contain following properties (mandatory): title, description, image
  * Optional properties: link, target (_blank or _self), alt (alt attribute for image)
  * 
  * @param	object	The album params
  */
 public function onAlbumPrepare(&$source, &$params)
 {
     // Lets check the requirements
     $check = $this->onCheckRequirements($source);
     if (is_null($check) || is_string($check)) {
         return null;
     }
     $app = JFactory::getApplication();
     $default_image = $params->get('plg_classifieds_image');
     require_once JPATH_BASE . '/modules/mod_djclassifieds_items/helper.php';
     require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djtheme.php';
     require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djseo.php';
     $mparams = new JRegistry();
     foreach ($params->toArray() as $key => $value) {
         if (strpos($key, 'plg_classifieds_') !== FALSE) {
             $nkey = substr($key, 16);
             switch ($nkey) {
                 case 'catid':
                     $mparams->set('cat_id', $value);
                     break;
                 case 'follow_category':
                     $mparams->set('fallow_category', $value);
                     break;
                 case 'follow_region':
                     $mparams->set('fallow_region', $value);
                     break;
                 case 'only_promoted':
                     foreach ($value as $promo) {
                         $mparams->set('only_' . $promo, 1);
                     }
                     break;
                 default:
                     $mparams->set($nkey, $value);
                     break;
             }
         }
     }
     // override number of items
     $mparams->set('items_nr', $params->get('max_images'));
     // we need ads only with images
     if (empty($default_image)) {
         $mparams->set('only_with_img', 1);
     }
     //$this->debug($mparams);
     $items = modDjClassifiedsItems::getItems($mparams);
     $types = modDjClassifiedsItems::getTypes();
     $slides = array();
     if ($items) {
         foreach ($items as $i) {
             $slide = (object) array();
             if (!empty($i->img_path) && !empty($i->img_name) && !empty($i->img_ext)) {
                 // DJ-Classifieds 3.2+
                 $slide->image = $i->img_path . $i->img_name . '_thb.' . $i->img_ext;
             } else {
                 if (!empty($i->image_url)) {
                     // DJ-Classifieds version < 3.2
                     $images = explode(';', $i->image_url);
                     $slide->image = 'components/com_djclassifieds/images/' . $images[0];
                 } else {
                     if (!empty($default_image)) {
                         $slide->image = $default_image;
                     } else {
                         continue;
                     }
                 }
             }
             // we got image now take extra information
             $slide->extra = '';
             if ($mparams->get('show_date') == 1) {
                 $slide->extra .= '<div class="date">';
                 if (method_exists('DJClassifiedsTheme', 'formatDate')) {
                     $slide->extra .= DJClassifiedsTheme::formatDate(strtotime($i->date_start));
                 } else {
                     $slide->extra .= DJClassifiedsTheme::dateFormatFromTo(strtotime($i->date_start));
                 }
                 $slide->extra .= '</div>';
             }
             if ($mparams->get('show_cat') == 1) {
                 $slide->extra .= '<div class="category">';
                 if ($mparams->get('cat_link') == 1) {
                     $slide->extra .= '<a class="title_cat" href="' . JRoute::_(DJClassifiedsSEO::getCategoryRoute($i->cat_id . ':' . $i->c_alias)) . '">' . $i->c_name . '</a>';
                 } else {
                     $slide->extra .= $i->c_name;
                 }
                 $slide->extra .= '</div>';
             }
             if ($mparams->get('show_type') && $i->type_id > 0) {
                 if (isset($types[$i->type_id])) {
                     $slide->extra .= '<div class="type">';
                     $type = $types[$i->type_id];
                     if ($type->params->bt_class) {
                         $bt_class = ' ' . $type->params->bt_class;
                     } else {
                         $bt_class = '';
                     }
                     if ($type->params->bt_use_styles) {
                         if ($mparams->get('show_type') == 2) {
                             $style = 'style="display:inline-block;' . 'border:' . (int) $type->params->bt_border_size . 'px solid ' . $type->params->bt_border_color . ';' . 'background:' . $type->params->bt_bg . ';' . 'color:' . $type->params->bt_color . ';' . $type->params->bt_style . '"';
                             $slide->extra .= '<div class="type_button' . $bt_class . '" ' . $style . ' >' . $type->name . '</div>';
                         } else {
                             $slide->extra .= '<div class="type_label' . $bt_class . '" >' . $type->name . '</div>';
                         }
                     } else {
                         $slide->extra .= '<div class="type_label' . $bt_class . '" >' . $type->name . '</div>';
                     }
                     $slide->extra .= '</div>';
                 }
             }
             if ($mparams->get('show_region') == 1) {
                 $slide->extra .= '<div class="region">';
                 $slide->extra .= $i->r_name;
                 $slide->extra .= '</div>';
             }
             if ($mparams->get('show_price') == 1 && $i->price) {
                 $slide->extra .= '<div class="price">';
                 $slide->extra .= DJClassifiedsTheme::priceFormat($i->price, $i->currency);
                 $slide->extra .= '</div>';
             }
             // finish getting extra information
             $slide->title = $i->name;
             $slide->description = $i->intro_desc;
             if (empty($slide->description)) {
                 $slide->description = $i->description;
             }
             $slide->full_desc = $i->description;
             $slide->link = JRoute::_(DJClassifiedsSEO::getItemRoute($i->id . ':' . $i->alias, $i->cat_id . ':' . $i->c_alias));
             $slides[] = $slide;
         }
     }
     return $slides;
 }
예제 #5
0
파일: default.php 프로젝트: politik86/test2
     echo '<td class="price">';
     if ($i->price) {
         echo DJClassifiedsTheme::priceFormat($i->price, $i->currency);
     } else {
         echo '---';
     }
     echo '</td>';
 }
 if ($par->get('column_date_a', '1')) {
     echo '<td class="date_start">';
     echo DJClassifiedsTheme::formatDate(strtotime($i->date_start));
     echo '</td>';
 }
 if ($par->get('column_date_e', '1')) {
     echo '<td class="date_exp">';
     echo DJClassifiedsTheme::formatDate(strtotime($i->date_exp));
     echo '</td>';
 }
 if ($par->get('column_displayed', '1')) {
     echo '<td class="date_exp last" align="center">' . $i->display . '</td>';
 }
 if ($par->get('column_distance', '0')) {
     echo '<td class="col_distance">';
     if ($i->latitude && $i->longitude) {
         if (isset($_COOKIE["djcf_latlon"])) {
             echo '<span class="Tips1" title="' . JText::_('COM_DJCLASSIFIEDS_IN_A_STRAIGHT_LINE') . '">';
             echo round($i->distance_latlon) . ' ';
             if ($par->get('column_distance_unit', 'km') == 'km') {
                 echo JText::_('COM_DJCLASSIFIEDS_KM');
             } else {
                 echo JText::_('COM_DJCLASSIFIEDS_MI');
예제 #6
0
파일: default.php 프로젝트: politik86/test2
        echo '<img src="' . JURI::base() . '/components/com_djclassifieds/assets/images/sort_asc.gif" />';
    }
} else {
    echo '<img src="' . JURI::base() . '/components/com_djclassifieds/assets/images/sort.gif" />';
}
?>
</a>			 
			</th>
		</tr>		
		<?php 
foreach ($this->points as $point) {
    $row = $r == TRUE ? '0' : '1';
    $r = !$r;
    echo '<tr class="row' . $row . '">';
    echo '<td class="first">' . $point->description . '</td>';
    echo '<td class="points">' . $point->points . '</td>';
    echo '<td class="date">' . DJClassifiedsTheme::formatDate(strtotime($point->date)) . '</td>';
    echo '</tr>';
}
?>
	
		</table>
		<div class="pagination">
			<?php 
echo $this->pagination->getPagesLinks();
?>
 
		</div>
	</div>	

</div>
예제 #7
0
     } else {
         echo $f->value;
     }
 } else {
     if ($f->type == 'checkbox') {
         if ($f->value == '') {
             echo '---';
         } else {
             echo str_ireplace(';', ', ', substr($f->value, 1, -1));
         }
     } else {
         if ($f->type == 'date') {
             if ($f->value_date == '0000-00-00') {
                 echo '---';
             } else {
                 echo DJClassifiedsTheme::formatDate(strtotime($f->value_date));
             }
         } else {
             if ($f->type == 'link') {
                 if ($f->value == '') {
                     echo '---';
                 } else {
                     if (strstr($f->value, 'http://') || strstr($f->value, 'https://')) {
                         echo '<a ' . $f->params . ' href="' . $f->value . '">' . str_ireplace(array("http://", "https://"), array('', ''), $f->value) . '</a>';
                     } else {
                         echo '<a ' . $f->params . ' href="http://' . $f->value . '">' . $f->value . '</a>';
                     }
                 }
             } else {
                 if ($f->value == '') {
                     echo '---';
 }
 echo '</a>';
 if ((int) $par->get('tooltip_title', '1')) {
     echo '<a class="title Tips1" href="' . DJClassifiedsSEO::getItemRoute($i->id . ':' . $i->alias, $i->cat_id . ':' . $i->c_alias) . $anch . '" title="' . $tip_title . '" rel="' . $tip_cont . '" >' . $i->name . '</a>';
 } else {
     echo '<a class="title" href="' . DJClassifiedsSEO::getItemRoute($i->id . ':' . $i->alias, $i->cat_id . ':' . $i->c_alias) . $anch . '" >' . $i->name . '</a>';
 }
 echo '<span class="c_name">' . $i->c_name . '</span>';
 echo '</div></div>';
 echo '<div class="col_ua public_status"><div class="col_ua_in">';
 echo '<div class="col_ua_row">' . JText::_('COM_DJCLASSIFIEDS_DATE_ADDED') . ' : <span>' . DJClassifiedsTheme::formatDate(strtotime($i->date_start)) . '</span></div>';
 echo '<div class="col_ua_row">' . JText::_('COM_DJCLASSIFIEDS_DATE_EXPIRATION') . ' : ';
 if ($i->s_active) {
     echo '<span title="' . $i->date_start . ' - ' . $i->date_exp . '" style="color:#559D01;font-weight:bold;" >' . DJClassifiedsTheme::formatDate(strtotime($i->date_exp)) . '</span>';
 } else {
     echo '<span title="' . $i->date_start . ' - ' . $i->date_exp . '" style="color:#C23C00;font-weight:bold;" >' . DJClassifiedsTheme::formatDate(strtotime($i->date_exp)) . '</span>';
 }
 echo '</div>';
 echo '<div class="col_ua_row">' . JText::_('COM_DJCLASSIFIEDS_PUBLISHED') . ' : ';
 if ($i->published) {
     echo '<img src="' . JURI::base() . 'components/com_djclassifieds/assets/images/tick.png" alt="' . JText::_('JYES') . '" />';
 } else {
     echo '<img src="' . JURI::base() . 'components/com_djclassifieds/assets/images/publish_x.png" alt="' . JText::_('JNO') . '" />';
 }
 echo '</div>';
 echo '</div></div>';
 echo '<div class="col_ua advert_active last" align="center"><div class="col_ua_in">';
 if ($i->s_active && $i->published) {
     echo '<img title="' . JText::_('COM_DJCLASSIFIEDS_ACTIVE') . '" src="' . JURI::base() . 'components/com_djclassifieds/assets/images/active.png" alt="' . JText::_('JYES') . '" />';
 } else {
     echo '<img title="' . JText::_('COM_DJCLASSIFIEDS_INACTIVE') . '" src="' . JURI::base() . 'components/com_djclassifieds/assets/images/unactive.png" alt="' . JText::_('JNO') . '" />';
예제 #9
0
				</span>
			</div>
		<?php 
}
?>
			<?php 
if ($item->date_mod != '0000-00-00 00:00:00') {
    ?>
				<div class="row_gd">
					<span class="row_label"><?php 
    echo JText::_('COM_DJCLASSIFIEDS_AD_MODIFIED');
    ?>
:</span>
					<span class="row_value">
						<?php 
    echo DJClassifiedsTheme::formatDate(strtotime($item->date_mod), '', $par->get('date_format_type_item', 0));
    ?>
					</span>
				</div>
			<?php 
}
if ($par->get('showauthor', '1') == 1) {
    echo $this->loadTemplate('profile');
}
/*
 <div class="row">
<span><?php echo JText::_('Email:'); ?></span><?php echo $item->email; ?>
</div>
*/
if ($par->get('ask_seller_position', 0) == 1) {
    //general details end
예제 #10
0
파일: item.php 프로젝트: kidaa30/lojinha
    function saveBid()
    {
        header("Content-type: text/html; charset=utf-8");
        $app = JFactory::getApplication();
        $id = JRequest::getInt('id', 0);
        $bid = JRequest::getFloat('bid', 0);
        $db = JFactory::getDBO();
        $user = JFactory::getUser();
        $itemid = JRequest::getVar('Itemid');
        $par = JComponentHelper::getParams('com_djclassifieds');
        $bid_error = 0;
        $error_show_form = 0;
        $error_price = 0;
        $bid_message = JText::_('COM_DJCLASSIFIEDS_OFFER_PUBLISHED');
        if ($user->id > 0) {
            $date_now = date("Y-m-d H:i:s");
            $query = "SELECT * FROM #__djcf_items i " . "WHERE i.id = " . $id . " AND i.published=1 AND i.date_start <= '" . $date_now . "' AND i.date_exp >= '" . $date_now . "' ";
            $db->setQuery($query);
            $item = $db->loadObject();
            if ($item) {
                if ($bid > 0) {
                    $query = "SELECT a.*, u.name as u_name FROM #__djcf_auctions a, #__users u " . " WHERE a.user_id=u.id AND a.item_id=" . $id . " ORDER BY a.date DESC LIMIT 1";
                    $db->setQuery($query);
                    $last_bid = $db->loadObject();
                    if ($item->buynow) {
                        $min_bid = $item->price_start;
                    } else {
                        $min_bid = $item->price;
                    }
                    if ($last_bid) {
                        if ($last_bid->user_id == $user->id) {
                            $bid_error = 1;
                            $bid_message = JText::_('COM_DJCLASSIFIEDS_YOUR_OFFER_IS_LAST_YOU_CAN_BID_ONLY_OTHER_USERS');
                        }
                        $min_bid = $last_bid->price;
                    }
                    if ($item->user_id == $user->id) {
                        $bid_error = 1;
                        $bid_message = JText::_('COM_DJCLASSIFIEDS_YOU_CANT_BID_YOUR_ADVERT');
                    }
                    if ($bid_error == 0) {
                        if (!$item->bid_min) {
                            $item->bid_min = 1;
                        }
                        $min_bid = $min_bid + $item->bid_min;
                        if ($bid < $min_bid) {
                            $bid_error = 1;
                            $error_show_form = 1;
                            $error_price = $min_bid;
                            $bid_message = JText::_('COM_DJCLASSIFIEDS_OFFER_SMALLER_THAN_LIMIT') . ' ' . DJClassifiedsTheme::priceFormat($error_price, $item->currency);
                        }
                        if ($bid_error == 0) {
                            if ($item->bid_max > 0) {
                                $max_bid = $min_bid + $item->bid_max;
                                if ($item->bid_max && $bid > $max_bid) {
                                    $bid_error = 1;
                                    $error_show_form = 1;
                                    $error_price = $max_bid;
                                    $bid_message = JText::_('COM_DJCLASSIFIEDS_OFFER_BIGGER_THAN_LIMIT') . ' ' . DJClassifiedsTheme::priceFormat($error_price, $item->currency);
                                }
                            }
                        }
                        if ($bid_error == 0) {
                            $user_ip = $_SERVER['REMOTE_ADDR'];
                            $win = 0;
                            if ($bid >= $item->price_reserve && $item->bid_autoclose == 1) {
                                $win = 1;
                            }
                            $query = "INSERT INTO #__djcf_auctions (`item_id`, `user_id`, `ip_address`, `price`,`win`)" . " VALUES ( '" . $id . "', '" . $user->id . "','" . $user_ip . "', '" . $bid . "', '" . $win . "' )";
                            $db->setQuery($query);
                            $db->query();
                            $price_start = '';
                            if (!$last_bid) {
                                $price_start = " price_start='" . $item->price . "' ";
                            }
                            $win_notifi = '';
                            if ($win) {
                                if ($price_start || $item->buynow) {
                                    $win_notifi = ", ";
                                }
                                $win_notifi .= "notify=2 ";
                            }
                            $price_new = '';
                            if ($item->buynow == 0) {
                                $price_new = " price='" . $bid . "' ";
                                if ($price_start) {
                                    $price_start = ',' . $price_start;
                                }
                            }
                            if ($price_start || $win_notifi || $price_new) {
                                $query = "UPDATE #__djcf_items SET " . $price_new . $price_start . $win_notifi . " WHERE id=" . $item->id;
                                $db->setQuery($query);
                                $db->query();
                            }
                            DJClassifiedsNotify::notifyAuctionsBidAuthor($id, $user, $bid);
                            DJClassifiedsNotify::notifyAuctionsBidBidder($id, $user, $bid);
                            if ($last_bid) {
                                DJClassifiedsNotify::notifyAuctionsBidOutbid($id, $user, $bid, $last_bid);
                            }
                            if ($win) {
                                DJClassifiedsNotify::notifyAuctionsWinAuthor($id, $user, $bid);
                                DJClassifiedsNotify::notifyAuctionsWinBidder($id, $user, $bid);
                            }
                        }
                    }
                } else {
                    $bid_error = 1;
                    $bid_message = JText::_('COM_DJCLASSIFIEDS_PLEASE_ENTER_PRICE_VALUE');
                }
                $query = "SELECT a.*, u.name as u_name FROM #__djcf_auctions a, #__users u " . " WHERE a.user_id=u.id AND a.item_id=" . $id . " ORDER BY a.date DESC LIMIT " . $par->get('bids_displayed', 5);
                $db->setQuery($query);
                $bids = $db->loadObjectList();
                ?>
				<div class="auction" id="djauctions">
				<div class="auction_bids">
					<div class="bids_title"><h2><?php 
                echo JText::_('COM_DJCLASSIFIEDS_CURRENT_BIDS');
                ?>
</h2></div>
						<?php 
                if (isset($bids[0]) && $item->price_reserve) {
                    if ($bids[0]->price < $item->price_reserve) {
                        ?>
								<div class="bids_subtitle"><?php 
                        echo JText::_('COM_DJCLASSIFIEDS_RESERVE_PRICE_NOT_REACHED');
                        ?>
</div>
						<?php 
                    }
                }
                ?>
						<div class="bids_list">
							<?php 
                if ($bids) {
                    ?>
								<div class="bids_row bids_row_title">
									<div class="bids_col bids_col_name"><?php 
                    echo JText::_('COM_DJCLASSIFIEDS_NAME');
                    ?>
:</div>
									<div class="bids_col bids_col_date"><?php 
                    echo JText::_('COM_DJCLASSIFIEDS_DATE');
                    ?>
:</div>
									<div class="bids_col bids_col_bid"><?php 
                    echo JText::_('COM_DJCLASSIFIEDS_BID');
                    ?>
:</div>
									<div class="clear_both"></div>
								</div>
								<?php 
                    foreach ($bids as $bid) {
                        if ($bid->price > $min_bid) {
                            $min_bid = $bid->price;
                        }
                        if ($par->get('mask_bidder_name', '0') == 1) {
                            $bid->u_name = substr($bid->u_name, 0, 1) . '.....' . substr($bid->u_name, -1, 1);
                        }
                        ?>
 
									<div class="bids_row">
										<div class="bids_col bids_col_name"><?php 
                        echo $bid->u_name;
                        ?>
</div>
										<div class="bids_col bids_col_date"><?php 
                        echo DJClassifiedsTheme::formatDate(strtotime($bid->date));
                        ?>
</div>
										<div class="bids_col bids_col_bid"><?php 
                        echo DJClassifiedsTheme::priceFormat($bid->price, $item->currency);
                        ?>
</div>
										<div class="clear_both"></div>
									</div>		
								<?php 
                    }
                    ?>
			
							<?php 
                } else {
                    ?>
								<div class="bids_row no_bids_row"><?php 
                    echo JText::_('COM_DJCLASSIFIEDS_NO_SUBMITTED_BIDS');
                    ?>
</div>	
							<?php 
                }
                ?>
							<div class="clear_both"></div>
						</div>
					</div>
					
					<?php 
                if ($error_show_form) {
                    ?>
					
						<div class="bids_form" id="djbids_form">
							<div class="bids_box">
								<div class="bids_info">
									<span class="bid_label"><?php 
                    echo JText::_('COM_DJCLASSIFIEDS_PLACE_BID');
                    ?>
</span>					
								</div>
								<div class="bids_input">
									<?php 
                    if ($par->get('unit_price_position', '0') == 1) {
                        echo $item->currency ? $item->currency : $par->get('unit_price');
                    }
                    ?>
     	
									<input class="inputbox" id="djbid_value" type="text" name="bid_max" id="bid_max" size="30" maxlength="250" value="<?php 
                    echo $error_price;
                    ?>
" />
									<?php 
                    if ($par->get('unit_price_position', '0') == 0) {
                        echo $item->currency ? $item->currency : $par->get('unit_price');
                    }
                    ?>
				
								</div>
								<div class="bids_button">
									<button class="button" id="bid_submit"><?php 
                    echo JText::_('COM_DJCLASSIFIEDS_PLACE_BID');
                    ?>
</button>
								</div>								
								<div class="clear_both"></div>
							</div>
							<div class="clear_both"></div>
						</div>
						
					
					<?php 
                }
                ?>
					
					
									
					<div id="djbid_alert">
						<?php 
                if ($bid_error) {
                    echo $bid_message;
                }
                ?>
					</div>
					<div id="djbid_message">
						<?php 
                if (!$bid_error) {
                    echo $bid_message;
                }
                ?>
					</div>
				</div>
				
				
				
				
				
				
				
				
				
				
				
			<?php 
            } else {
                echo '<div class="auction" id="djauctions"><div id="djbid_alert" >';
                echo JText::_('COM_DJCLASSIFIEDS_WRONG_AD');
                echo '</div></div>';
            }
        } else {
            echo '<div class="auction" id="djauctions"><div id="djbid_alert" >';
            echo JText::_('COM_DJCLASSIFIEDS_PLEASE_LOGIN');
            echo '</div></div>';
        }
        die;
    }
예제 #11
0
            ?>
index.php?option=com_djclassifieds&view=contact&id=<?php 
            echo $item->id . '&bid=' . $bid->id;
            ?>
&tmpl=component" class="modal"  rel="{ handler:'iframe'}" ><?php 
            echo $bid->u_name;
            ?>
</a>
							<?php 
        } else {
            echo $bid->u_name;
        }
        ?>
						</div>
						<div class="bids_col bids_col_date"><?php 
        echo DJClassifiedsTheme::formatDate(strtotime($bid->date));
        ?>
</div>
						<div class="bids_col bids_col_bid">
							<?php 
        echo DJClassifiedsTheme::priceFormat($bid->price, $item->currency);
        ?>
							<?php 
        if ($user->id == $item->user_id) {
            echo '<a class="bid_del_icon" title="' . JText::_('COM_DJCLASSIFIEDS_DELETE') . '" href="index.php?option=com_djclassifieds&view=item&task=delBid&cid=' . $item->cat_id . '&id=' . $item->id . '&bid=' . $bid->id . '&Itemid=' . $Itemid . '" ></a>';
        }
        ?>
						</div>
						<div class="clear_both"></div>
					</div>		
				<?php 
예제 #12
0
파일: default.php 프로젝트: kidaa30/lojinha
												</div>
												<div class="djcf_prow_desc_row">
													<span class="djcf_prow_desc_label" ><?php 
            echo JText::_("COM_DJCLASSIFIEDS_QUANTITY");
            ?>
:</span>
													<span class="djcf_prow_desc_value" ><?php 
            echo $iorder->quantity;
            ?>
</span>
													<div class="clear_both"></div>
												</div>
											</div>	
											<div class="item_col"> 
												<?php 
            echo DJClassifiedsTheme::formatDate(strtotime($iorder->date));
            ?>
						
											</div>
											<?php 
            echo '</div>';
        }
        ?>
								</div> 							
							</div>						
						</div></div>
					<?php 
    }
    echo '</div>';
}
?>
예제 #13
0
파일: default.php 프로젝트: kidaa30/lojinha
    }
} else {
    echo '<img src="' . JURI::base(true) . '/components/com_djclassifieds/assets/images/sort.gif" />';
}
?>
</a>			 
				</div>
			</div>		
			<?php 
foreach ($this->points as $point) {
    $row = $r == TRUE ? '0' : '1';
    $r = !$r;
    echo '<div class="item_row row' . $row . '">';
    echo '<div class="item_col first">' . $point->description . '</div>';
    echo '<div class="item_col">' . $point->points . '</div>';
    echo '<div class="item_col">' . DJClassifiedsTheme::formatDate(strtotime($point->date)) . '</div>';
    echo '</div>';
}
?>
	
		</div>
		<?php 
if ($this->pagination->getPagesLinks()) {
    ?>
						
			<div class="pagination">
				<?php 
    echo $this->pagination->getPagesLinks();
    ?>
 
			</div>