コード例 #1
0
        if ($add2manpi == 'true' && $comment_jng != '') {
            $products_id = $item['products_id'];
            $comment_by = $session_userinfo['username'];
            $comment_date = date('j-M-y H:i:s');
            $comment_text = $comment_jng;
            $comment_text_pi = "{$comment_by} [{$comment_date}]: {$comment_text}";
            tep_db_query("UPDATE products_non_configurator SET products_instruction=CONCAT(products_instruction, IF(products_instruction='', '', '\n\n'), '{$comment_text_pi}') WHERE products_id={$products_id}");
        }
        $result = array();
        $result['oi_id'] = $items_id;
        $result['new_status'] = 'NONE';
        ajaxReturn($result);
        exit;
    }
}
$content .= $class_jo->searchOrderFields();
$javascript = '
			var url = "index.php?open=sp-orders-return";
			var txtNoMoreOrders = "<h3>No more Orders to show</h3>";
			function addedToList(xml, txtStatus) {                                
				if(txtStatus=="success") {                                
					var oi_id = $("oi_id", xml).text().split(",");                                        
					for(x in oi_id) {
						$("#oi_id-"+oi_id[x]).parent().parent().fadeOut(fadeSpeed/2, function() {
							$(this).remove();
							$(".spo").each(function() {
								var test = $(this).find("td").html();
								if(test==null) $(this).parent().html(txtNoMoreOrders);
							});
						});
					}