if (!defined('PHPOS')) {
    die;
}
?>
<div id="phpos_startmenu_layout_apps">
<?php 
$apps = new phpos_app();
$app_list = $apps->my_apps_list();
$c = count($app_list);
if ($c != 0) {
    foreach ($app_list as $item) {
        $apps->set_app_id($item);
        $apps->load_config();
        $is_hide = $apps->get_hidden();
        if (!$is_hide) {
            echo '<div class="startmenu_app_item" title="' . $apps->get_desc() . '" onclick="' . $apps->link_action() . '"><img src="' . $apps->get_icon() . '"><span>' . $apps->get_title() . '</span></div>';
            /*
            echo '<div class="startmenu_app_item" title="'.$apps->get_desc().'" onclick="'.$apps->link_action().'"><img src="'.$apps->get_icon().'"><span>'.txt($item).'</span></div>';
            */
        }
    }
}
?>
</div>
<script>
$(document).ready(function() { 

	$('.startmenu_app_item').mouseenter(function()
	{
		$(this).removeClass('mouseleave').addClass('mouseenter');	
	});
Beispiel #2
0
    $wincfg['height'] = '430';
    $wincfg['back_action'] = 'index';
    $wincfg['back'] = txt('shortcuts_window_back_to_index');
    $apps = new phpos_app();
    $app_list = $apps->my_apps_list();
    $c = count($app_list);
    if ($c != 0) {
        $html .= $layout->txtdesc(txt('shortcuts_app_form_step1_desc'));
        $html .= '<div id="phpos_shortcuts_apps" style="padding:15px">';
        foreach ($app_list as $item) {
            $apps->set_app_id($item);
            $apps->load_config();
            $is_hide = $apps->get_hidden();
            if (!$is_hide) {
                $action = link_action('app', 'link_type:app,link_param:' . $item);
                $html .= '<div class="shortcuts_app_item" title="' . $apps->get_desc() . '" onclick="' . $action . '"><img src="' . $apps->get_icon() . '"><span>' . $apps->get_title() . '</span></div>';
            }
        }
        $html .= '</div>';
        $js_code = "\n\t\t\$('.shortcuts_app_item').mouseenter(function()\n\t\t{\n\t\t\t\$(this).removeClass('mouseleave').addClass('mouseenter');\t\n\t\t});\n\t\t\n\t\t\$('.shortcuts_app_item').mouseleave(function()\n\t\t{\n\t\t\t\$(this).removeClass('mouseenter').addClass('mouseleave');\t\n\t\t});\n\t\t";
        $my_app->jquery_onready($js_code);
    }
    /*
    **************************
    */
} else {
    // app params
    $location_id = $my_app->get_param('location');
    $wincfg['title'] = txt('shortcuts_window_title_app_step2');
    $wincfg['width'] = '600';
    $wincfg['height'] = '550';