public static function select($ID, $label, $options, $selected = false, $desc = false, $class = 'select short')
 {
     $args = array('id' => $ID, 'label' => $label, 'class' => $class, 'desc' => $desc, 'options' => $options, 'selected' => $selected);
     return fflcommerce_Forms::select($args);
 }
    public function order_status_widget()
    {
        ?>
		<form method="GET">
			<?php 
        $args = array('id' => 'order_status', 'name' => 'order_status', 'label' => null, 'after_label' => null, 'class' => 'full-width', 'desc' => false, 'tip' => false, 'multiple' => true, 'placeholder' => '', 'options' => array('pending' => __('Pending', 'fflcommerce'), 'on-hold' => __('On-Hold', 'fflcommerce'), 'waiting-for-payment' => __('Waiting for payment', 'fflcommerce'), 'processing' => __('Processing', 'fflcommerce'), 'completed' => __('Completed', 'fflcommerce'), 'cancelled' => __('Cancelled', 'fflcommerce'), 'refunded' => __('Refunded', 'fflcommerce')), 'selected' => $this->order_status);
        echo fflcommerce_Forms::select($args);
        ?>
			<input type="submit" class="submit button" value="<?php 
        _e('Show', 'fflcommerce');
        ?>
" />
			<input type="hidden" name="range" value="<?php 
        if (!empty($_GET['range'])) {
            echo esc_attr($_GET['range']);
        }
        ?>
" />
			<input type="hidden" name="start_date" value="<?php 
        if (!empty($_GET['start_date'])) {
            echo esc_attr($_GET['start_date']);
        }
        ?>
" />
			<input type="hidden" name="end_date" value="<?php 
        if (!empty($_GET['end_date'])) {
            echo esc_attr($_GET['end_date']);
        }
        ?>
" />
			<input type="hidden" name="page" value="<?php 
        if (!empty($_GET['page'])) {
            echo esc_attr($_GET['page']);
        }
        ?>
" />
			<input type="hidden" name="tab" value="<?php 
        if (!empty($_GET['tab'])) {
            echo esc_attr($_GET['tab']);
        }
        ?>
" />
			<input type="hidden" name="report" value="sales_by_date" />
		</form>
		<?php 
    }