* @package tree * @version $Id: children.html.php 4108 2016-10-08 06:07:30Z daitingting $ * @link https://xuanim.com */ ?>
">
category->children . ' ' : $lang->category->common; ?> id"), $origin->name . " "); } ?>
id) $maxID = $child->id; $disabled = !$child->major ? '' : ($child->major < 5 ? "disabled='disabled'" : "readonly='readonly'"); echo (!$child->major or $child->major > 4) ? "
" : "
"; echo "
" . html::input("children[$child->id]", $child->name, "class='form-control' $disabled") . "
"; if(!$child->major or $child->major > 4) echo "
"; echo html::hidden("mode[$child->id]", 'update', "$disabled"); echo "
"; } for($i = 0; $i < TREE::NEW_CHILD_COUNT ; $i ++) { echo "
"; echo "
" . html::input("children[]", '', "class='form-control' placeholder='{$this->lang->category->common}'") . "
"; echo "
"; echo html::hidden('mode[]', 'new'); echo "
"; } $button = ($type == 'dept') ? html::submitButton() . ' ' . html::backButton() : html::submitButton(); echo "
" . $button . "
"; echo html::hidden('parent', $parent); ?>