text:
<?php
class ControllerModuleJournal2Slider extends Controller {

    private static $CACHEABLE = null;
    private $google_fonts = array();

    protected $data = array();

    protected function render() {
        if (version_compare(VERSION, '2.2', '<')) {
            $this->template = $this->config->get('config_template') . '/template/' . $this->template;
        }

        $this->template = str_replace($this->config->get('config_template') . '/template/' . $this->config->get('config_template') . '/template/', $this->config->get('config_template') . '/template/', $this->template);

        return Front::$IS_OC2 ? $this->load->view($this->template, $this->data) : parent::render();
    }

    public function __construct($registry) {
        parent::__construct($registry);
        if (!defined('JOURNAL_INSTALLED')) {
            return;
        }
        $this->load->model('journal2/module');
        $this->load->model('journal2/menu');
        $this->load->model('tool/image');
        $this->load->model('catalog/product');
        $this->load->model('catalog/category');
        $this->load->model('catalog/manufacturer');
        $this->load->model('catalog/information');

        if (self::$CACHEABLE === null) {
            self::$CACHEABLE = (bool)$this->journal2->settings->get('config_system_settings.slider_cache');
        }
    }

    public function index($setting) {
        if (!defined('JOURNAL_INSTALLED')) {
            return;
        }

        Journal2::startTimer(get_class($this));

        /* get module data from db */
        $module_data = $this->model_journal2_module->getModule($setting['module_id']);
        if (!$module_data || !isset($module_data['module_data']) || !$module_data['module_data']) return;
        $module_data = $module_data['module_data'];

        /* device detection */
        $this->data['disable_on_classes'] = array();

        if ($this->journal2->settings->get('responsive_design')) {
            $device = Journal2Utils::getDevice();

            if ($setting['position'] === 'column_left' || $setting['position'] === 'column_right') {
                if ($device === 'phone') {
                    return;
                }

                if ($device === 'tablet') {
                    if ($setting['position'] === 'column_left' && $this->journal2->settings->get('left_column_on_tablet', 'on') !== 'on') {
                        return;
                    }

                    if ($setting['position'] === 'column_right' && $this->journal2->settings->get('right_column_on_tablet', 'on') !== 'on') {
                        return;
                    }
                }
            }

            if (Journal2Utils::getProperty($module_data, 'enable_on_phone', '1') == '0') {
                if ($device === 'phone') {
                    return;
                } else {
                    $this->data['disable_on_classes'][] = 'hide-on-phone';
                }
            }

            if (Journal2Utils::getProperty($module_data, 'enable_on_tablet', '1') == '0') {
                if ($device === 'tablet') {
                    return;
                } else {
                    $this->data['disable_on_classes'][] = 'hide-on-tablet';
                }
            }

            if (Journal2Utils::getProperty($module_data, 'enable_on_desktop', '1') == '0') {
                if ($device === 'desktop') {
                    return;
                } else {
                    $this->data['disable_on_classes'][] = 'hide-on-desktop';
                }
            }
        }

        /* css for top / bottom positions */
        if (in_array($setting['position'], array('top', 'bottom'))) {
            $padding = $this->journal2->settings->get('module_margins', 20) . 'px';
            /* outer */
            $css = Journal2Utils::getBackgroundCssProperties(Journal2Utils::getProperty($module_data, 'background'));
            $css[] = 'padding-top: ' . Journal2Utils::getProperty($module_data, 'margin_top', 0) . 'px';
            $css[] = 'padding-bottom: ' . Journal2Utils::getProperty($module_data, 'margin_bottom', 0) . 'px';
            $this->journal2->settings->set('module_journal2_slider_' . $setting['module_id'], implode('; ', $css));
            $this->journal2->settings->set('module_journal2_slider_' . $setting['module_id'] . '_classes', implode(' ', $this->data['disable_on_classes']));
            $this->journal2->settings->set('module_journal2_slider_' . $setting['module_id'] . '_video', Journal2Utils::getVideoBackgroundSettings(Journal2Utils::getProperty($module_data, 'video_background.value.text')));
        }

        $this->journal2->html_classes->removeClass('backface');

        $cache_property = "module_journal_slider_{$setting['module_id']}_{$setting['layout_id']}_{$setting['position']}";

        $cache = $this->journal2->cache->get($cache_property);

        if ($cache === null || self::$CACHEABLE !== true) {
            $module = mt_rand();
            $this->data['module_id'] = $setting['module_id'];
            $caption_id = 0;

            /* slider position */
            $height = Journal2Utils::getProperty($module_data, 'height', 400);
            $width = null;
            $content_padding_left = $this->journal2->settings->get('boxed_container_pl', 20);
            $content_padding_right = $this->journal2->settings->get('boxed_container_pr', 20);
            $column_left_width = $this->journal2->settings->get('left_column_width', 220);
            $column_right_width = $this->journal2->settings->get('right_column_width', 220);
            switch ($setting['position']) {
                case 'column_left':
                    $width = $column_left_width;
                    $this->data['width'] = "max-width: {$width}px";
                    $this->data['slider_class'] = 'journal-slider';
                    break;
                case 'column_right':
                    $width = $column_right_width;
                    $this->data['width'] = "max-width: {$width}px";
                    $this->data['slider_class'] = 'journal-slider';
                    break;
                case 'content_top':
                case 'content_bottom':
                    $cl = $this->journal2->settings->get('config_columns_left');
                    $cr = $this->journal2->settings->get('config_columns_right');
                    if ($this->journal2->settings->get('extended_layout')) {
                        $width = $this->journal2->settings->get('site_width', 1024) - ($cl * $column_left_width - $cl * $content_padding_left - $cr * $column_right_width - $cr * $content_padding_right);
                    } else {
                        $width = $this->journal2->settings->get('site_width', 1024) - ($cl * $content_padding_left - $cr * $content_padding_right) - ($cl * $column_left_width - $cl * $content_padding_left - $cr * $column_right_width - $cr * $content_padding_right);
                    }
                    $this->data['width'] = "max-width: {$width}px";
                    $this->data['slider_class'] = 'journal-slider';
                    break;
                case 'top':
                case 'bottom':
                    $width = $this->journal2->settings->get('site_width', 1024);
                    if (Journal2Utils::getProperty($module_data, 'fullwidth')) {
                        $this->data['width'] = "max-width: 100%";
                        $this->data['slider_class'] = 'journal-fullwidth-slider';
                    } else {
                        $this->data['width'] = "max-width: {$width}px";
                        $this->data['slider_class'] = 'journal-slider';
                    }
                    break;
                case 'multi_module':
                    $width = $setting['width'];
                    $height = $setting['height'];
                    $this->data['width'] = "max-width: {$width}px";
                    $this->data['slider_class'] = 'journal-slider';
                    break;
            }

            /* global style data */
            $this->data['global_style'] = array();

            $this->data['js_options'] = Journal2Utils::getProperty($module_data, 'js_options', array());
            $this->data['js_options']['startwidth'] = $width;
            $this->data['js_options']['startheight'] = $height;
            if (Journal2Utils::getProperty($module_data, 'spinner', '0') == '0') {
                $this->data['js_options']['spinner'] = '';
            }
            $this->data['js_options']['startheight'] = $height;
            $this->data['height'] = $height;

            if (Journal2Utils::getProperty($module_data, 'hidecaptionsonmobile')) {
                $this->data['js_options']['hideAllCaptionAtLimit'] = 760;
            }

            $slides = Journal2Utils::getProperty($module_data, 'slides', array());
            $slides = Journal2Utils::sortArray($slides);
            $_slides = array();

            $first = true;

            foreach ($slides as $slide) {
                if (isset($slide['status']) && !$slide['status']) continue;
                $slide_data = array();
                if ($first) {
                    $slide_data[] = 'data-fstransition="fade"';
                    $slide_data[] = 'data-fsslotamount="0"';
                    $slide_data[] = 'data-fsmasterspeed="0"';
                    $first = false;
                }
                $slide_data[] = 'data-transition="' . Journal2Utils::getProperty($slide, 'transition', 'fade') . '"';
                $slide_data[] = 'data-easing="' . Journal2Utils::getProperty($slide, 'easing', 'Expo.easeOut') . '"';
                $slide_data[] = 'data-masterspeed="' . Journal2Utils::getProperty($slide, 'masterspeed', 800) . '"';
                if (Journal2Utils::getProperty($slide, 'slotamount')) {
                    $slide_data[] = 'data-slotamount="' . Journal2Utils::getProperty($slide, 'slotamount') . '"';
                }
                if (Journal2Utils::getProperty($slide, 'delay')) {
                    $slide_data[] = 'data-delay="' . Journal2Utils::getProperty($slide, 'delay') . '"';
                }
                $link = $this->model_journal2_menu->getLink(Journal2Utils::getProperty($slide, 'link'));
                if ($link) {
                    $slide_data[] = 'data-link="' . $link . '"';
                    if (Journal2Utils::getProperty($slide, 'link_new_window')) {
                        $slide_data[] = 'data-target="_blank"';
                    }
                }

                $captions = Journal2Utils::getProperty($slide, 'captions', array());
                $captions = Journal2Utils::sortArray($captions);
                $_captions = array();

                foreach ($captions as $caption) {
                    if (isset($caption['status']) && !$caption['status']) continue;
                    $caption_id++;
                    $caption_data = array();
                    $caption_classes = array();

                    if (Journal2Utils::getProperty($caption, 'multilanguage_position', '0') == '0') {
                        $x = Journal2Utils::getProperty($caption, 'x', '1');
                        $y = Journal2Utils::getProperty($caption, 'y', '1');
                    } else {
                        $x = Journal2Utils::getProperty($caption, 'x_ml.value.' . $this->config->get('config_language_id'), '1');
                        $y = Journal2Utils::getProperty($caption, 'y_ml.value.' . $this->config->get('config_language_id'), '1');
                    }

                    if (Journal2Utils::getProperty($caption, 'position', 'custom') == 'custom') {
                        $caption_data[] = 'data-x="' . $x . '"';
                        $caption_data[] = 'data-y="' . $y . '"';
                    } else {
                        $caption_data[] = 'data-x="center"';
                        $caption_data[] = 'data-y="center"';
                        $caption_data[] = 'data-hoffset="' . $x . '"';
                        $caption_data[] = 'data-voffset="' . $y . '"';
                    }

                    if (Journal2Utils::getProperty($caption, 'speed')) {
                        $caption_data[] = 'data-speed="' . Journal2Utils::getProperty($caption, 'speed') .'"';
                    }
                    if (Journal2Utils::getProperty($caption, 'start')) {
                        $caption_data[] = 'data-start="' . Journal2Utils::getProperty($caption, 'start') .'"';
                    }
                    if (Journal2Utils::getProperty($caption, 'endspeed')) {
                        $caption_data[] = 'data-endspeed="' . Journal2Utils::getProperty($caption, 'endspeed') .'"';
                    }
                    if (Journal2Utils::getProperty($caption, 'end')) {
                        $caption_data[] = 'data-end="' . Journal2Utils::getProperty($caption, 'end') .'"';
                    }
                    $caption_data[] = 'data-easing="' . Journal2Utils::getProperty($caption, 'easing', 'Expo.easeOut') . '"';
                    $caption_data[] = 'data-endeasing="' . Journal2Utils::getProperty($caption, 'endeasing', 'Expo.easeOut') . '"';
                    $content = '';
                    $css = array();
                    switch (Journal2Utils::getProperty($caption, 'type')) {
                        case 'image':
                            $image = Journal2Utils::getProperty($caption, 'image', 'no_image.jpg');
                            if (is_array($image)) {
                                $image = Journal2Utils::getProperty($image, $this->config->get('config_language_id'));
                            }
                            if (!$image || !file_exists(DIR_IMAGE . $image)) {
                                $image = 'no_image.jpg';
                            }
                            $image = Journal2Utils::resizeImage($this->model_tool_image, $image);
                            $alt = Journal2Utils::getProperty($caption, 'caption_name');
                            $content = '<img src="' . $image . '" alt="' . $alt .'" />';
                            foreach (Journal2Utils::getShadowCssProperties(Journal2Utils::getProperty($caption, 'shadow')) as $sett) {
                                $css[] = $sett;
                            }
                            foreach (Journal2Utils::getBorderCssProperties(Journal2Utils::getProperty($caption, 'border')) as $sett) {
                                $css[] = $sett;
                            }
                            foreach (Journal2Utils::getShadowCssProperties(Journal2Utils::getProperty($caption, 'shadow_active')) as $sett) {
                                $this->data['global_style'][] = "a#jcaption-{$module}-{$caption_id}:active {" . $sett . " !important; }";
                            }
                            foreach (Journal2Utils::getShadowCssProperties(Journal2Utils::getProperty($caption, 'shadow_hover')) as $sett) {
                                $this->data['global_style'][] = "#jcaption-{$module}-{$caption_id}:hover {" . $sett . " !important; }";
                            }
                            break;
                        case 'text':
                            $caption_classes[] = 'tp-text';
                            $fv = Journal2Utils::getProperty($caption, 'text_font.value.v');
                            $fg = false;
                            if (Journal2Utils::getProperty($caption, 'text_font.value.font_type') === 'google') {
                                $fg = true;
                                $font_name = Journal2Utils::getProperty($caption, 'text_font.value.font_name');
                                $font_subset = Journal2Utils::getProperty($caption, 'text_font.value.font_subset');
                                $font_weight = Journal2Utils::getProperty($caption, 'text_font.value.font_weight');
                                $this->journal2->google_fonts->add($font_name, $font_subset, $font_weight);
                                $this->google_fonts[] = array(
                                    'name'  => $font_name,
                                    'subset'=> $font_subset,
                                    'weight'=> $font_weight
                                );
                                $weight = filter_var(Journal2Utils::getProperty($caption, 'text_font.value.font_weight'), FILTER_SANITIZE_NUMBER_INT);
                                $css[] = 'font-weight: ' . ($weight ? $weight : 400);
                                $css[] = "font-family: '" . Journal2Utils::getProperty($caption, 'text_font.value.font_name') . "'";
                            }
                            if (Journal2Utils::getProperty($caption, 'text_font.value.font_type') === 'system') {
                                if ($fv !== '2') {
                                    $css[] = 'font-weight: ' . Journal2Utils::getProperty($caption, 'text_font.value.font_weight');
                                }
                                $css[] = 'font-family: ' . Journal2Utils::getProperty($caption, 'text_font.value.font_family');
                            }
                            if ($fv === '2') {
                                if (!$fg && ($value = Journal2Utils::getProperty($caption, 'text_font.value.font_weight'))) {
                                    $css[] = 'font-weight: ' . $value;
                                }
                                if ($value = Journal2Utils::getProperty($caption, 'text_font.value.font_style')) {
                                    $css[] = 'font-style: ' . $value;
                                }
                                $value = Journal2Utils::getProperty($caption, 'text_font.value.font_size');
                                if (Journal2Utils::getDevice() === 'phone') {
                                    $value2 = Journal2Utils::getProperty($caption, 'text_font.value.font_size_mobile');
                                    if ($value2 && $value2 !== '---') {
                                        $value = $value2;
                                    }
                                }
                                if ($value && $value !== '---') {
                                    $css[] = 'font-size: ' . $value;
                                }
                                if ($value = Journal2Utils::getProperty($caption, 'text_font.value.text_transform')) {
                                    $css[] = 'text-transform: ' . $value;
                                }
                                if ($value = Journal2Utils::getProperty($caption, 'text_font.value.letter_spacing')) {
                                    $css[] = 'letter-spacing: ' . $value . 'px';
                                }
                            } else {
                                if (Journal2Utils::getProperty($caption, 'text_font.value.font_type') !== 'none') {
                                    $css[] = 'font-size: ' . Journal2Utils::getProperty($caption, 'text_font.value.font_size');
                                    $css[] = 'font-style: ' . Journal2Utils::getProperty($caption, 'text_font.value.font_style');
                                    $css[] = 'text-transform: ' . Journal2Utils::getProperty($caption, 'text_font.value.text_transform');
                                    if ($letter_spacing = Journal2Utils::getProperty($caption, 'text_font.value.letter_spacing')) {
                                        $css[] = 'letter-spacing: ' . $letter_spacing . 'px';
                                    }
                                }
                            }
                            if (Journal2Utils::getProperty($caption, 'text_font.value.color.value.color')) {
                                $css[] = 'color: ' . Journal2Utils::getColor(Journal2Utils::getProperty($caption, 'text_font.value.color.value.color'));
                            }
                            $css[] = 'text-align: ' . Journal2Utils::getProperty($caption, 'text_align', 'center');
                            if (Journal2Utils::getProperty($caption, 'text_bgcolor.value.color')) {
                                $css[] = 'background-color: ' . Journal2Utils::getColor(Journal2Utils::getProperty($caption, 'text_bgcolor.value.color'));
                            }
                            if (Journal2Utils::getProperty($caption, 'text_hover_color.value.color')) {
                                $this->data['global_style'][] = "#jcaption-{$module}-{$caption_id}:hover { color: " . Journal2Utils::getColor(Journal2Utils::getProperty($caption, 'text_hover_color.value.color')) . " !important; }";
                            }
                            if (Journal2Utils::getProperty($caption, 'text_hover_bg_color.value.color')) {
                                $this->data['global_style'][] = "#jcaption-{$module}-{$caption_id}:hover { background-color: " . Journal2Utils::getColor(Journal2Utils::getProperty($caption, 'text_hover_bg_color.value.color')) . " !important; }";
                            }
                            if (Journal2Utils::getProperty($caption, 'text_border')) {
                                $css = array_merge($css, Journal2Utils::getBorderCssProperties(Journal2Utils::getProperty($caption, 'text_border')));
                            }
                            if (Journal2Utils::getProperty($caption, 'text_hover_border_color.value.color')) {
                                $this->data['global_style'][] = "#jcaption-{$module}-{$caption_id}:hover { border-color: " . Journal2Utils::getColor(Journal2Utils::getProperty($caption, 'text_hover_border_color.value.color')) . " !important; }";
                            }
                            if (Journal2Utils::getProperty($caption, 'text_padding_top') !== null) {
                                $css[] = 'padding-top: ' . Journal2Utils::getProperty($caption, 'text_padding_top') . 'px';
                            }
                            if (Journal2Utils::getProperty($caption, 'text_padding_right') !== null) {
                                $css[] = 'padding-right: ' . Journal2Utils::getProperty($caption, 'text_padding_right') . 'px';
                            }
                            if (Journal2Utils::getProperty($caption, 'text_padding_bottom') !== null) {
                                $css[] = 'padding-bottom: ' . Journal2Utils::getProperty($caption, 'text_padding_bottom') . 'px';
                            }
                            if (Journal2Utils::getProperty($caption, 'text_padding_left') !== null) {
                                $css[] = 'padding-left: ' . Journal2Utils::getProperty($caption, 'text_padding_left') . 'px';
                            }
                            if (Journal2Utils::getProperty($caption, 'text_line_height')) {
                                $css[] = 'line-height: ' . Journal2Utils::getProperty($caption, 'text_line_height') . 'px';
                            }
                            $content = Journal2Utils::getProperty($caption, 'text.value.' . $this->config->get('config_language_id'));
                            foreach (Journal2Utils::getShadowCssProperties(Journal2Utils::getProperty($caption, 'shadow')) as $sett) {
                                $css[] = $sett;
                            }
                            foreach (Journal2Utils::getBackgroundCssProperties(Journal2Utils::getProperty($caption, 'bg_image')) as $sett) {
                                $css[] = $sett;
                            }
                            foreach (Journal2Utils::getBackgroundCssProperties(Journal2Utils::getProperty($caption, 'bg_image_hover')) as $sett) {
                                $this->data['global_style'][] = "#jcaption-{$module}-{$caption_id}:hover {" . $sett . " !important; }";
                            }
                            foreach (Journal2Utils::getShadowCssProperties(Journal2Utils::getProperty($caption, 'shadow_active')) as $sett) {
                                $this->data['global_style'][] = "a#jcaption-{$module}-{$caption_id}:active {" . $sett . " !important; }";
                            }
                            foreach (Journal2Utils::getShadowCssProperties(Journal2Utils::getProperty($caption, 'shadow_hover')) as $sett) {
                                $this->data['global_style'][] = "#jcaption-{$module}-{$caption_id}:hover {" . $sett . " !important; }";
                            }
                            break;
                        case 'video':
                            if (Journal2Utils::getProperty($caption, 'video_fullwidth')) {
                                $caption_classes[] = 'fullscreenvideo';
                                $caption_data[] = 'data-forceCover="1"';
                                $width = '100%';
                                $height = '100%';
                            } else {
                                $width = Journal2Utils::getProperty($caption, 'video_width', 100);
                                $height = Journal2Utils::getProperty($caption, 'video_height', 100);
                            }
                            switch (Journal2Utils::getProperty($caption, 'video_type')) {
                                case 'youtube':
                                    $video_id = Journal2Utils::getProperty($caption, 'video_yt_id');
                                    if (!$video_id) continue;
                                    $content = '<iframe src="//www.youtube.com/embed/' . $video_id .'?enablejsapi=1&html5=1&hd=1&wmode=opaque&controls=1&showinfo=0;rel=0;" width="' . $width . '" height="' . $height . '"></iframe>';
                                    break;
                                case 'vimeo':
                                    $video_id = Journal2Utils::getProperty($caption, 'video_vm_id');
                                    if (!$video_id) continue;
                                    $content = '<iframe src="//player.vimeo.com/video/' . $video_id .'?title=0&byline=0&portrait=0;api=1" width="' . $width . '" height="' . $height . '"></iframe>';
                                    break;
                                case 'local':
                                    $file_extensions = array('mp4', 'webm', 'ogg');
                                    $content = '<video class="" preload="none" width="' . $width . '" height="' . $height .'" data-setup="{}"';
                                    if (Journal2Utils::getProperty($caption, 'video_loop', '0') == '1') {
                                        $content .= ' loop';
                                    }
                                    $poster_path = Journal2Utils::getProperty($caption, 'video_path') . '.png';
                                    if (file_exists(DIR_APPLICATION . '../' .  $poster_path)) {
                                        $content .= ' poster="' . $poster_path . '" data-setup="{}"';
                                    }
                                    $content .= '>';
                                    foreach ($file_extensions as $file_extension) {
                                        $video_path = Journal2Utils::getProperty($caption, 'video_path') . '.' . $file_extension;
                                        if (file_exists(DIR_APPLICATION . '../' .  $video_path)) {
                                            $content .= '<source src="' . $video_path . '" type="video/' . $file_extension . '" />';
                                        }
                                    }
                                    $content .= '</video>';
                                    break;
                            }
                            if (Journal2Utils::getProperty($caption, 'video_autoplay')) {
                                $caption_data[] = 'data-autoplay="true"';
                                $caption_data[] = 'data-forcerewind="on"';
                            } else {
                                $caption_data[] = 'data-autoplay="false"';
                            }
                            if (Journal2Utils::getProperty($caption, 'video_autoplayonlyfirsttime')) {
                                $caption_data[] = 'data-autoplayonlyfirsttime="true"';
                            } else {
                                $caption_data[] = 'data-autoplayonlyfirsttime="false"';
                            }
                            if (Journal2Utils::getProperty($caption, 'video_nextslideatend')) {
                                $caption_data[] = 'data-nextslideatend="true"';
                            } else {
                                $caption_data[] = 'data-nextslideatend="false"';
                            }
                            if (!Journal2Utils::getProperty($caption, 'video_volume')) {
                                $caption_data[] = 'data-volume="mute"';
                            }
                            break;
                    }
                    $caption_classes[] = Journal2Utils::getProperty($caption, 'animation_in', 'fade');
                    $caption_classes[] = Journal2Utils::getProperty($caption, 'animation_out', 'fadeout');

                    if (Journal2Utils::getProperty($caption, 'animation_in') === 'customin') {
                        $custom_in = array();
                        $custom_out = array();
                        // in
                        if (Journal2Utils::getProperty($caption, 'custom_in_transition_x') !== null) {
                            $custom_in[] = 'x:' . Journal2Utils::getProperty($caption, 'custom_in_transition_x');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_transition_y') !== null) {
                            $custom_in[] = 'y:' . Journal2Utils::getProperty($caption, 'custom_in_transition_y');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_scale_x') !== null) {
                            $custom_in[] = 'scaleX:' . Journal2Utils::getProperty($caption, 'custom_in_scale_x');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_scale_y') !== null) {
                            $custom_in[] = 'scaleY:' . Journal2Utils::getProperty($caption, 'custom_in_scale_y');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_rotation_x') !== null) {
                            $custom_in[] = 'rotationX:' . Journal2Utils::getProperty($caption, 'custom_in_rotation_x');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_rotation_y') !== null) {
                            $custom_in[] = 'rotationY:' . Journal2Utils::getProperty($caption, 'custom_in_rotation_y');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_rotation_z') !== null) {
                            $custom_in[] = 'rotationZ:' . Journal2Utils::getProperty($caption, 'custom_in_rotation_z');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_in_transform_perspective', '500') !== null) {
                            $custom_in[] = 'transformPerspective:' . Journal2Utils::getProperty($caption, 'custom_in_transform_perspective', '500');
                        }
                        $custom_in[] = 'opacity:' . Journal2Utils::getProperty($caption, 'custom_in_opacity');
                        $custom_in[] = 'transformOrigin:' . Journal2Utils::getProperty($caption, 'transformOriginXin', 'center') . ' ' . Journal2Utils::getProperty($caption, 'transformOriginYin', 'center');
                        // out
                        if (Journal2Utils::getProperty($caption, 'custom_out_transition_x') !== null) {
                            $custom_out[] = 'x:' . Journal2Utils::getProperty($caption, 'custom_out_transition_x');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_transition_y') !== null) {
                            $custom_out[] = 'y:' . Journal2Utils::getProperty($caption, 'custom_out_transition_y');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_scale_x') !== null) {
                            $custom_out[] = 'scaleX:' . Journal2Utils::getProperty($caption, 'custom_out_scale_x');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_scale_y') !== null) {
                            $custom_out[] = 'scaleY:' . Journal2Utils::getProperty($caption, 'custom_out_scale_y');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_rotation_x') !== null) {
                            $custom_out[] = 'rotationX:' . Journal2Utils::getProperty($caption, 'custom_out_rotation_x');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_rotation_y') !== null) {
                            $custom_out[] = 'rotationY:' . Journal2Utils::getProperty($caption, 'custom_out_rotation_y');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_rotation_z') !== null) {
                            $custom_out[] = 'rotationZ:' . Journal2Utils::getProperty($caption, 'custom_out_rotation_z');
                        }
                        if (Journal2Utils::getProperty($caption, 'custom_out_transform_perspective', '500') !== null) {
                            $custom_out[] = 'transformPerspective:' . Journal2Utils::getProperty($caption, 'custom_out_transform_perspective', '500');
                        }
                        $custom_out[] = 'opacity:' . Journal2Utils::getProperty($caption, 'custom_out_opacity');
                        $custom_out[] = 'transformOrigin:' . Journal2Utils::getProperty($caption, 'transformOriginXout', 'center') . ' ' . Journal2Utils::getProperty($caption, 'transformOriginYout', 'center');
                        $caption_data[] = 'data-customin="' . implode(';',$custom_in) . '"';
                        $caption_data[] = 'data-customout="' . implode(';',$custom_out) . '"';
                    }

                    $_captions[] = array(
                        'id'            => "{$module}-{$caption_id}",
                        'content'       => $content,
                        'data'          => implode(' ', $caption_data),
                        'classes'       => implode(' ', $caption_classes),
                        'css'           => implode('; ', $css),
                        'link'          => $this->model_journal2_menu->getLink(Journal2Utils::getProperty($caption, 'link')),
                        'target'        => Journal2Utils::getProperty($caption, 'link_new_window') ? ' target="_blank"' : ''
                    );
                }

                $image = Journal2Utils::getProperty($slide, 'image');
                if (is_array($image)) {
                    $image = Journal2Utils::getProperty($image, $this->config->get('config_language_id'));
                }
                if (!file_exists(DIR_IMAGE . $image)) {
                    $image = 'no_image.jpg';
                }

                $thumb = Journal2Utils::getProperty($slide, 'thumb');
                if (is_array($thumb)) {
                    $thumb = Journal2Utils::getProperty($thumb, $this->config->get('config_language_id'));
                }

                if (!$thumb || !file_exists(DIR_IMAGE . $thumb)) {
                    $thumb = $image;
                }

                $slide_data[] = 'data-thumb="' . Journal2Utils::resizeImage($this->model_tool_image, $thumb, $this->data['js_options']['thumbWidth'], $this->data['js_options']['thumbHeight'], 'crop') . '"';

                $_slides[] = array(
                    'image'     => Journal2Utils::resizeImage($this->model_tool_image, $image),
                    'name'      => Journal2Utils::getProperty($slide, 'slide_name'),
                    'data'      => implode(' ', $slide_data),
                    'captions'  => $_captions
                );
            }

            $this->data['module'] = $module;
            $this->data['slides'] = $_slides;
            $this->data['js_options']['thumbAmount'] = min(Journal2Utils::getProperty($this->data['js_options'], 'thumbAmount'), count($this->data['slides']));
            $this->data['timer'] = Journal2Utils::getProperty($module_data, 'timer');
            $this->data['preload_images'] = Journal2Utils::getProperty($module_data, 'preload_images', '1');
            $this->data['dummy_image'] = Journal2Utils::resizeImage($this->model_tool_image, 'data/journal2/transparent.png');

            $this->template = 'journal2/module/slider_advanced.tpl';

            if (self::$CACHEABLE === true) {
                $html = Minify_HTML::minify($this->render(), array(
                    'xhtml' => false,
                    'jsMinifier' => 'j2_js_minify'
                ));
                $this->journal2->cache->set($cache_property, $html);
                $this->journal2->cache->set($cache_property . '_fonts', json_encode($this->google_fonts));
            }
        } else {
            if ($fonts = $this->journal2->cache->get($cache_property . '_fonts')) {
                $fonts = json_decode($fonts, true);
                if (is_array($fonts)) {
                    foreach ($fonts as $font) {
                        $this->journal2->google_fonts->add($font['name'], $font['subset'], $font['weight']);
                    }
                }
            }
            $this->template = 'journal2/cache/cache.tpl';
            $this->data['cache'] = $cache;
        }

        $this->document->addStyle('catalog/view/theme/journal2/lib/rs-plugin/css/settings.css');
        $this->document->addScript('catalog/view/theme/journal2/lib/rs-plugin/js/jquery.themepunch.tools.min.js');
        $this->document->addScript('catalog/view/theme/journal2/lib/rs-plugin/js/jquery.themepunch.revolution.js');

        $output = $this->render();

        Journal2::stopTimer(get_class($this));

        return $output;
    }

}


