* Adjust NEW_CHILD_COUNT to config.

This commit is contained in:
wangyuting
2023-11-21 08:49:00 +00:00
parent 8295058fdc
commit 7e66a87b5d
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
<?php
$config->dept->newChildCount = 10;
+1 -1
View File
@@ -63,7 +63,7 @@ foreach($sons as $dept)
}
$emptyInputs = array();
for($i = 0; $i < 10; $i ++)
for($i = 0; $i < $config->dept->newChildCount; $i ++)
{
$emptyInputs[] = formGroup
(
+1 -1
View File
@@ -53,7 +53,7 @@
if($sonDept->order > $maxOrder) $maxOrder = $sonDept->order;
echo html::input("depts[id$sonDept->id]", $sonDept->name, "class='form-control'");
}
for($i = 0; $i < 10; $i ++) echo html::input("depts[]", '', "class='form-control'");
for($i = 0; $i < $config->dept->newChildCount; $i ++) echo html::input("depts[]", '', "class='form-control'");
?>
</td>
<td></td>