32 require_once(
"../class/config.php");
34 if (!$admin->enabled) {
35 __(
"This page is restricted to authorized staff");
39 "synchronise" => array (
"get",
"integer",
"0"),
43 include_once (
"head.php");
46 <h3><?php
__(
"Change the default quotas"); ?></h3>
50 if ($synchronise==
true) {
51 $quota->synchronise_user_profile();
52 echo
"<p class=\"alert alert-info\">";
__(
"User's quotas synchronised");echo
"</p>";
55 $quota->create_missing_quota_profile();
58 echo
"<p class=\"alert alert-danger\">$error</p>";
61 <form method=
"post" action=
"adm_dodefquotas.php">
63 <input type=
"hidden" name=
"action" value=
"add" />
64 <input type=
"text" name=
"type" class=
"int" />
65 <input type=
"submit" class=
"inb" value=
"<?php __("Add account type
"); ?>" />
71 <form method=
"post" action=
"adm_dodefquotas.php">
72 <table border=
"0" cellpadding=
"4" cellspacing=
"0">
75 <input type=
"hidden" name=
"action" value=
"delete" />
76 <select name=
"type" id=
"type" class=
"inl">
78 foreach($quota->listtype() as $type) {
79 if ($type==
"default")
continue;
80 echo
"<option value=\"$type\">$type</option>\n";
83 </td><td><input type=
"submit" class=
"inb" value=
"<?php __("Delete account type
"); ?>" /></td>
88 <?php
__(
"Here is the list of the quotas on the server for the new accounts. If you want to change them, enter new values"); ?>
90 <span
class=
"inb"><a href=
"adm_defquotas.php?synchronise=1"><?php
__(
"Synchronise user's quota (only to upper value)"); ?></a></span>
92 <form method=
"post" action=
"adm_dodefquotas.php">
94 <input type=
"hidden" name=
"action" value=
"modify" />
101 <div
class=
"info-toggle">
102 <h4
class=
"toggle-next"><?php echo _(
"Accounts of type").
" \"$type\"" ?>▼</h4>
103 <div
class=
"info-hide" id=
"div-quot-<?php echo md5($type);?>">
104 <table border=
"0" cellpadding=
"4" cellspacing=
"0" class=
'tlist'>
105 <tr><th><?php
__(
"Quotas") ?></th><th><?php
__(
"Default Value"); ?></th></tr>
109 $key = $type .
":" . $name;
113 <td><label
for=
"<?php echo $key; ?>"><?php echo
$qarray[$name] ; ?></label></td>
114 <td><input type=
"text" class=
"int" size=
"16" maxlength=
"16" name=
"<?php echo $key; ?>" id=
"<?php echo $key;?>" value=
"<?php ehe($value); ?>" /></td></tr>
122 <script type=
"text/javascript">
123 $(
"#div-quot-<?php echo md5($type);?>").toggle();
130 <input type=
"submit" class=
"inb ok" value=
"<?php __("Edit the
default quotas
"); ?>" />
133 <script type=
"text/javascript">
135 $(
".toggle-next").on(
"click",
function(){
136 var next = $(
this).next();
141 <?php include_once(
"foot.php"); ?>