90 lines
2.4 KiB
HTML
90 lines
2.4 KiB
HTML
|
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
|
||
|
<head>
|
||
|
<style type="text/css">
|
||
|
body
|
||
|
{
|
||
|
background:#f4f4f4;
|
||
|
}
|
||
|
.wrap
|
||
|
{
|
||
|
margin:20px auto;
|
||
|
width:230px;
|
||
|
border:solid 1px #888;
|
||
|
padding:10px;
|
||
|
background: #fff;
|
||
|
}
|
||
|
.wrap p
|
||
|
{
|
||
|
margin:5px 0;
|
||
|
border-bottom:dashed 1px #ccc
|
||
|
}
|
||
|
.wrap #finalValue
|
||
|
{
|
||
|
font-size:20px;
|
||
|
}
|
||
|
.wrap .rights
|
||
|
{
|
||
|
width: 18px;
|
||
|
height: 18px;
|
||
|
cursor:pointer;
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
|
||
|
<!--[if gte mso 9]><xml>
|
||
|
<mso:CustomDocumentProperties>
|
||
|
<mso:_dlc_DocId msdt:dt="string">W2YFHWASA3CM-980698069-207111</mso:_dlc_DocId>
|
||
|
<mso:_dlc_DocIdItemGuid msdt:dt="string">44a195a1-c145-42d4-aaa4-b14533fc291f</mso:_dlc_DocIdItemGuid>
|
||
|
<mso:_dlc_DocIdUrl msdt:dt="string">https://seclore.sharepoint.com/sites/pdocs/_layouts/15/DocIdRedir.aspx?ID=W2YFHWASA3CM-980698069-207111, W2YFHWASA3CM-980698069-207111</mso:_dlc_DocIdUrl>
|
||
|
</mso:CustomDocumentProperties>
|
||
|
</xml><![endif]-->
|
||
|
</head>
|
||
|
<body onload="onChangeFn();">
|
||
|
<div class="wrap">
|
||
|
<p><b>FileSecure Rights Calculator</b></p>
|
||
|
<hr/>
|
||
|
<p>(primary access rights)</p>
|
||
|
|
||
|
<div>
|
||
|
Final: <input id="finalValue" type="text" readonly="readonly" size="10" />
|
||
|
</div>
|
||
|
|
||
|
<hr/>
|
||
|
<p><input type="checkbox" value="2" onchange="onChangeFn();" class="rights" disabled="disabled" checked="checked" /> <span>View</span></p>
|
||
|
<p><input type="checkbox" value="6" onchange="onChangeFn();" class="rights"/> <span>Lite Viewer</span></p>
|
||
|
<p><input type="checkbox" value="34" onchange="onChangeFn();" class="rights"/> Edit</p>
|
||
|
<p><input type="checkbox" value="258" onchange="onChangeFn();" class="rights"/> Copy Data</p>
|
||
|
<p><input type="checkbox" value="10" onchange="onChangeFn();" class="rights"/> Print</p>
|
||
|
<p><input type="checkbox" value="514" onchange="onChangeFn();" class="rights"/> Screen Capture</p>
|
||
|
<p><input type="checkbox" value="1026" onchange="onChangeFn();" class="rights"/> Macro</p>
|
||
|
<p><input type="checkbox" value="170" onchange="onChangeFn();" class="rights"/> Full Control</p>
|
||
|
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
function onChangeFn()
|
||
|
{
|
||
|
var lCheckBoxes = document.getElementsByClassName("rights");
|
||
|
if( lCheckBoxes == undefined || null)
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var lValue = null;
|
||
|
for (var i =0; i < lCheckBoxes.length; i++)
|
||
|
{
|
||
|
if(lCheckBoxes[i].checked == true)
|
||
|
{
|
||
|
console.log( lCheckBoxes[i].value );
|
||
|
lValue = (lValue | lCheckBoxes[i].value);
|
||
|
}
|
||
|
}
|
||
|
var lFinalValueEl = document.getElementById("finalValue");
|
||
|
lFinalValueEl.value = lValue;
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|