[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/mydms/out/ -> out.AddDocument.php (source)

   1  <?php
   2  include ("../inc/inc.Settings.php");
   3  include ("../inc/inc.AccessUtils.php");
   4  include ("../inc/inc.ClassAccess.php");
   5  include ("../inc/inc.ClassDocument.php");
   6  include ("../inc/inc.ClassFolder.php");
   7  include ("../inc/inc.ClassGroup.php");
   8  include ("../inc/inc.ClassUser.php");
   9  include ("../inc/inc.DBAccess.php");
  10  include ("../inc/inc.FileUtils.php");
  11  include ("../inc/inc.Language.php");
  12  include ("../inc/inc.OutUtils.php");
  13  
  14  include ("../inc/inc.Authentication.php");
  15  
  16  $folderid = (isset($_GET['folderid'])) ? (int) $_GET['folderid'] : 1;
  17  $folder = getFolder($folderid);
  18  
  19  if ($folder->getAccessMode($user) < M_READWRITE)
  20      die("access denied");
  21  
  22  printHTMLHead( getMLText("folder_title", array("foldername" => $folder->getName()) ) );
  23  ?>
  24  
  25  <script language="JavaScript">
  26  function checkForm()
  27  {
  28      msg = "";
  29      if (document.form1.userfile.value == "") msg += "<?php printMLText("js_no_file");?>\n";
  30      //if (document.form1.fname.value == "") msg += "<?php printMLText("js_no_name");?>\n";
  31      //if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
  32      //if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
  33      if (msg != "")
  34      {
  35          alert(msg);
  36          return false;
  37      }
  38      else
  39          return true;
  40  }
  41  </script>
  42  
  43  <?php
  44  printTitleBar($folder);
  45  printFolderPageStart($folder);
  46  printPageHeader(getMLText("add_document") . ": " . $folder->getName());
  47  
  48  printStartBox(getMLText("add_document"));
  49  ?>
  50  
  51  <form action="../op/op.AddDocument.php" enctype="multipart/form-data" method="post" name="form1" onsubmit="return checkForm();">
  52      <input type="Hidden" name="folderid" value="<?php print $folderid; ?>">
  53      <table>
  54          <tr>
  55              <td class="inputDescription"><?php printMLText("local_file");?>:</td>
  56              <td><input type="File" name="userfile"></td>
  57          </tr>
  58          <tr>
  59              <td class="inputDescription"><?php printMLText("name");?>:</td>
  60              <td><input name="fname"></td>
  61          </tr>
  62          <tr>
  63              <td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td>
  64              <td><textarea name="comment" rows="4" cols="30"></textarea></td>
  65          </tr>
  66          <tr>
  67              <td valign="top" class="inputDescription"><?php printMLText("keywords");?>:</td>
  68              <td class="standardText">
  69                  <textarea name="keywords" rows="4" cols="30"></textarea><br>
  70                  <a href="javascript:chooseKeywords();"><?php printMLText("use_default_keywords");?></a>
  71                  <script language="JavaScript">
  72                      var openDlg;
  73                      
  74  					function chooseKeywords() {
  75                          openDlg = open("out.KeywordChooser.php", "openDlg", "width=500,height=400,scrollbars=yes,resizable=yes");
  76                      }
  77                  </script>
  78              </td>
  79          </tr>
  80          <tr>
  81              <td valign="top" class="inputDescription"><?php printMLText("expires");?>:</td>
  82              <td class="standardText">
  83                  <input type="Radio" name="expires" value="false" checked><?php printMLText("does_not_expire");?><br>
  84                  <input type="radio" name="expires" value="true"><?php printDateChooser(-1, "exp");?>
  85              </td>
  86          </tr>
  87          <tr>
  88              <td class="inputDescription"><?php printMLText("sequence");?>:</td>
  89              <td><?php printSequenceChooser($folder->getDocuments());?></td>
  90          </tr>
  91          <tr>
  92              <td colspan="2"><br><input type="Submit"></td>
  93          </tr>
  94      </table>
  95  </form>
  96  
  97  
  98  <?php
  99  
 100  printEndBox();
 101  printFolderPageEnd($folder);
 102  printHTMLFoot();
 103  
 104  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7