Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/edituser.php - 95 lines - 4311 bytes - Summary - Text - Print

   1  <?
   2  @include ("coreclass.php");
   3  $ae=new CEngine();
   4  $ae->RequestVariables();
   5  $ae->EngineInitialize();
   6  $ae->UserVerifySession();
   7  $ae->UserVerifyLevel(3);
   8  if ($ae->currentuserposition<>1 AND $ae->currentuserID<>$ae->userID) $ae->DisplayError(12);
   9  $ae->DBQuery("SELECT * FROM ".$ae->table[5]." WHERE ID='".$ae->userID."'");
  10  $ae->DBGetRow();
  11  $user=$ae->access["user"];
  12  $fullname=$ae->access["fullname"];
  13  $email=$ae->access["email"];
  14  $position=$ae->access["position"];
  15  $language=$ae->access["language"];
  16  $photo=$ae->access["photo"];
  17  if ($photo) $thumbnail=$ae->GetThumbnailName($photo);
  18  $otherinfo=$ae->access["otherinfo"];
  19  @include ("header.php");
  20  @include ("menu.php");
  21  ?>
  22  <div id="content">
  23  <form method="post" action="modify.php?command=<? if ($ae->currentuserposition==1) echo 52; else echo 4; ?>" enctype="multipart/form-data">
  24  <fieldset><legend><? echo $ae->textbasic[58]; ?></legend>
  25  <label for="name"><? echo $ae->textbasic[0]; ?></label>
  26  <input type="text" name="name" id="name" size="30" readonly="readonly" value="<? echo $user; ?>" class="noborder" /><br class="clear" />
  27  <label for="password"><? echo $ae->textbasic[1]; ?></label>
  28  <input type="password" name="password" id="password" size="30" /><br class="clear" />
  29  <label for="password2"><? echo $ae->textbasic[2]; ?></label>
  30  <input type="password" name="password2" id="password2" size="30" /><br class="clear" />
  31  <label for="fullname"><? echo $ae->textbasic[3]; ?></label>
  32  <input type="text" name="fullname" id="fullname" size="50" value="<? echo $fullname; ?>" /><br class="clear" />
  33  <label for="email"><? echo $ae->textbasic[27]; ?></label>
  34  <input type="text" name="email" id="email" size="30" maxlength="255" value="<? echo $email; ?>" /><br class="clear" />
  35  <label for="position"><? echo $ae->textbasic[4]; ?></label>
  36  <?
  37  if ($ae->currentuserposition<>1)
  38  {
  39  if ($ae->currentuserposition==1) echo $ae->textbasic[5];
  40  if ($ae->currentuserposition==2) echo $ae->textbasic[6];
  41  if ($ae->currentuserposition==3) echo $ae->textbasic[7];
  42  if ($ae->currentuserposition==4) echo $ae->textbasic[146],' (4)';
  43  if ($ae->currentuserposition==5) echo $ae->textbasic[146],' (5)';
  44  }
  45  else
  46  {
  47  echo '<select name="position" id="position">';
  48  echo '<option value="1"'; if ($position==1) echo ' selected';
  49  echo '>',$ae->textbasic[5],'</option>';
  50  echo '<option value="2"'; if ($position==2) echo ' selected';
  51  echo '>',$ae->textbasic[6],'</option>';
  52  echo '<option value="3"'; if ($position==3) echo ' selected';
  53  echo '>',$ae->textbasic[7],'</option>';
  54  echo '<option value="4"'; if ($position==4) echo ' selected';
  55  echo '>',$ae->textbasic[146],' (4)</option>';
  56  echo '<option value="5"'; if ($position==5) echo ' selected';
  57  echo '>',$ae->textbasic[146],' (5)</option>';
  58  echo '</select>';
  59  }
  60  ?>
  61  <br class="clear" />
  62  <label for="language"><? echo $ae->textbasic[26]; ?></label>
  63  <select name="language" id="language">
  64  <?
  65  $languagearray=$ae->RequestLanguageVersions();
  66  while (list($key,$optionvalue)=each($languagearray))
  67  {
  68  echo '<option value="',$optionvalue,'"';
  69  if ($optionvalue==$language) echo ' selected';
  70  echo '>',$optionvalue,'</option>';
  71  }
  72  ?>
  73  </select>
  74  <br class="clear" />
  75  <label for="file"><? echo $ae->textbasic[30]; ?></label>
  76  <input type="file" name="file" id="file" size="50" /><br class="clear" />
  77  <?
  78  if ($photo)
  79     {
  80     echo ' <a href="',$ae->pathimages,$photo,'"><img src="',$ae->pathimages,$thumbnail,'" class="preview"></a> ';
  81     echo ' <input type="checkbox" name="delete" id="delete" value="1" /><label for="delete" class="nofloat">',$ae->textbasic[110],' ',$photo,'</label><br class="clear" />';
  82     }
  83  ?>
  84  <label for="otherinfo"><? echo $ae->textbasic[31]; ?></label>
  85  <textarea cols="78" rows="5" name="otherinfo" id="otherinfo"><? echo $otherinfo; ?></textarea><br class="clear" />
  86  <label for="submit"></label>
  87  <input type="submit" name="submit" id="submit" value="<? echo $ae->textbasic[103]; ?>" class="button" />
  88  <input type="hidden" name="userID" value="<? echo $ae->userID; ?>" />
  89  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
  90  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
  91  <input type="hidden" name="MAX_FILE_SIZE" value="<? echo $ae->sizemaximages; ?>" />
  92  </fieldset>
  93  </form>
  94  </div>
  95  <? @include ("footer.php"); ?>

title

Description

title

Description

title

Description

title

title

Body