function _renderOptions($options, $selected_value) { foreach ($options as $optionValue => $label) { $selected = _cprint($optionValue, $selected_value, 'selected', false); print "<option value='{$optionValue}' {$selected}>{$label}</option> "; } }
?> >Today</option> <option value="YESTERDAY" <?php _cprint($fil_duration, "YESTERDAY", "selected"); ?> >Yesterday</option> <option value="CURRENT_WEEK" <?php _cprint($fil_duration, "CURRENT_WEEK", "selected"); ?> >Current Week</option> <option value="CURRENT_MONTH" <?php _cprint($fil_duration, "CURRENT_MONTH", "selected"); ?> >Current Month</option> <option value="CUSTOM" <?php _cprint($fil_duration, "CUSTOM", "selected"); ?> >Select Dates</option> </select> </div> <div style="clear:both;height: 10px;"> </div> <div class="col-lg-12"> <div id="CustomDateBlock" style="<?php echo $fil_duration == "CUSTOM" ? "" : "display:none;"; ?> "> <input class="form-control" type="text" name="start_date" id="start_date" value="<?php print $fil_from_date; ?> " placeholder="Start Date"/> <div class="line-break" style="height: 10px;"></div>