text:
Bombs Away Video Games Corporation has forecasted the following monthly sales S 99,000 July $ 44,000...
Bombs Away Video Games Corporation has forecasted the following monthly sales S 99,000 July $ 44,000 44,000 54,000 84,000 104,000 122,000 January February March ril May June 92,000 August 24,000September 24,000 October 19,000 November 34,000 December Total annual sales $744,000 Bombs Away Video Games sells the popular Strafe and Capture video game. It sells for $5 per unit and costs $2 per unit to produce. A level production policy is followed. Each month's production is equal to annual sales (in units) divided by 12. Of each month's sales, 20 percent are for cash and 80 percent are on account. All accounts receivable are collected in the month after the sale is made a. Construct a monthly production and inventory schedule in units. Beginning inventory in January is 24,000 units Bombs Away Video Games Corporation Production and Inventory Schedule in Units Beginning Production 12,400 12,400 12,400 12,400 12,400 12,400 12,400 12,400 12,400 12,400 12,400 12,400 Ending Invento Sales Invent 24,000 16,600 10,600 18,200 25,800 34,400 40,000 43,600 47,200 48,800 44,400 36,000 19,800 18,400 4,800 4,800 3,800 6,800 8,800 8,800 10,800 16,800 20,800 24,400 16,600 10,600 18,200 25,800 34,400 40,000 43,600 47,200 48,800 44,400 36,000 24,000 January February March April June July August September October November December
b. Prepare a monthly schedule of cash receipts. Sales in December before the planning year are $100,000 Bombs Away Video Games Corporation Cash Receipts Schedule January February March April May June Sales Cash receipts Cash sales Prior month's credit sales Total cash receipts Bombs Away Video Games Corporation Cash Receipts Schedule July August September October November December Sales Cash receipts Cash sales Prior month's credit sales Total cash receipts c. Prepare a cash payments schedule for January through December. The production costs of $2 per unit are paid for in the mon in which they occur. Other cash payments, besides those for production costs, are $44,000 per month Bombs Away Video Games Corporation Cash Payments Schedule January February March April May June Production cost Other cash payments Total cash payment:s 0
Bombs Away Video Games Corporation Cash Payments Schedule July August September October November December Production cost Other cash payments Total cash payments d. Prepare a monthly cash budget for January through December using the cash receipts schedule from part b and the cash payments schedule from part c. The beginning cash balance is $5,000, which is also the minimum desired. (Negative amounts should be indicated by a minus sign.) Bombs Away Video Games Corporation Cash Budget January February March April May June Beginning cash Net cash flow Cumulative cash balance Monthly loan or (repayment) Ending cash balance Cumulative loan balance Bombs Away Video Games Corporation Cash Budget July August September October November December Beginning cash Net cash flow Cumulative cash balance Monthly loan or (repayment) Ending cash balance Cumulative loan balance
Solution b:
Bombs Away Video games Corporation
Cash Receipts Schedule
Sales $99,000 $92,000 $24,000 $24,000 $19,000 $34,000 $44,000 $44,000 $54,000 $84,000 $1,04,000 $1,22,000
Cash Receipts:
Cash Sales (20% of sales) $19,800 $18,400 $4,800 $4,800 $3,800 $6,800 $8,800 $8,800 $10,800 $16,800 $20,800 $24,400
Prior Month's credit sales (80% of prior month sales) $80,000 $79,200 $73,600 $19,200 $19,200 $15,200 $27,200 $35,200 $35,200 $43,200 $67,200 $83,200
Total Cash Receipts $99,800 $97,600 $78,400 $24,000 $23,000 $22,000 $36,000 $44,000 $46,000 $60,000 $88,000 $1,07,600
Cash Payments Schedule
Production costs (12400*$2) $24,800 $24,800 $24,800 $24,800 $24,800 $24,800 $24,800 $24,800 $24,800 $24,800 $24,800 $24,800
Other Cash Payments $44,000 $44,000 $44,000 $44,000 $44,000 $44,000 $44,000 $44,000 $44,000 $44,000 $44,000 $44,000
Total Cash Payments $68,800 $68,800 $68,800 $68,800 $68,800 $68,800 $68,800 $68,800 $68,800 $68,800 $68,800 $68,800
Cash Budget
Beginning Cash $5,000 $36,000 $64,800 $74,400 $29,600 $5,000 $5,000 $5,000 $5,000 $5,000 $5,000 $5,000
Net Cash Flow $31,000 $28,800 $9,600 -$44,800 -$45,800 -$46,800 -$32,800 -$24,800 -$22,800 -$8,800 $19,200 $38,800
Cumulative Cash Balance $36,000 $64,800 $74,400 $29,600 -$16,200 -$41,800 -$27,800 -$19,800 -$17,800 -$3,800 $24,200 $43,800
Monthly loan or (repayment) $0 $0 $0 $0 $21,200 $46,800 $32,800 $24,800 $22,800 $8,800 -$19,200 -$38,800
Ending Cash Balance $36,000 $64,800 $74,400 $29,600 $5,000 $5,000 $5,000 $5,000 $5,000 $5,000 $5,000 $5,000
Cumulative loan balance $0 $0 $0 $0 $21,200 $68,000 $1,00,800 $1,25,600 $1,48,400 $1,57,200 $1,38,000 $99,200
4. Draw the structure of a functional antigen receptor on T cells. (1.0)
4. Draw the structure of a functional antigen receptor on T cells. (1.0)...
Question 9 In 2013, the highest incidence of poverty was for women living in households with...
Question 9 In 2013, the highest incidence of poverty was for women living in households with no husband present. individuals over 65. Hispanic families. children under 18....
What is a model you could use to demonstrate the process of diffusion?
What is a model you could use to demonstrate the process of diffusion?...
3. Pb(OH)2 (8) is amphoteric and forms the complex ion Pb(OH)/(aq) with excess OH in solution....
3. Pb(OH)2 (8) is amphoteric and forms the complex ion Pb(OH)/(aq) with excess OH in solution. Write the balanced equilibrium equation of Pb(OH)2 (s) in the presence of excess hydroxide. 4. A solution contains Pb(NO3)2 and Zn(NO3)2. Consult the solubility table and answer the following questions: a....
Electronics1. It's a multiple choices question. use the formula sheet if needed (the last picture). Question...
Electronics1. It's a multiple choices question. use the formula sheet if needed (the last picture). Question 2 CIRCUIT A2 (2.5 Marks) non dahil ki VC R. Fig. 2: CIRCUIT A.2 Statement: Sketching relevant output (V-IC) characteristics decide on Q-point coordinates and DC load-line details: Th...
A bug collector collects bugs every day for one week (7 days). Write a program that...
A bug collector collects bugs every day for one week (7 days). Write a program that asks the user for the total number of bugs they collected for each day and stores each number in a list. Use a loop to calculate the total number of bugs and display the result. (Py...
THIS Year Las Year $ 12 230 $ -4 309 156 9 470 514 (85) 429...
THIS Year Las Year $ 12 230 $ -4 309 156 9 470 514 (85) 429 28 $ 927 195 5 442 435 (71) 364 34 $840 Assets Cash Accounts receivable Inventory Prepaid expenses Total current assets Property, plant, and equipment Less accumulated depreciation Net property, plant, and equipment Long-term investments To...
Provide a summary of the importance of financial companies, using the following issues: 1- The difference...
Provide a summary of the importance of financial companies, using the following issues: 1- The difference between financial and non-financial companies 2- The difference between banks and insurance companies (in terms of accounting and financing) 3- What do financial companies offer to the Palestini...
2. A company had a "Wall holding back water" (0.5 points) a. What is the Threat...
2. A company had a "Wall holding back water" (0.5 points) a. What is the Threat in this case?. b. What is the Vulnerability? .. c. How the threat could be blocked?.. 3. A teacher is entering the grades in peoplesoft and save them without being reviewed. (0.5 points) a. What is the Threat in ...
The economy of Euphoria has the following economic data. Year 2016 2017 2018 Nominal Gross Domestic Produc...
The economy of Euphoria has the following economic data. Year 2016 2017 2018 Nominal Gross Domestic Product ($ billions) 1,625 1,675 1,697.50 Real Gross Domestic Product ($ billions) 2015 = 1,568.5 1,625 1,649.75 1,702.50 GDP deflator 100 101.53 99.71 % ch...
D. If the force F acting on a particle of mass m is parallel to its...
D. If the force F acting on a particle of mass m is parallel to its velocity, use Fdp/dt to show that F m(1 - v/c?)dv/dt where v is the speed of the particle, and f is the relativistic momentum...
CHEM 0910 Oxygen-Group-Containing Organic Compounds Chapter 12 Taking a Nomenclature 'Break' - Please name each of...
CHEM 0910 Oxygen-Group-Containing Organic Compounds Chapter 12 Taking a Nomenclature 'Break' - Please name each of the following compounds (or draw out the compound described by the name), and classify each as an alkane, alkene, alkyne, alcohol, thiol, phenol, ether, ketone, or aldehyde. 2-M...
Resources Quantum numbers arise naturally from the mathematics used to describe the possible states of an...
Resources Quantum numbers arise naturally from the mathematics used to describe the possible states of an electron in an atom. The four quantum numbers, the principal quantum number (n), the angular momentum quantum number (C), the magnetic quantum number (me), and the spin quantum number (m) have s...
Is notably higher in terms of basic rep rate and case fatality rate; these are in...
is notably higher in terms of basic rep rate and case fatality rate; these are in addition to the lack of immunity and effective treatment C. SARS COV-2 (causative virus for COVID 19) is roughly equal in terms of basic repro rate and case fatality rate; the only thing that makes it worse is the lack...
Figure 3-1 Paul curt Wheat Wheet 10 Com Com Refer to Figure 3-1. The opportunity cost...
Figure 3-1 Paul curt Wheat Wheet 10 Com Com Refer to Figure 3-1. The opportunity cost of 2 bushels of corn for Cliff is 12 bushels of wheat. 3 bushels of wheat. 2 bushels of wheat. 6 bushels of wheat....
Find the moment of the 120 lb force about point A. Use the algebraic method for...
Find the moment of the 120 lb force about point A. Use the algebraic method for the magnitude (F.d) and the right hand rule for determining the direction. 40 B 36 25 F 120 lb X...
QUESTION 4 Table: Willingness to Pay Maximum Willingness to Pay for Good A and Good B...
Gentleman is 6'3" tall and 156 lbs, calculate his BMI and % usual body weight
I have attached photos for all the question and its parts. please help me solve this...
Q2. For many years, Lawton Industries has manufactured prefabricated houses where the houses are constructed in...
I need a little assistance with finding the chemical name of this nmr pPM 100 PPM
Historically, mental health care was provided in institutions after a patient was "committed." This practice was...
Gordon Grumps is married and files separately. During 2019, he had the following capital gains and...
Exercise 2-18 (Algo) Cash versus accrual accounting (LO2-9) Stanley and Jones Lawn Service Company (S&J) maintains...
Harwell Company manufactures automobile tires. On July 15, 2021, the company sold 1,600 tires to the...
Brief Exercise 14-08 In alphabetical order below are current asset items for Roland Company's balance sheet...
My Blackboard Content-, Χ | The Charges in The Figure × LON-CAPA Part 1 LON-CAPA Part...
Please can someone help with the formula sheet??? Thanks Quantity Variable SI Units W (in Eq....
A sandwich vendor has four meat options: turkey, ham, roast beef, and salami. From past experience,...
Problem. Alex Rodriguez is interested in the relationship between the number of games won by a...
Question 4 (10 Marks) The Brightlight Corporation uses multicolored molding to make plastic lamps. The molding...
Consider the mechanism. Step 1: Step 2: Overall: 2A B B+C HD 2A+ C D equilibrium...
19. Mention which of the two output gap occurs in the following cases: recessionary gap or...
A 23 year old woman developed sore throat, fever and swollen glands in her neck. The...
The inventory of Royal Decking consisted of five products. Information about the December 31, 2021, inventory...
This my question and i only need help with step 4,5,6,7,8 and thats it. Step 1...

redpajama_set_name: RedPajamaCommonCrawl


On Wednesday, the Honor 8X and the Honor 8X Max smartphone were launched in China. Both the Honor 8X and Honor 8 Max are made of back panel glass of the same smartphone. Both smartphones are quite advanced. Like the iPhone X, the display is also featured in Honor 8X. On the other hand, Watercolor display is available in Honor 8X Max.


Ms. Wachter is a medical writer with more than 15 years of experience in writing about medical news for more than 20 medical specialty publications, covering endocrinology, pain, neurology, cardiology, surgery, hematology, and radiology. She has also worked as a science writer/editor for the National Institute of Mental Health.
She holds bachelor's degrees in journalism and chemistry.


A Plymouth MP has challenged Theresa May to make changes to Universal Credit due to an "entirely predictable fault".
Luke Pollard, MP for Plymouth Sutton and Devonport raised concerns that claimants who pay their rent weekly, fortnightly or four weekly, would be losing out on money due to the way payments are calculated.
This year there are 53 weekly rent payments, but there are only 52 Universal Credit payments.
This is because the six-in-one benefit is calculated differently to the old benefit system.
Universal Credit has pushed people who are struggling to extreme lengths, which has been reported widely in the media.
Some people have been forced into rent arrears, with some even facing eviction.
Vulnerable women said they have been turned to prostitution to feed their children after not receiving any of their payments, and a desperate Plymouth man who threatened to steal just so he was able to afford Christmas presents.
The latest problem with the system was brought to Mr Pollard's attention by Plymouth Community Homes, as many housing associations weekly rent is due on a Monday.
He then used today's question at Prime Minister's Question to ask Mrs May for action to address the issue with the system for tenants in Plymouth and across the country.
Plymouth Community Homes has written to all their residents to make them aware that they will have to find this money and sent out an advisory leaflet.
The Department of Work and Pensions have acknowledged that this is an issue which will impact many people receiving Universal Credit.
The DWP has said it is waiting for the Government to take action to address the problem - but at the moment, the problem has been left to housing associations and the tenants to cover.
Mr Pollard said: "Although some people are better off on Universal Credit, many are not.
"We need Universal Credit to be fixed before it is rolled out any further and problems like the one I highlighted to the Prime Minister today need urgent action.
"It is simply not right that people risk going into debt because the Universal Credit system cannot recognise that there are some years with 53 Mondays not 52, or some months with five Mondays rather than four.
"We know what the calendar looks like, so why does Universal Credit fall over on such a basic error? I don't want a single person in rented accommodation in Plymouth to lose out because of this fault with UC.
"The Department for Work and Pensions knows about this issue and they haven't fixed it yet so I wanted to take concerns of social housing providers in Plymouth to the very top.
The 53-week year issue will arise every five or six years because of the calculation used to convert weekly rent to a calendar monthly figure and this was recognised by the Government in the Welfare Reform and Work Act 2016.
The housing element of UC payments is calculated by multiplying the weekly rent and service charge by 52 and then dividing by 12 to produce a monthly amount.
Since the roll out of UC 2019/20 is the first year this has occurred, but it will happen again in the future if no action is taken.
Theresa May responded to the Plymouth MP's question, stating that the "shortfall is immediately recovered".
The Prime Minister said: "Of course it's worth pointing out, no year actually contains 53 weeks.
"So if somebody does pay a 53rd rent payment in a given year, this payment will cover some days in the subsequent year and will mean that the following month only has four payment dates, and as such the claimants will be overpaid for their housing and a shortfall is immediately covered.
"But it is about the way in which the days fall, and making sure the system does work for everybody."


Yesterday I posted the Help Japan poster from agency Wieden+Kennedy. Here are three new variations on the same Japan earthquake and tsunami theme.
More work is welcome, let us know.
Advertising Agency: BBDO, Ecuador; Creative Director: Guillermo Valverde; Art Director: Cristian Cedeño; Copywriter: Jacinto Alvear; source Ads of the World.


Do you want work clothing that strenghtens your companies unity?
Or special textiles that show affiliation to your brand?
Maybe your just want a Hoodie with your picture or your logo on it? DOMMY.ART can provide it.


text:
Solid Custom Floor Coatings Privacy Policy
This privacy policy has been compiled to better serve those who are concerned with how their 'Personally Identifiable Information' (PII) is being used online. PII, as described in US privacy law and information security, is information that can be used on its own or with other information to identify, contact, or locate a single person, or to identify an individual in context. Please read our privacy policy carefully to get a clear understanding of how we collect, use, protect or otherwise handle your Personally Identifiable Information in accordance with our website and its privacy policy.
When ordering or registering on our site, as appropriate, you may be asked to enter your name, email address, phone number or other details to help you with your experience.
We collect information from you when you fill out a form or enter information on our site.
• To follow up with them after correspondence (live chat, email or phone inquiries)
Your personal information is contained behind secured networks and is only accessible by a limited number of persons who have special access rights to such systems and are required to keep the information confidential. In addition, all sensitive/credit information you supply is encrypted via Secure Socket Layer (SSL) technology.
You can choose to have your computer warn you each time a cookie is being sent, or you can choose to turn off all cookies. You do this through your browser settings. Since each browser is a little different, look at your browser's Help Menu to learn the correct way to modify your cookies.
If you turn cookies off, it won't affect the user's experience.
Occasionally, at our discretion, we may include or offer third-party products or services on our website. These third-party sites have separate and independent privacy policies. We, therefore, have no responsibility or liability for the content and activities of these linked sites. Nonetheless, we seek to protect the integrity of our site and welcome any feedback about these sites.
Users can set preferences for how Google advertises to you using the Google Ad Settings page. Alternatively, you can opt out by visiting the Network Advertising Initiative Opt-Out page or by using the Google Analytics Opt-Out Browser Add-on.
Once this privacy policy is created, we will add a link to it on our homepage or as a minimum, on the first significant page after entering our website.
When it comes to the collection of personal information from children under the age of 13 years old, the Children's Online Privacy Protection Act (COPPA) puts parents in control. The Federal Trade Commission, the United States' consumer protection agency, enforces the COPPA Rule, which spells out what operators of websites and online services must do to protect children's privacy and safety online.
https://www.utahgaragefloorcoatings.com/ and we will promptly remove you from ALL correspondence.
If there are any questions regarding this privacy policy or an part of said privacy policy, you may contact us using the information below.
Solid Custom Floor Coatings – Ogden


They were both tricky, though. The Wayback Exchange one because I had to work my way around, or rather with, a very important piece of canon with all sorts of consequences and implications for the story I had to write. The Be The First! story was difficult not due to an excess of canon (there's only a handful of issues), but rather because a couple of details in there, if taken seriously (under Watsonian conditions that I think I can assume but aren't spelled out by the source material) force you to do a huge reframing of the whole situation. It feels weird to do that in the *first* fic in a fandom, but you do what you have to do.
Another challenge signed up for, because why not?
Just signed up for Be The First 2019. Somewhat surprisingly, I looked and I don't think I've done it before. Perhaps the explanation is that it took me a long while to find a fandom to be the first for (Fandom. Kinda scarily impressive when you think about it). I ended up choosing Cemetery Beach — Warren Ellis minis seem to lack fics somewhat more reliably than others, which might be a function of his often going off-script, so to speak, or just a smaller readership than my liking of them would make me believe. I am very annoyed, though, that there are three fics for Injection. Three. Either zero or a lot would've been more acceptable numbers.


text:
Scholarly Commons
Scholarly Commons > HCA Healthcare Journal > Vol. 2 > Iss. 3 (2021)
Impact of a Meds to Beds Program on Re-presentation Rates in Medical and Surgical Patients at a Community Hospital
Nowshin Islam, Mission HospitalFollow
Aubrie Rafferty, Mission HospitalFollow
Elizabeth L. Michalets, Mission HospitalFollow
transitions of care; bedside medication delivery; patient readmission; hospitalization; medication adherence; pharmaceutical services; prescriptions; medication therapy management; disease management
Other Pharmacy and Pharmaceutical Sciences
While the benefits of bundled transitions of care services are understood, only a limited number of studies have analyzed the impact of a stand-alone bedside medication delivery service on repeat hospital encounters, and those published have reported mixed results.
A retrospective analysis was conducted in medical and surgical patients at a large community hospital. Adult patients discharged from either the cardiology, medicine, pulmonary, orthopedic/spine surgery, or women's surgery unit and prescribed at least one new prescription upon discharge to home between September 2015 and March 2018 were included. The primary objective was to compare unplanned 30-day re-presentation rates in patients who received Meds to Beds services to those who did not. The secondary objective was to compare 30-day re-presentation rates by patient type. Re-presentation was defined as an inpatient admission, emergency department visit, or observational encounter for any diagnosis within the six-hospital health system. Chi-square and logistic regression tests were used to assess statistical significance, and the study was powered to detect a difference in the primary objective.
A total of 45,546 patients were included. Of those, 4,286 received Meds to Beds services (Intervention Group, IG) while 41,260 patients did not (Control Group, CG). Overall 30-day re-presentation rate was not statistically different (15% IG versus 15.3% CG, OR 1.0; 95% CI 0.9-1.1; p = 0.76). However, the 30-day re-presentation rate was statistically lower for women's surgery (12.8% IG versus 15.6%, CG p = 0.03, NNT 36) and orthopedics/spine surgery patients (7.3% IG versus 10.2% CG, p < 0.01, NNT 34).
While there was no statistically significant differences in overall 30-day re-presentation rates, there were significant reductions in two surgical patient subgroups. Avoidance of re-presentations and generation of prescription revenue outweighed program costs.
Islam, Nowshin; Rafferty, Aubrie; and Michalets, Elizabeth L. (2021) "Impact of a Meds to Beds Program on Re-presentation Rates in Medical and Surgical Patients at a Community Hospital," HCA Healthcare Journal of Medicine: Vol. 2: Iss. 3, Article 10.
Available at: https://scholarlycommons.hcahealthcare.com/hcahealthcarejournal/vol2/iss3/10
Other Pharmacy and Pharmaceutical Sciences Commons
Research Ethics and Author Usage Policies
Health Equity in Medicine
Research, Education, Practice and Policy in the COVID-19 Era
All Issues Vol. 3, Iss. 6 Vol. 3, Iss. 5 Vol. 3, Iss. 4 Vol. 3, Iss. 3 Vol. 3, Iss. 2 Vol. 3, Iss. 1 Vol. 2, Iss. 6 Vol. 2, Iss. 5 Vol. 2, Iss. 4 Vol. 2, Iss. 3 Vol. 2, Iss. 2 Vol. 2, Iss. 1 Vol. 1, Iss. 6 Vol. 1, Iss. 5 Vol. 1, Iss. 4 Vol. 1, Iss. 3 Vol. 1, Iss. 2 Vol. 1, Iss. 1 Vol. 1, Iss. 0
Scholarly Commons | My Account | Accessibility Statement
Privacy bepress Copyright


The City of Caldwell is named for U.S. Senator, Alexander Caldwell. A brief biography is given here.
ALEXANDER CALDWELL. Among the notable men in the history of Kansas, few are more deserving of perpetuation in its annals than is Alexander Caldwell. From the time when he came to Leavenworth, in the spring of 1861, until his recent retirement from the cares of active life, he was identified with events and movements that made Kansas history in numerous and diversified directions. A pioneer in the work of transporting military supplies to the army posts west of the Missouri River, with the coming of the railroads he turned his attention to railroad construction and management; as a manufacturer he became one of the prominent figures in Fort Leavenworth's industrial life; as a financier he was the directing head of what became one of the leading financial institutions of the state; and in public life he held positions of high honor and trust. He was the father of the Soldiers' Home at Leavenworth, and was also instrumental in the securing of an appropriation for the establishment of the United States Military Prison (now the Federal Penitentiary) at this point. His entire career has been one which has reflected honor and credit upon his splendid abilities, his absolute integrity and his devotion to high ideals of citizenship.
Alexander Caldwell comes of notable ancestry. Born in Huntingdon County, Pennsylvania, March 1, 1830, he is a son of James Caldwell and a grandson of Alexander Caldwell, who was the progenitor of the family in America. The elder Alexander Caldwell was a native of County Donegal, Ireland, and on coming to America settled in New Jersey, where he followed farming in connection with operating a stone quarry, and where he died. James Caldwell, his son, was also a native of Ireland, and for years operated a charcoal furnace and iron furnace in Pennsylvania. He married Jane Matilda Drake, a daughter of James Drake, who was the proprietor of Drake's Ferry, across the Juniata River, ten miles below Huntingdon, Pennsylvania, and who was a member of the family of Sir Francis Drake, and a lineal descendant of Sir Thomas Drake of England. James Caldwell served in our war with Mexico, being captain of Company M, Second Regiment, Pennsylvania Volunteer Infantry, and was mortally wounded at the battle of Chapultepec, September 12-14, 1847, and died.
Alexander Caldwell, of Leavenworth, had but limited advantages in his boyhood. He was clerk in a store at Columbia, Lancaster County, Pennsylvania, when his father enlisted in the Mexican war, being seventeen years of age at this time, and, leaving his clerkship, overtook his father at Pittsburgh and persuaded the elder man to allow him to join Company M as a private. Thus, at an age when he should have been in school, he fought at National Bridge, Puebla, Contreras, Churubusco, Chapultepec, Monterey and the skirmishes around the city of Mexico. He returned to his native state fatherless, and for a time found employment as cashier in the First National Bank of Columbia, where he gained a thorough knowledge of banking, which was to stand him in good stead in later years.
Mr. Caldwell came to Leavenworth, Kansas, in the spring of 1861, and for a time contracted with the United States Government to transport army supplies to the military posts west of the Monroe River, and to Salt Lake City, under the firm name of A. Caldwell & Company. While engaged in this work he had considerable dealings with the Mormons at Salt Lake City, and notably with the great leader, Brigham Young. In this transporting work he employed as many as 5,000 teams and 60,000 head of oxen, and provided employment for upwards of 5,000 men. He continued in this line of endeavor until the building of the railroads. During this time he became interested in railroad construction work, and had the contract for the building of the Missouri Pacific Railroad from Kansas City to Leavenworth in 1866 and in 1869 extended this line to Atchison. He remained as president of the road until it was sold. With others, he organized the Kansas Central Railroad Company and built its line from Leavenworth to Miltonville, Kansas, later serving as vice president of the company. During this time Mr. Caldwell had become one of the foremost figures and a potent factor in affairs in Kansas. In 1871 he was elected United States Senator to succeed Senator Ross, who was the successor of Senator Lane, and served in the session of 1872 and 1873, then resigning his exalted position to attend to a multiplicity of other duties. As senator, he was instrumental in having passed the bill that required one term annually of the United States Court be held at Leavenworth, was instrumental in securing an appropriation for the establishment of the United States Military Prison (now the United States Penitentiary) at Fort Leavenworth, was instrumental in having the Old Soldiers' Home established here, and on two occasions when Fort Leavenworth was in imminent danger of being abolished was the prime factor in having it retained here.
From 1874 until 1888, with Mr. Caldwell as its president, the Kansas Manufacturing Company, at Leavenworth, was one of the important commercial houses of the West, furnished employment for hundreds of men, and the Caldwell wagon, manufactured by the concern, was sold by the thousands all over, the western part of the country. When the First National Bank at Leavenworth was established, Mr. Caldwell became a depositor, and later a director. In January, 1897, he was elected president of this institution, a position he has since held, and to his keen business acumen the bank is indebted for the position it occupies today as one of the foremost financial institutions in Kansas. So long as history endures, the name of Alexander Caldwell will stand in a foremost position among the great men of Kansas.
Mr. Caldwell married Miss Mace A. Heise, of Columbia, Pennsylvania, a member of an old and honored family of that region, and three daughters were born to that union: Minnie, Emily and Pattie, the last-named of whom died in 1889, at the age of eighteen years, unmarried. Minnie became the wife of Dr. Squire S. Taylor, who died in December, 1889. Two children were born to them: Geraldine Caldwell, now the wife of Maj. Clarence O. Sherill, United States Engineer; and Alexander Caldwell, who, in order to perpetuate his grandfather's name, dropped the name of Taylor and is known as Alexander Caldwell only. Mrs. Taylor later married John D. Robertson, who died January 6, 1908. Emily married Harry C. Grace, now residing at Washington, D. C., and is the mother of one child: Olive Caldwell.
A Standard History of Kansas and Kansans, written & compiled by William E. Connelley, Secretary of the Kansas State Historical Society, Topeka. Chicago: Lewis Publishing Company, copyright 1918; transcribed by David Rago, student from USD 508, Baxter Springs Middle School, Baxter Springs, Kansas, 1-28-99.
Caldwell, the terminus of the Southern Central & Fort Scott Railway, was located on March 7, 1871, and named in honor of United States Senator Caldwell, of Leavenworth. The town company which accomplished this location, consisted of Charles Gilbert, president; G. A. Smith, secretary; C. H. Stone, treasurer and J. H. Dagner. The land comprised in the town site was 113 acres, on Fall Creek, and was purchased from the Government. The first building erected was the log store of C. H. Stone, put up by the town company, the second, also of logs, was built by Charles Sullivan. The first frame building was put up by George Haines, the spring of 1872, and was used for hotel purposes. The first physician was B. W. Fox, the first attorney, L. B. Hasbrook, who was hung for complicity in horse thieving, on Slate Creek, in 1874. The fist wedding in the town occurred on August 23, 1872, the contracting parties being George Grant and Christina Reid, and Dr. B. W. Fox, officiating. Up to 1879 the town was little more than a trading point, and had in that year but 260 inhabitants. With the railway, came a rapid growth which has made Caldwell one of the liveliest cities of 1,500 inhabitants in the West, and will soon raise it to the grade of second class cities.
On July 22, 1879, Caldwell presented a petition to be incorporated as a city of the third class. An election was ordered for August 7, and resulted in the selection of N. J. Dixon, Mayor; J. D. Kelly, Police Judge; J. A. Blair, F. G. Hussen, H. C. Challes and A. Rhoades, Councilmen. J. D. Kelly, Jr., was appointed City Clerk. In September, 1879, Mayor Dixon died, and C. M. Hollister, was elected to fill vacancy. In 1880, M. Meaglier was elected Mayor, W. N. Hubbell in 1881 and A. M. Colson in 1882. J. D. Kelly has held the office of Police Judge from the organization of the city to the present time. J. D. Kelly, Jr., was City Clerk in 1880; L. M. Lange, in 1881, and J. W. Nyce, in 1882. The City Council for 1882-83, consists of A. McLain, J. W. Dobson, M. H. Bennett, C. W. Willett and William Corsine.
A postoffice was established at this point in 1871, and C. H. Stone kept it in his log store building, the first in the town site. Stone was succeeded by G. W. Robinson, John A. Blair, John H. Sain, John A. Blair, a second term and S. Donaldson the present Postmaster. The business of the office has been transacted in the old log store, Sain's drug store, at the corner of Fourth and Main, Fifth and Main, the Hubbell building and a store near Sixth and Main streets, where it remained until November, 1881, when it was removed to its present quarters. The first money order was issued on April 15, 1881, and transferred money from S. W. Dutton, of Caldwell, to Susie Dutton, at El Dorado. The office became a Presidential one, July 1, 1881.
SCHOOLS, CHURCHES, AND THE PRESS.
The Caldwell school district was organized on September 21, 1872. Its teachers have been - A. B. Castleman, Miss Fannie Herrington, Miss Carrie Dixon, J. V. Ratliff, J. C. Goodell, J. D. Kelly, Jr., S. S. Clark, and the present force, which consists of N. D. Stevenson, Principal, Miss Flora Sweet, Miss Mattie Oatman, Miss Mary Vasey and Geo. W. Ewing. The first school house was a frame building 20x30 feet, and costing $1,200. This was in use until 1880, when another frame 30x40 feet, and costing $1,700, was built. The present fine brick schoolhouse was erected in 1882. It is 56x76 feet, two stories in height, cost $15,000, and has seven rooms exclusive of those in the basement. It is heated throughout by furnaces, and has all the latest appliances for successful working.
Methodist Church - Caldwell Mission was organized in 1873, and Rev. B. C. Swartz placed in charge of the circuit, which then embraced all of Sumner south of Slate Creek, and that part of Cowley County west of the Arkansas river. After a years' labor the entire membership of the circuit was seventy-three. Rev. I. N. Boycourt, was for a short time associated with Rev. Mr. Swartz in the work. J. B. Herbert received the appointment in 1874-75, but the conference of 1876 left the field vacant. Later in the same year E. B. Abbott took the work and filled through 1877. Caldwell class was organized February 15, 1877, and Andrew Ryan served until the close of 1879, when Rev. S. Wood was appointed and served until March 12, 1882, when Rev. D. F. Owens, the present pastor took charge. The fine brick church now in use was begun in Mr. Wood's pastorate, and dedicated on November 13, 1881, but not completed until late 1882. As first erected it had a tall spire, which yielded to a violent storm in the fall of 1882, and falling injured the body of the church. The building's total cost was $4,200. The society now numbers 123, and is growing steadily and quite rapidly. A Sabbath school, organized at about the same time as the church, has an average attendance of 115, and is in charge of A. G. Herr.
The Presbyterian Church was organized in 1873 by Rev. J. P. Harsen, of Wichita, and Rev. J. B. Rideout became pastor in charge of the eleven members who constituted the infant church. Rev. J. S. McClung followed Rev. Mr. Rideout, and remained until April, 1882, when Rev. E. P. Foster, the present pastor, took charge. A church edifice, which was built in 1880, a at (sic) cost of $1,800. The society now numbers fifty-three. A Sabbath school organized at the same time as the church, has an average attendance of 100, and is in charge of H. A. Ross.
The Christian Church of Caldwell was organized on May 9, 1880, with a membership of thirty-six. Rev. T. W. Houston, its first pastor, was succeeded by Revs. A. W. Avery and A. Crenshaw, who close his pastorate in 1882. The society own and occupy the old school building erected in 1880 at the cost of $1,700. The present church membership is thirty-six.
The Roman Catholics of Caldwell have, as yet, no church organization, but are supplied by Rev. Father Kelly of Winfield, who performs services on the last Sunday of each month.
The Caldwell Post made its first entry upon public life in January, 1879, under the management of J. D. Kelly and T. H. B. Ross. This was practically the second issue, the "Eye Opener" having been printed on December 28, 1878, by the same parties. After just six months, Ross retired from the journal and Kelly continued it alone, until December 11, 1880. It then passed into the hands of J. H. Sain, who held it until April 1, 1881, when it was purchased by Tell W. Walton, who now runs it. Its first appearance was as a six-column folio, and this form was retained until April, 1879, when it was enlarged to a seven-column sheet. It is now largely devoted to live stock interests and is recognized as the organ of the cattle men having herds in the Indian Territory, near Caldwell. Its circulation is 1,000.
The Commercial - The first issue of the Caldwell Commercial appeared May 6, 1880, as an eight-column folio, a form in which the paper still appears. Its editor and proprietor from the initiatory number to the present time, is W. B. Hutchinson. It is issued Thursdays, is Republican and has a circulation of 500.
Sumner Lodge, No. 203, A., F. & A. M., was organized with a membership of fourteen and the following officers: R. Bates, W. M.; S. P. G. Lewis, secretary. The order now has thirty-five members and the following officers: E. A. Fletcher, W. M., S. L. Long, S. W.; D. D. Leahy, J. W.; C. F. Sommer, secretary; L. G. Bailey, treasurer. Meetings are held in Masonic Hall on each Saturday on or before full moon and each two weeks thereafter.
Caldwell Lodge, No. 176, I. O. O. F, was organized in May, 1881, with a membership of twenty and the following officers: J. A Rohrer, N. G.; Albert Riser, secretary; J. R. Griffith, Treas. The lodge now has a membership of fifty-two and the following officers: T. H. B. Ross, N. G.; J. W. Nyce, V. G.; J. C. Dunhollen, secretary; W. H. Thompson, F. S.; Clark Black, treasurer. Meetings are held on Saturday on each week in Odd Fellows' Hall. The property of the lodge is a little over $700.
Upton Post, No. 27, G. A. R., was organized in October, 1881, with seventeen members and the following officers: L. M Lange, C.; William Morris, S. V. C.; C. Burrus, J. V. C.; W. B. Hutchinson, O. D.; W. H. Thompson, O. G.; J. M Thomas, Qr.; T. Stancliff, chaplain. The membership of the post has now increased to fifty. Meetings are held in Masonic Hall on the first and third Friday of each month. The officers of 1883 are: L. M. Lange, C.; W. Morris, S. V. C.; S. Donaldson, J. V. C.; W. H. Thompson, O. D.; George W. Fuller, O. G.; J. M. Thomas, Qr; J. N. Miller, chaplain, W. B. Hutchinson, adjutant. The property of the lodge consists of furniture and regalia to the amount of $100.
Sumner Lodge, No. 2,633, K. of H., was organized on December 14, 1881, with twenty members and the following officers: J. W. Nyce, P. D.; H. A. Ross, D.; O. Beason, V. D.; J. A. Doubleday, A. D.; J. R. Swartzel, Rep.; P. S. smith, F. R.; J. G. Dunhollen, treasurer; L. Thrailkill, chaplain. The lodge now numbers thirty-six members and has the following officers: H. A. Ross, P. D.; S. Donaldson, D.; C. H. Moore, V. D.; C. Miller, A. D.; J. R. Swartzel, Rep.; J. G. Dunhollen, F. R.; J. W. Nyce, treasurer; S. S. Long, chaplain. The society meets on Tuesday of each week in Groah's Hall. Its property consists of furniture and regalia in the value of $200.
Occidental Council, No. 13, N. U., was organized with eighteen members in the spring of 1882, with L. M. Lange, president; Mrs. W. B. Hutchinson, V. P.; J. W. Nyce, Ex. P.; Mrs. Charles Hume, speaker. The union now has twenty members and the following officers: E. H. Kirkpatrick, P.; J. K. Nyce, V. P.; J. G. Dunhollen, Ex. P.; Mrs. Charles Hume, speaker; L. M. Lange, secretary. The order meets on the second and fourth Friday of each month in the K. of H. Hall.
Caldwell Lodge, No. 109, A. O. U. W. was organized on August 10, 1882, with a membership of twenty and the following officers: W. Crimble, P. M. W.; P. H. Proctor, M. W.; P. P. Holer, foreman; T. H. B. Ross, recorder; John Dobson, O.; T. E. Dow, guide; George W. Riley, F.; A. J. Luder, receiver. The lodge meets on Monday of each week in Masonic Hall, has now a membership of twenty-eight and the following officers: W. Crimble, P. M. W.; T. H. B. Ross, M. W.; R. Alderman, foreman; H. H. Rowe, recorder; A. Sherman, O.; William O'Connor, G.; E. M. Swaggart, F.; F. M. Carzine, R.
The first banking house in Caldwell was the Merchants' and Drovers' Bank, which failed in November, 1881. No reliable particulars can be obtained concerning this institution, those who are supposed to know about it refusing information. J. S. Danford was president, and W. D. C. Smith, cashier, at the time of the failure.
The Stock Exchange Bank was organized under the State law on October 24, 1881, but did not open for business until December 24. It has an authorized capital of $100,000, 10 per cent of which is paid in, and a surplus of $9, 400. A fine stone building was erected in 1881 at a cost of $5,000. The funds of the bank are protected by a Hall burglar-proof chest and time lock. The officers of the bank are: J. G. Woods, president; E. M. Hewins, vice president; Charles H. Moore, cashier; John W. Nyce, assistant cashier; Ben S. Miller, secretary.
The Caldwell Savings Bank was organized under the State law in April, 1882, with an allowed capital of $100,000, 15 per cent of which was paid in. It has now a surplus of $4,000. Its officers are: S. P. G. Lewis, president; W. E. Mallady, vice president; T. E. Neal, cashier; C. J. Neal, assistant cashier; George W. Reilly, secretary.


Lo Mejor 26 Mueble Auxiliar Vintage – %krsauthor% posted the images with Mueble Auxiliar Vintage. Another suggestion that might be in your exploration may be discovered in Mueble Auxiliar Vintage. This is actually a free of charge image assortment you could download and install in our Mueble Auxiliar Vintage. You could find another category that has been actually published by the creator in our website.
In the end, our company hope that all of our photo collections can meet your necessity therefore you could use our internet site as your top referrals at the future pertaining to the house decor.
The Mueble Auxiliar Vintage could be ideal for your Mueble Auxiliar Vintage with Mueble Auxiliar Vintage research. You could find each one of your finding in our Mueble Auxiliar Vintage galleria.
If you presume our galleria is connected to Mueble Auxiliar Vintage and Mueble Auxiliar Vintage, you can just make use of 'right click' to download and install the pics in the picture gallery, after that save all the pictures.
Our experts rejoice to provide you the subject selection in our Mueble Auxiliar Vintage that match your hunt. Other keyphrase ideas are available as well within this post. You can discover all of them below our article. Always keep exploring our Mueble Auxiliar Vintage to obtain additional superb pictures. Kind regards, %krsauthor%.


ICHF Events held their highly successful Cake International show in November which saw thousands of cake decorating and sugarcraft fans flock to the Birmingham NEC for a record breaking weekend! Visitor numbers were up by 32% on the previous record year in 2010, with cake fans flying in from across the globe including Peru, America, Portugal, Korea and France to see cutting-edge products and techniques, compete in competitions and attend demos.
Autumn winter fashion was modelled in spring summer temperatures as hundreds of shoppers turned out to watch Princesshay's Autumn Winter Fashion shows on Friday 30th September and Saturday 1st October organised by One Voice.
Over 100 VIP guests enjoyed style, glamour and seasonal trends at this season's most fashionable event organised by One Voice at Reiss in Princesshay.
The One Voice team was delighted by the attendance at today\'s first ExIST (Exeter Initiative for Science and Technology) Event, organised by Exeter Chamber.
New qualifications for One Voice team members!
A big congratulations to three of our One Voice team for gaining qualifications from the Chartered Institute of Marketing, the leading international body for marketing and business development.
We have just been treated in the One Voice office to a visit from the Editor of the Express and Echo, Marc Astley, who has brought in a few copies of the new look weekly title.
The team have been busy working up an appetite arranging the free Taste Princesshay event that is coming up on the 12th and 13th August.
To celebrate the new beauty rooms at The Cove, owners Claudia and Dean treated some of the One Voice team to a massage or manicure in their Princesshay shop.
We've loved working on the spring craft shows for ICHF Events especially as one of the main features was the fabulous giant knitting project 'Above and Below the Waves'.
Holiday on Ice UK introduces their latest show, Tropicana The Passion Tour!
The UK Holiday on Ice team held a meeting and workshop in London to introduce the new tour for 2012.
Exeter Chamber sustainable launch lunch!
The One Voice team organised a Chamber lunch yesterday for 100 of Exeter\'s key business people.
The Princesshay PR and marketing team at One Voice have been busy working on the stylish shopping centres Fashion Weekend this month where shoppers were introduced to the season's key looks and trends showcased in a series of free high-energy fashion shows over two days.
We've been very busy bees at One Voice towers recently with one of the major annual events we promote, the Exeter Festival of South West Food & Drink, coinciding with a certain high-profile wedding.
Exeter based PR agency, One Voice has secured the prestigious PR contract for the Exeter BID campaign leading up to the all important vote in June 2011.
Along with our brand new corporate identity, we have updated and refreshed our office in Southernhay to reflect the growth and development of the business since its beginnings 21 years ago.
To mark its 21st birthday, One Voice has rebranded with a fresh new identity and website.
Holiday on Ice opened at Westpoint Arena, Exeter on Friday 18th February to a packed audience for the special gala performance of 'Energia'.


text:
Q: Java: How can I get a JOption error to display when a non int or double is entered? How can I get a JOption to display an error message when the user enters information that is not an int or a double, or when they enter nothing, and press ok? I had tried a while loop, but it just kept displaying the error message over and over, and the current code I have for it without any loops means that when the user actually enters a correct number into the box, the JOption error box appears anyway, but then when prompted to enter a value again, takes me to the next step. How can I 1. stop this first display from happening, and 2. actually get it to display and loop when they enter a null value, and 3. what sort of code I can put in for a non-number?
I thought that I had done it correct with the String entry, as seen below it, but I sometimes get a console error message with that. Any ideas on how to fix that too?
the int/double JOption:
JOptionPane.showMessageDialog(null, "Invalid entry!", "Error!",
JOptionPane.ERROR_MESSAGE);
    balance = Double.parseDouble(JOptionPane.showInputDialog(null, "Enter
initial balance:", "Enter balance", JOptionPane.INFORMATION_MESSAGE));

for the string:
// if the dialog box is empty
    if (name.isEmpty()) {
        do {
            // display an error message
            JOptionPane.showMessageDialog(null, "Name cannot be empty", "ERROR", JOptionPane.ERROR_MESSAGE);
            name = JOptionPane.showInputDialog(null, "Enter customer name:", "Customers Name", // shows input box again
                    JOptionPane.INFORMATION_MESSAGE);
        } while (name.isEmpty()); // will loop until not empty
    }

Error:

Exception in thread "main" java.lang.NullPointerException at CustomerInfo.main(CustomerInfo.java:19)

line 19 is this:
        } while (name.isEmpty()); // will loop until not empty)

A: You could create a method that would check if the number was a double (and also will work for int), and then in the same call you just check the value entered is not null.
public static void main(String[] args) {
        test("2.22");
        test("2");
        test("");
    }

    public static void test(String s) {
        if (checkIfNumber(s) && (s != null || !s.isEmpty())) {
            System.out.println("number is entered");
        } else {
            System.out.println("number was not entered");
        }
    }

    private static boolean checkIfNumber(String s) {
        try {
            Double.parseDouble(s);
        } catch (NumberFormatException ex) {
            //provide a pop up here if required
            JOptionPane.showMessageDialog(null, "You did not enter a valid number or the input was empty");
            return false;
        }
        return true;
    }

A: try this for double
double balance=0;
    do {
        try {
        balance = Double.parseDouble(JOptionPane.showInputDialog(null, "Enter initial balance:", "Enter balance", JOptionPane.INFORMATION_MESSAGE));
        JOptionPane.showMessageDialog(null, balance);
    } catch (Exception e) {
        JOptionPane.showMessageDialog(null, "Invalid entry, \nPlease enter balance in double format");
    }
    } while (balance==0);

and this for string
String csName = "";
    do {
        try {
            csName = JOptionPane.showInputDialog(null, "Enter Customer Name:", "Enter Customer Name", JOptionPane.INFORMATION_MESSAGE);
            if (csName.equals("")) {
                JOptionPane.showMessageDialog(null, "Please enter customer name");
            } else {
                JOptionPane.showMessageDialog(null, csName);
            }
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, "invalid entry, \nplease enter customer name in string format");
        }
    } while (csName.equals(""));

redpajama_set_name: RedPajamaStackExchange


In the backyard, Goten is exhausted. Goku tells Bulma and Vegeta it's been a while, and Bulma says it hasn't just been a while; if she left him alone, they'd never see each other. Goku says they just saw each other five years ago. Bulma disputes this, saying that when everyone got together five years ago he didn't even show up because he was off training. Goku says she sure is becoming a middle-aged lady, and she yells back that Saiyans are freaks. Vegeta says that because they Saiyans are a fighting race, they remain young for a longer period of time so they can fight. Bulma wonders if she should ask Shenlong to make her younger.
Vegeta asks if it's true that Kakarrot is training for the Tenka'ichi Budōkai tomorrow. Goku says he is, and he thinks Vegeta should enter too. There's going to be an awesome guy entering. Vegeta doesn't feel any strong ki, but Goku says that's because he's been suppressing his ki. Vegeta says there shouldn't be anyone like that, and asks if he's an alien. Nope, he's an Earthling. Trunks then shows up, and asks Goten if he's training to enter tomorrow. Goten reluctantly says he is, but only because his dad made him, even though he said no. He had a date tomorrow. Goku says he can go on a date any time. Vegeta says both of them have troublesome kids, and Goku agrees. Pan then arrives, and tells Grandpa she just flew around the Earth. Trunks asks if Pan is also entering, who enthusiastically says, "Yep!" Bulma is worried, because there's no Kids Division this time, and she'll have to fight adults. Goku says she probably can't win, but it will be good for her. He also says Pan is now the one with the most will-power amongst them. Vegeta admits he's quite intrigued now, and says he'll enter. He orders Trunks to enter also, or else he'll cut his allowance in half.
The next day, at the Tenka'ichi Budōkai grounds… Satan tells Boo that they'll do the same as before: Boo becomes the champion of the challengers, then faces Satan, the super champion, in the finals and loses. But he reminds Boo that he needs to hold back his strength against the challengers, or else he'll scare them all off. Goku then shows up in Satan's room with Pan, and Satan is very happy to see his cute little Pan. He asks if she's come to cheer for Grandpa. Nope, she's entering, and so is Grandpa Goku, Goten, Trunks, and Uncle Vegeta.
Goku says they've all passed the preliminaries, and Satan freaks out. Goku reassures him that they'll allow Satan to win. But someone besides Boo or them might win. Goten asks Satan if he can get all their friends better seats, and Satan says no problem. The gang all get ringside seats now, except that the ring is too high for them to even see. Bulma says they're changing, because they can't see anything, and they all move to new skybox seats. Meanwhile, the announcer calls the competitors over for the lottery; there are twelve this time. Whoever makes it to the end will face off against the super champion, Mister Satan, to decide the winner. Vegeta asks Goku who this strong guy is, but Goku still won't say.
The lottery is beginning, and Goku asks Boo to mess around with the numbers with his magic. The competitors are Vegeta, Son Goku, Mister Boo, Trunks, Pan, Son Goten, Kirano, Mō Kekko, Oob, Captain Chicken, Knock, and Otoko Suki. Goku tells Vegeta he wants to fight this person at 100% in the first round. Mō draws and gets #2, and then Trunks is next. A little later, it's Son Goku's turn to draw, and he asks Boo to make him #3. Next is Kirano, and Goku says to make him #6. Vegeta had thought Kirano might be the guy. Next is Oob, and Goku tells Boo to make him #4, and then he doesn't need to use anymore magic after him. Vegeta is very surprised, as Goku says he's been waiting a long time and training until this kid entered the tournament. Vegeta wants an explanation right away.
"Ten years ago, when the Boo that was incredibly evil died, I made a wish… 'This time, be reborn as a good guy, and let's fight one-on-one'… It seems Enma-daiō heard him and made it happen…" Vegeta can't believe that kid is the reincarnation of Boo. Goku says it's no mistake, he just knows it somehow. "Look at even his name. Oob, right? If you read it backwards, that's Boo, ain't it…? Wouldn't that be a strange coincidence?" Oob is looking nervous, thinking there are lots of strong people outside the village, just like his mommy had said. Oob wonders how he'll win and use the prize money to buy food to bring back to his village.
Next time, in Dragon Ball chapter 519, something is going to happen!!!! Now! Just what's going to happen, you ask?! Don't get your hopes up too much, and wait for it!