Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/managersection.php - 86 lines - 2959 bytes - Summary - Text - Print

   1  <?
   2  $section=""; $filename="";
   3  @include ("coreclass.php");
   4  $ae=new CArticles();
   5  $ae->RequestVariables();
   6  $ae->EngineInitialize();
   7  $ae->UserVerifySession();
   8  $ae->UserVerifyLevel(2);
   9  $ae->DBQuery("SELECT * FROM ".$ae->table[0]." WHERE ID='".$ae->sectionID."'");
  10  $ae->DBGetRow();
  11  $section=$ae->access["section"];
  12  $parentsectionID=$ae->access["parentsectionID"];
  13  $articleID=$ae->access["articleID"];
  14  $filename=$ae->access["filename"];
  15  @include ("header.php");
  16  @include ("menu.php");
  17  if (isset($object->section)) $section=$object->section;
  18  if (isset($object->parentsectionID)) $ae->sectionID=$object->parentsectionID;
  19  if (isset($object->filename)) $filename=$object->filename;
  20  ?>
  21  <div id="content">
  22  <?
  23  $object=$ae->DisplayError(8);
  24  ?>
  25  <div id="left">
  26  <fieldset><legend><? echo $ae->textbasic[81]; ?></legend>
  27  <?
  28  $ae->LoopThroughSectionList(0,1);
  29  ?>
  30  <?
  31  if ($ae->sectionID)
  32     {
  33     $ae->DBQuery("SELECT * FROM ".$ae->table[0]." WHERE ID='".$ae->sectionID."'");
  34     $ae->DBGetRow();
  35     $section=$ae->access["section"];
  36     $parentsectionID=$ae->access["parentsectionID"];
  37     $filename=$ae->access["filename"];
  38     }
  39  ?>
  40  </fieldset>
  41  </div>
  42  <div id="right">
  43  <form method="post" action="modify.php?command=<? if (!$ae->sectionID) echo '31'; else echo '33'; ?>">
  44  <fieldset><legend><? if (!$ae->sectionID) echo $ae->textbasic[82]; else echo $ae->textbasic[145]; ?></legend>
  45  <label for="section"><? echo $ae->textbasic[83]; ?></label>
  46  <input type="text" name="section" id="section" size="40" value="<? echo $section; ?>" /><br class="clear" />
  47  <label for="parentsectionID"><? echo $ae->textbasic[143]; ?></label>
  48  <select name="parentsectionID">
  49  <option value="0"><? echo $ae->textbasic[144]; ?></option>
  50  <?
  51  $ae->LoopThroughSectionList(0,2);
  52  ?>
  53  </select>
  54  <br class="clear" />
  55  <label for="articleID"><? echo $ae->textbasic[40]; ?></label>
  56  <select name="articleID" id="articleID">
  57  <option> </option>
  58  <?
  59  $ae->DBQuery("SELECT ID,title FROM ".$ae->table[3]." ORDER BY title");
  60  while ($ae->DBGetRow())
  61        {
  62        $optionvalue=$ae->access["ID"];
  63        $optiontext=$ae->access["title"];
  64        echo '<option value="',$optionvalue,'"';
  65        if ($articleID==$optionvalue) echo ' selected="selected"';
  66        echo '>',$optiontext,'</option>';
  67        }
  68  ?>
  69  </select><br class="clear" />
  70  <?
  71  if ($ae->cleanurls==2)
  72     {
  73     echo '<label for="filename">',$ae->textbasic[54],'</label>';
  74     echo '<input type="text" name="filename" size="40" value="',$filename,'" /><br class="clear" />';
  75     }
  76  ?>
  77  <label for="submit"></label>
  78  <input type="submit" name="submit" id="submit" value="<? echo $ae->textbasic[103] ?>" class="button" />
  79  <input type="hidden" name="username" value="<? echo $ae->username; ?>" />
  80  <input type="hidden" name="session" value="<? echo $ae->session; ?>" />
  81  <input type="hidden" name="sectionID" value="<? echo $ae->sectionID; ?>" />
  82  </fieldset>
  83  </form>
  84  </div>
  85  </div>
  86  <? @include ("footer.php"); ?>

title

Description

title

Description

title

Description

title

title

Body