Ejemplo n.º 1
0
 function advanced_stock_get_sendfor_status($products_id)
 {
     return advanced_stock_get_sendfor_status($products_id);
 }
Ejemplo n.º 2
0
function advanced_stock_draw_sendfor_flag()
{
    if (isset($_GET['pID']) && empty($_POST)) {
        $send_for_status = advanced_stock_get_sendfor_status((int) $_GET['pID']);
    } elseif (isset($_POST['send_for_status'])) {
        $send_for_status = $_POST['send_for_status'];
    }
    // send for status
    if (MODULE_ADDON_MODULES_ADVANCED_STOCK_STATUS == 'true') {
        if (!isset($send_for_status)) {
            $send_for_status = '0';
        }
        switch ($send_for_status) {
            case '0':
                $send_on = false;
                $send_off = true;
                break;
            case '1':
            default:
                $send_on = true;
                $send_off = false;
                break;
        }
    }
    $send_for_html = '
          <tr>
            <th class="main">' . TEXT_PRODUCTS_SEND_FOR . '</th>
            <td class="main">' . zen_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . zen_draw_radio_field('send_for_status', '1', $send_on) . '&nbsp;' . TEXT_PRODUCTS_SEND_ON . '&nbsp;' . zen_draw_radio_field('send_for_status', '0', $send_off) . '&nbsp;' . TEXT_PRODUCTS_SEND_OFF . '</td>
          </tr>
';
    return $send_for_html;
}