<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: hty $Date: 2018/6/5 16:39 $Revision: 1.0 --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view template="default" package="leaf.ui.std"> <link href="${/request/@context_path}/leafresource/hls/default/hls-all.css" rel="stylesheet" type="text/css"/> <link href="${/request/@context_path}/leafresource/hls/beyondChart/assets/css/beyond.min.css" rel="stylesheet"/> <link href="${/request/@context_path}/leafresource/hls/hlsBlock/css/block-11.css" rel="stylesheet" type="text/css"/> <link href="${/request/@context_path}/leafresource/hls/hlsBlock/css/block-task.css" rel="stylesheet" type="text/css"/> <link href="${/request/@context_path}/lib/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <link href="${/request/@context_path}/leafresource/hls/beyondChart/assets/css/beyond.min.css" rel="stylesheet"/> <link href="${/request/@context_path}/leafresource/hls/hlsBlock/css/block-user.css" rel="stylesheet" type="text/css"/> <style> html, body { width: 270px; height: 70px; margin: 0; padding: 0; } </style> <div></div> <script></script> <a:dataSets></a:dataSets> <div class="hls-block-x1 hls-block-y1 hls-float-left hls-mutilblock-bg"> <div class="hls-block-y1 hls-float-left hls-11-circle-common row-user-left" style="background-image: url('${/request/@context_path}/leafresource/images/MAIN/common-person.png')"> <div id="row-user-left-circle" class="row-area-left-circle"> </div> </div> <div class="row-area-right hls-block-y1"> <div class="row-area-right-content"> <span class="row-area-right-number row-user-right-number" id="userName">${Session.description!}</span> <div class="row-area-right-msg">${Session.positionName!}</div> </div> <div class="row-area-right-content-image row-user-right-content-image"> <i class="fa fa-phone"></i> </div> </div> </div> <script><![CDATA[ (function () { Leaf.request({ url: "${/request/@context_path}/autocrud/sys.sys_user/query", para: {}, scope: this, success: function (res) { if (res.success) { var userName = ''; res.result.record.forEach(function (value) { if (value.user_id == ${/session/@user_id}) { userName = value.user_name; } }); document.getElementById('userName').innerHTML = userName; } } }) })(); ]]></script> <a:screenBody style="display:none;"/> </a:view> </a:screen>