当前位置: 首页>>代码示例>>PHP>>正文


PHP loadComboListFromArray函数代码示例

本文整理汇总了PHP中loadComboListFromArray函数的典型用法代码示例。如果您正苦于以下问题:PHP loadComboListFromArray函数的具体用法?PHP loadComboListFromArray怎么用?PHP loadComboListFromArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了loadComboListFromArray函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getDisplay

function getDisplay($pid, $spid, $amvd_provision_rate, $row_class = 'o')
{
    global $class_jc;
    $result = '';
    $obj_product = new Product($pid);
    $have_amvd_catalog = $obj_product->isAddedToSalesPartner($spid);
    $is_active = $obj_product->isActiveInSalesPartner($spid);
    $products_image = $obj_product->displayImage(IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1);
    $info = '<div style="margin-bottom:20px;">' . $obj_product->displayIDAndCode() . '</div>';
    $info .= '<div class="w150" style="margin:0 auto;">' . $obj_product->displayRecentSoldTable() . '</div>';
    $navids = array('0' => 'Please select a navigation...');
    $navids_opts = retrieveNavIDs($spid, 'bn');
    foreach ($navids_opts as $n_id => $n_name) {
        //if doesn't work in dev environment, it could be caused by umlauts
        //in the navigation name. Can be fixed by adding htmlspecialchars or
        //but we don't need it for live (sahat- 16.09.2014)
        $navids[$n_id] = $n_name;
    }
    $navid = $have_amvd_catalog ? $obj_product->getSalesPartnerMainNavigationID($spid) : null;
    $navigation = '<select class="navigation input">' . loadComboListFromArray($navids, null, $navid, false) . '</select>';
    $result .= '<tr id="' . $pid . '" class="' . $row_class . '">';
    $result .= '<td class="img">' . $products_image . '</td>';
    $result .= '<td class="name">' . $info . '</td>';
    $result .= '<td class="pb">' . $navigation . '</td>';
    $btn_update_text = $is_active ? 'Update' : 'Activate';
    $btn_add = '<input type="button" style="width:90px;" class="add button blue" value="Add" title="Add this product to AM.VD Catalogue"/>';
    $btn_update = '<input type="button" style="width:90px;" class="update button blue" value="' . $btn_update_text . '" title="Update and activate this product on AM.VD Catalogue"/>';
    $btn_ignore = '<input type="button" style="width:90px;" class="ignore button" value="Ignore" title="Ignore from list"/>';
    $btn_deactivate = '<input type="button" style="width:90px;" class="deactivate button blue" value="Deactivate" title="Deactivate or remove from AM.VD catalog"/>';
    $i_hidden = '<input type="hidden" name="jcid" value="' . $obj_product->getSalesPartnerCatalogID($spid) . '"/>';
    if ($have_amvd_catalog) {
        $btn = $i_hidden . $btn_update . '<br/>' . $btn_deactivate;
    } else {
        $btn = $btn_add . '<br/>' . $btn_ignore;
    }
    $result .= '<td class="act">' . $btn;
    $result .= '<input type="hidden" class="pid" value="' . $pid . '"/>';
    $result .= '</td>';
    $result .= '</tr>';
    return $result;
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:41,代码来源:products-add-to-amvd.php

示例2: displayTypeAsComboBox

 public function displayTypeAsComboBox($name = '', $id = '', $class = '', $style = '')
 {
     $options = array();
     $options[self::TYPE_B2C] = self::TYPE_B2C_TEXT;
     $options[self::TYPE_B2B] = self::TYPE_B2B_TEXT;
     $combo = '<select';
     if ($name != '') {
         $combo .= ' name="' . $name . '"';
     }
     if ($id != '') {
         $combo .= ' id="' . $id . '"';
     }
     if ($class != '') {
         $combo .= ' class="' . $class . '"';
     }
     if ($style != '') {
         $combo .= ' style="' . $style . '"';
     }
     $combo .= '>' . loadComboListFromArray($options, $this->displayType()) . '</select>';
     return $combo;
 }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:21,代码来源:SalesPartner.php

示例3: date

$date_oldest = date('Y-m-d', strtotime("-14 day"));
$date_today = date('j M Y');
$date_yesterday = date('j M Y', strtotime("-1 day"));
$n_lists = $notifications->retrieveListGeneralQuery("muhn.user_id={$session_userinfo['id']} AND (muhn.status=0 OR muhn.need_feedback=1 OR muhn.posted_date>='{$date_oldest}') {$filter}", 'muhn.posted_date DESC, muhn.posted_by');
$notifications_new = array();
$printed_date = '';
$previous_date = '';
//$dbposted = tep_db_query("SELECT DISTINCT posted_by FROM minierp_users_has_notifications WHERE user_id = '$session_userinfo[id]'");
//while($r=tep_db_fetch_array($dbposted))$postedusers[$r['posted_by']] = $r['posted_by'];
$postedusers = array();
foreach ($n_lists as $n) {
    if (!isset($postedusers[$n['posted_by']])) {
        $postedusers[$n['posted_by']] = $n['posted_by'] == '0' || $n['posted_by'] == 'auto-set' ? 'Manobo' : $n['posted_by'];
    }
}
$content .= '<div style="float:right;"><form id="filters" action="" method="post"><input type="hidden" name="me_action" value="REFRESHFILTERS"/><strong style="margin-right:10px;">Show posted by</strong><select name="sender" onchange="$(\'#filters\').submit();"><option value="">All</option>' . loadComboListFromArray($postedusers, null, $sender) . '</select></form></div>';
$content .= '<br/><br/>';
if (count($n_lists) > 0) {
    $content .= '<div id="my-notifications"><div id="notifications-list">';
    foreach ($n_lists as $list) {
        if ($list['status'] == 0) {
            $notifications_new[] = $list['notifications_id'];
        }
        $list_date = date("j M Y", strtotime($list['posted_date']));
        if ($printed_date != $list_date) {
            $previous_date = $printed_date;
            $class = 'dt' . strtolower(str_replace(' ', '', $list_date));
            $style = $previous_date != '' ? ' style="margin-top:40px;"' : '';
            $printed_date = $list_date;
            $content .= '<h3 class="' . $class . '"' . $style . '>';
            if ($list_date == $date_today) {
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:my-notifications.php

示例4: drawProductInfo

function drawProductInfo($pid, $aid)
{
    global $product_categories_name, $class_pm, $class_pa;
    $product = $class_pm->retrieveDetail($pid, 'p,pnc,cat');
    $result = '<div style="float:left;">';
    $result .= '<div>' . webImageWithDetailLinkStars($product['p']['products_image'], IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1, 'Product ' . $product['p']['products_id'], '', '', IMAGE_SIZE_BIG_1, IMAGE_SIZE_BIG_1, $product['p']['stars']) . '</div>';
    $result .= '</div>';
    $result .= '<div style="margin-left:' . (intval(IMAGE_SIZE_THUMBNAIL_1) + 20) . 'px;">';
    $result .= '<h2>' . $product_categories_name[$product['categories_id']] . '</h2>';
    $result .= '<h3>' . $product['p']['products_id'] . ' / ' . $product['p']['products_model'] . '</h3>';
    if (is_array($aid)) {
        $a_option = array();
        $a_option[$product['p']['products_ean']] = textLength($product['pnc']['products_length']);
        foreach ($aid as $a) {
            $a_option[$a['products_ean']] = textLength($a['length']);
        }
        $result .= '<select id="choose-article" class="input"><option value="X">please select a length...</option>' . loadComboListFromArray($a_option) . '</select>';
    } else {
        $article = $aid > 0 ? $class_pa->retrieveDetail($aid) : null;
        $ean = is_null($article) ? $product['p']['products_ean'] : $article['products_ean'];
        $length = is_null($article) ? $product['pnc']['products_length'] : $article['length'];
        $length_text = $length > 0 ? textLength($length) : '';
        if ($length_text != '') {
            $result .= '<h3>Length ' . $length_text . '</h3>';
        }
        $result .= '<h3>EAN ' . $ean . '</h3>';
    }
    $result .= '</div>';
    return $result;
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:30,代码来源:products-stock-detail.php

示例5: date

<?php

$year_now = date('Y');
$month_prev = date('m', strtotime("-1 month"));
$year_options = array();
$month_options = array();
for ($y = 2010; $y <= $year_now; $y++) {
    $year_options[$y] = $y;
}
for ($m = 1; $m <= 12; $m++) {
    $m2 = $m < 10 ? "0{$m}" : $m;
    $month_options[$m2] = date('F', strtotime("2009-{$m2}-01"));
}
$content .= '<div style="margin-bottom:20px;">' . 'Period: ' . '<select id="oc-period-month">' . loadComboListFromArray($month_options, null, $month_prev) . '</select><select id="oc-period-year"">' . loadComboListFromArray($year_options, null, $year_now) . '</select></div>' . '<div style="margin-bottom:40px;">' . '<input type="button" id="oc-period-submit" value="Download Excel File" />' . '</div><div><a href="/?report=otto-commissions-2012">' . '&raquo; Go to old OTTO Commission Report</a>';
$javascript = '
            $("#oc-period-submit").click(function() {
                var year = $("#oc-period-year").val();
                var month = $("#oc-period-month").val();
                window.open("/print/otto-commission.php?year=" + year + 
                    "&month=" + month);
            });
';
$title = 'Otto Commission Report';
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:23,代码来源:otto-commissions-2015.php

示例6: loadComboListFromArray

         $m['owner_id'] = $row['owner'];
         $m['owner_name'] = $row['owner_name'];
         $m['pic_id'] = $row['pic'];
         $m['pic_name'] = $row['pic_name'];
         $m['eta'] = $row['eta'];
         $m['status'] = $row['status'];
         $mims[$pic][$id] = $m;
     }
     $status_history = 'status_' . $row['hstatus'];
     if (!isset($mims[$pic][$id][$status_history]) || $mims[$pic][$id][$status_history] <= $row['hstatus_time']) {
         $mims[$pic][$id][$status_history] = $row['hstatus_time'];
         $mims[$pic][$id][$status_history . '_by'] = $row['hstatus_by'];
     }
 }
 $result .= '<div id="kpi-mims">';
 $result .= '<h2>Show KPI of Team &nbsp; <select id="kpi-mims-team-combo" class="input">' . loadComboListFromArray($teams, null, $team_id) . '</select></h2>';
 $result .= '<input type="hidden" id="kpimims" value="' . $filterdate_start . '" />';
 $result .= '<div id="kpi-mims-content"></div>';
 $result .= '<div id="kpi-mims-content-2"></div>';
 foreach ($mims as $pic => $mims_per_pic) {
     $pic_mims_counter = 0;
     $kpi_table = array();
     $row = array();
     $row['id'] = 'No';
     $row['desc'] = 'MIMS Name';
     $row['countpro'] = 'ETA';
     $row['s3 date'] = 'In Progress';
     $row['s4 date'] = 'Testings';
     $row['s5 date'] = 'Checkings';
     $row['s6 date'] = 'Done';
     $kpi_table[] = $row;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:home.php

示例7: comboRange

 function comboRange($id, $show = false)
 {
     $display = $show ? 'display:block;' : 'display:none;';
     $cbo_data = array('>=' => '( &ge; ) greater than or equal to', '>' => '( > ) greater than', '<=' => '( &le; ) less than or equal to', '<' => '( < ) less than', '=' => '( = ) equal', '!=' => '( &ne; ) not equal');
     //$cbo_data = array('='=>'( = ) equal', '>'=>'( > ) greater than', '>=' => '( &ge; ) greater than or equal to', '<'=>'( < ) less than', '<='=>'( &le; ) less than or equal to');
     $cbo = '<select id="' . $id . '" name="' . $id . '" class="filters-range-selector" style="margin-left:20px;' . $display . '">' . loadComboListFromArray($cbo_data, null, null, false) . '</select>';
     return $cbo;
 }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:8,代码来源:elements_search.php

示例8: ComboBoxAmazonDeNavIDs

     $content .= ComboBoxAmazonDeNavIDs('navigation', $product_navigation, 'input2', 'id="navigation"');
     $content .= '<input type="checkbox" name="navigation" value="1" style="display:none;" />';
     $content .= '</td></tr>';
     $content .= '<tr><td colspan="2">&nbsp;</td></tr>';
     $content .= '<tr><td colspan="2"><strong>Secondary</strong></td></tr>';
     $content .= '<tr><td width="150">Nav ID</td><td>';
     $content .= ComboBoxAmazonDeNavIDs('navid0', $product_nav_secondary[0], 'input2', 'id="nav0"');
     $content .= '</td></tr>';
     $content .= '</table></div>';
 } elseif ($jng_sp_id == '5') {
     $content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
     $content .= '<tr><td colspan="2"><strong>Primary (BrowseNode)</strong></td></tr>';
     $content .= '<tr><td width="150">Nav ID</td><td>';
     $navids = array('' => 'Please select a navigation...') + retrieveNavIDs($jng_sp_id, 'bn');
     $navid_filters = '<select id="navigation" name="navigation" class="input2">';
     $navid_filters .= loadComboListFromArray($navids, null, $product_navigation, false);
     $navid_filters .= '</select>';
     //$content .= ComboBoxneckermannAtNavIDs('p','navigation', $product_navigation, 'input2', 'id="navigation"');
     $content .= $navid_filters;
     $content .= '<input type="checkbox" name="navigation" value="1" style="display:none;" />';
     $content .= '</td></tr>';
     $content .= '</table></div>';
 } else {
     $content .= '<div>No Structure Info yet</div>';
 }
 $content .= '</div>';
 $content .= '<div>';
 $content .= '<h3><a href="#">Images</a></h3>';
 $content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
 $current_brand = $product['p']['products_brand_id'];
 if ($current_brand == '0') {
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:sp-product.php

示例9: unset

         $tab_content .= '<textarea name="template_content" class="w500" rows="20">' . $template_content . '</textarea>';
         $tab_content .= '<div class="buttons">';
         $tab_content .= '<input type="hidden" name="languages_id" value="' . $languages_id . '" />';
         $tab_content .= '<input type="button" class="btn-content-save" value="Save" />';
         $tab_content .= '<input type="button" class="btn-content-preview" value="Save & Preview" />';
         $tab_content .= '<input type="button" class="btn-content-delete" value="Delete" />';
         $tab_content .= '</div>';
         $tab_content .= '</div>';
         unset($unused_languages[$languages_id]);
     }
     if (count($unused_languages) > 0) {
         $tab_id = 'add-language';
         $content .= '<li><a href="#' . $tab_id . '">+</a></li>';
         $tab_content .= '<div id="' . $tab_id . '">';
         $tab_content .= '<div class="bold">Select new language to add:</div>';
         $tab_content .= '<div><select id="add-language-id" class="w200">' . loadComboListFromArray($unused_languages) . '</select></div>';
         $tab_content .= '<div class="buttons-left"><input type="button" id="btn-language-add" value="Add Selected Language" /></div>';
         $tab_content .= '</div>';
     }
     $content .= '</ul>';
     $content .= $tab_content;
     $content .= '</div>';
     //#template-contents
     $content .= '</div>';
 }
 $javascript .= '
         var preview_after_saved = false;
         function validateTemplate()
         {
             var error_message = new Array();
             if ($("#template-name").val() == "") error_message.push("&sdot; Please specify a valid Template Name");
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:email-template-detail.php

示例10: str_replace

 $content .= '<form name="fin_zade" action="?open=product-detail&amp;products_id=' . $products_id . '#prodet-tab5" method="post">';
 $content .= '<input type="hidden" name="me_action" value="FINALIZETRADEBYTE" />';
 $content .= '<input type="hidden" id="products_id" name="products_id" value="' . $products_id . '" />';
 $content .= '<div style="margin-top:20px;">';
 //$content .= '<h3>Final Settings</h3>';
 $products_data = $class_pm->retrieveDetail($products_id, 'p,pd,cat');
 $description = $products_data['pd'];
 $keywords_nice = str_replace(',', ', ', $description[2]['products_head_keywords_tag']);
 $table_2nd_column_widthclass = 'w450';
 $content .= '<table class="form" border="0" cellpadding="0" cellspacing="0">';
 $content .= '<tr><td style="width:150px;">Product Name</td><td>' . $products_brand['brand_name'] . ' - ' . $obj_product->category_name . ' - <span id="zade_name">' . $description[2]['products_name'] . '</a></td><td>&nbsp;</td></tr>';
 $content .= '<tr><td>Product Keywords</td><td id="zade_keywords" colspan="2">' . $keywords_nice . '</td></tr>';
 $content .= '<tr><td>Product Gender</td><td><select name="products_gender" class="input">' . loadComboListFromArray($class_pm->productGenderName(), null, $zade_gender) . '"</select></td><td>&nbsp;</td></tr>';
 $content .= '<tr><td>Product Age Group</td><td><select name="products_agegroup" class="input">' . loadComboListFromArray($products_agegroup_options, null, $zade_agegroup) . '"</select></td><td>&nbsp;</td></tr>';
 if ($catalog_zade !== false) {
     $content .= '<tr><td>Zalando Season</td><td><select name="zade_season" class="input">' . loadComboListFromArray($zade_season_options, null, $zade_season) . '</select></td><td>&nbsp;</td></tr>';
 }
 if ($catalog_ebde !== false) {
     $ebay_name_suggestion = $obj_product->getEbayNameSuggestion($ebay_language_id);
     $ebay_name_suggestion_length = strlen($ebay_name_suggestion);
     $ebay_suggestion_rule = 'Name is auto generated from:<br />' . Product::getEbayNameSuggestionTemplate() . '<br />' . '<strong>&laquo; Click suggested name to use it</strong>!';
     $info_icon = '<span class="help ui-icon ui-icon-info" style="float:right;" title="' . $ebay_suggestion_rule . '"></span>';
     $suggestion_class = $ebay_name_suggestion_length > $ebay_name_max_chars ? 'red' : 'notice';
     $content .= '<tr><td>Ebay Name Suggestion</td><td class="' . $table_2nd_column_widthclass . '">' . $info_icon . '<span id="ebde_name_suggest" class="blue pointer" title="Click to use this suggested name">' . $ebay_name_suggestion . '</span>' . '</td><td><div class="w080 tar ' . $suggestion_class . '">(' . $ebay_name_suggestion_length . ' chars)</div></td></tr>';
     $content .= '<tr><td>Ebay Name to Upload</td><td class="' . $table_2nd_column_widthclass . '">' . '<input type="text" id="ebde_name" name="ebay_name" class="' . $table_2nd_column_widthclass . '" value="' . $obj_product->getEbayName($ebay_language_id) . '" />' . '<br /><span class="smallText notice">* Max characters allowed by eBay = ' . $ebay_name_max_chars . ' Chars</span>' . '</td><td><div id="ebde_name_length" class="w080 tar notice">&nbsp;</div></td></tr>';
 }
 $content .= '</table>';
 $content .= '<h3 style="margin:20px 0 0 0;">Finalize Price using below module</h3>';
 $content .= '<iframe src="/?open=products-price&amp;pids=' . $products_id . '&amp;hidemenu=true&amp;hidecopyurl=true" width="1200" height="540" style="border:none;overflow:hidden;" scrolling="no"></iframe>';
 $content .= '<div style="margin-top:20px;">';
 if ($catalog_zade !== false) {
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:product-detail.php

示例11: tep_draw_table

                $result .= tep_draw_table('scorecard', $tc_value, false, true);
            }
        }
        echo utf8_encode($result);
        exit;
    }
}
$period_options = array();
$period_options['all'] = 'Show All Months';
$period_options['actual'] = 'Show Actual Months';
$view_option = array();
$view_option['overview'] = 'Show Overview';
$view_option['details'] = 'Show Details';
$content .= '<div>';
$content .= '<select id="cmb_period" class="input">' . loadComboListFromArray($period_options, null, 'actual') . '</select>';
$content .= '<select id="cmb_view" class="input">' . loadComboListFromArray($view_option, null, 'details') . '</select>';
$content .= '</div>';
$content .= '<div id="div_period_actual" class="w150 tac" style="margin:5px 0 5px 15px;">';
$content .= '<span class="ui-state-default ui-corner-all" style="float:left;"><span id="icn-period-prev" class="ui-icon ui-icon-triangle-1-w pointer"></span></span>';
$content .= 'Change Period';
$content .= '<span class="ui-state-default ui-corner-all" style="float:right;"><span id="icn-period-next" class="ui-icon ui-icon-triangle-1-e pointer"></span></span>';
$content .= '</div>';
$content .= '<div style="width:100%;padding-bottom:40px;overflow:auto;"><div id="scorecard_container" style="width:2000px;"></div></div>';
$javascript .= '
    function loadTable() {
        $("#scorecard_container").html(img_ajax_load_1);
        $.post(url, { me_action: "LOADTABLES" }, tableLoaded, "html");
    }
    function tableLoaded(htmlResult, txtStatus) {
        if(txtStatus=="success") {
            $("#scorecard_container").html(htmlResult);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:scorecard-cash-management.php

示例12: utf8_encode

        }
        echo utf8_encode($late_orders);
        exit;
    }
}
//TEMPLATE START
$orders_late_status_filter = array();
$orders_late_status_filter['S'] = 'Show All';
$orders_late_status_filter['U'] = 'Unhandled';
$orders_late_status_filter['H'] = 'Handled';
$orders_late_status_filter['O'] = 'OK';
//$orders_late_status_filter['1'] = 'Closed';
$content = '';
$content .= '<div id="filter_box" style="float:left;">';
$content .= '<div style="padding-bottom:10px;float:left;"><strong>Query Date </strong><input type="text" id="late_date" title="select date to load order late" class="date_picker input" readonly="readonly" value="' . $date_id_userformat . '"/></div>';
$content .= '<div style="float:left;"><strong>&nbsp; Status </strong><select id="status_filter" class="input">' . loadComboListFromArray($orders_late_status_filter, null, $filter_status, false) . '</select></div>';
$content .= '</div>';
$content .= '<form name="printtoexcel" method="POST" action="print/print-orders-late.php" target="_blank">';
$content .= '<input type="hidden" id="pte-oids" name="oids" value=""/>';
$content .= '<input type="hidden" id="pte-date" name="late_date" value="' . $date_id_userformat . '"/>';
$content .= '<input type="hidden" id="pte-status" name="status_late" value="' . $filter_status . '"/>';
$content .= '</form>';
$content .= '<div id="printtoexcel" style="margin-bottom:10px;">';
$content .= '<input style="margin-left:10px;" type="button" class="w200" id="pte-button"  value="Export Orders to Excel File" title="Export orders list to MS Excel format file" />';
$content .= '</div>';
$content .= '<div id="orders_late_table"></div>';
$javascript .= '
reloadList = function() {
    var filter_date = $("#late_date").val();
    var filter_status = $("#status_filter").val();
    $("#orders_late_table").html(img_ajax_load_1);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:orders-late.php

示例13: tep_draw_table

     $content .= '<form name="closesenttab" action="?open=sp-orders-amvd-upload' . $addhidemenu . '#ui-tabs-6" method="post">';
     $content .= '<input type="hidden" name="me_action" value="CLOSEORDERSINSENTTAB" >';
     $content .= tep_draw_table('', $table);
     $content .= '<div class="buttons-left"><input type="submit" name="submit" class="button" value="Close all Checked Orders" />';
     $content .= '</form>';
 } elseif ($_GET['tab'] == 'po-sndsscc') {
     $header = 'Serial Shipping Container Code (SSCC)';
     $paragraphs = array();
     $paragraphs[] = '&sdot; currently available only for Amazon German';
     $paragraphs[] = '&sdot; Use this function to send 1 ASN with multiple boxes/carton';
     $paragraphs[] = '&sdot; ALWAYS WRITE DOWN THE TIME WHEN WE START USING 2ND BOXES (AND NEXT ONES)';
     $paragraphs[] = '&sdot; ALWAYS <strong><em>CLOSE</em></strong> PREVIOUS BOX BEFORE STARTING A NEW ONE';
     $paragraphs[] = '&sdot; Use this function when ready for shipment';
     $destination_options = loadComboListFromArray($amazon_address_key);
     $order_type_options = loadComboListFromArray($amazon_order_type);
     $total_boxes_options = loadComboListFromArray(array(1, 2, 3, 4, 5));
     $total_boxes = '<select id="sscc-total-box" class="w040 tac">' . $total_boxes_options . '</select>';
     $sending_date = '<input type="text" id="sscc-send-date" class="date_picker" value="" />';
     $list_gap = 'style="margin-top:8px;"';
     $style = 'margin:10px 0 20px 0;';
     $content .= drawSOPinfo($header, $paragraphs, $style);
     $unconfirmed_orders = $class_jo->getUnconfirmedOrders($default_sp_id);
     if (count($unconfirmed_orders) > 0) {
         $po_list = array();
         foreach ($unconfirmed_orders as $order) {
             if (!in_array($order['order_id'], $po_list)) {
                 $po_list[] = $order['order_id'];
             }
         }
         $content .= '<div class="red" style="margin-bottom:0;">' . 'Some POs are not yet confirmed to SP: ' . implode(', ', $po_list) . '</div>' . '<h3 class="red">Please confirm it first!</h3>';
     }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:sp-orders-amvd-upload.php

示例14: header

            $upload_sp_id = $_POST['upload_sp_id'];
            header("Location: ?open=sp-catalog-generator&jng_sp_id={$upload_sp_id}&reupload=true");
            exit;
        } else {
            $upload_id = tep_db_prepare_input($_POST['upload_id']);
            $status = $_POST['submit'] == 'Success' ? 'S' : 'F';
            $class_ju->updateStatus($upload_id, $status, $session_userinfo['username']);
            header("Location: ?open=sp-catalog");
            exit;
        }
    } elseif ($_POST['me_action'] == 'COUNTCATSTATUS') {
        $category_top_id = $_POST['top_cat_id'];
        $sp = new SalesPartner($jng_sp_id);
        $status_arr = array('all', 'new', 'update', 'deactivate');
        $total_catalog_status = $sp->getCatalogTotalCount($status_arr, $category_top_id);
        $catalog_status_combo_box = '<select id="status-catalog" style="width:180px;"><option value="0">Choose Catalog Status..</option>' . loadComboListFromArray($total_catalog_status, null, null, false) . '</select>';
        echo $catalog_status_combo_box;
        exit;
    }
}
//START TEMPLATE
//CHECK IF UPLOAD IS ALREADY MADE
$status = $class_ju->retrieveNotSetStatus($jng_sp_id, 'CAT,PRI');
if ($status !== false) {
    // Instead shows the confirmation of Success/Fail for last generated upload file, just set the uploaded file into Success 'S'
    $class_ju->updateStatus($status['jng_sp_upload_id'], 'S', $session_userinfo['username']);
    header("Location: ?open=sp-catalog");
} else {
    /*
    $filter_query = " WHERE jc.active_status='1'";
    $cat_total_query = tep_db_query("SELECT count(jc.jng_sp_catalog_id) AS total FROM jng_sp_catalog jc".$filter_query);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:sp-catalog.php

示例15: drawLengthsForm

function drawLengthsForm($products_id)
{
    global $class_pm, $class_pa;
    use_class('Product');
    $product = $class_pm->retrieveDetail($products_id, 'p,pd,pnc,cat');
    $articles = $class_pa->retrieveList($products_id);
    $category = $class_pm->retrieveCategoryName($product['categories_id'], '1');
    $use_size = Product::isUsingSizeInsteadOfLength($product['categories_id']);
    $result = '<h2 class="red-bright" style="margin-bottom:0;text-transform:uppercase;">' . $category . '</h2>';
    $result .= '<span class="red">Please make sure product category is correct,<br />contact IT Team if you need to change it!</span><br /><br />';
    $result .= 'Default Length/Size:<br />';
    $input_id = 'deflength';
    $input_class = 'class="w080"';
    if ($use_size) {
        $sizes = getLength2Sizes();
        $size_options = loadComboListFromArray($sizes, null, $product['pnc']['products_length'], false);
        $result .= '<select id="' . $input_id . '" ' . $input_class . '>' . $size_options . '</select>';
    } else {
        $result .= '<input type="text" id="' . $input_id . '" ' . $input_class . 'value="' . number_format($product['pnc']['products_length'], 2) . '" onfocus="$(this).select();" /> cm';
    }
    $result .= '<br /><br />';
    //Set MAX additional length per category
    switch ($product['categories_id']) {
        case '2':
        case '3':
        case '30':
            $al_max = 2;
            break;
        case '4':
        case '9':
        case '28':
            $al_max = 0;
            break;
        case '29':
            $al_max = 7;
            break;
        default:
            $al_max = 5;
    }
    $al_count = 0;
    if ($al_max > 0 || count($articles) > 0) {
        $result .= 'Additional Lengt/Size:<br />';
        if (count($articles) > 0) {
            $input_class = 'class="updlength w080"';
            foreach ($articles as $a) {
                $al_count++;
                $input_id = 'paid-' . $a['products_articles_id'];
                if ($use_size) {
                    $size_options = loadComboListFromArray($sizes, null, $a['length'], false);
                    $result .= $al_count . ' - <select id="' . $input_id . '" ' . $input_class . '>' . $size_options . '</select>';
                } else {
                    $result .= $al_count . ' - <input type="text" id="' . $input_id . '" ' . $input_class . ' value="' . number_format($a['length'], 2) . '" /> cm';
                }
                $result .= '<br />';
            }
        }
        if ($al_count < $al_max) {
            $input_class = 'class="addlength w080"';
            for ($al = $al_count + 1; $al <= $al_max; $al++) {
                if ($use_size) {
                    $size_options = loadComboListFromArray($sizes, null, null, false);
                    $result .= $al . ' - <select ' . $input_class . '>' . $size_options . '</select>';
                } else {
                    $result .= $al . ' - <input type="text" ' . $input_class . ' value="" /> cm';
                }
                $result .= '<br />';
            }
        }
        $result .= '<br /><br />';
    }
    $result .= '<input id="setlengthok" type="button" class="button green" value="Save Lengths" />';
    return $result;
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:73,代码来源:designs-details.php


注:本文中的loadComboListFromArray函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。