Send Email & JavaScript integration in Applets
Hi there folks,
I have a Java Applet which is having the following things.
1. Send Email to a Friend about this.
2. Next (>) and Previous (<) buttons.
now my question is, on click of option 1, a pop-up must be displayed (asking To & From) & i've an URL, it needs to be sent to a friend via an email on click of the option 1 as i mentioned above.. how can i accomplish this to send an email on Java & Applets? more over is it possible??
is it possible to integrate Javascript on Applets?? i need to make my option 2 as javascript enabled & these < & > buttons must take me to Previous or Next topic.
any Idea on the above??? your help would be really appreciated. it's very urgent for me.
thanks in advance for reading my forum.
Cheers,
Satya
>
i hope you got an idea on what i'm actually trying to do?>The impression I get from your two posts on the subject is that you have no idea what you you are trying to do!
The first post mentions applets and JavaScript several times, yet your later post claims this is a "stand alone desktop swing application". The process of sending an email from within a web page (well described in the first reply) is very different than from a stand-alone application.
Then you bring up 'next' and 'previous' topics like we should know what you are referring to. And you are still wondering whether to 'integrate JS' into you app. WTF for? What 'ability' do you see the JS as providing?
If you hope to get meaningful help, you need to lift your game and spend more time describing the problem domain and constraints of the functionality you wish to offer to the end user.
Similar Messages
-
Sending emails from inside an applet (Please help!)
Hi all!
I�d like to send an email from inside the applet. For this reason I need to get the Systemproperties, don't I ?
Properties props = System.getProperties();
props.put("mail.smtp.host", mailhost);
... and set the mail.smtp.host Property my smtp-host.
But as I try to get the systemproperties from the applet, I get the exception:
com.ms.security.SecurityExceptionEx[Sendmsg.<init>]: Unable to access system properties.
Can somebody tell me, how I can solve this problem? Which properties are needed to send mails?
Does it work, if I just create my Properties, and set only the smtp.host?
As I continued my experiments, I realised that it is not only the mail.smtp.host property, that is needed by the applet, but java.home, and many more...
So is it possible to send emails in this form at all??
Pleeaaaase help, I have to hand in my project very soon!
Thanks a lot,
GaborI've found a site about signing:
http://www.suitable.com/Doc_CodeSigning.shtml
I think you can read german, therefore the german newsgroup de.comp.lang.java is a good point to search. Use http://groups.google.com to search the group.
Uwe -
Sending Email from Integration Process
I have an Integration Process created which looks at outbound messages and sends information to my alert inbox under certain conditions. Is it possible to take the text I am sending to the Alert Inbox and have this email me also, or does this process need to generate a new message which is routed through the email adapter?
RegardsThen Configure a Mail receiver adapter with the SMTP/IMAP address of your mail server and user authentcation and provide the recipient name in the TO address.
Check the HOW TO guides for MAIL adapter in Service market place for configuration details.
Best practice is to have a standard mail box configured on ur the Mail server to manage all sent mails.
oops missed out the stuff on CCBPM, Just add...a send step pointing to Mail service after the exception is trapped and Alert raised. -
Eem applet or script for sending email for syslog denies
I am wanting to have my isr's send an email when a certain number of deny's occur on an ace. So if i have a particular ace set up to log when tcp 3389 denied. Then the eem applet or script would track when that deny entry happens. When the deny hits on that entry reach three times, it will send an email alert. The thing i am wondering about is how to set a variable within an event syslog pattern statement. For instance, how do i say express a variable for the source ip/port in the below
config-applet)# event syslog pattern "SEC-6-IPACCESSLOGP: list 198 denied tcp 201.198.71.51(38531) -> 212.184.81.52(3389)" occurs 3
The source ip and port could rotate or change so i'd need to express that with some kind of variable. How could that be done?(or is there a better approach altogether).I put the below script in and it takes fine but does not send email alert. Is there something more to do for configuring email sending?
event manager applet Intrusion-Tracking
event syslog pattern "SEC-6-IPACCESSLOGP:.*-> 208.195.174.115\(3389\)" occurs 3
action 1.0 mail server "173.16.7.2" to ".[email protected]" from ".eem@company1." subject ".intrusion_alert_from_c2900isr." body "Intrustion alert c2800isr" -
Javascript error when send email using webmail
Dear Sun,
One of our user encounter javascript error when try sending email using webmail below is the error message:
" +https://webmail.ubd.edu.bn/uwc/webmail/comp_fs_lr.html&rev=3&security=false&lang=en&popupLevel=undefined&cal=1&charset=escaped_unicode, Line 1755+
+Permission denied+
"Hi Shane,
below is the answer you need
What browser is the user using?
=> Firefox and IE
What browsers have you tested where it doesn't occur?
=>I tested all the browser (firefox,IE, chrome) it doesn't happen to me
When did this problem first start?
=>After the user finish compiled his message and click send
What is the exact version of UWC you are running (./showrev -p | grep uwc)
=>Patch: 122793-26 Obsoletes: 118540-43, 117287-99, 117819-13, 119156-07 Requires: Incompatibles: 118042-22, 126233-04 Packages: SUNWuwc
Patch: 122793-29 Obsoletes: 118540-43, 117287-99, 117819-13, 119156-07 Requires: Incompatibles: 118042-22, 126233-04 Packages: SUNWuwc
Patch: 122793-31 Obsoletes: 118540-43, 117287-99, 117819-13, 119156-07 Requires: Incompatibles: 118042-22, 126233-04 Packages: SUNWuwc
Does this error occur all the time? Does it occur for every user, or some users or just one user?
=> Not all the time, so far i just receive one complaint . -
Hello!
Can anyone give me simple code of applet where i can send email through the form... and jar files or anything i have to import...
Thank you very muchDepends on how you want to handle it.
If you want to send an email from the User's email program, you can execute a simple http request to "mailto:[email protected]" from within the applet by calling
Applet.getAppletContext().showDocument("mailto:[email protected]")This will cause an email window to pop up using the user's email client.
However, if you want to send email from within your program directly then you get into an area that is a little more complicated.
First you would be using the javax.mail API. http://java.sun.com/products/javamail
The problem you would have with this is that as an Applet you can only connect back to the server from which you came. So that server MUST have an SMTP process running on it. Otherwise you cannot send mail out since an Applet is not allowed to contact any other server other than it's own.
If that security restriction is not a problem, then the example code at http://developer.java.sun.com/developer/onlineTraining/JavaMail/ should do everything you need. -
Up until the beginning of this month my Thunderbird was working fine with my roadrunner email address. I have not downloaded any new software or made any changes to my settings during this time. Now I can no longer send emails (although it claims they are sent) and I never get an error message. I'm definitely in online mode, can receive all messages fine, and can send messages from my road runner server fine through webmail. I have checked to ensure no firewalls or antiviruses are blocking my outgoing messages and know the SMTP is correct. Please help!
Hi...thanks so much for your help! It says "mail sent successfully" and shows it in my sent folder after I click send.
Troubleshooting:
Application Basics
Name: Thunderbird
Version: 24.4.0
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
Profile Folder: Show Folder
(Local drive)
Application Build ID: 20140316131045
Enabled Plugins: about:plugins
Build Configuration: about:buildconfig
Crash Reports: about:crashes
Memory Use: about:memory
Mail and News Accounts
account1:
INCOMING: account1, , (pop3) pop-server.tampabay.rr.com:110, plain, passwordCleartext
OUTGOING: smtp-server.tampabay.rr.com:25, plain, none, true
account2:
INCOMING: account2, , (none) Local Folders, plain, passwordCleartext
Extensions
Important Modified Preferences
Name: Value
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.disk.smart_size_cached_value: 358400
extensions.lastAppVersion: 24.4.0
font.internaluseonly.changed: true
font.name.monospace.el: Consolas
font.name.monospace.tr: Consolas
font.name.monospace.x-baltic: Consolas
font.name.monospace.x-central-euro: Consolas
font.name.monospace.x-cyrillic: Consolas
font.name.monospace.x-unicode: Consolas
font.name.monospace.x-western: Consolas
font.name.sans-serif.el: Calibri
font.name.sans-serif.tr: Calibri
font.name.sans-serif.x-baltic: Calibri
font.name.sans-serif.x-central-euro: Calibri
font.name.sans-serif.x-cyrillic: Calibri
font.name.sans-serif.x-unicode: Calibri
font.name.sans-serif.x-western: Calibri
font.name.serif.el: Cambria
font.name.serif.tr: Cambria
font.name.serif.x-baltic: Cambria
font.name.serif.x-central-euro: Cambria
font.name.serif.x-cyrillic: Cambria
font.name.serif.x-unicode: Cambria
font.name.serif.x-western: Cambria
font.size.fixed.el: 14
font.size.fixed.tr: 14
font.size.fixed.x-baltic: 14
font.size.fixed.x-central-euro: 14
font.size.fixed.x-cyrillic: 14
font.size.fixed.x-unicode: 14
font.size.fixed.x-western: 14
font.size.variable.el: 17
font.size.variable.tr: 17
font.size.variable.x-baltic: 17
font.size.variable.x-central-euro: 17
font.size.variable.x-cyrillic: 17
font.size.variable.x-unicode: 17
font.size.variable.x-western: 17
mail.openMessageBehavior.version: 1
mail.winsearch.enable: true
mail.winsearch.firstRunDone: true
mail.winsearch.global_reindex_time: 1386018562
mailnews.database.global.datastore.id: d0565083-6917-4a0a-868f-37bebde1e81
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1398260550
places.history.expiration.transient_current_max_pages: 104808
plugin.importedState: true
plugin.state.npdeployjava: 0
print.printer_Lexmark_X264dn.print_bgcolor: false
print.printer_Lexmark_X264dn.print_bgimages: false
print.printer_Lexmark_X264dn.print_colorspace:
print.printer_Lexmark_X264dn.print_command:
print.printer_Lexmark_X264dn.print_downloadfonts: false
print.printer_Lexmark_X264dn.print_duplex: -1574483314
print.printer_Lexmark_X264dn.print_edge_bottom: 0
print.printer_Lexmark_X264dn.print_edge_left: 0
print.printer_Lexmark_X264dn.print_edge_right: 0
print.printer_Lexmark_X264dn.print_edge_top: 0
print.printer_Lexmark_X264dn.print_evenpages: true
print.printer_Lexmark_X264dn.print_footercenter:
print.printer_Lexmark_X264dn.print_footerleft: &PT
print.printer_Lexmark_X264dn.print_footerright: &D
print.printer_Lexmark_X264dn.print_headercenter:
print.printer_Lexmark_X264dn.print_headerleft: &T
print.printer_Lexmark_X264dn.print_headerright: &U
print.printer_Lexmark_X264dn.print_in_color: true
print.printer_Lexmark_X264dn.print_margin_bottom: 0.5
print.printer_Lexmark_X264dn.print_margin_left: 0.5
print.printer_Lexmark_X264dn.print_margin_right: 0.5
print.printer_Lexmark_X264dn.print_margin_top: 0.5
print.printer_Lexmark_X264dn.print_oddpages: true
print.printer_Lexmark_X264dn.print_orientation: 0
print.printer_Lexmark_X264dn.print_page_delay: 50
print.printer_Lexmark_X264dn.print_paper_data: 1
print.printer_Lexmark_X264dn.print_paper_height: 11.00
print.printer_Lexmark_X264dn.print_paper_name:
print.printer_Lexmark_X264dn.print_paper_size_type: 0
print.printer_Lexmark_X264dn.print_paper_size_unit: 0
print.printer_Lexmark_X264dn.print_paper_width: 8.50
print.printer_Lexmark_X264dn.print_plex_name:
print.printer_Lexmark_X264dn.print_resolution: 0
print.printer_Lexmark_X264dn.print_resolution_name:
print.printer_Lexmark_X264dn.print_reversed: false
print.printer_Lexmark_X264dn.print_scaling: 1.00
print.printer_Lexmark_X264dn.print_shrink_to_fit: true
print.printer_Lexmark_X264dn.print_to_file: false
print.printer_Lexmark_X264dn.print_unwriteable_margin_bottom: 0
print.printer_Lexmark_X264dn.print_unwriteable_margin_left: 0
print.printer_Lexmark_X264dn.print_unwriteable_margin_right: 0
print.printer_Lexmark_X264dn.print_unwriteable_margin_top: 0
Graphics
Adapter Description: Intel(R) HD Graphics
Vendor ID: 0x8086
Device ID: 0x0152
Adapter RAM: Unknown
Adapter Drivers: igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
Driver Version: 8.15.10.2639
Driver Date: 2-1-2012
Direct2D Enabled: false
DirectWrite Enabled: false (6.2.9200.16571)
ClearType Parameters: ClearType parameters not found
WebGL Renderer: false
GPU Accelerated Windows: 0
AzureCanvasBackend: skia
AzureFallbackCanvasBackend: cairo
AzureContentBackend: none
JavaScript
Incremental GC: 1
Accessibility
Activated: 0
Prevent Accessibility: 0
Library Versions
Expected minimum version
Version in use
NSPR
4.10.2
4.10.2
NSS
3.15.4 Basic ECC
3.15.4 Basic ECC
NSS Util
3.15.4
3.15.4
NSS SSL
3.15.4 Basic ECC
3.15.4 Basic ECC
NSS S/MIME
3.15.4 Basic ECC
3.15.4 Basic ECC -
Sending email using IMAP through SMTP Port 587
Hi,
I have been sending Mail Merged email to people in organizations that I am active in, using IMAP embedded in StarOffice 5.2 (on Windows 98 Second Edition). This worked fine until a few weeks ago when I received an error message stating that AOL, as part of their anti-spam efforts, was no longer accepting third-party emails on default port 25. All third-party email must now use port 587. I looked in the IMAP dialog and in the Tools -> Options dialog, but did not see any place to change the SMTP port. The AOL error message information page had instructions for changing the port in other applications (Outlook, Eudora, etc.), but not for StarOffice. So, I have some questions:
1.Is it possible to change the port in StarOffice 5.2?
2.If not, how does StarOffice 8 send Mail Merged email? Does it use IMAP, and if so, can the port be changed?
3.Also, I like the integrated configuration in StarOffice 5.2, where database fields can be directly accessed in the Insert -> Fields -> Other dialog. In looking at the Mail Merge section in "SO8_What's New.pdf", it appears that Mail Merge in StarOffice 8 is restricted to predefined fields. Could I still access fields from my existing databases?
These is a lot of questions, but right now I am blocked from sending Mail Merged emails which is imparing communications with volunteers who are running educational programs. I appreciate any and all help that anyone can provide.Please try this out!!!!!!!!!
You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
'Create an Outlook object
Dim Outlook 'As New Outlook.Application
Set Outlook = CreateObject("Outlook.Application")
'Create e new message
Dim Message 'As Outlook.MailItem
Set Message = Outlook.CreateItem(olMailItem)
With Message
'You can display the message To debug And see state
'.Display
.Subject = Subject
.Body = TextBody
'Set destination email address
.Recipients.Add (aTo)
'Set sender address If specified.
Const olOriginator = 0
If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
'Send the message
.Send
End With
End Sub -
Batch job creation for sending email if the invoice is aged
Positive confirmation: Send system notification to the requestor if:
a) An invoice is received and GR is not yet posted in the ECC system.
b) An 'aged' invoice and GR is not yet posted in the ECC system.
This requirement is for USA only. i.e., we have only one company code which is 8960.
Identifiers of the invoice are
Company Code = u20188960u2019
Invoice Document Type = u2018R9u2019
Use table EKBE for relationship between Invoice, Goods Receipt and Purchase Order.
The field EKPO-BEDNR contains the Shopping Cart Number
Implementation Strategy
1. To send email if the invoice is aged.
Create a program that will run as a job. This job will frequently check for invoices related to SRM Shopping Carts received from E2OPEN. If an invoice is aged and there is no Goods Receipt posted through confirmation from SRM, then an email will go out from ECC system to the requestor. Using the Shopping Cart number on PO, find the requestor information (email ID) from SRM through an RFC call. This job will run once in a day and should have a parameter in the program for the age of the Invoice.
Both the emails should contain a link (To be taken from SRM system, to be supplied) to log into SRM system. The email will also contain the Shopping Cart number and the Description of the item, and a message to Confirm this, including age of the invoice if aged.
Please let me know how to create the batch job.
Regards,
Venkat
Edited by: VenkatG on Sep 1, 2009 3:14 PMDo not pass the COMMIT_WORK flag... Leave it blank. Any transaction for the data integrity, one should never use COMMIT WORK related statements. Normally SAP transactions will have the COMMIT WORK at the end of transaction which is enough for any thing that is added part of the customer exits...
Hope this helps.
Regards
Anjaiah -
COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!
COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
To forum visitors:
I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
If your advice resolves the problem, I'll forward the payment to your postal address (include your
address with your reply, and also your email address)
I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
(It is a very effective bitmap display and editing utility)
To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
I understand the basic syntax for referencing the applet:
document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
Please can you recommend the correct Javascript syntax to achieve communication with the applet.
Thank you for your kind assistance.
JM Graham
[email protected]
The Java source code for the applet: EasyFilter.class
# Easy Filter - E.B/JavaZOOM 1999 #
# Contact: [email protected] #
# http://javazoom.hypermart.net #
/* Originally compiled from EasyFilter.java */
import java.awt.*;
import java.io.*;
import java.net.*;
import java.applet.Applet;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.MemoryImageSource;
import java.awt.image.PixelGrabber;
import java.util.Vector;
public synchronized class EasyFilter extends Applet implements KeyListener
private String paramFileName;
private Color bgColor;
private Color fgColor;
private Color parColor;
private Color sepColor;
private Color titleColor;
private Color helpColor;
private int WinWidth;
private int WinHeight;
private String title;
private String logoFileName;
private String originalImageFileName;
private String filteredCaption;
private String originalCaption;
private Vector paramsName;
private Vector paramsValue;
private Vector paramsComment;
private Panel panelParameters[];
private Label labelParameters[];
private TextField textFieldParameters[];
private Label labelComments[];
private int nbParameters;
private ScrollPane scrollPaneParams;
private Panel panelParams;
private Image theLogo;
private Image theOriginalImage;
private Image theFilteredImage;
private int theOriginalPixelArray[];
private int logoWidth;
private int logoHeight;
private int imageWidth;
private int imageHeight;
private drawCanvas canvasTitle;
private Panel panelTitle;
private Label labelTitle;
private Panel panelImages;
private Panel panelOriginalImage;
private drawCanvas canvasOriginalImage;
private Label labelOriginalImage;
private Panel panelFilteredImage;
private drawCanvas canvasFilteredImage;
private Label labelFilteredImage;
private Panel panelHelp;
private Label labelHelp;
private int Yspc;
private FilterImplementation theFilter;
public void init()
String string = null;
string = appletInitialize();
setBackground(bgColor);
if (string != null)
removeAll();
setBackground(Color.white);
setForeground(Color.black);
Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
Panel panel = new Panel();
panel.add(label);
add(panel);
setLayout(new FlowLayout(1, 5, Yspc));
public void keyPressed(KeyEvent keyEvent)
panelHelp.removeAll();
boolean flag = true;
if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
for (int i = 0; i < nbParameters; )
try
paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
i++;
catch (NumberFormatException e)
labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
flag = false;
break;
if (flag == 1)
labelHelp.setText(" .... Running, please wait .... ");
labelHelp.setAlignment(1);
panelHelp.add(labelHelp);
panelHelp.doLayout();
theFilter.updateParameters(paramsValue);
theFilter.computeFilter();
theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
canvasFilteredImage.setImage(theFilteredImage);
canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
canvasFilteredImage.repaint();
panelHelp.removeAll();
labelHelp.setText("- Done -");
else
labelHelp.setText("- Press Enter to run the Filter -");
labelHelp.setAlignment(1);
panelHelp.add(labelHelp);
panelHelp.doLayout();
public void keyReleased(KeyEvent keyEvent)
public void keyTyped(KeyEvent keyEvent)
private String appletInitialize()
WinWidth = size().width;
WinHeight = size().height;
if (getParameter("bgcolor") == null)
bgColor = new Color(0, 0, 40);
else
bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
if (getParameter("fgcolor") == null)
fgColor = new Color(255, 255, 255);
else
fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
if (getParameter("sepcolor") == null)
sepColor = new Color(158, 128, 128);
else
sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
if (getParameter("parcolor") == null)
parColor = new Color(24, 24, 24);
else
parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
if (getParameter("titlecolor") == null)
titleColor = new Color(255, 255, 0);
else
titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
if (getParameter("helpcolor") == null)
helpColor = new Color(0, 255, 255);
else
helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
paramsName = new Vector();
paramsValue = new Vector();
paramsComment = new Vector();
paramFileName = getParameter("paramfile");
String string = readParams(paramFileName);
if (string != null)
return string;
MediaTracker mediaTracker = new MediaTracker(this);
theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
mediaTracker.addImage(theOriginalImage, 0);
if (logoFileName != null)
theLogo = getImage(getDocumentBase(), logoFileName);
mediaTracker.addImage(theLogo, 1);
try
mediaTracker.waitForAll();
catch (InterruptedException e1)
return "Error while loading image";
if (mediaTracker.isErrorAny())
return "Error while loading image";
if (logoFileName != null)
logoWidth = theLogo.getWidth(this);
logoHeight = theLogo.getHeight(this);
imageWidth = theOriginalImage.getWidth(this);
imageHeight = theOriginalImage.getHeight(this);
theOriginalPixelArray = new int[imageWidth * imageHeight];
PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
try
pixelGrabber.grabPixels();
panelTitle = new Panel();
canvasTitle = new drawCanvas();
labelTitle = new Label();
panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
add(panelTitle);
panelTitle.setBackground(bgColor);
panelTitle.add(canvasTitle);
canvasTitle.setImage(theLogo);
canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
labelTitle.setText(title);
catch (InterruptedException e2)
return "Internal Error, Try RELOAD !";
if (title != null)
panelTitle.add(labelTitle);
labelTitle.setForeground(titleColor);
labelTitle.setFont(new Font("Dialog", 1, 14));
panelImages = new Panel();
panelOriginalImage = new Panel();
canvasOriginalImage = new drawCanvas();
labelOriginalImage = new Label();
panelFilteredImage = new Panel();
canvasFilteredImage = new drawCanvas();
labelFilteredImage = new Label();
panelImages.setLayout(new FlowLayout(1, 10, Yspc));
add(panelImages);
panelImages.setBackground(bgColor);
panelOriginalImage.setLayout(new BorderLayout(0, 2));
panelImages.add(panelOriginalImage);
panelOriginalImage.setBackground(Color.black);
panelOriginalImage.add("Center", canvasOriginalImage);
canvasOriginalImage.setImage(theOriginalImage);
canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
labelOriginalImage.setText(originalCaption);
labelOriginalImage.setAlignment(1);
panelOriginalImage.add("South", labelOriginalImage);
labelOriginalImage.setBackground(Color.lightGray);
labelOriginalImage.setForeground(Color.black);
labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
panelFilteredImage.setLayout(new BorderLayout(0, 2));
panelImages.add(panelFilteredImage);
panelFilteredImage.setBackground(Color.black);
panelFilteredImage.add("Center", canvasFilteredImage);
theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
theFilter.computeFilter();
theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
canvasFilteredImage.setImage(theFilteredImage);
canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
labelFilteredImage.setText(filteredCaption);
labelFilteredImage.setAlignment(1);
panelFilteredImage.add("South", labelFilteredImage);
labelFilteredImage.setBackground(Color.lightGray);
labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
scrollPaneParams = new ScrollPane(0);
panelParams = new Panel();
nbParameters = paramsName.size();
int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
if (i < Yspc + 2 + 24)
i = Yspc + 2 + 24;
scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
scrollPaneParams.add(panelParams);
panelParams.setBackground(sepColor);
panelParameters = new Panel[nbParameters];
labelParameters = new Label[nbParameters];
textFieldParameters = new TextField[nbParameters];
labelComments = new Label[nbParameters];
for (int j = 0; j < nbParameters; j++)
panelParameters[j] = new Panel();
panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
panelParams.add(panelParameters[j]);
panelParameters[j].setBackground(parColor);
labelParameters[j] = new Label();
labelParameters[j].setText((String)paramsName.elementAt(j));
panelParameters[j].add(labelParameters[j]);
labelParameters[j].setForeground(fgColor);
labelParameters[j].setFont(new Font("Dialog", 1, 12));
textFieldParameters[j] = new TextField(8);
textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
panelParameters[j].add(textFieldParameters[j]);
textFieldParameters[j].setBackground(fgColor);
textFieldParameters[j].addKeyListener(this);
labelComments[j] = new Label();
labelComments[j].setText((String)paramsComment.elementAt(j));
panelParameters[j].add(labelComments[j]);
labelComments[j].setForeground(fgColor);
add(scrollPaneParams);
panelHelp = new Panel();
labelHelp = new Label();
panelHelp.setLayout(new FlowLayout(1, 5, 0));
add(panelHelp);
panelHelp.setBackground(bgColor);
labelHelp.setText(" Change colour values and press enter ");
labelHelp.setAlignment(1);
panelHelp.add(labelHelp);
labelHelp.setForeground(helpColor);
return null;
private String readParams(String string1)
Object object1;
String string2;
if (string1 == null)
return "Filename of filter's parameters needed";
try
URL uRL = new URL(getDocumentBase(), string1);
URLConnection uRLConnection = uRL.openConnection();
uRLConnection.setDoInput(true);
uRLConnection.setUseCaches(false);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
string2 = null;
catch ()
return object1.getMessage();
catch ()
return object1.getMessage();
catch ()
return object1.getMessage();
if (bufferedReader != null)
Object object2;
try
for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
string2 = extractFormat(object2);
catch ()
string2 = object2.getMessage();
finally
bufferedReader.close();
if (string2 != null)
return string2;
else
return null;
private String extractFormat(String string1)
if (string1.length() == 0)
return null;
int i = 0;
int j = string1.indexOf(" ", i);
if (j == -1)
return "Bad format error (space missing)";
String string2 = string1.substring(i, j);
if (string2.equals("TITLE"))
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in TITLE missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in TITLE missing)";
title = string1.substring(i, j);
return null;
if (string2.equals("ORIGINALCAPTION"))
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in ORIGINALCAPTION missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in ORIGINALCAPTION missing)";
originalCaption = string1.substring(i, j);
return null;
if (string2.equals("FILTEREDCAPTION"))
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in FILTEREDCAPTION missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in FILTEREDCAPTION missing)";
filteredCaption = string1.substring(i, j);
return null;
if (string2.equals("LOGO"))
i = j + 1;
j = string1.length();
logoFileName = string1.substring(i, j);
return null;
if (string2.equals("ORIGINALIMAGE"))
i = j + 1;
j = string1.length();
originalImageFileName = string1.substring(i, j);
return null;
if (!string2.equals("PARAM"))
return null;
i = j;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format in a PARAM line";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format in a PARAM line";
paramsName.addElement(string1.substring(i, j));
i = j + 2;
j = string1.indexOf(32, i);
if (j == -1)
return "Bad format in a PARAM line";
try
paramsValue.addElement(new Double(string1.substring(i, j)));
j = string1.indexOf(34, i);
catch (NumberFormatException e)
return "Bad format in a PARAM line";
if (j == -1)
return "Bad format (Double quote in PARAM comment missing)";
i = j + 1;
j = string1.indexOf(34, i);
if (j == -1)
return "Bad format (Double quote in PARAM comment missing)";
paramsComment.addElement(string1.substring(i, j));
return null;
public EasyFilter()
logoHeight = 33;
Yspc = 5;Addition to my above submission
To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
JMGRAHAM -
Sending email with HTML report through a button
Hi,
I've noticed in APEX 4 there is a default option (through Action Menu -> Download Formats: email) to send an email with report in HTML format...
may I know how to accomplish it using a Button... seems like APEX is using javascript:gReport.email.show(); function to accomplish it but I don't know how to implement it...
Please advice
Thanks in advanceqwe12654 wrote:
GokhanAtil,
I've posted a sample on APEX.ORACLE.COM... LOGIN DETAILS ARE SAME AS ABOVE...
ON the page now I have both the SQL based report and interactive report...
On the top right you may see 2 icons.. one for downloading report in PDF (using SQL Report as the source) and the second for sending email (using interactive report, similar logic as what you've recommended)...
Is there a way I may be able to send report via email, using SQL report as the source (rather than interactive report)...?
You can always use APEX_MAIL to send emails.
http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_mail.htm
or the alternative option would be:
to convert all my SQL reports into interactive, would require a bit of efforts (I'll go with it if the above option is not available)... but would need to know how to download INTERACTIVE reports in PDF, excel and CSV formats using a button ... similar logic to what you've done for sending emails
Thanks again for all your assistanceIt's very easy to make buttons for downloading the interactive reports in HTML, CSV or PDF.
I have created a PDF button and put the link:
http://apex.oracle.com/pls/apex/f?p=40418:11:1316531694094700:PDF
"1316531694094700" is the value of p_instance. You can find it from HTML codes of your page:
<input type="hidden" name="p_instance" value="1316531694094700" id="pInstance">
You can change PDF to CSV or HTMLD (so your visitor download the report in CSV or HTML)
Best Regards,
Gokhan
If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks -
In OIM 11.1.1.3.0 I have a resource which I am provisioning to, and workflow in place which sends an approval task to the user's manager, and a user within a certain group. How can I send emails to these individuals when a user makes a request to be provisioned to that resource?
Have you had a look at the following:
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_designtf.htm#SOASE744
*29.7 Creating an Email Notification*
Thanks
SRS -
Send Email Report with Publisher?
Hi all I try to send Email with Publisher, No with Job Manager scheduler
I can send Email with Oracle Data Integrator with the same configuration with publisher, but publisher say me errors, I don´t think if I have wrong configuration or i will have to configurate others things...
I post Images for my configuration for If you help me.
Admin Email Configuration
!http://img53.imageshack.us/img53/9296/configdelivery.jpg!
!http://img376.imageshack.us/img376/7338/congfigserver.jpg!
Send Configuration
!http://img204.imageshack.us/img204/3590/configuracionenvio.png!
Scheduler History
!http://img132.imageshack.us/img132/6777/schedulerhistory.png!
Errors
!http://img55.imageshack.us/img55/1442/sendincorrect.png!
Send to other Email
!http://img54.imageshack.us/img54/3156/otheremail.jpg!
Thaks for your timeThanks for response other time eejimkos, I try to do with SSL=False and nothing.
This is my configuration with ODI(Oracle Data Integrator), With ODI I can to send perfect Emails.
!http://img366.imageshack.us/img366/9408/odi.png!
I have to Firewall inactive and I quit Antivirus.
Saichand this is telnet results
!http://img60.imageshack.us/img60/2143/telnet.png!
This mean that I have open ports.
Any Suggestions?
thanks for request. -
Highlight updated line in send email
hi,
is there anyway that i can highlight the changed value in when a record is updated and it sends the email?
currently when a record is updated an email is sent with the every change in the recordset but i would like it to be able to highlight the particular elements of the form that were changed so it is clear to the user when they get the email what has been changed exactly?
hope someone can help, i am guessing it will be some custom coding in the transaction but not sure where to start with it.
many thankshi thanks for all your help.
please see below update record and send email code. i just want it to send the values that have been updated to the user.
thank you all once again for your help:
<?php require_once('Connections/cbank.php'); ?>
<?php
//MX Widgets3 include
require_once('includes/wdg/WDG.php');
// Load the common classes
require_once('includes/common/KT_common.php');
// Load the tNG classes
require_once('includes/tng/tNG.inc.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
// Make unified connection variable
$conn_cbank = new KT_connection($cbank, $database_cbank);
//Start Restrict Access To Page
$restrict = new tNG_RestrictAccess($conn_cbank, "");
//Grand Levels: Level
$restrict->addLevel("1");
$restrict->Execute();
//End Restrict Access To Page
// Start trigger
$formValidation = new tNG_FormValidation();
$formValidation->addField("AgencyTradingAgreementSignedDate", true, "date", "date", "", "", "");
$formValidation->addField("DateReservationFormSentToProductProvider", false, "date", "date", "", "", "");
$formValidation->addField("DateResFeeSentToProductProvider", false, "date", "date", "", "", "");
$formValidation->addField("DateCertIDSentToPP", false, "date", "date", "", "", "");
$formValidation->addField("DateClientRecvdContract", false, "date", "date", "", "", "");
$formValidation->addField("DateDepositDue", false, "date", "date", "", "", "");
$formValidation->addField("DateContractReturnedToPP", false, "date", "date", "", "", "");
$formValidation->addField("DateDepositPaidToPP", false, "date", "date", "", "", "");
$formValidation->addField("CaseComplete", false, "date", "date", "", "", "");
$formValidation->addField("DateOfInvoice", false, "date", "date", "", "", "");
$formValidation->addField("DateInvoicePaid", false, "date", "date", "", "", "");
$formValidation->addField("DatePaidToAgent", false, "date", "date", "", "", "");
$tNGs->prepareValidation($formValidation);
// End trigger
//start Trigger_SendEmail trigger
//remove this line if you want to edit the code by hand
function Trigger_SendEmail(&$tNG) {
$emailObj = new tNG_Email($tNG);
$emailObj->setFrom("{KT_defaultSender}");
$emailObj->setTo("[email protected]");
$emailObj->setCC("");
$emailObj->setBCC("");
$emailObj->setSubject("Update");
//WriteContent method
$emailObj->setContent("\n{Cash_Sale_ID}\n{clients_ClientID}\n{AgentID}\n{IFAID}\n{Regiona l_ID}\n{Area_ID}\n{Product_ProviderID}\n{ProductTypeID}\n{PropertyID}\n{AgencyTradingAgree mentSignedDate}\n{DateReservationFormSentToProductProvider}\n{DateResFeeSentToProductProvi der}\n{DateCertIDSentToPP}\n{DateClientRecvdContract}\n{DateDepositDue}\n{DateContractRetu rnedToPP}\n{DateDepositPaidToPP}\n{CaseComplete}\n{NPW}\n{GrossInvoice}\n{DateOfInvoice}\n {DateInvoicePaid}\n{AgentExpectedAmount}\n{MIPExpectedAmount}\n{AmountPaidToAgent}\n{DateP aidToAgent}\n{AmountRSMBonusPaid}\n{NetMIPAmount}\n");
$emailObj->setEncoding("ISO-8859-1");
$emailObj->setFormat("Text");
$emailObj->setImportance("Normal");
return $emailObj->Execute();
//end Trigger_SendEmail trigger
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_cbank, $cbank);
$query_rsAgents = "SELECT * FROM users WHERE AccessLevel <= 5";
$rsAgents = mysql_query($query_rsAgents, $cbank) or die(mysql_error());
$row_rsAgents = mysql_fetch_assoc($rsAgents);
$totalRows_rsAgents = mysql_num_rows($rsAgents);
mysql_select_db($database_cbank, $cbank);
$query_rsIFA = "SELECT * FROM users WHERE AccessLevel = 7";
$rsIFA = mysql_query($query_rsIFA, $cbank) or die(mysql_error());
$row_rsIFA = mysql_fetch_assoc($rsIFA);
$totalRows_rsIFA = mysql_num_rows($rsIFA);
mysql_select_db($database_cbank, $cbank);
$query_rsRegional = "SELECT * FROM users WHERE AccessLevel = 2";
$rsRegional = mysql_query($query_rsRegional, $cbank) or die(mysql_error());
$row_rsRegional = mysql_fetch_assoc($rsRegional);
$totalRows_rsRegional = mysql_num_rows($rsRegional);
mysql_select_db($database_cbank, $cbank);
$query_rsArea = "SELECT * FROM users WHERE AccessLevel = 3";
$rsArea = mysql_query($query_rsArea, $cbank) or die(mysql_error());
$row_rsArea = mysql_fetch_assoc($rsArea);
$totalRows_rsArea = mysql_num_rows($rsArea);
mysql_select_db($database_cbank, $cbank);
$query_rsProductProvider = "SELECT * FROM product_provider";
$rsProductProvider = mysql_query($query_rsProductProvider, $cbank) or die(mysql_error());
$row_rsProductProvider = mysql_fetch_assoc($rsProductProvider);
$totalRows_rsProductProvider = mysql_num_rows($rsProductProvider);
mysql_select_db($database_cbank, $cbank);
$query_rsProductType = "SELECT * FROM producttype WHERE ProductTypeID <= 14";
$rsProductType = mysql_query($query_rsProductType, $cbank) or die(mysql_error());
$row_rsProductType = mysql_fetch_assoc($rsProductType);
$totalRows_rsProductType = mysql_num_rows($rsProductType);
mysql_select_db($database_cbank, $cbank);
$query_rsPropertyRef = "SELECT CONCAT(ifnull(PropertyRef, ''), ' ', ifnull(SaleType, ''), ' ',ifnull(UnitNo, ''), ' ', ifnull(PropertyType, ''), ' ',ifnull(ProductName, ''), ' ',ifnull(Development, ''), ' ', ifnull(Country, ''), ' ',ifnull(PriceofProperty, '')) AS PropertyRef, PropertyID, ProductTypeID FROM properties WHERE ProductTypeID <= 14";
$rsPropertyRef = mysql_query($query_rsPropertyRef, $cbank) or die(mysql_error());
$row_rsPropertyRef = mysql_fetch_assoc($rsPropertyRef);
$totalRows_rsPropertyRef = mysql_num_rows($rsPropertyRef);
$ParamCash_rsClientsCash = "-1";
if (isset($_GET['Cash_Sale_ID'])) {
$ParamCash_rsClientsCash = (get_magic_quotes_gpc()) ? $_GET['Cash_Sale_ID'] : addslashes($_GET['Cash_Sale_ID']);
mysql_select_db($database_cbank, $cbank);
$query_rsClientsCash = sprintf("SELECT clients.ClientID, cash_sale.clients_ClientID FROM clients join cash_sale on clients.ClientID = cash_sale.clients_ClientID WHERE cash_sale.Cash_Sale_ID = %s", GetSQLValueString($ParamCash_rsClientsCash, "int"));
$rsClientsCash = mysql_query($query_rsClientsCash, $cbank) or die(mysql_error());
$row_rsClientsCash = mysql_fetch_assoc($rsClientsCash);
$totalRows_rsClientsCash = mysql_num_rows($rsClientsCash);
// Make an update transaction instance
$upd_cash_sale = new tNG_update($conn_cbank);
$tNGs->addTransaction($upd_cash_sale);
// Register triggers
$upd_cash_sale->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1");
$upd_cash_sale->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$upd_cash_sale->registerTrigger("END", "Trigger_Default_Redirect", 99, "clients_Detail.php?ClientID={rsClientsCash.ClientID}");
$upd_cash_sale->registerTrigger("AFTER", "Trigger_SendEmail", 98);
// Add columns
$upd_cash_sale->setTable("cash_sale");
$upd_cash_sale->addColumn("clients_ClientID", "NUMERIC_TYPE", "POST", "clients_ClientID");
$upd_cash_sale->addColumn("AgentID", "NUMERIC_TYPE", "POST", "AgentID");
$upd_cash_sale->addColumn("IFAID", "NUMERIC_TYPE", "POST", "IFAID");
$upd_cash_sale->addColumn("Regional_ID", "NUMERIC_TYPE", "POST", "Regional_ID");
$upd_cash_sale->addColumn("Area_ID", "NUMERIC_TYPE", "POST", "Area_ID");
$upd_cash_sale->addColumn("Product_ProviderID", "NUMERIC_TYPE", "POST", "Product_ProviderID");
$upd_cash_sale->addColumn("ProductTypeID", "NUMERIC_TYPE", "POST", "ProductTypeID");
$upd_cash_sale->addColumn("PropertyID", "NUMERIC_TYPE", "POST", "PropertyID");
$upd_cash_sale->addColumn("AgencyTradingAgreementSignedDate", "DATE_TYPE", "POST", "AgencyTradingAgreementSignedDate");
$upd_cash_sale->addColumn("DateReservationFormSentToProductProvider", "DATE_TYPE", "POST", "DateReservationFormSentToProductProvider");
$upd_cash_sale->addColumn("DateResFeeSentToProductProvider", "DATE_TYPE", "POST", "DateResFeeSentToProductProvider");
$upd_cash_sale->addColumn("DateCertIDSentToPP", "DATE_TYPE", "POST", "DateCertIDSentToPP");
$upd_cash_sale->addColumn("DateClientRecvdContract", "DATE_TYPE", "POST", "DateClientRecvdContract");
$upd_cash_sale->addColumn("DateDepositDue", "DATE_TYPE", "POST", "DateDepositDue");
$upd_cash_sale->addColumn("DateContractReturnedToPP", "DATE_TYPE", "POST", "DateContractReturnedToPP");
$upd_cash_sale->addColumn("DateDepositPaidToPP", "DATE_TYPE", "POST", "DateDepositPaidToPP");
$upd_cash_sale->addColumn("CaseComplete", "DATE_TYPE", "POST", "CaseComplete");
$upd_cash_sale->addColumn("NPW", "CHECKBOX_YN_TYPE", "POST", "NPW");
$upd_cash_sale->addColumn("GrossInvoice", "DOUBLE_TYPE", "POST", "GrossInvoice");
$upd_cash_sale->addColumn("DateOfInvoice", "DATE_TYPE", "POST", "DateOfInvoice");
$upd_cash_sale->addColumn("DateInvoicePaid", "DATE_TYPE", "POST", "DateInvoicePaid");
$upd_cash_sale->addColumn("AgentExpectedAmount", "DOUBLE_TYPE", "POST", "AgentExpectedAmount");
$upd_cash_sale->addColumn("MIPExpectedAmount", "DOUBLE_TYPE", "POST", "MIPExpectedAmount");
$upd_cash_sale->addColumn("AmountPaidToAgent", "DOUBLE_TYPE", "POST", "AmountPaidToAgent");
$upd_cash_sale->addColumn("DatePaidToAgent", "DATE_TYPE", "POST", "DatePaidToAgent");
$upd_cash_sale->addColumn("AmountRSMBonusPaid", "DOUBLE_TYPE", "POST", "AmountRSMBonusPaid");
$upd_cash_sale->addColumn("NetMIPAmount", "DOUBLE_TYPE", "POST", "NetMIPAmount");
$upd_cash_sale->setPrimaryKey("Cash_Sale_ID", "NUMERIC_TYPE", "GET", "Cash_Sale_ID");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rscash_sale = $tNGs->getRecordset("cash_sale");
$row_rscash_sale = mysql_fetch_assoc($rscash_sale);
$totalRows_rscash_sale = mysql_num_rows($rscash_sale);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wdg="http://ns.adobe.com/addt">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cash update</title>
<style type="text/css" media="all">
<!--
@import url("css/common.css");
-->
<!--
@import url("css/admin.css");
-->
</style>
<style type="text/css" media="print">
<!--
@import url("css/admin_print.css");
-->
</style>
<!--[if IE]>
<style type="text/css">
#outerWrapper #contentWrapper #content {
zoom: 1;
</style>
<![endif]-->
<!--[if IE 6]>
<style type="text/css" media="all">
@import url("../css/ie6.css");
</style>
<![endif]-->
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script src="includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
<!--[if IE]><script type="text/javascript" src="dmx/lib/excanvas-compressed.js"></script><![endif]-->
<script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="dmx/dmx.core.js"></script>
<script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="includes/wdg/classes/Calendar.js"></script>
<script type="text/javascript" src="includes/wdg/classes/SmartDate.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar_stripped.js"></script>
<script type="text/javascript" src="includes/wdg/calendar/calendar-setup_stripped.js"></script>
<script src="includes/resources/calendar.js"></script>
</head>
<body bgcolor="#FFFFFF">
<?php
echo $tNGs->getErrorMsg();
?>
<form action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" method="post" target="_top" id="form1">
<table cellpadding="2" cellspacing="0" class="KT_tngtable" bgcolor="#FFFFFF">
<tr>
<td class="KT_th"><label for="AgentID">Agent:</label></td>
<td><select name="AgentID" id="AgentID">
<?php
do {
?>
<option value="<?php echo $row_rsAgents['UserID']?>"<?php if (!(strcmp($row_rsAgents['UserID'], $row_rscash_sale['AgentID']))) {echo "SELECTED";} ?>><?php echo $row_rsAgents['FullName']?></option>
<?php
} while ($row_rsAgents = mysql_fetch_assoc($rsAgents));
$rows = mysql_num_rows($rsAgents);
if($rows > 0) {
mysql_data_seek($rsAgents, 0);
$row_rsAgents = mysql_fetch_assoc($rsAgents);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "AgentID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="IFAID">IFA:</label></td>
<td><select name="IFAID" id="IFAID">
<?php
do {
?>
<option value="<?php echo $row_rsIFA['UserID']?>"<?php if (!(strcmp($row_rsIFA['UserID'], $row_rscash_sale['IFAID']))) {echo "SELECTED";} ?>><?php echo $row_rsIFA['FullName']?></option>
<?php
} while ($row_rsIFA = mysql_fetch_assoc($rsIFA));
$rows = mysql_num_rows($rsIFA);
if($rows > 0) {
mysql_data_seek($rsIFA, 0);
$row_rsIFA = mysql_fetch_assoc($rsIFA);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "IFAID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="Regional_ID">Regional Manager:</label></td>
<td><select name="Regional_ID" id="Regional_ID">
<?php
do {
?>
<option value="<?php echo $row_rsRegional['UserID']?>"<?php if (!(strcmp($row_rsRegional['UserID'], $row_rscash_sale['Regional_ID']))) {echo "SELECTED";} ?>><?php echo $row_rsRegional['FullName']?></option>
<?php
} while ($row_rsRegional = mysql_fetch_assoc($rsRegional));
$rows = mysql_num_rows($rsRegional);
if($rows > 0) {
mysql_data_seek($rsRegional, 0);
$row_rsRegional = mysql_fetch_assoc($rsRegional);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "Regional_ID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="Area_ID">Area Manager:</label></td>
<td><select name="Area_ID" id="Area_ID">
<?php
do {
?>
<option value="<?php echo $row_rsArea['UserID']?>"<?php if (!(strcmp($row_rsArea['UserID'], $row_rscash_sale['Area_ID']))) {echo "SELECTED";} ?>><?php echo $row_rsArea['FullName']?></option>
<?php
} while ($row_rsArea = mysql_fetch_assoc($rsArea));
$rows = mysql_num_rows($rsArea);
if($rows > 0) {
mysql_data_seek($rsArea, 0);
$row_rsArea = mysql_fetch_assoc($rsArea);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "Area_ID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="Product_ProviderID">Product Provider:</label></td>
<td><select name="Product_ProviderID" id="Product_ProviderID">
<?php
do {
?>
<option value="<?php echo $row_rsProductProvider['Product_ProviderID']?>"<?php if (!(strcmp($row_rsProductProvider['Product_ProviderID'], $row_rscash_sale['Product_ProviderID']))) {echo "SELECTED";} ?>><?php echo $row_rsProductProvider['ProductProvider']?></option>
<?php
} while ($row_rsProductProvider = mysql_fetch_assoc($rsProductProvider));
$rows = mysql_num_rows($rsProductProvider);
if($rows > 0) {
mysql_data_seek($rsProductProvider, 0);
$row_rsProductProvider = mysql_fetch_assoc($rsProductProvider);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "Product_ProviderID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="ProductTypeID">Product Type:</label></td>
<td><select name="ProductTypeID" id="ProductTypeID">
<?php
do {
?>
<option value="<?php echo $row_rsProductType['ProductTypeID']?>"<?php if (!(strcmp($row_rsProductType['ProductTypeID'], $row_rscash_sale['ProductTypeID']))) {echo "SELECTED";} ?>><?php echo $row_rsProductType['ProductTypeName']?></option>
<?php
} while ($row_rsProductType = mysql_fetch_assoc($rsProductType));
$rows = mysql_num_rows($rsProductType);
if($rows > 0) {
mysql_data_seek($rsProductType, 0);
$row_rsProductType = mysql_fetch_assoc($rsProductType);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "ProductTypeID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="PropertyID">Property Ref:</label></td>
<td><select name="PropertyID" id="PropertyID">
<?php
do {
?>
<option value="<?php echo $row_rsPropertyRef['PropertyID']?>"<?php if (!(strcmp($row_rsPropertyRef['PropertyID'], $row_rscash_sale['PropertyID']))) {echo "SELECTED";} ?>><?php echo $row_rsPropertyRef['PropertyRef']?></option>
<?php
} while ($row_rsPropertyRef = mysql_fetch_assoc($rsPropertyRef));
$rows = mysql_num_rows($rsPropertyRef);
if($rows > 0) {
mysql_data_seek($rsPropertyRef, 0);
$row_rsPropertyRef = mysql_fetch_assoc($rsPropertyRef);
?>
</select>
<?php echo $tNGs->displayFieldError("cash_sale", "PropertyID"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="AgencyTradingAgreementSignedDate">Agency Trading Agreement Signed Date:</label></td>
<td><input name="AgencyTradingAgreementSignedDate" id="AgencyTradingAgreementSignedDate" value="<?php echo KT_formatDate($row_rscash_sale['AgencyTradingAgreementSignedDate']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("AgencyTradingAgreementSignedDate");?> <?php echo $tNGs->displayFieldError("cash_sale", "AgencyTradingAgreementSignedDate"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateReservationFormSentToProductProvider">Date Reservation Form Sent To Product Provider:</label></td>
<td><input name="DateReservationFormSentToProductProvider" id="DateReservationFormSentToProductProvider" value="<?php echo KT_formatDate($row_rscash_sale['DateReservationFormSentToProductProvider']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateReservationFormSentToProductProvider");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateReservationFormSentToProductProvider"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateResFeeSentToProductProvider">Date Reservation Fee Sent To Product Provider:</label></td>
<td><input name="DateResFeeSentToProductProvider" id="DateResFeeSentToProductProvider" value="<?php echo KT_formatDate($row_rscash_sale['DateResFeeSentToProductProvider']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateResFeeSentToProductProvider");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateResFeeSentToProductProvider"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateCertIDSentToPP">Date Certified ID Sent To Product Provider:</label></td>
<td><input name="DateCertIDSentToPP" id="DateCertIDSentToPP" value="<?php echo KT_formatDate($row_rscash_sale['DateCertIDSentToPP']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateCertIDSentToPP");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateCertIDSentToPP"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateClientRecvdContract">Date Client Received Contract:</label></td>
<td><input name="DateClientRecvdContract" id="DateClientRecvdContract" value="<?php echo KT_formatDate($row_rscash_sale['DateClientRecvdContract']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateClientRecvdContract");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateClientRecvdContract"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateDepositDue">Date Deposit Due:</label></td>
<td><input name="DateDepositDue" id="DateDepositDue" value="<?php echo KT_formatDate($row_rscash_sale['DateDepositDue']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateDepositDue");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateDepositDue"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateContractReturnedToPP">Date Contract Returned To Product Provider:</label></td>
<td><input name="DateContractReturnedToPP" id="DateContractReturnedToPP" value="<?php echo KT_formatDate($row_rscash_sale['DateContractReturnedToPP']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateContractReturnedToPP");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateContractReturnedToPP"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateDepositPaidToPP">Date Deposit Paid To Product Provider:</label></td>
<td><input name="DateDepositPaidToPP" id="DateDepositPaidToPP" value="<?php echo KT_formatDate($row_rscash_sale['DateDepositPaidToPP']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateDepositPaidToPP");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateDepositPaidToPP"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="CaseComplete">Case Complete:</label></td>
<td><input name="CaseComplete" id="CaseComplete" value="<?php echo KT_formatDate($row_rscash_sale['CaseComplete']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("CaseComplete");?> <?php echo $tNGs->displayFieldError("cash_sale", "CaseComplete"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="NPW">NPW:</label></td>
<td><input <?php if (!(strcmp(KT_escapeAttribute($row_rscash_sale['NPW']),"Y"))) {echo "checked";} ?> type="checkbox" name="NPW" id="NPW" value="Y" />
<?php echo $tNGs->displayFieldError("cash_sale", "NPW"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="GrossInvoice">Gross Invoice:</label></td>
<td><input type="text" name="GrossInvoice" id="GrossInvoice" value="<?php echo KT_escapeAttribute($row_rscash_sale['GrossInvoice']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("GrossInvoice");?> <?php echo $tNGs->displayFieldError("cash_sale", "GrossInvoice"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateOfInvoice">Date Of Invoice:</label></td>
<td><input name="DateOfInvoice" id="DateOfInvoice" value="<?php echo KT_formatDate($row_rscash_sale['DateOfInvoice']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateOfInvoice");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateOfInvoice"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DateInvoicePaid">Date Invoice Paid:</label></td>
<td><input name="DateInvoicePaid" id="DateInvoicePaid" value="<?php echo KT_formatDate($row_rscash_sale['DateInvoicePaid']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DateInvoicePaid");?> <?php echo $tNGs->displayFieldError("cash_sale", "DateInvoicePaid"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="AgentExpectedAmount">Agent Expected Amount £:</label></td>
<td><input type="text" name="AgentExpectedAmount" id="AgentExpectedAmount" value="<?php echo KT_escapeAttribute($row_rscash_sale['AgentExpectedAmount']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("AgentExpectedAmount");?> <?php echo $tNGs->displayFieldError("cash_sale", "AgentExpectedAmount"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="MIPExpectedAmount">MIP Expected Amount £:</label></td>
<td><input type="text" name="MIPExpectedAmount" id="MIPExpectedAmount" value="<?php echo KT_escapeAttribute($row_rscash_sale['MIPExpectedAmount']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("MIPExpectedAmount");?> <?php echo $tNGs->displayFieldError("cash_sale", "MIPExpectedAmount"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="AmountPaidToAgent">Amount Paid To Agent £:</label></td>
<td><input type="text" name="AmountPaidToAgent" id="AmountPaidToAgent" value="<?php echo KT_escapeAttribute($row_rscash_sale['AmountPaidToAgent']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("AmountPaidToAgent");?> <?php echo $tNGs->displayFieldError("cash_sale", "AmountPaidToAgent"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="DatePaidToAgent">Date Paid To Agent:</label></td>
<td><input name="DatePaidToAgent" id="DatePaidToAgent" value="<?php echo KT_formatDate($row_rscash_sale['DatePaidToAgent']); ?>" size="32" wdg:mondayfirst="true" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="yes" />
<?php echo $tNGs->displayFieldHint("DatePaidToAgent");?> <?php echo $tNGs->displayFieldError("cash_sale", "DatePaidToAgent"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="AmountRSMBonusPaid">Amount RSM Bonus Paid £:</label></td>
<td><input type="text" name="AmountRSMBonusPaid" id="AmountRSMBonusPaid" value="<?php echo KT_escapeAttribute($row_rscash_sale['AmountRSMBonusPaid']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("AmountRSMBonusPaid");?> <?php echo $tNGs->displayFieldError("cash_sale", "AmountRSMBonusPaid"); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="NetMIPAmount">Net MIP Amount £:</label></td>
<td><input type="text" name="NetMIPAmount" id="NetMIPAmount" value="<?php echo KT_escapeAttribute($row_rscash_sale['NetMIPAmount']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("NetMIPAmount");?> <?php echo $tNGs->displayFieldError("cash_sale", "NetMIPAmount"); ?></td>
</tr>
<tr class="KT_buttons">
<td colspan="2"><input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" /></td>
</tr>
</table>
<input type="hidden" name="clients_ClientID" id="clients_ClientID" value="<?php echo KT_escapeAttribute($row_rscash_sale['clients_ClientID']); ?>" />
</form>
<p> </p>
</body>
</html>
<?php
mysql_free_result($rsAgents);
mysql_free_result($rsIFA);
mysql_free_result($rsRegional);
mysql_free_result($rsArea);
mysql_free_result($rsProductProvider);
mysql_free_result($rsProductType);
mysql_free_result($rsPropertyRef);
mysql_free_result($rsClientsCash);
?> -
Sending Email with Subject?
Hi - creating a button for the user to send an email to technical support.. Anyway to pre-populate the Email subject?
Maybe with Javascript?Hi,
I think Rick answered this in a earlier post, but if you couldn't find it, here's what I would do.
Use the On Success, Send Email option. Immediately following the email address, type ?subject= then type your subject, using %20 wherever you want a space (Captivate will get confused if you use spaces).
For example,
[email protected]?subject=My%20training%20is%20complete
When they click the button, an email addressed to [email protected] will be created. And the subject line will read: My training is complete.
Hope this helps.
ERR229
Maybe you are looking for
-
IPod shows up as disk but not in iTunes on Yosemite
Hi, I have an iPod classic, previously owned by a different family member on a different library. I wanted to erase and get my own content on. The problem is that it does come up as a disk in Finder, but not in iTunes. I have used on various other co
-
I received a pdf in an email and I saved it to my computer. I'm now trying to convert it from a pdf to Word but I get a message saying "an error occurred while signing in." I signed out and signed in again, but I got the same message. Has anyone else
-
Illustrator CS5 - Startup profiles missing and crashing on quit
Have a couple of problems with Illustrator CS5. When opening the program a message appears, 'Can't locate startup profiles' Have tried reinstalling the software but problem persists. When quitting out of Illustrator I get a message saying the softwar
-
How would you protect a given URL through the OAM 10g? Please explain me the details/steps? Advnc Thanks
-
HELP!!! I think I messed up my iPhoto!!
I created a "movie" slide show for my grandmother's funeral March 30, 2014. We created so many copies that I started deleting what I thought were duplicates of the movie we created. Ever since then, when I open iPhoto it just shows the rotating cir