Changeset 485 for trunk/phpbms/modules/base/users_addedit.php
- Timestamp:
- 04/07/09 11:44:18 (3 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/base/users_addedit.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/base/users_addedit.php
r285 r485 1 <?php 1 <?php 2 2 /* 3 3 $Rev$ | $LastChangedBy$ … … 45 45 $thetable = new users($db,9); 46 46 $therecord = $thetable->processAddEditPage(); 47 47 48 48 if(isset($therecord["phpbmsStatus"])) 49 $statusmessage = $therecord["phpbmsStatus"]; 50 49 $statusmessage = $therecord["phpbmsStatus"]; 50 51 51 $pageTitle="User"; 52 52 53 53 $phpbms->cssIncludes[] = "pages/users.css"; 54 54 $phpbms->jsIncludes[] = "modules/base/javascript/users.js"; … … 58 58 $theform = new phpbmsForm(); 59 59 $theform->onsubmit="return submitForm(this);"; 60 60 61 61 $theinput = new inputCheckbox("admin",$therecord["admin"],"administrator"); 62 62 $theform->addField($theinput); 63 63 64 64 $theinput = new inputCheckbox("revoked",$therecord["revoked"],"access revoked"); 65 65 $theform->addField($theinput); … … 86 86 $theinput = new inputField("phone",$therecord["phone"],"phone/extension",false,"phone",32,64); 87 87 $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 89 94 $theinput = new inputChoiceList($db,"department",$therecord["department"],"department"); 90 95 $theform->addField($theinput); … … 92 97 $theform->jsMerge(); 93 98 //============================================================== 94 //End Form Elements 95 99 //End Form Elements 100 96 101 include("header.php"); 97 102 98 103 ?><div class="bodyline"> 99 <?php $theform->startForm($pageTitle)?> 104 <?php $theform->startForm($pageTitle)?> 100 105 <fieldset id="fsAttributes"> 101 106 <legend>attributes</legend> 102 107 103 108 <p> 104 109 <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"/> 106 111 </p> 107 112 … … 117 122 </p> 118 123 </fieldset> 119 124 120 125 <div id="leftSideDiv"> 121 126 <fieldset id="fsName"> … … 135 140 <p> 136 141 <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> 139 146 140 147 <p> 141 148 <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 145 152 <p> 146 153 <label for="password2">confirm new password</label><br /> … … 155 162 156 163 <p><?php $theform->showField("phone");?></p> 157 164 158 165 <p><?php $theform->showField("department");?></p> 159 166 160 167 <p> 161 168 <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" /> 163 170 </p> 164 171 </fieldset> … … 190 197 </div> 191 198 </div> 192 </fieldset> 199 </fieldset> 193 200 <?php }?> 194 </div> 195 196 <?php 201 </div> 202 203 <?php 197 204 $theform->showCreateModify($phpbms,$therecord); 198 205 $theform->endForm();