#STEP B================================ #You MUST modify each of the variables in this this section #B1. REQUIRED: The location of data file on your server. This must #be the PATH to your data file, not the URL of your data file! #This file will be automatically created when first data is added. #Make sure that the folder (in this case "invoice") it is residing is #chmoded to 777. $data="/home/upoint/www/myscripts/invoice/data.txt"; #B2a. REQUIRED: The URL of "invoice.cgi". You must #provide the full URL, beginning with http. #Remember to chmod this script to 755. $thisurl="http://www.upoint.net/myscripts/invoice/invoice.cgi"; #B2b. REQUIRED: The URL of "listinvoice.cgi". You must #provide the full URL, beginning with http. #Remember to chmod this script to 755. $thisurl2="http://www.upoint.net/myscripts/invoice/listinvoice.cgi"; #B3. OPTIONAL: You can format the opening and closing HTML #of your results page in a separate file that can be written in #regular HTML and saved on your server. If your script can't #find this file and open it, the default result screen is displayed #instead. For ease of configuration, place it in the same directory #as your data file. Note: this file must have three plusses +++ #where you want your search results inserted. $openinghtml="/home/upoint/www/myscripts/invoice/template.htm"; #B4. REQUIRED TO ADD, DELETE, OR MODIFY. See #important information in the help files about adding additional #Security features to your script. #Change password to any combination of letters (A-Z, a-z) and #numbers 0-1. USE ONLY LETTERS AND NUMBERS $adminpassword="upoint"; #B5. URL to send administrator to after posting, editing, or getting errors. #This is usually the admin page for this section of your site $forwardingURL="http://www.upoint.net/myscripts/invoice/admin-AddNewInvoice.htm"; #B6. Currency symbol (put a backslash before the dollar sign if you are using one). $currency = "US\$"; ##B7. Enter the location of sendmail. $mailprogram = "/usr/lib/sendmail -t"; #B8. Your email address $youremail = "demo\@upoint.net"; #B9. Please provide the full path to your counter file #for the Invoice_Number field. You must provide full path and file #information. You should give the file a .txt extension. #This file is automatically created. Just make sure the folder #it is residing is chmoded to 777. $counterfile="/home/upoint/www/myscripts/invoice/counter.txt"; #B10. Your website title or company name. $sitetitle = "UPDN Network Sdn Bhd"; #B11. Your website URL. $siteURL = "www.upoint.net"; #B12. URL to the image print.gif $printURL = "http://www.upoint.net/myscripts/invoice/print.gif"; #B13. Maximum number of matching records to display per page #The lowest recommended is 10. Best is 25 to 30. $maximumpage=10; #B14. Maximum total number of records to display per search, #for stylistic reasons, should be multiple of above number $maximum=50; #B15. Template file for "Print Mode" - when clicking on the print.gif link. #This is similar to B3. This template file is for formatting the print #page. Simply create an HTML template file and place +++ (3 plus signs) at #the location you want the print mode result to be printed. To have the #simplest layout, set it as $openinghtml="";} $Printmode=$query->param('Printmode'); if ($Printmode){ $openinghtml="/home/upoint/www/myscripts/invoice/template2.htm";} #B16. The width (in pixel) of pop-up windows for Print Mode. $popupw = "640"; #B17. The height (in pixel) of pop-up windows for Print Mode. $popuph = "480"; #B18. Full URL to the image files. Upload these images to outside your cgi bin. #If located in the same folder as the scripts (and outside cgi bin), just specify #the file names below. $iinvoice = "iinvoice.gif"; $ipaid = "ipaid.gif"; $ipartlypaid = "ipartlypaid.gif"; $ioverpaid = "ioverpaid.gif";