phpBMS

Show
Ignore:
Timestamp:
04/07/09 11:44:18 (3 years ago)
Author:
nate
Message:
  • Merged Nathan branch back into trunk.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/users_addedit.php

    r285 r485  
    1 <?php  
     1<?php 
    22/* 
    33 $Rev$ | $LastChangedBy$ 
     
    4545        $thetable = new users($db,9); 
    4646        $therecord = $thetable->processAddEditPage(); 
    47          
     47 
    4848        if(isset($therecord["phpbmsStatus"])) 
    49                 $statusmessage = $therecord["phpbmsStatus"];     
    50          
     49                $statusmessage = $therecord["phpbmsStatus"]; 
     50 
    5151        $pageTitle="User"; 
    52          
     52 
    5353        $phpbms->cssIncludes[] = "pages/users.css"; 
    5454        $phpbms->jsIncludes[] = "modules/base/javascript/users.js"; 
     
    5858                $theform = new phpbmsForm(); 
    5959                $theform->onsubmit="return submitForm(this);"; 
    60                  
     60 
    6161                $theinput = new inputCheckbox("admin",$therecord["admin"],"administrator"); 
    6262                $theform->addField($theinput); 
    63                  
     63 
    6464                $theinput = new inputCheckbox("revoked",$therecord["revoked"],"access revoked"); 
    6565                $theform->addField($theinput); 
     
    8686                $theinput = new inputField("phone",$therecord["phone"],"phone/extension",false,"phone",32,64); 
    8787                $theform->addField($theinput); 
    88                  
     88 
     89                $theinput = new inputField("lastip", $therecord["lastip"], "last log in IP"); 
     90                $theinput->setAttribute("readonly", "readonly"); 
     91                $theinput->setAttribute("class", "uneditable"); 
     92                $theform->addField($theinput); 
     93 
    8994                $theinput = new inputChoiceList($db,"department",$therecord["department"],"department"); 
    9095                $theform->addField($theinput); 
     
    9297                $theform->jsMerge(); 
    9398                //============================================================== 
    94                 //End Form Elements      
    95                          
     99                //End Form Elements 
     100 
    96101        include("header.php"); 
    97          
     102 
    98103?><div class="bodyline"> 
    99         <?php $theform->startForm($pageTitle)?>          
     104        <?php $theform->startForm($pageTitle)?> 
    100105        <fieldset id="fsAttributes"> 
    101106                <legend>attributes</legend> 
    102                  
     107 
    103108                <p> 
    104109                        <label for="id">id</label><br /> 
    105                         <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/>             
     110                        <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable"/> 
    106111                </p> 
    107112 
     
    117122                </p> 
    118123        </fieldset> 
    119          
     124 
    120125        <div id="leftSideDiv"> 
    121126                <fieldset id="fsName"> 
     
    135140                        <p> 
    136141                                <label for="lastlogin" >last log in</label><br /> 
    137                                 <input id="lastlogin" name="lastlogin" type="text" value="<?php echo formatFromSQLDateTime($therecord["lastlogin"]); ?>" size="32" maxlength="64" readonly="readonly" class="uneditable"  />                     
    138                         </p> 
     142                                <input id="lastlogin" name="lastlogin" type="text" value="<?php echo formatFromSQLDateTime($therecord["lastlogin"]); ?>" size="32" maxlength="64" readonly="readonly" class="uneditable"  /> 
     143                        </p> 
     144 
     145                        <p><?php $theform->showField("lastip"); ?></p> 
    139146 
    140147                        <p> 
    141148                                <label for="password">set new password</label><br /> 
    142                                 <input id="password" name="password" type="password" size="32" maxlength="32" />                         
    143                         </p> 
    144                          
     149                                <input id="password" name="password" type="password" size="32" maxlength="32" /> 
     150                        </p> 
     151 
    145152                        <p> 
    146153                                <label for="password2">confirm new password</label><br /> 
     
    155162 
    156163                        <p><?php $theform->showField("phone");?></p> 
    157                          
     164 
    158165                        <p><?php $theform->showField("department");?></p> 
    159166 
    160167                        <p> 
    161168                                <label for="employeenumber">employee number</label><br /> 
    162                                 <input type="text" id="employeenumber" name="employeenumber" value="<?php echo htmlQuotes($therecord["employeenumber"]) ?>" size="32" maxlength="32" />                  
     169                                <input type="text" id="employeenumber" name="employeenumber" value="<?php echo htmlQuotes($therecord["employeenumber"]) ?>" size="32" maxlength="32" /> 
    163170                        </p> 
    164171                </fieldset> 
     
    190197                        </div> 
    191198                        </div> 
    192                 </fieldset>              
     199                </fieldset> 
    193200                <?php }?> 
    194         </div>   
    195  
    196         <?php  
     201        </div> 
     202 
     203        <?php 
    197204                $theform->showCreateModify($phpbms,$therecord); 
    198205                $theform->endForm(); 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.