24
view/acl_selector.tpl
Normal file
24
view/acl_selector.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
<div id="acl-wrapper">
|
||||
<input id="acl-search">
|
||||
<a href="#" id="acl-showall">$showall</a>
|
||||
<div id="acl-list">
|
||||
<div id="acl-list-content">
|
||||
</div>
|
||||
</div>
|
||||
<span id="acl-fields"></span>
|
||||
</div>
|
||||
|
||||
<div class="acl-list-item" rel="acl-template" style="display:none">
|
||||
<img src="{0}"><p>{1}</p>
|
||||
<a href="#" class='acl-button-show'>$show</a>
|
||||
<a href="#" class='acl-button-hide'>$hide</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
acl = new ACL(
|
||||
baseurl+"/acl",
|
||||
[$allowcid,$allowgid,$denycid,$denygid]
|
||||
);
|
||||
});
|
||||
</script>
|
||||
@@ -12,6 +12,8 @@
|
||||
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
|
||||
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
||||
<script type="text/javascript" src="$baseurl/include/acl.js" ></script>
|
||||
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
|
||||
<script>
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
|
||||
<script language="javascript" type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
var editor;
|
||||
@@ -91,7 +90,7 @@ tinyMCE.init({
|
||||
}
|
||||
);
|
||||
|
||||
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
||||
/*$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
|
||||
var selstr;
|
||||
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
|
||||
selstr = $(this).text();
|
||||
@@ -105,7 +104,7 @@ tinyMCE.init({
|
||||
$('.profile-jot-net input').attr('disabled', false);
|
||||
}
|
||||
|
||||
}).trigger('change');
|
||||
}).trigger('change');*/
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -1483,6 +1483,105 @@ input#dfrn-url {
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
/** acl **/
|
||||
#profile-jot-acl-wrapper{
|
||||
overflow:hidden;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#acl-wrapper {
|
||||
width: 690px;
|
||||
float:left;
|
||||
}
|
||||
#acl-search {
|
||||
float:right;
|
||||
background: #ffffff url("../../../images/search_18.png") no-repeat right center;
|
||||
padding-right:20px;
|
||||
}
|
||||
#acl-showall {
|
||||
float: left;
|
||||
display: block;
|
||||
width: auto;
|
||||
height: 18px;
|
||||
background-color: #cccccc;
|
||||
background-image: url("../../../images/show_all_off.png");
|
||||
background-position: 7px 7px;
|
||||
background-repeat: no-repeat;
|
||||
padding: 7px 5px 0px 30px;
|
||||
-webkit-border-radius: 5px ;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
color: #999999;
|
||||
}
|
||||
#acl-showall.selected {
|
||||
color: #000000;
|
||||
background-color: #ff9900;
|
||||
background-image: url("../../../images/show_all_on.png");
|
||||
}
|
||||
|
||||
#acl-list {
|
||||
height: 210px;
|
||||
border: 1px solid #cccccc;
|
||||
clear: both;
|
||||
margin-top: 30px;
|
||||
overflow: auto;
|
||||
}
|
||||
#acl-list-content {
|
||||
|
||||
}
|
||||
.acl-list-item {
|
||||
display: block;
|
||||
width: 150px;
|
||||
height: 30px;
|
||||
border: 1px solid #cccccc;
|
||||
margin: 5px;
|
||||
float: left;
|
||||
}
|
||||
.acl-list-item img{
|
||||
width:22px;
|
||||
height: 22px;
|
||||
float: left;
|
||||
margin: 4px;
|
||||
}
|
||||
.acl-list-item p { font-size: 10px; margin: 0px; padding: 2px 0px 1px; }
|
||||
.acl-list-item a {
|
||||
font-size: 8px;
|
||||
display: block;
|
||||
width: 40px;
|
||||
height: 10px;
|
||||
float: left;
|
||||
color: #999999;
|
||||
background-color: #cccccc;
|
||||
background-position: 3px 3px;
|
||||
background-repeat: no-repeat;
|
||||
margin-right: 5px;
|
||||
-webkit-border-radius: 2px ;
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
#acl-wrapper a:hover {
|
||||
text-decoration: none;
|
||||
color:#000000;
|
||||
}
|
||||
.acl-button-show { background-image: url("../../../images/show_off.png"); }
|
||||
.acl-button-hide { background-image: url("../../../images/hide_off.png"); }
|
||||
|
||||
.acl-button-show.selected {
|
||||
color: #000000;
|
||||
background-color: #9ade00;
|
||||
background-image: url("../../../images/show_on.png");
|
||||
}
|
||||
.acl-button-hide.selected {
|
||||
color: #000000;
|
||||
background-color: #ff4141;
|
||||
background-image: url("../../../images/hide_on.png");
|
||||
}
|
||||
.acl-list-item.groupshow { border-color: #9ade00; }
|
||||
.acl-list-item.grouphide { border-color: #ff4141; }
|
||||
/** /acl **/
|
||||
|
||||
|
||||
.comment-edit-text-empty {
|
||||
color: gray;
|
||||
height: 30px;
|
||||
@@ -1502,72 +1601,6 @@ input#dfrn-url {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
#acl-allow-group-label,
|
||||
#acl-allow-contact-label,
|
||||
#acl-deny-group-label,
|
||||
#acl-deny-contact-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#acl-permit-text {
|
||||
margin-top: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#acl-deny-text {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#jot-public {
|
||||
float: left;
|
||||
margin-top: 10px;
|
||||
margin-left: 15px;
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
#acl-permit-text-end {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#acl-allow-group-label,
|
||||
#acl-allow-contact-label,
|
||||
#acl-deny-group-label,
|
||||
#acl-deny-contact-label {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
|
||||
#group_allow_wrapper,
|
||||
#group_deny_wrapper {
|
||||
float: left;
|
||||
width: 100px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#contact_allow_wrapper,
|
||||
#contact_deny_wrapper {
|
||||
float: left;
|
||||
width: 150px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#acl-allow-end,
|
||||
#acl-deny-end {
|
||||
clear: both;
|
||||
}
|
||||
#acl-permit-outer-wrapper,
|
||||
#acl-deny-outer-wrapper {
|
||||
padding: 10px;
|
||||
margin-top: 10px;
|
||||
border: 2px solid #BBBBBB;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#acl-wrapper-end {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#group-edit-name-label {
|
||||
float: left;
|
||||
width: 175px;
|
||||
|
||||
@@ -1561,76 +1561,107 @@ padding: 5px 10px 0px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/** acl **/
|
||||
#profile-jot-acl-wrapper{
|
||||
overflow:hidden;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#acl-wrapper {
|
||||
width: 690px;
|
||||
float:left;
|
||||
}
|
||||
#acl-search {
|
||||
float:right;
|
||||
background: #ffffff url("../../../images/search_18.png") no-repeat right center;
|
||||
padding-right:20px;
|
||||
}
|
||||
#acl-showall {
|
||||
float: left;
|
||||
display: block;
|
||||
width: auto;
|
||||
height: 20px;
|
||||
background-color: #cccccc;
|
||||
background-image: url("../../../images/show_all_off.png");
|
||||
background-position: 7px 7px;
|
||||
background-repeat: no-repeat;
|
||||
padding: 5px 5px 0px 30px;
|
||||
-webkit-border-radius: 5px ;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
color: #999999;
|
||||
}
|
||||
#acl-showall.selected {
|
||||
color: #000000;
|
||||
background-color: #ff9900;
|
||||
background-image: url("../../../images/show_all_on.png");
|
||||
}
|
||||
|
||||
|
||||
#acl-list {
|
||||
height: 210px;
|
||||
border: 1px solid #cccccc;
|
||||
clear: both;
|
||||
margin-top: 30px;
|
||||
overflow: auto;
|
||||
}
|
||||
#acl-list-content {
|
||||
|
||||
}
|
||||
.acl-list-item {
|
||||
display: block;
|
||||
width: 150px;
|
||||
height: 30px;
|
||||
border: 1px solid #cccccc;
|
||||
margin: 5px;
|
||||
float: left;
|
||||
}
|
||||
.acl-list-item img{
|
||||
width:22px;
|
||||
height: 22px;
|
||||
float: left;
|
||||
margin: 4px;
|
||||
}
|
||||
.acl-list-item p { font-size: 10px; margin: 0px; padding: 2px 0px 1px; }
|
||||
.acl-list-item a {
|
||||
font-size: 8px;
|
||||
display: block;
|
||||
width: 40px;
|
||||
height: 10px;
|
||||
float: left;
|
||||
color: #999999;
|
||||
background-color: #cccccc;
|
||||
margin-right: 5px;
|
||||
-webkit-border-radius: 2px ;
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
#acl-wrapper a:hover {
|
||||
text-decoration: none;
|
||||
color:#000000;
|
||||
}
|
||||
.acl-button-show { background-image: url("../../../images/show_off.png"); }
|
||||
.acl-button-hide { background-image: url("../../../images/hide_off.png"); }
|
||||
|
||||
.acl-button-show.selected {
|
||||
color: #000000;
|
||||
background-color: #9ade00;
|
||||
background-image: url("../../../images/show_on.png");
|
||||
}
|
||||
.acl-button-hide.selected {
|
||||
color: #000000;
|
||||
background-color: #ff4141;
|
||||
background-image: url("../../../images/hide_on.png");
|
||||
}
|
||||
.acl-list-item.groupshow { border-color: #9ade00; }
|
||||
.acl-list-item.grouphide { border-color: #ff4141; }
|
||||
/** /acl **/
|
||||
|
||||
#group-new-submit-wrapper {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
#acl-allow-group-label,
|
||||
#acl-allow-contact-label,
|
||||
#acl-deny-group-label,
|
||||
#acl-deny-contact-label {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#acl-permit-text {
|
||||
margin-top: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#acl-deny-text {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#jot-public {
|
||||
float: left;
|
||||
margin-top: 10px;
|
||||
margin-left: 15px;
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
#acl-permit-text-end {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#acl-allow-group-label,
|
||||
#acl-allow-contact-label,
|
||||
#acl-deny-group-label,
|
||||
#acl-deny-contact-label {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
|
||||
#group_allow_wrapper,
|
||||
#group_deny_wrapper {
|
||||
float: left;
|
||||
width: 100px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#contact_allow_wrapper,
|
||||
#contact_deny_wrapper {
|
||||
float: left;
|
||||
width: 150px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#acl-allow-end,
|
||||
#acl-deny-end {
|
||||
clear: both;
|
||||
}
|
||||
#acl-permit-outer-wrapper,
|
||||
#acl-deny-outer-wrapper {
|
||||
padding: 10px;
|
||||
margin-top: 10px;
|
||||
border: 2px solid #BBBBBB;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#acl-wrapper-end {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#group-edit-name-label {
|
||||
float: left;
|
||||
width: 175px;
|
||||
|
||||
Reference in New Issue
Block a user