[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
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 $documentid = (isset($_GET['documentid'])) ? (int) $_GET['documentid'] : NULL; 17 $document = getDocument($documentid); 18 $folder = $document->getFolder(); 19 20 if ($document->getAccessMode($user) < M_READWRITE) 21 die ("Access denied"); 22 23 printHTMLHead( getMLText("document_title", array("documentname" => $document->getName()) ) ); 24 ?> 25 26 <script language="JavaScript"> 27 function checkForm() 28 { 29 msg = ""; 30 if (document.form1.name.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($document->getFolder()); 45 printDocumentPageStart($document); 46 printPageHeader(getMLText("edit_document_props") . ": " . $document->getName()); 47 48 printStartBox(getMLText("edit_document_props")); 49 ?> 50 51 <form action="../op/op.EditDocument.php" name="form1" onsubmit="return checkForm();"> 52 <input type="Hidden" name="documentid" value="<?php print $documentid;?>"> 53 <table cellpadding="3"> 54 <tr> 55 <td class="inputDescription"><?php printMLText("name");?>:</td> 56 <td><input name="fname" value="<?php print $document->getName();?>"></td> 57 </tr> 58 <tr> 59 <td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td> 60 <td><textarea name="comment" rows="4" cols="30"><?php print $document->getComment();?></textarea></td> 61 </tr> 62 <tr> 63 <td valign="top" class="inputDescription"><?php printMLText("keywords");?>:</td> 64 <td class="standardText"> 65 <textarea name="keywords" rows="4" cols="30"><?php print $document->getKeywords();?></textarea><br> 66 <a href="javascript:chooseKeywords();"><?php printMLText("use_default_keywords");?></a> 67 <script language="JavaScript"> 68 var openDlg; 69 70 function chooseKeywords() { 71 openDlg = open("out.KeywordChooser.php", "openDlg", "width=500,height=400,scrollbars=yes,resizable=yes"); 72 } 73 </script> 74 </td> 75 </tr> 76 <?php 77 if ($folder->getAccessMode($user) > M_READ) 78 { 79 print "<tr>"; 80 print "<td class=\"inputDescription\">" . getMLText("sequence") . ":</td>"; 81 print "<td>"; 82 printSequenceChooser($folder->getDocuments(), $document->getID()); 83 print "</td></tr>"; 84 } 85 ?> 86 <tr> 87 <td colspan="2"><br><input type="Submit"></td> 88 </tr> 89 </table> 90 </form> 91 92 93 <?php 94 95 printEndBox(); 96 printDocumentPageEnd($document); 97 printHTMLFoot(); 98 99 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |