Housekeeping Issue.

Detox

Member
Jul 24, 2010
365
24
Hello!

I'm trying to re-design BrainCMS to the Original HoloCMS (with modern tweak). At this time Im trying to complete the housekeeping.

So when I use my re-signed Housekeeping (Original HoloCMS) when I try to edit a user it shows "No users found"

I mimic the code from the Original BrainCMS Housekeeping.

My Code:

PHP:
<?php
    include_once "includes/head.php";
    include_once "includes/header.php";
    admin::CheckRank(5);
?>
<table cellpadding='0' cellspacing='8' width='100%' id='tablewrap'>
<tr> <td width='22%' valign='top' id='leftblock'>
 <div>
 <!-- LEFT CONTEXT SENSITIVE MENU -->
<?php [MENTION=2000167780]Include[/MENTION]('./includes/usermenu.php'); ?>
 <!-- / LEFT CONTEXT SENSITIVE MENU -->
 </div>
 </td>
 <td width='78%' valign='top' id='rightblock'>
 <div><!-- RIGHT CONTENT BLOCK -->
<!---
<form action="" method='POST'>
<input type='hidden' name='hiddenHook' value='valid'>
<div class='tableborder'>
<div class='tableheaderalt'>Edit User</div>

<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>
<tr>
<td class='tablerow1'  width='40%'  valign='middle'><b></b><div class='graytext'></div></td>
<td class='tablerow2'  width='60%'  valign='middle'><input type='text' name='".$key."' size='100%' value='<?php echo admin::EditUser("zoek"); ?>'>";

    </td>
</tr>

<tr>
<tr><td align='center' class='tablesubheader' colspan='2' ><input type='submit' value='Save User' class='realbutton' accesskey='s'></td></tr>
</form></table></div><br />
-->
<?php
                if (User::userData('rank') > '5')
                {
                ?>
<form action="" method="POST" name='user'>
<?php admin::searchUser(); ?>
<div class='tableborder'>
<div class='tableheaderalt'>Edit User</div>
<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>
<tr>
<td class='tablerow1'  width='40%'  valign='middle'><b>Username</b><div class='graytext'>The name of the user you want to edit.</div></td>
<td class='tablerow2'  width='60%'  valign='middle'><input type='text' name='zoek' value="<?php echo admin::EditUser("zoek"); ?>" size='30' class='textinput'></td>
</tr>

<tr>
<tr><td align='center' class='tablesubheader' colspan='2' ><input type='submit' name="zoek" value='Edit User' class='realbutton' accesskey='s'></td></tr>
</form></table></div><br />
<?php
                }
                else{
                ?>

                <?php
            }
                ?>
</div><!-- / RIGHT CONTENT BLOCK -->
     </td></tr>
</table>
</div><!-- / OUTERDIV -->
<div align='center'><br />
<?php
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
printf('Time: %.3f', $totaltime);
?>
</div>

Original Brain Housekeeping Code:

PHP:
<?php
    include_once "includes/head.php";
    include_once "includes/header.php";
    include_once "includes/navi.php";
    admin::CheckRank(5);
?>
<aside class="right-side">
    <section class="content">
        <div class="row">
            <?php
                if (User::userData('rank') > '5')
                {
                ?>
                <div class="col-md-12">
                    <section class="panel">
                        <header class="panel-heading">
                            Search For A User
                            <form action="" method="POST">
                            </header>
                            <div class="panel-body">
                                <?php admin::searchUser(); ?>
                                <div class="form-group">
                                    <label class="col-sm-2 col-sm-2 control-label">Username</label>
                                    <div class="col-sm-10">
                                        <input type="text"  value="" name="user" class="form-control">
                                    </div>
                                </div>
                                <br><br>
                                <button style="width: 140px;
                                float: right;
                                margin-right: 14px;" name="zoek" type="submit" class="btn btn-success">Find User</button>
                            </div>
                        </section>
                    </div>
                </form>
                <?php
                }
                else{
                ?>
                <input type="hidden"  value="<?php echo admin::EditUser("zoek"); ?>" name="zoek" class="form-control" disabled>
                <?php
                }
            ?>
        </div>
        <?php
            include_once "includes/footer.php";
            include_once "includes/script.php";
        ?>

*Image attached*

If you'd you like to view some images of my project please click
 

Attachments

  • Screen Shot 2020-04-14 at 1.34.49 PM.png
    Screen Shot 2020-04-14 at 1.34.49 PM.png
    35.2 KB · Views: 12

Users who are viewing this thread

Top