echo utf8_encode($result);
        exit;
    }
}
//Set Available Tables
$arr_data_table = array();
$arr_data_table[] = 'Product Category';
$arr_data_table[] = 'Price Group';
$arr_data_table[] = 'Brand';
$select_sp = '<select id="source_order" title="Select Main Filter">';
if (!SERVER_IS_LOCAL) {
    $select_sp .= '<option value="0">Julie & Grace</option>' . '<option value="allsp">All SP and J&G</option>';
} else {
    $select_sp .= '<option value="allsp">All Sales Partner</option>';
}
$select_sp .= loadComboList('jng_sp', 'jng_sp_id', 'name', $selected_sp) . '</select>';
//Set date filters field
$input_start_date = '<input type="text" class="date_picker" id="start_date" value="" />';
$input_end_date = '<input type="text" class="date_picker" id="end_date" value="" />';
//Set Available Numbering Format (to be used in table)
$number_format = array();
$number_format['EN'] = 'Flat (English)';
$number_format['DE'] = 'Flat (Deutsch)';
$number_format['MX'] = 'Manobo Default';
$select_number_format = '<select id="number_format" title="Select Number Format" />' . loadComboListFromArray($number_format) . '</select>';
$header = 'Important Information about Sales Data';
$paragraphs = array();
$paragraphs[] = 'All values are using the same data from <a href="?open=analysis-value-contribution">VC Analysis</a>, which means';
$paragraphs[] = '&sdot; Based on order date';
$paragraphs[] = '&sdot; All values are after return';
$paragraphs[] = '&sdot; <span class="red">B2B Sales Partner is based on <strong>REAL</strong> customer orders and not on PO (currently only AM.DE data is available)</a>';
Example #2
0
function comboProductsCategory($id, $name = '', $value = '', $class = '', $html_params = '', $empty_value_text = '')
{
    $navoptions = '<select id="' . $id . '"';
    if ($name != '') {
        $navoptions .= ' name="' . $name . '"';
    }
    if ($class != '') {
        $navoptions .= ' class="' . $class . '"';
    }
    if ($html_params != '') {
        $navoptions .= ' ' . $html_params;
    }
    $navoptions .= '>';
    $selected = $value == '' ? 'selected="selected"' : '';
    $text_value = 'Please select category...';
    $empty_value_text == '' ? $text_value : ($text_value = $empty_value_text);
    $navoptions .= '<option value="" ' . $selected . '>' . $text_value . '</option>';
    $pcs = getProductsCategorySupportData();
    $navoptions .= loadComboList($pcs['tables'], $pcs['field_id'], $pcs['field_name'], $value, $pcs['filter']);
    $navoptions .= '</select>';
    return $navoptions;
}
 function createInputCombo($id, $default_message, $source_table, $value_id, $value_text, $selected_id = null, $filter = '', $suffix = '')
 {
     $ic = '<select id="' . $id . '" class="filters-val" style="display:none;margin-left:20px;"><option value="" selected="selected">Please select ' . $default_message . '...</option>';
     $ic .= loadComboList($source_table, $value_id, $value_text, $selected_id, $filter) . '</select>';
     return $ic;
 }
