Author: pwang
Date: 2011-12-23 11:35:02 -0800 (Fri, 23 Dec 2011)
New Revision: 27866
Modified:
new_cytoscape_website/bugreport/bugreport.php
Log:
updated
Modified: new_cytoscape_website/bugreport/bugreport.php
===================================================================
--- new_cytoscape_website/bugreport/bugreport.php 2011-12-23 01:18:09 UTC
(rev 27865)
+++ new_cytoscape_website/bugreport/bugreport.php 2011-12-23 19:35:02 UTC
(rev 27866)
@@ -136,8 +136,40 @@
+ // Send e-mail notfication to staff after new bug is sunmitted
+ sendConfirmartionEmail($bugReport);
+}
+
+
+function sendConfirmartionEmail($bugReport) {
+
+ include 'cytostaff_emails.inc';
+
+ $from = $cytostaff_emails[0];
+ $to = $email;// Author e-mail contact
+
+ for ($i=0; $i<count($cytostaff_emails); $i++){
+ $to = $to . $cytostaff_emails[$i] . " ";
+ }
+
+ $subject = "New bug submitted by ".$bugReport['name'];
+ $body = $bugReport['description'];
+ ?>
+ Thank you for submitting bug to Cytoscape, Cytoscape staff will review
your report.
+ After your report is verified, Cytoscape staff will fix it in the next
release of Cytoscape."
+ Thank you again for making better Cytoscape.
+ <?php
+
+
+ $headers = "From: " . $from . "\r\n";
+
+ if (mail($to, $subject, $body, $headers)) {
+ echo("<p>New bug report e-mail was sent to Cytostaff!</p>");
+ } else {
+ echo("<p>Failed to send a notification e-mail...</p>");
+ }
}
@@ -160,18 +192,25 @@
<div>
<label for="cyversion">Cytoscape version</label>
- <input name="tfCyversion" type="text" id="cyversion" value="<?php
echo $userInput['cyversion']; ?>" />
+ <input name="tfCyversion" type="text" id="cyversion" value="<?php
if (isset($userInput['cyversion'])) echo $userInput['cyversion']; ?>" />
</div>
<div>
<label for="os">Operating system</label>
+ <input name="tfOS" type="text" id="os" value="<?php if
(isset($userInput['os'])) echo $userInput['os']; ?>" />
+ </div>
+
+<!--
+ <div>
+ <label for="os">Operating system</label>
<select name="cmbOS" id="os">
<option <?php if ($userInput['os'] == 'Windows') echo
"selected=\"selected\""; ?> >Windows</option>
<option <?php if ($userInput['os'] == 'Linux') echo
"selected=\"selected\""; ?>>Linux</option>
<option <?php if ($userInput['os'] == 'Mac') echo
"selected=\"selected\""; ?>>Mac</option>
</select>
</div>
-
+ -->
+
<div>
<label for="taDescription">Problem description</label>
</div>
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.