Update of /cvsroot/openfirst/projects
In directory sc8-pr-cvs1:/tmp/cvs-serv18235
Modified Files:
notes.php projects.php tasks.php
Log Message:
Minor changes, getting closer to the final commits to making this module complete. These commits are just smaller minor changes.
Index: notes.php
===================================================================
RCS file: /cvsroot/openfirst/projects/notes.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** notes.php 12 Oct 2003 23:39:14 -0000 1.9
--- notes.php 13 Oct 2003 03:32:33 -0000 1.10
***************
*** 37,40 ****
--- 37,44 ----
// Create button process
if(isset($_POST['create'])){
+
+ $bindata = file_get_contents($_FILES['notefile']['tmp_name'])){
+ $bindata = base64_encode($bindata);
+
ofirst_dbquery("INSERT INTO ofirst_projects_notes SET
TaskID = '".$_GET['TaskID']."',
***************
*** 43,46 ****
--- 47,51 ----
Description = '".$_POST['description']."',
Commiter = '".$user->user."',
+ AttachedFile = '".$bindata."',
Dates = '".time()."'") or die(ofirst_dberror());
***************
*** 140,144 ****
?>
<br>
! <form onsubmit="return dhtmlEditorPrepareSubmit();" action='notes.php?GroupID=<?php echo $_GET['GroupID']; ?>&ProjectID=<?php echo $_GET['ProjectID']; ?>&TaskID=<?php echo $_GET['TaskID'];?>' method='POST'>
<table width="39%">
<tr>
--- 145,149 ----
?>
<br>
! <form enctype="multipart/form-data" onsubmit="return dhtmlEditorPrepareSubmit();" action='notes.php?GroupID=<?php echo $_GET['GroupID']; ?>&ProjectID=<?php echo $_GET['ProjectID']; ?>&TaskID=<?php echo $_GET['TaskID'];?>' method='POST'>
<table width="39%">
<tr>
***************
*** 160,163 ****
--- 165,174 ----
?>
</td>
+ </tr>
+ <tr>
+ <td><div align="right">Upload File:</div></td>
+ <td><input name="notefile" type="file" id="notefile">
+ (Files may be attached to notes. These files are stored directly within
+ the action register database.)</td>
</tr>
<tr>
Index: projects.php
===================================================================
RCS file: /cvsroot/openfirst/projects/projects.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** projects.php 12 Oct 2003 23:39:14 -0000 1.11
--- projects.php 13 Oct 2003 03:32:33 -0000 1.12
***************
*** 181,185 ****
<td><?php echo $projects->Description; ?></td>
<td><?php echo str_replace(",",", ",$projects->Assigned); ?></td>
! <?php if($user->membertype == "administrator"){ ?><td id="adminmenu" background="/openfirst/images/back-admin.png"><div align="center"><a href="edit.php">Edit</a></div></td>
<?php } ?>
</tr>
--- 181,185 ----
<td><?php echo $projects->Description; ?></td>
<td><?php echo str_replace(",",", ",$projects->Assigned); ?></td>
! <?php if($user->membertype == "administrator"){ ?><td id="adminmenu" background="/openfirst/images/back-admin.png"><div align="center"><a href="admin/editprojects.php?ProjectID=<?php echo $projects->ID; ?>">Edit</a></div></td>
<?php } ?>
</tr>
Index: tasks.php
===================================================================
RCS file: /cvsroot/openfirst/projects/tasks.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** tasks.php 12 Oct 2003 23:39:14 -0000 1.11
--- tasks.php 13 Oct 2003 03:32:33 -0000 1.12
***************
*** 191,195 ****
<?php
if($user->membertype == "administrator"){
! echo '<td id="adminmenu" background="/openfirst/images/back-admin.png"><center><a href="edit.php">Edit</a></center></td>';
} ?>
</tr>
--- 191,195 ----
<?php
if($user->membertype == "administrator"){
! echo '<td id="adminmenu" background="/openfirst/images/back-admin.png"><center><a href="admin/edittasks.php?TaskID='.$tasks->ID.'">Edit</a></center></td>';
} ?>
</tr>
|