Viewing File: /usr/local/cpanel/base/frontend/jupiter/filemanager/popups/changeperms.html.tt

<script type="text/javascript">
function calcperm() {
        document.fmode.u.value = 0;
        if (document.fmode.ur.checked) {
                document.fmode.u.value = document.fmode.u.value * 1 + document.fmode.ur.value * 1;
        }
        if (document.fmode.uw.checked) {
                document.fmode.u.value = document.fmode.u.value * 1 + document.fmode.uw.value * 1;
        }
        if (document.fmode.ux.checked) {
                document.fmode.u.value = document.fmode.u.value * 1 + document.fmode.ux.value * 1;
        }
        document.fmode.g.value = 0;
        if (document.fmode.gr.checked) {
                document.fmode.g.value = document.fmode.g.value * 1 + document.fmode.gr.value * 1;
        }
        if (document.fmode.gw.checked) {
                document.fmode.g.value = document.fmode.g.value * 1 + document.fmode.gw.value * 1;
        }
        if (document.fmode.gx.checked) {
                document.fmode.g.value = document.fmode.g.value * 1 + document.fmode.gx.value * 1;
        }
        document.fmode.w.value = 0;
        if (document.fmode.wr.checked) {
                document.fmode.w.value = document.fmode.w.value * 1 + document.fmode.wr.value * 1;
        }
        if (document.fmode.ww.checked) {
                document.fmode.w.value = document.fmode.w.value * 1 + document.fmode.ww.value * 1;
        }
        if (document.fmode.wx.checked) {
                document.fmode.w.value = document.fmode.w.value * 1 + document.fmode.wx.value * 1;
        }
}
</script>

<style type="text/css">
.chmodtbl td {
    padding: auto 2px;
    text-align: center;
}
.chmodtbl td.label {
    padding: 0;
    text-align: left;
}
</style>

<div style="display:none;" id="chmod">
    <div class="hd">
        <div class="lt"></div>
        <span>[% locale.maketext("Change Permissions") %]</span>

        <div class="rt">
        </div>
    </div>
    <div class="bd">
        <div class="filecontent" id="chmod-content">
            <form name="fmode" action="changeperm.html">
                <div class="chmod_filelist_container">
                    [% locale.maketext("File(s)") %]: <div id="chmod-filelist"></div>
                    <input type="hidden" name="file" id="chmod-file" />
                </div>
                <table class="table table-stripped chmodtbl" id="chmodtbl">
                  <tr>
                    <td><b>[% locale.maketext("Mode") %]</b></td>
                    <td>[% locale.maketext("User") %]</td>
                    <td>[% locale.maketext("Group") %]</td>
                    <td>[% locale.maketext("World") %]</td>
                  </tr>
                  <tr>
                    <td>[% locale.maketext("Read") %]</td>
                    <td><input  type="checkbox" name="ur" value="4" onclick="calcperm();" /></td>
                    <td><input  type="checkbox" name="gr" value="4" onclick="calcperm();" /></td>
                    <td><input  type="checkbox" name="wr" value="4" onclick="calcperm();" /></td>
                  </tr>
                  <tr>
                    <td>[% locale.maketext("Write") %]</td>
                    <td><input  type="checkbox" name="uw" value="2" onclick="calcperm();" /></td>
                    <td><input  type="checkbox" name="gw" value="2" onclick="calcperm();" /></td>
                    <td><input  type="checkbox" name="ww" value="2" onclick="calcperm();" /></td>
                  </tr>
                  <tr>
                    <td>[% locale.maketext("Execute") %]</td>
                    <td><input  type="checkbox" name="ux" value="1" onclick="calcperm();" /></td>
                    <td><input  type="checkbox" name="gx" value="1" onclick="calcperm();" /></td>
                    <td><input  type="checkbox" name="wx" value="1" onclick="calcperm();" /></td>
                  </tr>
                  <tr>
                    <td>[% locale.maketext("Permission") %]</td>
                    <td><input type="text" class="form-control" name="u"  readonly="readonly" /></td>

                    <td><input type="text" class="form-control" name="g"  readonly="readonly" /></td>
                    <td><input type="text" class="form-control" name="w"  readonly="readonly" /></td>
                  </tr>
                </table>
                <br />
                <input type="hidden" id="chmod-dir" name="dir" value="" />
            </form>
        </div>
    </div>
    <div class="ft"></div>
</div>

Back to Directory File Manager