diff options
Diffstat (limited to 'app/view/templates/editrightbar.php')
-rw-r--r-- | app/view/templates/editrightbar.php | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index 8ee402d..e42cdf1 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -73,7 +73,35 @@ ?> </ul> - + + <?php if($user->level() >= 4) { ?> + + <h3>Invites editors</h3> + + <label for="invites">Invites editors</label> + <select name="invites[]" id="invites"> + <option value="" selected>--select invite user--</option> + <?php + $newinviteuserlist = array_diff($inviteuserlist, $art->invites()); + foreach ($newinviteuserlist as $inviteuser) { + echo '<option value="'.$inviteuser.'" >'.$inviteuser.'</option>'; + } + ?> + </select> + <?php + $validateinviteusers = array_intersect($inviteuserlist, $art->invites()); + foreach ($validateinviteusers as $invite) { + ?> + <div class="checkexternal"> + <input type="checkbox" name="invites[]" id="<?= $invite ?>" value="<?= $invite ?>" checked> + <label for="<?= $invite ?>" >⬗ <?= $invite ?></label> + </div> + <?php + } + ?> + + <?php } ?> + </div> </div>
\ No newline at end of file |