本文整理汇总了PHP中webImage函数的典型用法代码示例。如果您正苦于以下问题:PHP webImage函数的具体用法?PHP webImage怎么用?PHP webImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了webImage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawPLthumb
function drawPLthumb($row, $hide = false)
{
global $jng_sp_id;
$link = '?' . (is_null($jng_sp_id) ? 'open=product-detail&products_id=' : 'open=sp-product&id=') . $row['products_id'];
$l = '<div id="pid-' . $row['products_id'] . '" class="pro-thumb">';
$l .= '<input type="hidden" name="products_id" value="' . $row['products_id'] . '" />';
$l .= '<div><a href="' . $link . '" target="_blank" title="Manage product detail ID: ' . $row['products_id'] . '">' . webImage($row['products_image'], '120', '120') . '</a></div>';
$l .= '<div>' . displayCurrency('EUR', $row['products_price']) . '</div>';
$l .= '<div class="blue" title="Click to add this product">(+) Add</div>';
$l .= '</div>';
return $l;
}
示例2: runElementQuery
function runElementQuery($outsourced_flag)
{
global $class_ea, $pcats, $all_period, $product_categories_name;
$product_list = array();
$order_date_start = '2013-08-13';
$order_date_end = '2013-08-14';
$q = "SELECT\n p.products_image,\n ptc.categories_id AS pcatid,\n MONTH(joi.shipping_window_open) AS period,\n p.products_id,\n SUM(joi.order_quantity) AS total_ordered\n FROM jng_sp_orders jo\n LEFT JOIN jng_sp_orders_items joi ON joi.jng_sp_orders_id=jo.jng_sp_orders_id\n LEFT JOIN products p ON p.products_id=joi.products_id\n LEFT JOIN products_to_categories ptc ON ptc.products_id=joi.products_id\n WHERE jo.jng_sp_id=5 AND jo.order_date BETWEEN '{$order_date_start}' AND '{$order_date_end}' AND p.is_outsourced='{$outsourced_flag}'\n GROUP BY products_id, period\n ORDER BY pcatid, products_id, period";
$r = tep_db_query($q);
$products_total = array();
while ($row = tep_db_fetch_array($r)) {
$cid = $row['pcatid'];
$pid = $row['products_id'];
$p = $row['period'];
if (!isset($pcats[$cid])) {
$pcats[$cid] = $product_categories_name[$cid];
}
if (!in_array($p, $all_period)) {
$all_period[] = $p;
}
if (!isset($product_list[$cid])) {
$product_list[$cid] = array();
}
if (!isset($product_list[$cid][$pid])) {
$product_list[$cid][$pid] = array();
}
if (!isset($product_list[$cid][$pid]['id'])) {
$product_list[$cid][$pid]['id'] = '<div>' . $pid . '</div>';
}
if (!isset($product_list[$cid][$pid]['image'])) {
$product_list[$cid][$pid]['image'] = '<div>' . webImage($row['products_image'], IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1, "Product {$pid}") . '</div>';
}
$product_list[$cid][$pid][$p] = '<div>' . intval($row['total_ordered']) . '</div>';
if (!isset($products_total[$pid])) {
$products_total[$pid] = 0;
}
$products_total[$pid] += $row['total_ordered'];
}
foreach ($product_list as $cid => $plist) {
foreach ($plist as $pid => $el) {
foreach ($all_period as $p) {
if (!isset($el[$p])) {
$product_list[$cid][$pid][$p] = '<div>0</div>';
}
}
$product_list[$cid][$pid]['total'] = '<div>' . intval($products_total[$pid]) . '</div>';
}
}
return $product_list;
}
示例3: drawThumbs
function drawThumbs($links, $type, $addlink)
{
global $maxlinks;
$results = '';
if (is_array($links[$type]) && count($links[$type]) > 0) {
foreach ($links[$type] as $l) {
$results .= '<div id="pl-' . $l['products_linking_id'] . '" class="pro-thumb">';
$results .= '<div>' . webImage($l['products_image'], '80', '80') . '</div>';
$results .= '<div>' . displayCurrency('EUR', $l['products_price']) . '</div>';
$results .= '<div class="red">(x) remove</div>';
$results .= '</div>';
}
} else {
$results .= '';
}
$visible = count($links[$type]) < $maxlinks[$type] ? '' : 'style="display:none;"';
$addlink = sprintf($addlink, $visible, $type);
$results .= $addlink;
return $results;
}
示例4: drawNotifications
function drawNotifications($notifications)
{
$result = '';
foreach ($notifications as $notification) {
$timestamp = strtotime(date($notification['posted_date']));
$duration = abs(time() - $timestamp);
$duration_text = displayDuration($duration, 1);
$title = '';
$class = array('notifications');
if ($notification['status'] == '0') {
$class[] = 'isNew';
}
if ($notification['need_feedback'] == '1') {
$class[] = 'isNFB';
$title = 'Your feedback is needed for this notification';
}
$module_referer_url = '';
if ($notification['url'] != '') {
$class[] = 'view_webpage';
$module_referer_url = 'href="?' . $notification['url'] . '&hidemenu=true"';
}
if ($notification['posted_by'] == '0' || $notification['posted_by'] == 'auto-set' || strtolower($notification['posted_by']) == 'manobo') {
$user_img = 'user-manobo.png';
} else {
$user_img = is_file(DIR_WS_IMAGES . $notification['users_image']) ? $notification['users_image'] : 'user-default.png';
}
$result .= '<a id="not-' . $notification['notifications_id'] . '" ' . $module_referer_url . ' title="' . $title . '" class="' . implode(' ', $class) . '">';
$result .= '<div style="float:left;">' . webImage($user_img, '50', '50') . '</div>';
$result .= '<div style="margin-left:55px;">';
$result .= '<div>' . nl2br($notification['message']) . '</div>';
$result .= '<div class="smallText notice">posted ' . $duration_text . ' ago</div>';
$result .= '</div>';
$result .= '</a>';
}
return $result;
}
示例5: is_file
$content .= '</h3>';
$content .= '<div style="border-bottom:solid 2px #f0f0f0;width:100%;margin-bottom:10px;" class="' . $class . '"></div>';
}
$classnf = $list['status'] == '0' ? ' isNew' : '';
$classnf .= $list['need_feedback'] == '1' ? ' isNFB' : '';
$titlenf = $list['status'] == '0' ? 'New notification' : '';
if ($list['need_feedback'] == '1') {
$titlenf = 'Your feedback is needed';
}
$content .= '<div id="' . $list['notifications_id'] . '" style="border-bottom:solid 1px #f0f0f0;width:100%;padding:5px;" class="notifications ' . $class . $classnf . '" title="' . $titlenf . '">';
if ($list['posted_by'] == '0' || $list['posted_by'] == 'auto-set' || strtolower($list['posted_by']) == 'manobo') {
$user_img = 'user-manobo.png';
} else {
$user_img = is_file(DIR_WS_IMAGES . $list['users_image']) ? $list['users_image'] : 'user-default.png';
}
$content .= '<div style="float:left">' . webImage($user_img, '50', '50') . '</div>';
$content .= '<div style="margin:5px 0 0 55px;">';
$module_referer_url = $list['url'] != '' ? 'href="?' . $list['url'] . '&hidemenu=true" class="view_webpage"' : '';
$content .= '<a ' . $module_referer_url . '>' . nl2br($list['message']) . '<small class="notice" style="margin-left:10px;">' . date('g:ia', strtotime($list['posted_date'])) . '</small></a>';
if ($list['need_feedback'] != 1) {
$content .= '<span class="ui-icon ui-icon-trash" title="Remove this notification">' . $list['notifications_id'] . '-' . $class . '</span>';
} elseif ($list['need_feedback'] == 1) {
$content .= '<span class="ui-icon ui-icon-arrowreturnthick-1-w" style="float:right;cursor:pointer;" title="Set this notification as \'feedback replied\'">' . $list['notifications_id'] . '-' . $class . '</span>';
}
$content .= '</div></div>';
}
$content .= '</div></div>';
//if(count($notifications_new)>0) $notifications->setAsRead($notifications_new);
} else {
$content .= '<strong>No Notifications yet sent to you!</strong>';
}
示例6: IN
$query = "SELECT p.products_id, p.products_model, p.products_image, p.products_price, p.products_price_old, p.stars, cat.categories_id, cd.categories_name FROM products p";
$query .= " LEFT JOIN products_to_categories cat ON cat.products_id=p.products_id";
$query .= " LEFT JOIN categories_description cd ON cd.categories_id=cat.categories_id AND cd.language_id='1'";
$query .= " WHERE p.products_id IN (" . $pids . ") ORDER BY cat.categories_id";
$result = tep_db_query($query);
while ($row = tep_db_fetch_array($result)) {
$cat[$row['categories_name']][] = array("id" => $row['products_id'], "image" => $row['products_image'], "price" => $row['products_price'], "price_old" => $row['products_price_old'], "model" => $row['products_model'], "stars" => $row['stars']);
}
foreach ($cat as $key => $value) {
echo '<div style="clear:both;"></div>';
$total_prods = 0;
$total_disc = 0;
$content = '<div style="margin:0 auto 20px auto;">';
foreach ($value as $list) {
$content .= '<div id="' . $list['id'] . '" style="float:left; border:solid 1px #ccc; text-align:center; margin:5px; background:#fff; width:170; height:250;" class="ui-corner-all">';
$images = webImage($list['image'], 150, 150);
$price = displayCurrency('EUR', $list['price']);
$price_old = displayCurrency('EUR', $list['price_old']);
$stars = $class_pm->getDisplayStars($list['id'], $list['stars']);
$total_prods++;
$content .= '<div>' . $images . '</div>';
$content .= '<div>' . $stars . '</div>';
$content .= '<div>' . $list['id'] . " / " . $list['model'] . '</div>';
if ($price_old > 0) {
$total_disc++;
$content .= '<div class="notice deleted">' . $price_old . '</div>';
$content .= '<div class="red">' . $price . '</div>';
} else {
$content .= '<div>' . $price . '</div>';
}
$content .= '</div>';
示例7: tep_db_query
$filter_query = '';
$el_query = tep_db_query("SELECT e.elements_id, e.elements_code, etes.item_number, e.elements_image AS image FROM element e\n INNER JOIN elements_to_elements_suppliers etes ON etes.elements_id=e.elements_id AND etes.is_default='1' AND etes.price_quantity_type='set'\n LEFT JOIN elements_images ei ON ei.elements_id=e.elements_id AND ei.elements_sample_name='EC1'\n LEFT JOIN elements_description ed ON ed.elements_id=e.elements_id AND ed.languages_id=2\n {$filter_query}\n GROUP BY e.elements_id ORDER BY e.elements_id");
$elements = array();
$e = array();
$e['i'] = '<div>Image</div>';
$e['j'] = '<div>J&G ID</div>';
$e['k'] = '<div>J&G Code</div>';
$e['l'] = '<div>J&G Name</div>';
$e['m'] = '<div>Supplier Code</div>';
$elements[] = $e;
$grouper = array('+', '&', ',');
while ($row = tep_db_fetch_array($el_query)) {
$grabbed = false;
foreach ($grouper as $g) {
if (strpos($row['item_number'], $g) !== false) {
$grabbed = true;
break;
}
}
if ($grabbed) {
$e = array();
$e['i'] = '<div>' . webImage($row['image'], '130', '130') . '</div>';
$e['j'] = '<div>' . $row['elements_id'] . '</div>';
$e['k'] = '<div>' . $row['elements_code'] . '</div>';
$e['l'] = '<div>' . $row['name'] . '</div>';
$e['m'] = '<div>' . $row['item_number'] . '</div>';
$elements[] = $e;
}
}
echo tep_draw_table('', $elements);
tep_db_close();
示例8: tep_db_prepare_input
$sda_return['shipping_paid'] = tep_db_prepare_input($_POST['shipping_paid']);
$class_jo->returnItemUpdate($return_id, $sda_return);
echo '<div class="green">Return detail is successfully saved</div>';
exit;
}
//START TEMPLATE
$return_id = isset($_GET['id']) ? tep_db_prepare_input($_GET['id']) : '';
if ($return_id == '') {
exit;
}
$return = $class_jo->retrieveReturnDetail($return_id);
$item = $class_jo->retrieveItemDetail($return['jng_sp_orders_items_id']);
$order = $class_jo->retrieveDetail($item['jng_sp_orders_id']);
$pimg = webImageSource($item['products_image'], '500');
if ($pimg != '') {
$pimg = webImage($item['products_image'], '120', '120', '', 'img-border img-padding');
}
$content .= '<div style="float:left;">' . $pimg . '</div>';
$content .= '<div style="margin-left:150px;">';
$content .= '<table border="0" cellpadding="0" cellspacing="0">';
$order_id = $order['order_id'] == '' ? 'J&G ID: ' . $order['jng_sp_orders_id'] : $order['order_id'];
if ($return['confirm_return'] == '1') {
$return_reason = $class_jo->returnReasonText($return['return_reason']);
$return_qty = $return['return_quantity'];
$comment_c = nl2br($return['return_comment_customer']);
$comment_j = nl2br($return['return_comment_jng']);
$shipping_status = $return['shipping_paid'] == '1' ? 'Paid' : 'Unpaid';
} else {
$return_reason = $class_jo->returnReasonCombo('', 'input2', 'return_reason', $return['return_reason']);
$returnable = $item['order_quantity'];
$return_data = $class_jo->retrieveReturnItem($item['jng_sp_orders_items_id']);
示例9: tep_db_query
}
//$q .= " LIMIT 10";
$r = tep_db_query($q);
$elements = array();
$total_total = 0;
$dioh_collection = array();
while ($row = tep_db_fetch_array($r)) {
$listofids[] = $row['elements_id'];
$total_total += $row['total'];
$dioh_collection[$row['elements_id']] = calculateDIOH($row['stock'], $row[element::DIOH_BASENUMBER_COLUMN_NAME]);
}
$dioh_average = count($dioh_collection) > 0 ? displayDuration(array_sum($dioh_collection) / count($dioh_collection) * 86400, 'day') : '<span class="notice">N/A</span>';
$table = array();
$table[] = $header;
$row_template = '<tr id="id-{ID1}" class="{ODDEVEN}">';
$row_template .= '<td class="img">' . webImage('', '80', '80') . '</td>';
$row_template .= '<td class="id"><a href="?open=element&id={ID2}&hidemenu=true" class="view_webpage">{ID3}</a></td>';
$row_template .= '<td colspan="' . (count($header) - 2) . '" class="load"> </td>';
$row_template .= '</tr>';
$width = $sort_option == 'msws' ? '1030' : '975';
//$content .= '<div style="position:absolute;left:600px;top:85px;"><input type="button" id="print-stock" value="Print Stock List" /></div>';
$content .= '<div style="margin-bottom:10px;width:' . $width . 'px;"><form name="frm_sort" action="?open=elements-stock-list" method="post">';
$content .= '<div style="float:right;">';
$content .= '<table class="form" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:10px;">';
$content .= '<tr><td width="150"><strong>Filter by Category</strong></td>';
$content .= '<td><select name="elcat-filter" class="input" onchange="frm_sort.submit();">';
$content .= '<option value="">Show All</option>';
$content .= loadComboList('element_category', 'element_category_id', 'name', $elcatfiltered);
$content .= '</select></td></tr>';
$content .= '</table>';
$content .= '<table border="0" cellpadding="0" cellspacing="0" style="background:#eee;">';
示例10: displayCurrency
} else {
$qty .= $oi['quantity'] . ' ' . $oi['quantity_unit'];
}
$rowprice = $oi['quantity'] * $oi['unit_price'];
}
$qty .= '<br /><br /><span class="notice">1 ' . $oi['quantity_unit'] . ' = ' . $oi['unit_multiplier'] . ' qty</span>';
//$pri = '<input type="text" class="time" value="'.$oi['unit_price_order_currency'].'" /><br />'.$o['currency'];
//$pri .= '<br /><br />';
$pri = displayCurrency($oi['unit_price_currency'], $oi['unit_price']);
//$fpr = displayCurrency($o['currency'], $quantity * $oi['unit_price_order_currency']);
//$fpr .= '<br />';
$fpr = displayCurrency($oi['unit_price_currency'], $rowprice);
//$action .= '<input type="button" value="Change" />';
$oit = array();
$oit['d'] = $oicount;
$oit['img'] = webImage($oi['elements_image'], '80', '80');
$oit['d2'] = $id;
$oit['o'] = $qty;
$oit['e'] = $pri;
$oit['a'] = $fpr;
$oit['t'] = $action;
$oitable[] = $oit;
}
//$tabcontent .= '<div style="clear:both;">';
$tabcontent .= tep_draw_table('spo sticky-tablehead', $oitable);
//$tabcontent .= '</div>';
$tabcontent .= '</div>';
$tabcontent .= '<div style="clear:both;"> </div>';
}
}
} elseif ($status == 'O') {
示例11: array
$post_result .= '</table>';
$ajaxResult = array();
$ajaxResult['result'] = $post_result;
ajaxReturn($ajaxResult);
exit;
}
}
if (isset($_GET) && count($_GET) > 0) {
$ean_no = $_GET['ean'];
$pa = $class_pean->getProductArticle($ean_no);
$products_id = $pa['products_id'];
if ($products_id != '') {
$qp = "SELECT p.*, pd.products_name FROM products p INNER JOIN products_description pd ON p.products_id = pd.products_id\n WHERE p.products_id = {$products_id} AND pd.language_id = 2";
$dbqp = tep_db_query($qp);
$rp = tep_db_fetch_array($dbqp);
$p_img = webImage($rp['products_image'], '350', '350', 'Products ' . $ean_no, 'ui-corner-all');
$p_length = $pa['length'] > 0 ? ' / ' . textLength($pa['length']) : '';
$is_best_product = $class_pm->isBestProduct($pa['products_id']);
if ($is_best_product) {
$used_form = '<table style="width:100%;position:absolute;top:0;left:0;" border="0" cellpadding="0" cellspacing="0">';
$used_form .= '<tr><td align="center" colspan="2">' . $p_img . '</td></tr>';
$used_form .= '<tr><td align="center" colspan="2" style="font-size:16px;font-weight:bold;">' . $rp['products_model'] . $p_length . '</td></tr>';
$used_form .= '<tr><td align="center" colspan="2" style="padding:9px;"><span class="bold" style="vertical-align:middle;font-size:34px;">Please Do Product Quality Check</span></td></tr>';
$used_form .= '<tr>';
$used_form .= '<input type="hidden" id="hid-ids" value="' . $pa['products_id'] . '-' . $pa['products_articles_id'] . '"/>';
$used_form .= '<td align="center"><input type="button" style="font-size:15px;" class="qcok green button" value="QC OK"/></td>';
$used_form .= '<td align="center"><input type="button" style="font-size:15px;" class="qcbad red button" value="QC BAD"/></td>';
$used_form .= '</tr>';
$used_form .= '</table>';
} else {
$used_form .= '<table style="background:#ff0000;width:100%;height:100%;position:absolute;top:0;left:0;" border="0" cellpadding="0" cellspacing="0">';
示例12: RIGHT
$q .= " FROM products p";
$q .= " LEFT JOIN products_has_elements phe ON phe.products_id=p.products_id";
$q .= " LEFT JOIN elements e ON e.elements_id=phe.elements_id";
$q .= " LEFT JOIN elements_images ei ON ei.elements_id=phe.elements_id AND ei.elements_sample_name='EC1'";
$q .= " WHERE p.products_status='1' AND RIGHT(e.elements_code, 2)='PN'";
$q .= " GROUP BY phe.elements_id";
$q .= " ORDER BY total_used DESC";
$r = tep_db_query($q);
while ($row = tep_db_fetch_array($r)) {
$elements[] = $row;
}
$table = array();
$t = array();
$t[1] = 'No';
$t[2] = 'Image';
$t[3] = 'Element ID';
$t[4] = 'Element Code';
$t[5] = 'Total Used';
$table[] = $t;
foreach ($elements as $counter => $row) {
$t = array();
$t[1] = '<div>' . ($counter + 1) . '</div>';
$t[2] = '<div>' . webImage('elements/' . $row['elements_image'], '80', '80') . '</div>';
$t[3] = '<div>' . $row['elements_id'] . '</div>';
$t[4] = '<div>' . $row['elements_code'] . '</div>';
$t[5] = '<div>' . $row['total_used'] . '</div>';
$table[] = $t;
}
$content = tep_draw_table('', $table);
echo $content;
tep_db_close();
示例13: displayImage
/**
* Standard Display of Image Thumb with icons
* @param int $width
* @param int $height
* @param string $additional_title
* @param boolean $border
* @param string $class
* @param const $link_to IMAGE_LINKTO_BIGGER_IMAGE or IMAGE_LINKTO_PRODUCT_DETAIL
* @return type
*/
public function displayImage($width, $height, $additional_title = '', $border = true, $class = '', $link_to = self::IMAGE_LINKTO_BIGGER_IMAGE)
{
$title = "Product {$this->id}";
if ($additional_title != '') {
$title .= " {$additional_title}";
}
$popup_title = 'View Larger Image (' . $this->id . '/' . $this->code . ')';
if ($additional_title != '') {
$popup_title .= " {$additional_title}";
}
$border_class = $border ? 'img-border' : '';
if ($border_class != $class) {
$class .= ($class != '' ? ' ' : '') . $border_class;
}
//PREPARE THUMBNAIL
$img_thumb = webImage($this->image, $width, $height, $popup_title, $class);
$thumb_width = $width;
$thumb_height = $height;
if ($width == '' || $height == '') {
$thumb_image_source = webImageSource($this->image, $width, $height);
if ($thumb_image_source != '') {
list($thumb_width, $thumb_height) = @getimagesize($thumb_image_source);
}
}
//PREPARE LINK
if ($link_to == self::IMAGE_LINKTO_BIGGER_IMAGE) {
$main_image = webImageSource($this->image, IMAGE_SIZE_BIG_1);
$link_target = $main_image != '' ? $main_image : '';
$link_class = 'view_image';
} else {
$link_target = $this->getLinkProductDetail();
$link_class = 'view_webpage';
}
if ($link_target != '') {
$image = '<a href="' . $link_target . '" class="' . $link_class . '" title="' . $popup_title . '">' . $img_thumb . '</a>';
} else {
$image = $img_thumb;
}
//PREPARE ICONS
$icons_total_width = 0;
$icons = array();
if ($this->isKilled()) {
$icons[] = drawKilledIcon('Killed Product', '');
$icons_total_width += 16;
}
//DIAMOND ICON
if ($this->isUsingDiamond()) {
$icons[] = drawDiamondIcon('Diamond Product', '');
$icons_total_width += 16;
}
//GOLD ICON
if ($this->isUsingGold()) {
$icons[] = drawGoldIcon($this->metal_stamp_code, $this->metal_stamp_info);
$icons_total_width += 21;
}
$icons_total_width += count($icons) * 2;
//consider white space
$icons_margin_top = $thumb_height - 16 - 1;
//16 is default icon height, 1 is margin bottom
$icons_margin_left = $thumb_width - $icons_total_width;
$div_image = '<div>' . $image . '</div>';
$div_icons = '<div style="position:absolute;margin:' . $icons_margin_top . 'px 0 0 ' . $icons_margin_left . 'px;">' . implode(' ', array_reverse($icons)) . '</div>';
$div_stars = '<div>' . drawStars($this->stars) . '</div>';
return '<div class="tac" style="width:' . $thumb_width . 'px;margin:0 auto;">' . $div_icons . $div_image . $div_stars . '</div>';
}
示例14: array
}
}
if ($returnable > 0) {
$o = array();
$order_date = strtotime($row['order_date']);
$item_count = "{$row['order_item_count']}/{$row['order_item_total']}";
$info = array();
$info[] = 'No: <a href="?open=sp-order&id=' . $row['jng_sp_orders_id'] . '" target="_blank" title="View Order Detail">' . $row['order_id'] . '</a> <span class="notice">(' . $item_count . ')</span>';
$info[] = 'Date: ' . date('d-M-y', $order_date);
$info[] = 'Cust: ' . $row['customer_name'];
$info[] = 'Product: <a href="?open=product-detail&products_id=' . $row['products_id'] . '" target="_blank" title="View product detail">' . $row['article_number'] . '</a>';
$info[] = 'Qty: ' . $row['order_quantity'] . ' • ' . 'Price: ' . $row['price'];
$info[] = 'Status: ' . $itemStatus[$row['status']];
$o['c'] = implode('<br />', $info);
$pimg = webImageSource($row['products_image'], '500');
$thumb = $pimg == '' ? '' : webImage($row['products_image'], '80', '80', $row['products_id'], 'img-border img-padding');
$o['a'] = $thumb;
$return_reason_combo = $class_jo->returnReasonCombo('reason', '', 'reason-' . $row['jng_sp_orders_items_id']);
$return_qty_combo = 'Return Qty <select id="qty-' . $row['jng_sp_orders_items_id'] . '">';
for ($q = 1; $q <= $returnable; $q++) {
$sel = $q == $returnable ? 'selected="selected"' : '';
$return_qty_combo .= '<option value="' . $q . '" ' . $sel . '>' . $q . '</option>';
}
$return_qty_combo .= '</select>';
$shipping_cost = 'Shipping: <select id="shipping-' . $row['jng_sp_orders_items_id'] . '">';
$shipping_cost .= '<option value="1">Paid</option>';
$shipping_cost .= '<option value="0">UnPaid</option>';
$shipping_cost .= '</select>';
$cust_comment = '<textarea name="comment" id="comment-c-' . $row['jng_sp_orders_items_id'] . '" style="font-size:10px;">' . $default_comment . '</textarea>';
$jng_comment = '<textarea name="comment" id="comment-j-' . $row['jng_sp_orders_items_id'] . '" style="font-size:10px;">' . $default_comment . '</textarea>';
$return_info = '<table border="0" cellpadding="0" cellspacing="0">';
示例15: draw
function draw($drawAtWall = false, $isNew = false, $showDelete = false, $show_comments_below = false)
{
global $session_userinfo;
if (!$showDelete && $this->allowDelete()) {
$showDelete = true;
}
$wall_post = '<div id="wall-post-id-' . $this->id . '" class="wall-post' . ($isNew ? ' wall-post-new' : '') . '">';
$wall_post .= '<div class="wall-post-pbi">' . webImage($this->posted_by_image, '50', '50', $this->posted_by_name) . '</div>';
$wall_post .= '<div class="wall-post-container">';
$wall_post .= '<div class="wall-post-user">' . $this->posted_by_name . '</div>';
$wall_post .= '<div class="message' . ($drawAtWall ? ' pointer" title="Click to add comments"' : '"') . '>' . nl2br($this->message) . '</div>';
if ($drawAtWall) {
$wall_post .= $this->drawObjectSocialLine($showDelete);
} else {
$wall_post .= $this->drawDuration('notice', 'posted', $showDelete ? ' ⋅ <span class="del-text">Delete</span>' : '');
}
//$wall_post .= $duration_final;
$wall_post .= '</div>';
// .wall-post-container
if ($show_comments_below) {
if (count($this->comments->comments) > 0) {
$wall_post .= $this->comments->drawComments('', 'Comments', 'h3', 'margin-top:20px;');
}
$wall_post .= '<div class="postcomment pointer" title="Click to add comments">Post Comment »</div>';
}
$wall_post .= '</div>';
//.wall-post
return $wall_post;
}