Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/editarticle.php - 146 lines - 4981 bytes - Summary - Text - Print

   1  <?
   2  define('INCLUDEWYSIWYG',1);
   3  @include ("coreclass.php");
   4  $ae=new CArticles();
   5  $ae->RequestVariables();
   6  $ae->EngineInitialize();
   7  $ae->UserVerifySession();
   8  $ae->UserVerifyLevel(3);
   9  $ae->DBQuery("SELECT * FROM ".$ae->table[3]." WHERE ID='".$ae->articleID."'");
  10  $ae->DBGetRow();
  11  $articleID=$ae->access["ID"];
  12  $title=$ae->access["title"];
  13  $text=$ae->access["text"];
  14  $authorID=$ae->access["authorID"];
  15  $imagesetID=$ae->access["imagesetID"];
  16  $filesetID=$ae->access["filesetID"];
  17  $priority=$ae->access["priority"];
  18  $status=$ae->access["status"];
  19  $adate=$ae->access["adate"];
  20  $adate=$ae->DateConversion($adate,2);
  21  $atime=$ae->access["atime"];
  22  $filename=$ae->access["filename"];
  23  @include ("header.php");
  24  @include ("menu.php");
  25  ?>
  26  <div id="content">
  27  <?
  28  $object=$ae->DisplayError(8);
  29  ?>
  30  <form method="post" action="modify.php?command=3">
  31  <fieldset><legend></legend>
  32  <label for="title"><? echo $ae->textbasic[117] ?></label>
  33  <input type="text" name="title" value="<? echo $title ?>" size="78" /><br class="clear" />
  34  <label for="text"><? echo $ae->textbasic[119] ?></label>
  35  <?
  36  $ae->text=$text;
  37  if (!$ae->wysiwygeditor)
  38     {
  39     echo '<textarea name="text" id="text" cols="70" rows="20">',$ae->text,'</textarea>';
  40     }
  41  else
  42     {
  43     include($ae->wysiwygeditor."edit.php");
  44     }
  45  ?>
  46  <br class="clear" />
  47  <? if ($ae->cleanurls): ?>
  48  <label for="filename"><? echo $ae->textbasic[54]; ?></label>
  49  <input type="text" name="filename" size="60" value="<? echo $filename; ?>" /><br class="clear" />
  50  <? endif; ?>
  51  <label for="authorID"><? echo $ae->textbasic[120]; ?></label>
  52  <?
  53  $ae->DBQuery("SELECT fullname FROM ".$ae->table[5]." WHERE ID='$authorID'");
  54  $ae->DBGetRow();
  55  $author=$ae->access["fullname"];
  56  echo '<input type="text" name="status" id="status" size="30" readonly="readonly" value="',$author,'" class="noborder" />';
  57  ?><br class="clear" />
  58  <label for="adate"><? echo $ae->textbasic[121] ?></label>
  59  <input type="text" name="adate" value="<? echo $adate; ?>" size="10" maxlength="10" /><br class="clear" />
  60  <label for="atime"><? echo $ae->textbasic[126] ?></label>
  61  <input type="text" name="atime" value="<? echo $atime; ?>" size="8" maxlength="8" /><br class="clear" />
  62  <label for="sectionID"><? echo $ae->textbasic[122] ?></label><br class="clear" />
  63  <?
  64  /*

  65  $ae->DBQuery("SELECT ID FROM ".$ae->table[0]);

  66  $size=$ae->rowsnumber;

  67  <select name="sectionID[]" id="sectionID" multiple="multiple" size="<? echo $size; ?>">

  68  */
  69  ?>
  70  <?
  71  $ae->LoopThroughSectionList(0,3);
  72  ?>
  73  <? /* </select> */ ?><br class="clear" />
  74  <label for="imagesetID"><? echo $ae->textbasic[123] ?></label>
  75  <select name="imagesetID">
  76  <option value="0"><? echo $ae->textbasic[125] ?></option>
  77  <?
  78  $ae->DBQuery("SELECT * FROM ".$ae->table[13]." ORDER BY description");
  79  while ($ae->DBGetRow())
  80  {
  81  $optionvalue=$ae->access["ID"];
  82  $optiontext=$ae->access["description"];
  83  echo '<option value="',$optionvalue,'"';
  84  if ($imagesetID==$optionvalue) echo ' selected';
  85  echo '>',$optiontext,'</option>';
  86  }
  87  ?>
  88  </select><br class="clear" />
  89  <label for="filesetID"><? echo $ae->textbasic[124] ?></label>
  90  <select name="filesetID">
  91  <option value="0"><? echo $ae->textbasic[127] ?></option>
  92  <?
  93  $ae->DBQuery("SELECT * FROM ".$ae->table[12]." ORDER BY description");
  94  while ($ae->DBGetRow())
  95  {
  96  $optionvalue=$ae->access["ID"];
  97  $optiontext=$ae->access["description"];
  98  echo '<option value="',$optionvalue,'"';
  99  if ($filesetID==$optionvalue) echo ' selected';
 100  echo '>',$optiontext,'</option>';
 101  }
 102  ?>
 103  </select><br class="clear" />
 104  <label for="priority"><? echo $ae->textbasic[128] ?></label>
 105  <select name="priority">
 106  <option value="0"<? if (!$priority) echo ' selected'; ?>><? echo $ae->textbasic[130] ?></option>
 107  <option value="1"<? if ($priority) echo ' selected'; ?>><? echo $ae->textbasic[131] ?></option>
 108  </select><br class="clear" />
 109  <label for="status"><? echo $ae->textbasic[129] ?></label>
 110  <?
 111  if ($ae->currentuserposition>2)
 112  {
 113  if (!$status) echo $ae->textbasic[132];
 114  else echo $ae->textbasic[132];
 115  }
 116  else
 117  {
 118  echo '<select name="status">';
 119  echo '<option value="0"';
 120  if (!$status) echo ' selected';
 121  echo '>',$ae->textbasic[132],'</option>';
 122  echo '<option value="1"';
 123  if ($status) echo ' selected';
 124  echo '>',$ae->textbasic[133],'</option>';
 125  echo '</select>';
 126  }
 127  ?>
 128  <br class="clear" />
 129  <label for="submit"></label>
 130  <?
 131  echo '<input type="submit" name="submit" value="',$ae->textbasic[103],'"';
 132  if ($ae->wysiwygeditor AND file_exists($ae->wysiwygeditor."hooks.txt"))
 133     {
 134     $hooks=join("",file($ae->wysiwygeditor."hooks.txt"));
 135     echo $hooks;
 136     }
 137  echo ' class="button" />';
 138  ?>
 139  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
 140  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
 141  <input type="hidden" name="articleID" value="<? echo $ae->articleID; ?>" />
 142  <input type="hidden" name="authorID" value="<? echo $authorID; ?>" />
 143  </fieldset>
 144  </form>
 145  </div>
 146  <? @include ("footer.php") ?>

title

Description

title

Description

title

Description

title

title

Body