-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBanner image.xml
More file actions
110 lines (107 loc) · 6.44 KB
/
Banner image.xml
File metadata and controls
110 lines (107 loc) · 6.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="UTF-8"?><unload unload_date="2018-11-01 10:49:49">
<sys_remote_update_set action="INSERT_OR_UPDATE">
<application display_value="Global">global</application>
<application_name>Global</application_name>
<application_scope>global</application_scope>
<application_version/>
<collisions/>
<commit_date/>
<deleted/>
<description>This application will changes the banner image based on logged-in user company logo.</description>
<inserted/>
<name>Banner image</name>
<origin_sys_id/>
<parent display_value=""/>
<release_date/>
<remote_base_update_set display_value=""/>
<remote_parent_id/>
<remote_sys_id>5c57fb78db21230000f0de90cf9619a0</remote_sys_id>
<state>loaded</state>
<summary/>
<sys_class_name>sys_remote_update_set</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2018-11-01 10:49:48</sys_created_on>
<sys_id>19414c05db61230000f0de90cf961907</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2018-11-01 10:49:48</sys_updated_on>
<update_set display_value=""/>
<update_source display_value=""/>
<updated/>
</sys_remote_update_set>
<sys_update_xml action="INSERT_OR_UPDATE">
<action>INSERT_OR_UPDATE</action>
<application display_value="Global">global</application>
<category>customer</category>
<comments/>
<name>sys_ui_script_481dff7cdb21230000f0de90cf96197c</name>
<payload><?xml version="1.0" encoding="UTF-8"?><record_update table="sys_ui_script"><sys_ui_script action="INSERT_OR_UPDATE"><active>true</active><description/><global>true</global><name>Banner Image changing</name><script><![CDATA[bannerImgChange();
function bannerImgChange(){
try{
var ga = new GlideAjax('CheckUserRole');
ga.addParam('sysparm_name','u_hasRole');
ga.addParam('sysparm_role','employee');
ga.getXMLWait();
if(ga.getAnswer()=="true"){
top.document.getElementById('mainBannerImage16').parentNode.style.backgroundImage = 'url(/PK.png)';
}else{
top.document.getElementById('mainBannerImage16').parentNode.style.backgroundImage = 'url(/wcmc_logo.png)';
}
}catch(ee){
//alert(ee.toString());
}
}
]]></script><script_name/><sys_class_name>sys_ui_script</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2018-11-01 10:34:13</sys_created_on><sys_id>481dff7cdb21230000f0de90cf96197c</sys_id><sys_mod_count>4</sys_mod_count><sys_name>Banner Image changing</sys_name><sys_package display_value="Global" source="global">global</sys_package><sys_policy/><sys_scope display_value="Global">global</sys_scope><sys_update_name>sys_ui_script_481dff7cdb21230000f0de90cf96197c</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2018-11-01 10:47:16</sys_updated_on><ui_type>0</ui_type><use_scoped_format>false</use_scoped_format></sys_ui_script></record_update></payload>
<payload_hash>618527123</payload_hash>
<remote_update_set display_value="Banner image">19414c05db61230000f0de90cf961907</remote_update_set>
<replace_on_upgrade>false</replace_on_upgrade>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2018-11-01 10:49:48</sys_created_on>
<sys_id>95414c05db61230000f0de90cf961908</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_recorded_at>166cee267370000001</sys_recorded_at>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2018-11-01 10:49:48</sys_updated_on>
<table/>
<target_name>Banner Image changing</target_name>
<type>UI Script</type>
<update_domain>global</update_domain>
<update_guid>c8b00405e6612300a89e6b8e8fe564c1</update_guid>
<update_guid_history>c8b00405e6612300a89e6b8e8fe564c1:618527123,afdfb7b0e2612300d74ae5c9c3351e38:-709186924,bf7ff3b09161230064025765f03fe1a2:1720293815,b11e7ffc5c212300a6330e8f9b801651:1862155736,85bd7f780d212300fcc6e3b22928e49f:1720293815</update_guid_history>
<update_set display_value=""/>
<view/>
</sys_update_xml>
<sys_update_xml action="INSERT_OR_UPDATE">
<action>INSERT_OR_UPDATE</action>
<application display_value="Global">global</application>
<category>customer</category>
<comments/>
<name>sys_script_include_e009fbf4db21230000f0de90cf9619dd</name>
<payload><?xml version="1.0" encoding="UTF-8"?><record_update table="sys_script_include"><sys_script_include action="INSERT_OR_UPDATE"><access>package_private</access><active>true</active><api_name>global.CheckUserRole</api_name><client_callable>true</client_callable><description/><name>CheckUserRole</name><script><![CDATA[var CheckUserRole = Class.create();
CheckUserRole.prototype = Object.extendsObject(AbstractAjaxProcessor, {
u_hasRole: function() {
var role = this.getParameter("sysparm_role");
return gs.hasRole(role);
}
});
]]></script><sys_class_name>sys_script_include</sys_class_name><sys_created_by>admin</sys_created_by><sys_created_on>2018-11-01 10:29:56</sys_created_on><sys_id>e009fbf4db21230000f0de90cf9619dd</sys_id><sys_mod_count>0</sys_mod_count><sys_name>CheckUserRole</sys_name><sys_package display_value="Global" source="global">global</sys_package><sys_policy/><sys_scope display_value="Global">global</sys_scope><sys_update_name>sys_script_include_e009fbf4db21230000f0de90cf9619dd</sys_update_name><sys_updated_by>admin</sys_updated_by><sys_updated_on>2018-11-01 10:29:56</sys_updated_on></sys_script_include></record_update></payload>
<payload_hash>1612417348</payload_hash>
<remote_update_set display_value="Banner image">19414c05db61230000f0de90cf961907</remote_update_set>
<replace_on_upgrade>false</replace_on_upgrade>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2018-11-01 10:49:48</sys_created_on>
<sys_id>d9414c05db61230000f0de90cf961907</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_recorded_at>166ced28bf50000001</sys_recorded_at>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2018-11-01 10:49:48</sys_updated_on>
<table/>
<target_name>CheckUserRole</target_name>
<type>Script Include</type>
<update_domain>global</update_domain>
<update_guid>9abc7bb8e821230006f6076326a032ec</update_guid>
<update_guid_history>9abc7bb8e821230006f6076326a032ec:1612417348</update_guid_history>
<update_set display_value=""/>
<view/>
</sys_update_xml>
</unload>