$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&amp;id={ID2}&amp;hidemenu=true" class="view_webpage">{ID3}</a></td>';
$row_template .= '<td colspan="' . (count($header) - 2) . '" class="load">&nbsp;</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;">';
$content .= '<tr><td rowspan="2"><input type="button" id="print-stock" value="Print Stock List" /></td>';
$content .= '<td><h3>Average DIOH</h3></td><td><h3>: <span id="avg-dioh">' . $dioh_average . '</span></h3></td></tr>';
$content .= '<tr><td><h3>Total Stock Value</h3></td><td><h3>: <span id="total-price">' . displayCurrency('EUR', $total_total) . '</span></h3></td></tr>';
$content .= '</table></div>';
$content .= '<strong>Sort by </strong><select id="sort_option" name="sort_option" onchange="frm_sort.submit();">';
foreach ($sort_options as $value => $option) {
    $sel = $sort_option == $value ? 'selected="selected"' : '';
    $content .= '<option value="' . $value . '" ' . $sel . '>' . $option . '</option>';
}
$content .= '</select>';
$content .= '</form></div>';
$content .= '<div style="clear:both;">&nbsp;</div>';
        }
        echo tep_draw_table('', $elements);
        exit;
    } else {
    }
}
$filtercombo = '<select name="filter_sold">';
$filtercombo .= '<option value="all">NO FILTER</option>';
$filtercombo .= '<option value="fast">Fast Moving</option>';
$filtercombo .= '<option value="slow">Slow Moving</option>';
$filtercombo .= '<option value="bad">Bad Moving</option>';
$filtercombo .= '</select>';
$default_supplier = '2';
//kapitmas
$suppliercombo = '<select name="filter_supplier">';
$suppliercombo .= loadComboList('elements_suppliers', 'elements_suppliers_id', 'suppliers_name', $default_supplier);
$suppliercombo .= '</select>';
$content .= '<div style="margin:20px 0;"><a href="?open=elements-sourcing">Click here to open NEW Version</a></div>';
$content .= '<form name="eslist" method="post" action="?open=elements-sourcing-old">';
$content .= '<input type="hidden" name="me_action" value="GENERATELIST" />';
$content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
$content .= '<tr><td colspan="2"><h3>Filter By</h3></td></tr>';
//$content .= '<tr><td class="label">Sold Status</td><td class="field">'.$filtercombo.'</td></tr>';
$content .= '<tr><td class="label">Suppliers</td><td class="field">' . $suppliercombo . '</td></tr>';
$content .= '</table></td>';
$content .= '<div class="buttons-left">';
$content .= '<input type="submit" name="submit" value="Generate Table" />';
$content .= '</div>';
$content .= '</form>';
//START TEMPLATE
$title = "Elements Sourcing";
                $table .= '<td>' . implode($asep, $nonrefill_orders_today) . '</td>';
                $table .= '<td>' . implode($asep, $order_qty) . '</td>';
                $table .= '</tr>';
            }
        }
        $table .= '</tbody>';
        $table .= '</table>';
        $table .= '</div>';
        $table .= '</div>';
        echo utf8_encode($table);
        exit;
    }
}
//START TEMPLATE
$segment_combo = 'Show stock of Segment <select id="segments_id" name="segments_id" class="iwbutton">';
$segment_combo .= loadComboList('bin_segments', 'bin_segments_id', 'name', SEGMENT_ID_HAMBURG);
$segment_combo .= '</select>';
$search_tip = 'Products ID, Code or Name (seperate by comma if > 1)';
$content .= '<div style="margin:20px 0;">';
$content .= $segment_combo;
$content .= '</div>';
//SPECIAL BUTTON TO OPEN LEVELLING OVERVIEW
$content .= '<div class=buttons-left" style="margin-bottom:10px;">' . '<input type="button" id="load-daily-nrf-orders" value="Show/Reload Daily Non-Refill Orders Overview" />' . '<input type="button" id="reload-main-table" value="Reload Table" />' . '</div>' . '<div id="daily-nrf-overview" style="display:none;margin-bottom:20px;">' . '</div>';
$content .= '<div id="search-box" style="margin:20px 0;">';
$content .= 'Search Products <input type="text" id="keywords" value="' . $search_tip . '" class="iwbutton input2 notice" title="Search specific products by ID, code or name" />';
$content .= '<input type="button" id="showreclist" value="Generate List" title="Show Recommendation List" />';
//$content .= '<input type="button" id="togglethumbs" value="Toggle Product Thumbnails" title="Show or hide product thumbnails for each items" />';
$content .= '</div>';
$content .= '<div id="depo-reclist"></div>';
//UPDATE FORM TEMPLATE
$suppliers_combo = '<select name="suppliers_id"><option value="0">Please select...</option>' . loadComboListFromArray($class_do->getOutsourceSuppliers()) . '</select>';
Example #7
0
                }
            }
        }
        $table .= '</tbody>';
        $table .= '</table>';
        $table .= '</div>';
        $table .= '</div>';
        echo utf8_encode($table);
        exit;
    }
}
//START TEMPLATE
//$statusName = $class_do->statusNameShort();
//$status_counter = $class_do->statusCounter();
$main_link = '?open=depot-orders&amp;status=';
$segment_combo = '<strong class="red">Manage stock for Segment' . '</strong> &nbsp; ' . '<select id="segments_id" name="segments_id" class="red bold w200 iwbutton">' . loadComboList('bin_segments', 'bin_segments_id', 'name', SEGMENT_ID_DEFAULT) . '</select>';
$search_tip = 'Products ID, Code or Name (seperate by comma if > 1)';
$content .= '<div style="margin:20px 0;">';
$content .= $segment_combo;
$content .= '</div>';
if ($special_mode == 'ltf') {
    //SPECIAL BUTTON TO OPEN LEVELLING OVERVIEW
    $content .= '<div style="width:1150px;">' . '<div style="float:right;">' . '<form name="printtoexcel" method="POST" action="print/levelling-order-list.php" target="_blank">' . '<input type="button" id="pte-button" value="Display List for Excel" />' . '<input type="hidden" id="pte-segmentid" name="segmentid" value=""/>' . '<input type="hidden" id="pte-pids" name="pids" value=""/>' . '</form></div>' . '<div class=buttons-left" style="margin-bottom:10px;">' . '<input type="button" id="goto-ltf-overview-table" value="Display Levelling Overview Table" />' . '<input type="button" id="load-daily-ltf-orders" value="Show/Reload Daily Levelling Orders Overview" />' . '<input type="button" id="reload-main-table" value="Reload Module" />' . '</div></div>' . '<div id="daily-ltf-overview" style="display:none;margin-bottom:20px;">' . '</div>';
}
$content .= '<div id="search-box" style="margin:20px 0;">';
$content .= 'Search Products <input type="text" id="keywords" value="" placeholder="' . $search_tip . '" class="iwbutton input2 notice" title="Search specific products by ID, code or name" />';
$content .= '<input type="button" id="showreclist" value="Generate List" title="Show Recommendation List" />';
//$content .= '<input type="button" id="togglethumbs" value="Toggle Product Thumbnails" title="Show or hide product thumbnails for each items" />';
$content .= '</div>';
$content .= '<div id="depo-reclist"></div>';
//UPDATE FORM TEMPLATE
 }
 if ($eid != '' && $hidemenuscript != '') {
     $filter_view = 'display:none;';
     $list_margin = '';
 } else {
     $filter_view = '';
     $list_margin = 'margin-left:260px;';
 }
 $content .= '<div id="search_form" class="ui-widget-content ui-corner-all" style="' . $filter_view . 'position:fixed;padding:10px;cursor:move;">';
 $content .= '<h2>Filter Window</h2>';
 $content .= '<table class="form" border="0" cellpadding="0" cellspacing="0">';
 $content .= '<tr><td colspan="2" class="bold">Elements</td></tr>';
 $content .= '<tr><td width="120">Show Maximum</td><td><input type="text" name="maxel" value="50" /></td></tr>';
 $content .= '<tr><td>Element ID</td><td><input type="text" name="id" value="' . $eid . '" /></td></tr>';
 $content .= '<tr><td>Element Name</td><td><input type="text" name="name" /></td></tr>';
 $content .= '<tr><td>Element Category</td><td><select name="ecat"><option value="SHOWALL">Show All</option>' . loadComboList('element_category', 'element_category_id', 'name') . '</select></td></tr>';
 $content .= '<tr><td>Element Stars</td><td><select name="estars">' . loadComboListFromArray($option_stars, null, null, false) . '</select></td></tr>';
 $content .= '<tr><td>Sourcing Type</td><td><select name="estype">' . loadComboListFromArray($option_sourcing_type, null, null, false) . '</select></td></tr>';
 $content .= '<tr><td>Default Supplier</td><td><select name="edefsup">' . loadComboListFromArray($option_suppliers, null, null, false) . '</select></td></tr>';
 $content .= '<tr><td>Sold L30D &ge;</td><td><input type="text" name="esold_ge" /></td></tr>';
 $content .= '<tr><td>Sold L30D &le;</td><td><input type="text" name="esold_le" /></td></tr>';
 $content .= '<tr><td>Usage L30D &ge;</td><td><input type="text" name="eused_ge" /></td></tr>';
 $content .= '<tr><td>Usage L30D &le;</td><td><input type="text" name="eused_le" /></td></tr>';
 $content .= '<tr><td>Stock Available &ge;</td><td><input type="text" name="stock_ge" /></td></tr>';
 $content .= '<tr><td>Stock Available &le;</td><td><input type="text" name="stock_le" /></td></tr>';
 $content .= '<tr><td>Refill Ordered &ge;</td><td><input type="text" name="ordered" /></td></tr>';
 //$content .= '<tr><td>Refill Requested &ge;</td><td><input type="text" name="requested" /></td></tr>';
 $content .= '<tr><td>Missing Quantity &ge;</td><td><input type="text" name="MISSING" /></td></tr>';
 $content .= '<tr><td>Stock DIOH &ge;</td><td><input type="text" name="DIOHGE" /></td></tr>';
 $content .= '<tr><td>Stock DIOH &le;</td><td><input type="text" name="DIOHLE" /></td></tr>';
 $content .= '<tr><td>Stock+Refill DIOH &ge;</td><td><input type="text" name="DIOH2GE" /></td></tr>';
            //                ' Missing: ' . $total_missing_lvl .
            //                ' (' . displayCurrency('EUR', $total_missing_value_lvl) . ')' .
            //                ' &sdot; Overstock: ' . $total_overstock_lvl_qty . ' (' . $total_overstock_articles_lvl . ' articles)' .
            //                ' &sdot; Good Stock: ' . $total_goodstock_lvl_qty . ' (' . $total_goodstock_articles_lvl . ' articles)' .
            //                ' &sdot; Shortage: ' . $total_shortages_lvl_qty . ' (' . $total_shortages_articles_lvl . ' articles)' .
            //                '</h3></div>';
            $search_result_header = '<div class="box ui-corner-all" style="margin-bottom:20px;">' . '<h3>Summary Table' . ' (Total Products: ' . $total_products . ' &sdot; Total Articles: ' . $total_articles . ' &sdot; Total Stock Value: ' . displayCurrency('EUR', $total_value) . ')</h3>' . '<div class="draw-table">' . '<table border="0" cellpadding="0" cellspacing="0">' . '<thead><tr>' . '<th class="w200">Info</th>' . '<th class="w150">Missing Qty</th>' . '<th class="w100">Missing Value</th>' . '<th class="w150">Overstock</th>' . '<th class="w150">Good Stock</th>' . '</tr></thead>' . '<tbody>' . '<tr class="t"><td colspan="6">EXCLUDING REFILL ORDERS</td></tr>' . '<tr class="e">' . '<td>&sdot; Before Levelling (LTF)</td>' . '<td class="tac">' . $total_missing_norfl . ' (' . $total_missing_articles . ' articles) </td>' . '<td class="tar">' . displayCurrency('EUR', $total_missing_value_norfl) . '</td>' . '<td class="tac">' . $total_overstock_qty . ' (' . $total_overstock_articles . ' articles) </td>' . '<td class="tac">' . $total_goodstock_qty . ' (' . $total_goodstock_articles . ' articles) </td>' . '</tr>' . '<tr class="o">' . '<td>&sdot; After Levelling (LTF)</td>' . '<td class="tac">' . $total_missing_lvl_norfl . ' (' . $total_missing_articles_lvl . ' articles) </td>' . '<td class="tar">' . displayCurrency('EUR', $total_missing_value_lvl_norfl) . '</td>' . '<td class="tac">' . $total_overstock_lvl_qty . ' (' . $total_overstock_articles_lvl . ' articles) </td>' . '<td class="tac">' . $total_goodstock_lvl_qty . ' (' . $total_goodstock_articles_lvl . ' articles) </td>' . '</tr>' . '<tr class="t"><td colspan="6">INCLUDING REFILL ORDERS</td></tr>' . '<tr class="e">' . '<td>&sdot; Before Levelling (LTF)</td>' . '<td class="tac">' . $total_missing . ' (' . $total_missing_articles_wrfl . ' articles) </td>' . '<td class="tar">' . displayCurrency('EUR', $total_missing_value) . '</td>' . '<td class="tac">' . $total_overstock_qty_wrfl . ' (' . $total_overstock_articles_wrfl . ' articles) </td>' . '<td class="tac">' . $total_goodstock_qty_wrfl . ' (' . $total_goodstock_articles_wrfl . ' articles) </td>' . '</tr>' . '<tr class="o">' . '<td>&sdot; After Levelling (LTF)</td>' . '<td class="tac">' . $total_missing_lvl . ' (' . $total_missing_articles_lvl_wrfl . ' articles) </td>' . '<td class="tar">' . displayCurrency('EUR', $total_missing_value_lvl) . '</td>' . '<td class="tac">' . $total_overstock_lvl_qty_wrfl . ' (' . $total_overstock_articles_lvl_wrfl . ' articles) </td>' . '<td class="tac">' . $total_goodstock_lvl_qty_wrfl . ' (' . $total_goodstock_articles_lvl_wrfl . ' articles) </td>' . '</tr>' . '</tbody>' . '</table></div></div>';
            $search_result = $search_result_header . $search_result;
        }
        echo utf8_encode($search_result);
        exit;
    }
}
$pid = isset($_GET['pid']) ? tep_db_prepare_input($_GET['pid']) : '';
$segment_combo = '<select name="segments_id">';
$segment_combo .= loadComboList('bin_segments', 'bin_segments_id', 'name', $segments_id);
$segment_combo .= '</select>';
$option_refill = array('SHOWALL' => 'Show All', 'ON' => 'Show ON', 'OFF' => 'Show OFF');
$option_bestse = array('SHOWALL' => 'Show All', 'ON' => 'Show Best Seller', 'OFF' => 'Show Non Best Seller');
$option_stars = array('SHOWALL' => 'Show All', '1' => '1 Star', '2' => '2 Stars', '3' => '3 Stars');
$option_outsou = array('SHOWALL' => 'Show All', '0' => 'No (Produce in House)', '1' => 'Yes (Outsourced)');
$option_astats = array('SHOWALL' => 'Include', '1' => 'Exclude');
$option_health = array('SHOWALL' => 'Show All', 'OVER' => 'Overstock', 'GOOD' => 'Good stock', 'SHORT' => 'Shortage');
$option_level1 = array('SHOWALL' => 'Show All', 'GT' => 'Stock &gt; Target after Levelling', 'E' => 'Stock = Target after Levelling', 'LT' => 'Stock &lt; Target after Levelling');
$option_level2 = array('SHOWALL' => 'Show All', 'GT' => 'Stock+Refill &gt; Target after Levelling', 'E' => 'Stock+Refill = Target after Levelling', 'LT' => 'Stock+Refill &lt; Target after Levelling');
$content .= '<div id="search_form" class="ui-widget-content ui-corner-all" style="position:fixed;padding:10px;cursor:move;">';
$content .= '<div id="kpi-block" style="position:absolute;width:210px;top:0;">';
$content .= '<div class="ui-state-default ui-corner-all" style="float:right;margin:10px 10px 0 0"><span title="Hide/Show KPI Depot Terms" class="ui-icon ui-icon-info" id="kpi-icon"></span></div>';
$content .= '<div class="ibox ui-corner-all" style="padding:10px;display:none;">';
$content .= '<h3>DIOH Target</h3>';
$content .= '<table class="form" style="" border="0" cellpadding="0" cellspacing="0">';
        $post_result .= '<input type="button" style="width:120px;height:70px;font-size:20px;margin-left:20px;" class="done bold" value="DONE"/>';
        $post_result .= '</div>';
    }
    return $post_result;
}
$main_link = '?open=package-returns&amp;segment_id=' . $segment_id . '&amp;status=';
$content .= '<div id="tabs-process">';
$content .= '<ul>';
//$content .= '<li><a href="'.$main_link.'0">'.$name1.' (<span id="tc-0"></span>)</a></li>';
$content .= '<li><a href="#sending-preparation-area">' . $name1 . ' (<span id="tc-0">' . intval($sc16['16']) . '</span>)</a></li>';
$content .= '<li><a href="' . $main_link . '1">' . $name2 . ' (<span id="tc-1">' . intval($sc['17']) . '</span>)</a></li>';
$content .= '<li><a href="' . $main_link . '2">' . $name3 . '</a></li>';
$content .= '</ul>';
$content .= '<div id="sending-preparation-area">';
$content .= '<table border="0" cellpadding="0" cellspacing="0" style="margin-bottom:20px;"><tr><td><select name="bin_segment" id="bin_segment">';
$content .= loadComboList('bin_segments', 'bin_segments_id', 'name', $segment_id);
$content .= '</select></td></table>';
$content .= '<div class="lists"></div>';
$content .= '</div>';
//end div "sending-preparation-area"
$content .= '</div>';
//end tab
$javascript = '
            var segment_id = 1;
            
            function refreshCounter(txtResult, txtStatus) {
                if(txtStatus=="success") {
                    var tc = txtResult.split(",");
                    for(x in tc) {
                        var tcid = "#tc-" + x;
                        var tc_cur = parseInt($(tcid).text());
 /**
  * Create input $value for "LIKE, NOT LIKE"
  * @param string $id
  * @param string $default_message
  * @param string $source_table
  * @param string $value_id
  * @param string $value_text
  * @param int $selected_id
  * @param string $filter
  * @param string $suffix
  * @param boolean $multi_sign_value
  * @param string $defined_combo_data
  * @return string
  */
 private function createInputComboContainOrNot($id, $default_message, $source_table, $value_id, $value_text, $selected_id = null, $filter = '', $suffix = '', $multi_sign_value = false, $defined_combo_data = '')
 {
     $ic = $this->comboContainOrNot("equalornot-{$id}", false, $multi_sign_value);
     $ic .= '<select id="' . $id . '" class="filters-val" style="display:none;margin-left:20px;">' . '<option value="" selected="selected">Please select ' . $default_message . '...</option>';
     $ic .= $defined_combo_data != '' ? $defined_combo_data : loadComboList($source_table, $value_id, $value_text, $selected_id, $filter) . '</select>';
     return $ic;
 }
     $q .= " AND d2.sub_status={$sub_status}";
 }
 //    $q .= " WHERE d.status IN (1,2,3,4,5,6,7,8,10,11,12)";
 $q .= " WHERE d.status IN (1,2,3,4,5,6,7,8,10,11,12,13,14)";
 $q .= " GROUP BY owner_id ORDER BY owner_name";
 $r = tep_db_query($q);
 while ($row = tep_db_fetch_array($r)) {
     $designers[$row['owner_id']] = "{$row['owner_name']} ({$row['totaldes']})";
 }
 use_class('styles');
 $class_s = new styles();
 $designs_filter .= '<div class="filter_desown" style="margin-bottom:5px;float:left;"><strong style="margin-right:5px;">Designer</strong><select><option value="0">Show All</option>' . loadComboListFromArray($designers, null, $designs_owner) . '</select></div>';
 $designs_filter .= '<div class="filter_destype" style="margin-bottom:5px;float:left;"><strong style="margin:0 5px 0 20px;">Design Type</strong><select><option value="0">Show All</option>' . loadComboListFromArray(design::getDesignType(), null, $designs_type) . '</select></div>';
 $designs_filter .= '<div class="filter_descat" style="margin-bottom:5px;float:left;"><strong style="margin:0 5px 0 20px;">Design Category</strong><select><option value="0">Show All</option>' . loadComboListFromArray(design::getDesignCategory(), null, $designs_category) . '</select></div>';
 $pcs = getProductsCategorySupportData();
 $prodcats .= loadComboList($pcs['tables'], $pcs['field_id'], $pcs['field_name'], $products_category, $pcs['filter']);
 $designs_filter .= '<div class="filter_prodcat" style="margin-bottom:5px;float:left;"><strong style="margin:0 5px 0 20px;">Product Category</strong><select><option value="0">Show All</option>' . $prodcats . '</select></div>';
 $designs_filter .= '<div class="filter_collection" style="margin-bottom:5px;' . ($status > 2 ? 'float:left;' : '') . '"><strong style="margin:0 5px 0 20px;">Collection</strong><select><option value="0">Show All</option>' . $class_s->drawComboOptions($styles_id_L, 'L', null, '', 'sd.name') . '</select></div>';
 if ($status > 2) {
     $designs_filter .= '<div class="filter_leadtime" style="margin-bottom:5px;"><strong style="margin:0 5px 0 20px;">Lead Time</strong>' . leadTimeCombo($lead_time_value) . '</div>';
 }
 $designs_filter .= '<div style="margin:2px;clear:both;"> &sdot; <span class="smallText red">Sorting is available only for your Design which is on <strong>Ideas</strong> and <strong>Request</strong> Tab, and Filter by <strong>Category</strong> and <strong>Attributes</strong> is not used</div>';
 $filter = $styles_id_L <= 0 ? '' : " AND styles_id_L={$styles_id_L} ";
 if ($designs_type != '0') {
     $filter .= " AND d.designs_type='{$designs_type}' ";
 }
 if ($designs_category != '0') {
     $filter .= " AND d.designs_category='{$designs_category}' ";
 }
 if ($products_category != '0') {
     $filter .= " AND d.products_category_id={$products_category} ";
    $table[] = $row;
}
//PREPARE TOTAL ROW
$row = array();
$row['c total text-center'] = 'Total';
$row['o total'] = displayWeight($total_weight);
$row['t total'] = displayCurrency('IDR', $total_amount);
$row['t2 total'] = "{$total_sup_pct} %";
$row['r total'] = '';
//$row['e'] = "";
//$row['s'] = '';
$table[] = $row;
$content = '<div style="width:700px;">';
$content .= '<div style="float:right;">';
$content .= '<form name="filtering" action="?open=' . $session_page . '" method="post">';
$content .= '<table class="form" border="0" cellpadding="0" cellspacing="0">';
$content .= '<tr><td>Filter by Category</td><td><select name="elcat-filter" class="input" onchange="filtering.submit();"><option value="">Show All</option>' . loadComboList('element_category', 'element_category_id', 'name', $elcatfiltered) . '</select></select></td></tr>';
$content .= '</table>';
$content .= '</form>';
$content .= '</div>';
//float:right
$content .= '</div>';
$content .= '<div style="clear:both;margin-bottom:20px;"></div>';
$content .= tep_draw_table('spo', $table);
$title = 'Elements PO Open Overview';
$javascript = '
            $(".total").css({height: "20px", "font-size": "12px"});
            $(".total").parent().removeClass();
            $(".total").parent().addClass("t");
            $(".total").removeClass("total");
';
Example #14
0
                echo utf8_encode($clean_lists);
            }
        } else {
            echo utf8_encode('<span class="red">No product(s) need to be cleared or there still open orders on "in HH" Tab</span>');
        }
        exit;
    }
}
$header = 'Module Update';
$paragraphs = array();
$paragraphs[] = '<span class="ui-state-default ui-corner-all" style="float:left;"><span class="ui-icon ui-icon-arrowthick-1-s"></span></span> &nbsp; Use this icon on each Rack to load the bins preview table.';
$paragraphs[] = '<span class="ui-state-default ui-corner-all" style="float:left;"><span class="ui-icon ui-icon-plus"></span></span> &nbsp; Use this icon on each Rack to add new rows.';
$content .= drawSOPinfo($header, $paragraphs, 'margin-bottom:20px;');
$content .= '<div>';
$content .= '<h2>Current Segment &nbsp;';
$content .= '<select id="bin_segments" class="iwbutton">' . loadComboList('bin_segments', 'bin_segments_id', "name", $segment_id) . '</select>';
$content .= '<span><a href="?open=bin-segment&amp;hidemenu=true" class="view_webpage"></a>';
$content .= '<input type="button" id="edit-segment" name="edit-segment" value="Update Segment" /></span>';
$content .= '<span><a href="?open=bin-segment&amp;id=new&amp;hidemenu=true" class="view_webpage"></a>';
$content .= '<input type="button" id="add-segment" value="Create New Segment" /></span>';
$content .= '</h2>';
$content .= '<div>';
$content .= '<input id="add-rack" type="button" value="Add a Rack" title="Add a rack to this Segment" />';
$content .= '<input type="button" id="print-stock" value="Print Stock List" />';
$content .= '<span><a href="?open=bin-transfer&amp;hidemenu=true" class="view_webpage"></a>';
$content .= '<input type="button" id="bin-transfer" value="Bin Transfer" /></span>';
$content .= '</div>';
$content .= '<br/>';
$content .= '<div id="racks-mgmt-tab">';
$content .= '<ul>';
$main_link = '?open=bins';
Example #15
0
$form .= '<td>Active</td>';
$form .= '<td><input type="checkbox" name="status" id="status" ' . $checked . '/>&nbsp;&nbsp;&nbsp;leave uncheck for sets to Inactive</td>';
$form .= '</tr>';
$form .= '<tr><td colspan="2">&nbsp;</td></tr>';
$form .= '</table></div>';
$form .= '<div class="buttons">' . $attr_buttons . '</div>';
//<input type="button" class="blue" id="test" value="Test" />
$form .= '</form></div>';
$formtitle = $action == 'SAVE' ? 'New Segment' : 'Update Segment';
$win_form = new ui_window($formtitle, $form);
$win_form->ui_setWindowWidth(550);
$content .= $win_form->ui_print();
$segment_update_script = '';
if ($segment_update) {
    $segment_update_script .= '
                var new_segment_list = \'' . loadComboList('bin_segments', 'bin_segments_id', 'name', $segment_id) . '\';
                var target_combo = $("#bin_segments", top.document);
                if(target_combo!=undefined && target_combo!="") {
                    $(target_combo).html(new_segment_list);
                    top.window.reloadSegmentList(' . $segment_id . ');
                }
    ';
}
$javascript .= '
            function writeTo(htmlResult, txtStatus){
                if(txtStatus=="success") {
                    var res = $("res", htmlResult).text();
                    var writeto = $("writeto", htmlResult).text();
                    $("#frm-segment").find(writeto).siblings().html(res);
                }
            }