Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/addarticle.php - 124 lines - 4555 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  @include ("header.php");
  10  @include ("menu.php");
  11  ?>
  12  <div id="content">
  13  <?
  14  $object=$ae->DisplayError(8);
  15  ?>
  16  <form method="post" action="modify.php?command=2">
  17  <label for="title"><? echo $ae->textbasic[117] ?></label>
  18  <input type="text" name="title" id="title" size="78" value="<? echo $object->title; ?>" /><br class="clear" />
  19  <label for="text"><? echo $ae->textbasic[119] ?></label>
  20  <?
  21  $ae->text=$object->text;
  22  if (!$ae->wysiwygeditor)
  23     {
  24     echo '<textarea name="text" id="text" cols="70" rows="20">',$ae->text,'</textarea>';
  25     }
  26  else
  27     {
  28     @include($ae->wysiwygeditor."add.php");
  29     }
  30  ?>
  31  <br class="clear" />
  32  <? if ($ae->cleanurls): ?>
  33  <label for="filename"><? echo $ae->textbasic[54]; ?></label>
  34  <input type="text" name="filename" id="filename" size="60" value="<? echo $object->filename; ?>" /><br class="clear" />
  35  <? endif; ?>
  36  <label for="adate"><? echo $ae->textbasic[121] ?></label>
  37  <input type="text" name="adate" id="adate" value="<? echo $ae->DateConversion(Date("Y-m-d"),2); ?>" size="10" maxlength="10" /><br class="clear" />
  38  <label for="atime"><? echo $ae->textbasic[126] ?></label>
  39  <input type="text" name="atime" id="atime" value="<? echo Date("H:i:s"); ?>" size="8" maxlength="8" /><br class="clear" />
  40  <label for="sectionID"><? echo $ae->textbasic[122] ?></label><br class="clear" />
  41  <?
  42  /*

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

  44  $size=$ae->rowsnumber;

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

  46  */
  47  ?>
  48  <?
  49  $ae->sectionID=$object->sectionID;
  50  $ae->LoopThroughSectionList(0,3);
  51  ?>
  52  <? /* </select> */ ?><br class="clear" />
  53  <label for="imagesetID"><? echo $ae->textbasic[123] ?></label>
  54  <select name="imagesetID" id="imagesetID">
  55  <option value="0" selected="selected">
  56  <? echo $ae->textbasic[125] ?>
  57  </option>
  58  <?
  59  @$ae->DBQuery("SELECT * FROM ".$ae->table[13]." ORDER BY description");
  60  while ($ae->DBGetRow())
  61  {
  62  $optionvalue=$ae->access["ID"];
  63  $optiontext=$ae->access["description"];
  64  echo '<option value="',$optionvalue,'"';
  65  if ($optionvalue==$object->imagesetID) echo ' selected="selected"';
  66  echo '>',$optiontext,'</option>';
  67  }
  68  ?>
  69  </select><br class="clear" />
  70  <label for="filesetID"><? echo $ae->textbasic[124] ?></label>
  71  <select name="filesetID" id="filesetID">
  72  <option value="0" selected="selected">
  73  <? echo $ae->textbasic[127] ?>
  74  </option>
  75  <?
  76  @$ae->DBQuery("SELECT * FROM ".$ae->table[12]." ORDER BY description");
  77  while ($ae->DBGetRow())
  78  {
  79  $optionvalue=$ae->access["ID"];
  80  $optiontext=$ae->access["description"];
  81  echo '<option value="',$optionvalue,'"';
  82  if ($optionvalue==$object->filesetID) echo ' selected="selected"';
  83  echo '>',$optiontext,'</option>';
  84  }
  85  ?>
  86  </select><br class="clear" />
  87  <label for="priority"><? echo $ae->textbasic[128] ?></label>
  88  <select name="priority" id="priority">
  89  <option value="0" <? if ($object->priority==0) echo ' selected="selected"'; ?>><? echo $ae->textbasic[130] ?></option>
  90  <option value="1" <? if ($object->priority==1) echo ' selected="selected"'; ?>><? echo $ae->textbasic[131] ?></option>
  91  </select><br class="clear" />
  92  <label for="status"><? echo $ae->textbasic[129] ?></label>
  93  <?
  94  if ($ae->currentuserposition>2) echo '<input type="text" name="status" id="status" size="30" readonly="readonly" value="',$ae->textbasic[132],'" class="noborder" /><br class="clear" />';
  95  else
  96  {
  97  echo '<select name="status" id="status">';
  98  echo '<option value="0"';
  99  if (isset($object->status) AND $object->status==0) echo ' selected="selected"';
 100  echo '>',$ae->textbasic[132],'</option>';
 101  echo '<option value="1"';
 102  if (!isset($object->status) OR $object->status==1) echo ' selected="selected"';
 103  echo '>',$ae->textbasic[133],'</option>';
 104  echo '</select>';
 105  }
 106  ?>
 107  <br class="clear" />
 108  <label for="submit"></label>
 109  <?
 110  echo '<input type="submit" name="submit" id="submit" value="',$ae->textbasic[103],'"';
 111  if ($ae->wysiwygeditor AND file_exists($ae->wysiwygeditor."hooks.txt"))
 112     {
 113     $hooks=join("",file($ae->wysiwygeditor."hooks.txt"));
 114     echo $hooks;
 115     }
 116  echo ' class="button" />';
 117  ?>
 118  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
 119  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
 120  <input type="hidden" name="authorID" value="<? echo $ae->currentuserID; ?>" />
 121  </fieldset>
 122  </form>
 123  </div>
 124  <? @include ("footer.php") ?>

title

Description

title

Description

title

Description

title

title

Body