* Adjust NEW_CHILD_COUNT to config.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
$config->dept->newChildCount = 10;
|
||||
@@ -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
|
||||
(
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user