Jump to content

jam0886

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jam0886's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi all! i have this form which lately has a problem of losing the inputs when hitting the "Back" button. then, i found the codes below. the codes are functional; it retains the inputs of text boxes. But i wanted, it will save the information of check boxes also and multi line text boxes. i have these codes/script where the form resides: <script type="text/javascript"> var f1=new rememberForm("cs_form") //create instance of script referencing form "cs_form" f1.persistfields("fsename", "installation", "service", "training", "servicecontract", "underwarranty", "expired", "chargeable","notchargeable", "completed", "pending", "datestarted", "datefinished", "systemmodel", "timestarted", "timefinished", "custname", "custadd", "ackname", "ackdept", "background", "analysis", "machinestatus", "recomm", "sparepart") //specify the text fields "fsename" and "installation" , etc. to be remembered f1.addtoggle("persistbox") //specify the checkbox "persistbox" as the " toggle box". (optional). </script> formretain2.js -->> javascript which perform the retaining of the form inputs function getCookie(Name){ var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair if (document.cookie.match(re)) //if cookie found return document.cookie.match(re)[0].split("=")[1] //return its value return "" } function setCookie(name, value, days){ var expireDate = new Date() //set "expstring" to either future or past date, to set or delete cookie, respectively var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days)) document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/"; } function rememberForm(formid){ //Main remember form values object this.formref=document.getElementById(formid)? document.getElementById(formid) : document.forms[formid] this.cookiename=formid this.persistdays=5 //days to persist form values this.fields=new Array() this.cookiestr="" var forminstance=this rememberForm.dotask(this.formref, function(){forminstance.savevalues()}, "submit") //save form values onsubmit rememberForm.dotask(window, function(){forminstance.recallvalues()}, "load") //populate form with saved values onload (body) } rememberForm.prototype.getfield=function(attr){ //get form field based on its ID or name attribute var fieldref=document.getElementById(attr)? document.getElementById(attr) : this.formref[attr] return fieldref } rememberForm.prototype.persistfields=function(){ //get form fields to persist values for for (var i=0; i<arguments.length; i++){ this.fields[i]=this.getfield(arguments[i]) this.fields[i].fname=arguments[i] //store name or id of field in custom property } } rememberForm.prototype.savevalues=function(){ //get form values and store in cookie for (var i=0; i<this.fields.length; i++){ if (this.fields[i].type=="text") this.cookiestr+=this.fields[i].fname+":"+escape(this.fields[i].value)+"#" } if (typeof this.togglebox!="undefined"){ //if "remember values checkbox" is defined this.persistdays=(this.togglebox.checked)? this.persistdays : -1 //decide whether to save form values this.cookiestr=(this.togglebox.checked)? this.cookiestr+"toggleboxid:on;" : this.cookiestr } else //if checkbox isn't defined, just remove final "#" from cookie string this.cookiestr=this.cookiestr.substr(0, this.cookiestr.length-1)+";" setCookie(this.cookiename, this.cookiestr, this.persistdays) } rememberForm.prototype.recallvalues=function(){ //populate form with saved values var cookievalue=getCookie(this.cookiename) if (cookievalue!=""){ //parse cookie, where cookie looks like: field1:value1#field2:value2... var cookievaluepair=cookievalue.split("#") for (var i=0; i<cookievaluepair.length; i++){ if (cookievaluepair[i].split(":")[0]!="toggleboxid" && this.getfield(cookievaluepair[i].split(":")[0]).type=="text") this.getfield(cookievaluepair[i].split(":")[0]).value=unescape(cookievaluepair[i].split(":")[1]) else //else if name in name/value pair is "toggleboxid" this.togglebox.checked=true } } } rememberForm.prototype.addtoggle=function(attr){ this.togglebox=this.getfield(attr) } //Call this function if you wish to clear the user's cookie of any saved values for this form instantly rememberForm.prototype.clearcookie=function(){ setCookie(this.cookiename, "", -1) } rememberForm.dotask=function(target, functionref, tasktype){ var tasktype=(window.addEventListener)? tasktype : "on"+tasktype if (target.addEventListener) target.addEventListener(tasktype, functionref, false) else if (target.attachEvent) target.attachEvent(tasktype, functionref) } sample code of a check box: <input name="underwarranty" type="checkbox" class="style5" value="Under Warranty"> sample code of a multi line text box (its name switches to textarea -- maybe it's the reason why the inputs do not retain. i just don't know... ) : <textarea name="machinestatus" cols="50" rows="4" class="style5" id="machinestatus" value="<? echo "$machinestatus_val"?>"><? echo "$machinestatus_val" ?></textarea> Can somebody help me with these? Please...? Thank you so much...
  2. How about the problem with the left margin? Please help me... Thank you so much...
  3. Hi y’all there kindhearted people. I’m new to PHP and also new to Macromedia Dreamweaver 8. I’ve done li’l readings on it but I still don’t get some functions of it. The following are the codes for our Customer Service Report which is sent to an e-mail. It carries the function of sending the CSR. The problem of this codes shows in the image I posted below. As you can see, the left margin is off and the texts don’t have the same font sizes. Can somebody help me with this? Please? Please try to check where the codes went wrong. I mean, please give me the appropriate codes to arrange the format: the left margin and the texts which will have the same font sizes. Please? Please… Please… Please… Thank you so so so much guys! Sorry for being so dumb. Please help me. sendcsr.php <?php session_start(); require("config2.php"); if (!session_is_registered("user")) { echo "<script>window.location=\"csr_login.php\"</script>"; exit; } ?> <?php $result = mysql_query( "select * from user WHERE username='$user'" ) ; $count = mysql_num_rows($result) ; if ($count!= 0) { $row=mysql_fetch_array($result) ; $email=$row["email"]; } ?> <html> <head> <title>S e n d i n g C.S.R</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div> <table width="110%" height="2%" border="1" cellpadding="0" cellspacing="0"> <tr> <th height="19" align="left" valign="middle" bgcolor="#333333" class="header1 style8">Mail Status:</th> </tr> <tr> <td height="112" align="left" valign="top" class="style5"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center" valign="middle" bgcolor="#999999"><table width="100%" height="100%" border="0" cellpadding="1" cellspacing="2" > <tr> <td height="22" align="center" bgcolor="#999999"><?php $fsename_val = $HTTP_GET_VARS['fsename']; $installation_val = $HTTP_GET_VARS['installation']; $service_val = $HTTP_GET_VARS['service']; $training_val = $HTTP_GET_VARS['training']; $servicecontract_val = $HTTP_GET_VARS['servicecontract']; $underwarranty_val = $HTTP_GET_VARS['underwarranty']; $expired_val = $HTTP_GET_VARS['expired']; $chargeable_val = $HTTP_GET_VARS['chargeable']; $notchargeable_val = $HTTP_GET_VARS['notchargeable']; $completed_val = $HTTP_GET_VARS['completed']; $pending_val = $HTTP_GET_VARS['pending']; $datestarted_val = $HTTP_GET_VARS['datestarted']; $datefinished_val = $HTTP_GET_VARS['datefinished']; $timestarted_val = $HTTP_GET_VARS['timestarted']; $timefinished_val = $HTTP_GET_VARS['timefinished']; $systemmodel_val = $HTTP_GET_VARS['systemmodel']; $custname_val = $HTTP_GET_VARS['custname']; $custadd_val = $HTTP_GET_VARS['custadd']; $ackname_val = $HTTP_GET_VARS['ackname']; $ackdept_val = $HTTP_GET_VARS['ackdept']; $background_val = $HTTP_GET_VARS['background']; $analysis_val = $HTTP_GET_VARS['analysis']; $machinestatus_val = $HTTP_GET_VARS['machinestatus']; $recomm_val = $HTTP_GET_VARS['recomm']; $sparepart_val = $HTTP_GET_VARS['sparepart']; //$email_val = $HTTP_GET_VARS['email']; // Read old entries //$FP = fopen($TextFile, "r"); //$Counter=fgets($FP, 4096); //fclose ($FP); //settype($Counter, "double"); $Counter++; if ($FP = fopen ($TextFile, "w")){ fwrite ($FP, $Counter); fclose ($FP); } $counter="$counter"; $msg= <<<EOF <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body> <div align="center"><img src="http://www.inzpect.com/inzpect header.jpg" alt="inzpect" width="350" height="68" /> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><div align="left" class="style1">Customer Service Report <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> </div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Field Service Engineer Name:</span></div></th> <th width="584" scope="col"><div align="left" class="style5"> $fsename_val</div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Type of Service: </div></th> <td width="584" scope="col"><div align="left" class="style5"> $installation_val $service_val $training_val $servicecontract_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Warranty:</div></th> <td width="584" class="style5" scope="col"> $underwarranty_val $expired_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Charge:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $chargeable_val $notchargeable_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Status:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $completed_val $pending_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Working Days & Hours:</div></th> <td width="220" scope="col"><div align="left" class="style5"></div> </td><tr> <tr> <th width="216" scope="col"><div align="right" class="style6">Date Started: </div></th> <td width="220" scope="col"><div align="left" class="style5"> $datestarted_val</div></td> <th width="108" scope="col"><div align="right" class="style6">Date Finished: </div></th> <td width="256" scope="col"><div align="left" class="style5"> $datefinished_val</div></td> </tr> <tr> <th class="style6"><div align="right">Time Started: </div></th> <td class="style5"> $timestarted_val</td> <th class="style6"><div align="right">Time Finished: </div></th> <td><div align="left" class="style5"> $timefinished_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="287" scope="col"><div align="left" class="style6">System Model / SN / Project Name / CPO Number: </div></th> <td width="513" class="style5" scope="col"><div align="left"> $systemmodel_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Customer Information: </span></div></th> <th width="220" scope="col"><div align="left" class="style5"></div></th> <th width="52" scope="col"> </th> <th width="312" scope="col"> </th> </tr> <tr> <th class="style6"><div align="right">Name:</div></th> <td class="style5"><div align="left"> $custname_val</div></td> <th class="style6"><div align="left">Address:</div></th> <td class="style5"> $custadd_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Customer Acknowledgement: </div></th> <th width="220" scope="col"><div align="left"></div></th> <th width="151" scope="col"> </th> <th width="213" scope="col"> </th> </tr> <tr> <th><div align="right" class="style6">Name:</div></th> <td class="style5"> $ackname_val</td> <th class="style6"><div align="left">Department/Designation:</div></th> <td class="style5"> $ackdept_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Background:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $background_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Analysis/Troubleshooting:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $analysis_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Machine Status: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $machinestatus_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Recommendations:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $recomm_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Spare Part Used: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $sparepart_val</div></td> </tr> </table> </div> EOF; EOF; $headers = "From: $fsename_val's CSR...\r\n"; $headers .= 'Cc: cristensen.gonzaga@inzpect.com,joysie.sarangena@inzpect.com,' . "\r\n"; $headers .= "Content-type: text/html\r\n"; $subject = "[$systemmodel_val][Date Started:$datestarted_val][status:$completed_val $pending_val]"; $sent = mail($mailto."jrsumalabe@inzpect.com,rolando_laya@inzpect.com,service-inz@inzpect.com, ",$subject, $msg, $headers); if ($sent){ ?> <span class="style190"><span class="style10">Customer Service Report Successfully Sent ! ! !</span> <? }else{ ?> </span><span class="style10">Message Sending failed!</span><span class="style190"> <? } ?> </span></td> </tr> </table></td> </tr> <tr> <td width="5%" bgcolor="#999999"> </td> <td width="47%" align="right" valign="middle" bgcolor="#999999"><form name="form1" method="post" action="csrlogout.php"> <input name="logout" type=submit class="header1" id="logout" value= logout> </form></td> <td width="48%" align="left" valign="middle" bgcolor="#999999"><form name="form2" method="post" action=""> <input name="back" type="button" class="header1" id="back" value=" back " onClick="history.back()"> </form></td> </tr> </table></td> </tr> </table> </div> </body> </html> CSR Sent to E-mail
  4. Hi y’all there kindhearted people. I’m new to PHP and also new to Macromedia Dreamweaver 8. I’ve done li’l readings on it but I still don’t get some functions of it. The following are the codes for our Customer Service Report which is sent to an e-mail. It carries the function of sending the CSR. The problem of this codes shows in the image I posted below. As you can see, the left margin is off and the texts don’t have the same font sizes. Can somebody help me with this? Please? Please try to check where the codes went wrong. I mean, please give me the appropriate codes to arrange the format: the left margin and the texts which will have the same font sizes. Please? Please… Please… Please… Thank you so so so much guys! Sorry for being so dumb. Please help me. sendcsr.php <?php session_start(); require("config2.php"); if (!session_is_registered("user")) { echo "<script>window.location=\"csr_login.php\"</script>"; exit; } ?> <?php $result = mysql_query( "select * from user WHERE username='$user'" ) ; $count = mysql_num_rows($result) ; if ($count!= 0) { $row=mysql_fetch_array($result) ; $email=$row["email"]; } ?> <html> <head> <title>S e n d i n g C.S.R</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div> <table width="110%" height="2%" border="1" cellpadding="0" cellspacing="0"> <tr> <th height="19" align="left" valign="middle" bgcolor="#333333" class="header1 style8">Mail Status:</th> </tr> <tr> <td height="112" align="left" valign="top" class="style5"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center" valign="middle" bgcolor="#999999"><table width="100%" height="100%" border="0" cellpadding="1" cellspacing="2" > <tr> <td height="22" align="center" bgcolor="#999999"><?php $fsename_val = $HTTP_GET_VARS['fsename']; $installation_val = $HTTP_GET_VARS['installation']; $service_val = $HTTP_GET_VARS['service']; $training_val = $HTTP_GET_VARS['training']; $servicecontract_val = $HTTP_GET_VARS['servicecontract']; $underwarranty_val = $HTTP_GET_VARS['underwarranty']; $expired_val = $HTTP_GET_VARS['expired']; $chargeable_val = $HTTP_GET_VARS['chargeable']; $notchargeable_val = $HTTP_GET_VARS['notchargeable']; $completed_val = $HTTP_GET_VARS['completed']; $pending_val = $HTTP_GET_VARS['pending']; $datestarted_val = $HTTP_GET_VARS['datestarted']; $datefinished_val = $HTTP_GET_VARS['datefinished']; $timestarted_val = $HTTP_GET_VARS['timestarted']; $timefinished_val = $HTTP_GET_VARS['timefinished']; $systemmodel_val = $HTTP_GET_VARS['systemmodel']; $custname_val = $HTTP_GET_VARS['custname']; $custadd_val = $HTTP_GET_VARS['custadd']; $ackname_val = $HTTP_GET_VARS['ackname']; $ackdept_val = $HTTP_GET_VARS['ackdept']; $background_val = $HTTP_GET_VARS['background']; $analysis_val = $HTTP_GET_VARS['analysis']; $machinestatus_val = $HTTP_GET_VARS['machinestatus']; $recomm_val = $HTTP_GET_VARS['recomm']; $sparepart_val = $HTTP_GET_VARS['sparepart']; //$email_val = $HTTP_GET_VARS['email']; // Read old entries //$FP = fopen($TextFile, "r"); //$Counter=fgets($FP, 4096); //fclose ($FP); //settype($Counter, "double"); $Counter++; if ($FP = fopen ($TextFile, "w")){ fwrite ($FP, $Counter); fclose ($FP); } $counter="$counter"; $msg= <<<EOF <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body> <div align="center"><img src="http://www.inzpect.com/inzpect header.jpg" alt="inzpect" width="350" height="68" /> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><div align="left" class="style1">Customer Service Report <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> </div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Field Service Engineer Name:</span></div></th> <th width="584" scope="col"><div align="left" class="style5"> $fsename_val</div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Type of Service: </div></th> <td width="584" scope="col"><div align="left" class="style5"> $installation_val $service_val $training_val $servicecontract_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Warranty:</div></th> <td width="584" class="style5" scope="col"> $underwarranty_val $expired_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Charge:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $chargeable_val $notchargeable_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Status:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $completed_val $pending_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Working Days & Hours:</div></th> <td width="220" scope="col"><div align="left" class="style5"></div> </td><tr> <tr> <th width="216" scope="col"><div align="right" class="style6">Date Started: </div></th> <td width="220" scope="col"><div align="left" class="style5"> $datestarted_val</div></td> <th width="108" scope="col"><div align="right" class="style6">Date Finished: </div></th> <td width="256" scope="col"><div align="left" class="style5"> $datefinished_val</div></td> </tr> <tr> <th class="style6"><div align="right">Time Started: </div></th> <td class="style5"> $timestarted_val</td> <th class="style6"><div align="right">Time Finished: </div></th> <td><div align="left" class="style5"> $timefinished_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="287" scope="col"><div align="left" class="style6">System Model / SN / Project Name / CPO Number: </div></th> <td width="513" class="style5" scope="col"><div align="left"> $systemmodel_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Customer Information: </span></div></th> <th width="220" scope="col"><div align="left" class="style5"></div></th> <th width="52" scope="col"> </th> <th width="312" scope="col"> </th> </tr> <tr> <th class="style6"><div align="right">Name:</div></th> <td class="style5"><div align="left"> $custname_val</div></td> <th class="style6"><div align="left">Address:</div></th> <td class="style5"> $custadd_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Customer Acknowledgement: </div></th> <th width="220" scope="col"><div align="left"></div></th> <th width="151" scope="col"> </th> <th width="213" scope="col"> </th> </tr> <tr> <th><div align="right" class="style6">Name:</div></th> <td class="style5"> $ackname_val</td> <th class="style6"><div align="left">Department/Designation:</div></th> <td class="style5"> $ackdept_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Background:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $background_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Analysis/Troubleshooting:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $analysis_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Machine Status: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $machinestatus_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Recommendations:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $recomm_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Spare Part Used: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $sparepart_val</div></td> </tr> </table> </div> EOF; EOF; $headers = "From: $fsename_val's CSR...\r\n"; $headers .= 'Cc: cristensen.gonzaga@inzpect.com,joysie.sarangena@inzpect.com,' . "\r\n"; $headers .= "Content-type: text/html\r\n"; $subject = "[$systemmodel_val][Date Started:$datestarted_val][status:$completed_val $pending_val]"; $sent = mail($mailto."jrsumalabe@inzpect.com,rolando_laya@inzpect.com,service-inz@inzpect.com, ",$subject, $msg, $headers); if ($sent){ ?> <span class="style190"><span class="style10">Customer Service Report Successfully Sent ! ! !</span> <? }else{ ?> </span><span class="style10">Message Sending failed!</span><span class="style190"> <? } ?> </span></td> </tr> </table></td> </tr> <tr> <td width="5%" bgcolor="#999999"> </td> <td width="47%" align="right" valign="middle" bgcolor="#999999"><form name="form1" method="post" action="csrlogout.php"> <input name="logout" type=submit class="header1" id="logout" value= logout> </form></td> <td width="48%" align="left" valign="middle" bgcolor="#999999"><form name="form2" method="post" action=""> <input name="back" type="button" class="header1" id="back" value=" back " onClick="history.back()"> </form></td> </tr> </table></td> </tr> </table> </div> </body> </html> CSR Sent to E-mail
  5. Hi y’all there kindhearted people. I’m new to PHP and also new to Macromedia Dreamweaver 8. I’ve done li’l readings on it but I still don’t get some functions of it. The following are the codes for our Customer Service Report which is sent to an e-mail. It carries the function of sending the CSR. The problem of this codes shows in the image I posted below. As you can see, the left margin is off and the texts don’t have the same font sizes. Can somebody help me with this? Please? Please try to check where the codes went wrong. I mean, please give me the appropriate codes to arrange the format: the left margin and the texts which will have the same font sizes. Please? Please… Please… Please… Thank you so so so much guys! Sorry for being so dumb. Please help me. sendcsr.php <?php session_start(); require("config2.php"); if (!session_is_registered("user")) { echo "<script>window.location=\"csr_login.php\"</script>"; exit; } ?> <?php $result = mysql_query( "select * from user WHERE username='$user'" ) ; $count = mysql_num_rows($result) ; if ($count!= 0) { $row=mysql_fetch_array($result) ; $email=$row["email"]; } ?> <html> <head> <title>S e n d i n g C.S.R</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div> <table width="110%" height="2%" border="1" cellpadding="0" cellspacing="0"> <tr> <th height="19" align="left" valign="middle" bgcolor="#333333" class="header1 style8">Mail Status:</th> </tr> <tr> <td height="112" align="left" valign="top" class="style5"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center" valign="middle" bgcolor="#999999"><table width="100%" height="100%" border="0" cellpadding="1" cellspacing="2" > <tr> <td height="22" align="center" bgcolor="#999999"><?php $fsename_val = $HTTP_GET_VARS['fsename']; $installation_val = $HTTP_GET_VARS['installation']; $service_val = $HTTP_GET_VARS['service']; $training_val = $HTTP_GET_VARS['training']; $servicecontract_val = $HTTP_GET_VARS['servicecontract']; $underwarranty_val = $HTTP_GET_VARS['underwarranty']; $expired_val = $HTTP_GET_VARS['expired']; $chargeable_val = $HTTP_GET_VARS['chargeable']; $notchargeable_val = $HTTP_GET_VARS['notchargeable']; $completed_val = $HTTP_GET_VARS['completed']; $pending_val = $HTTP_GET_VARS['pending']; $datestarted_val = $HTTP_GET_VARS['datestarted']; $datefinished_val = $HTTP_GET_VARS['datefinished']; $timestarted_val = $HTTP_GET_VARS['timestarted']; $timefinished_val = $HTTP_GET_VARS['timefinished']; $systemmodel_val = $HTTP_GET_VARS['systemmodel']; $custname_val = $HTTP_GET_VARS['custname']; $custadd_val = $HTTP_GET_VARS['custadd']; $ackname_val = $HTTP_GET_VARS['ackname']; $ackdept_val = $HTTP_GET_VARS['ackdept']; $background_val = $HTTP_GET_VARS['background']; $analysis_val = $HTTP_GET_VARS['analysis']; $machinestatus_val = $HTTP_GET_VARS['machinestatus']; $recomm_val = $HTTP_GET_VARS['recomm']; $sparepart_val = $HTTP_GET_VARS['sparepart']; //$email_val = $HTTP_GET_VARS['email']; // Read old entries //$FP = fopen($TextFile, "r"); //$Counter=fgets($FP, 4096); //fclose ($FP); //settype($Counter, "double"); $Counter++; if ($FP = fopen ($TextFile, "w")){ fwrite ($FP, $Counter); fclose ($FP); } $counter="$counter"; $msg= <<<EOF <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body> <div align="center"><img src="http://www.inzpect.com/inzpect header.jpg" alt="inzpect" width="350" height="68" /> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><div align="left" class="style1">Customer Service Report <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> </div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Field Service Engineer Name:</span></div></th> <th width="584" scope="col"><div align="left" class="style5"> $fsename_val</div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Type of Service: </div></th> <td width="584" scope="col"><div align="left" class="style5"> $installation_val $service_val $training_val $servicecontract_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Warranty:</div></th> <td width="584" class="style5" scope="col"> $underwarranty_val $expired_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Charge:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $chargeable_val $notchargeable_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Status:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $completed_val $pending_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Working Days & Hours:</div></th> <td width="220" scope="col"><div align="left" class="style5"></div> </td><tr> <tr> <th width="216" scope="col"><div align="right" class="style6">Date Started: </div></th> <td width="220" scope="col"><div align="left" class="style5"> $datestarted_val</div></td> <th width="108" scope="col"><div align="right" class="style6">Date Finished: </div></th> <td width="256" scope="col"><div align="left" class="style5"> $datefinished_val</div></td> </tr> <tr> <th class="style6"><div align="right">Time Started: </div></th> <td class="style5"> $timestarted_val</td> <th class="style6"><div align="right">Time Finished: </div></th> <td><div align="left" class="style5"> $timefinished_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="287" scope="col"><div align="left" class="style6">System Model / SN / Project Name / CPO Number: </div></th> <td width="513" class="style5" scope="col"><div align="left"> $systemmodel_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Customer Information: </span></div></th> <th width="220" scope="col"><div align="left" class="style5"></div></th> <th width="52" scope="col"> </th> <th width="312" scope="col"> </th> </tr> <tr> <th class="style6"><div align="right">Name:</div></th> <td class="style5"><div align="left"> $custname_val</div></td> <th class="style6"><div align="left">Address:</div></th> <td class="style5"> $custadd_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Customer Acknowledgement: </div></th> <th width="220" scope="col"><div align="left"></div></th> <th width="151" scope="col"> </th> <th width="213" scope="col"> </th> </tr> <tr> <th><div align="right" class="style6">Name:</div></th> <td class="style5"> $ackname_val</td> <th class="style6"><div align="left">Department/Designation:</div></th> <td class="style5"> $ackdept_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Background:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $background_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Analysis/Troubleshooting:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $analysis_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Machine Status: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $machinestatus_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Recommendations:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $recomm_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Spare Part Used: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $sparepart_val</div></td> </tr> </table> </div> EOF; EOF; $headers = "From: $fsename_val's CSR...\r\n"; $headers .= 'Cc: cristensen.gonzaga@inzpect.com,joysie.sarangena@inzpect.com,' . "\r\n"; $headers .= "Content-type: text/html\r\n"; $subject = "[$systemmodel_val][Date Started:$datestarted_val][status:$completed_val $pending_val]"; $sent = mail($mailto."jrsumalabe@inzpect.com,rolando_laya@inzpect.com,service-inz@inzpect.com, ",$subject, $msg, $headers); if ($sent){ ?> <span class="style190"><span class="style10">Customer Service Report Successfully Sent ! ! !</span> <? }else{ ?> </span><span class="style10">Message Sending failed!</span><span class="style190"> <? } ?> </span></td> </tr> </table></td> </tr> <tr> <td width="5%" bgcolor="#999999"> </td> <td width="47%" align="right" valign="middle" bgcolor="#999999"><form name="form1" method="post" action="csrlogout.php"> <input name="logout" type=submit class="header1" id="logout" value= logout> </form></td> <td width="48%" align="left" valign="middle" bgcolor="#999999"><form name="form2" method="post" action=""> <input name="back" type="button" class="header1" id="back" value=" back " onClick="history.back()"> </form></td> </tr> </table></td> </tr> </table> </div> </body> </html> CSR Sent to E-mail
  6. Hi y’all there kindhearted people. I’m new to PHP and also new to Macromedia Dreamweaver 8. I’ve done li’l readings on it but I still don’t get some functions of it. The following are the codes for our Customer Service Report which is sent to an e-mail. It carries the function of sending the CSR. The problem of this codes shows in the image I posted below. As you can see, the left margin is off and the texts don’t have the same font sizes. Can somebody help me with this? Please? Please try to check where the codes went wrong. I mean, please give me the appropriate codes to arrange the format: the left margin and the texts which will have the same font sizes. Please? Please… Please… Please… Thank you so so so much guys! Sorry for being so dumb. Please help me. sendcsr.php <?php session_start(); require("config2.php"); if (!session_is_registered("user")) { echo "<script>window.location=\"csr_login.php\"</script>"; exit; } ?> <?php $result = mysql_query( "select * from user WHERE username='$user'" ) ; $count = mysql_num_rows($result) ; if ($count!= 0) { $row=mysql_fetch_array($result) ; $email=$row["email"]; } ?> <html> <head> <title>S e n d i n g C.S.R</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div> <table width="110%" height="2%" border="1" cellpadding="0" cellspacing="0"> <tr> <th height="19" align="left" valign="middle" bgcolor="#333333" class="header1 style8">Mail Status:</th> </tr> <tr> <td height="112" align="left" valign="top" class="style5"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" align="center" valign="middle" bgcolor="#999999"><table width="100%" height="100%" border="0" cellpadding="1" cellspacing="2" > <tr> <td height="22" align="center" bgcolor="#999999"><?php $fsename_val = $HTTP_GET_VARS['fsename']; $installation_val = $HTTP_GET_VARS['installation']; $service_val = $HTTP_GET_VARS['service']; $training_val = $HTTP_GET_VARS['training']; $servicecontract_val = $HTTP_GET_VARS['servicecontract']; $underwarranty_val = $HTTP_GET_VARS['underwarranty']; $expired_val = $HTTP_GET_VARS['expired']; $chargeable_val = $HTTP_GET_VARS['chargeable']; $notchargeable_val = $HTTP_GET_VARS['notchargeable']; $completed_val = $HTTP_GET_VARS['completed']; $pending_val = $HTTP_GET_VARS['pending']; $datestarted_val = $HTTP_GET_VARS['datestarted']; $datefinished_val = $HTTP_GET_VARS['datefinished']; $timestarted_val = $HTTP_GET_VARS['timestarted']; $timefinished_val = $HTTP_GET_VARS['timefinished']; $systemmodel_val = $HTTP_GET_VARS['systemmodel']; $custname_val = $HTTP_GET_VARS['custname']; $custadd_val = $HTTP_GET_VARS['custadd']; $ackname_val = $HTTP_GET_VARS['ackname']; $ackdept_val = $HTTP_GET_VARS['ackdept']; $background_val = $HTTP_GET_VARS['background']; $analysis_val = $HTTP_GET_VARS['analysis']; $machinestatus_val = $HTTP_GET_VARS['machinestatus']; $recomm_val = $HTTP_GET_VARS['recomm']; $sparepart_val = $HTTP_GET_VARS['sparepart']; //$email_val = $HTTP_GET_VARS['email']; // Read old entries //$FP = fopen($TextFile, "r"); //$Counter=fgets($FP, 4096); //fclose ($FP); //settype($Counter, "double"); $Counter++; if ($FP = fopen ($TextFile, "w")){ fwrite ($FP, $Counter); fclose ($FP); } $counter="$counter"; $msg= <<<EOF <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #0000FF; } .style7 { color: #0000FF; font-weight: bold; text-decoration: blink; } .style8 { color: #0000FF; font-family: Verdana, Arial, Helvetica, sans-serif; } .style10 {color: #33FF00; font-weight: bold; text-decoration: blink; } .style5 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } --> </style> </head> <body> <div align="center"><img src="http://www.inzpect.com/inzpect header.jpg" alt="inzpect" width="350" height="68" /> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><div align="left" class="style1">Customer Service Report <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> </tr> </table> </div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Field Service Engineer Name:</span></div></th> <th width="584" scope="col"><div align="left" class="style5"> $fsename_val</div></th> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Type of Service: </div></th> <td width="584" scope="col"><div align="left" class="style5"> $installation_val $service_val $training_val $servicecontract_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Warranty:</div></th> <td width="584" class="style5" scope="col"> $underwarranty_val $expired_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Charge:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $chargeable_val $notchargeable_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Status:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $completed_val $pending_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Working Days & Hours:</div></th> <td width="220" scope="col"><div align="left" class="style5"></div> </td><tr> <tr> <th width="216" scope="col"><div align="right" class="style6">Date Started: </div></th> <td width="220" scope="col"><div align="left" class="style5"> $datestarted_val</div></td> <th width="108" scope="col"><div align="right" class="style6">Date Finished: </div></th> <td width="256" scope="col"><div align="left" class="style5"> $datefinished_val</div></td> </tr> <tr> <th class="style6"><div align="right">Time Started: </div></th> <td class="style5"> $timestarted_val</td> <th class="style6"><div align="right">Time Finished: </div></th> <td><div align="left" class="style5"> $timefinished_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="287" scope="col"><div align="left" class="style6">System Model / SN / Project Name / CPO Number: </div></th> <td width="513" class="style5" scope="col"><div align="left"> $systemmodel_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Customer Information: </span></div></th> <th width="220" scope="col"><div align="left" class="style5"></div></th> <th width="52" scope="col"> </th> <th width="312" scope="col"> </th> </tr> <tr> <th class="style6"><div align="right">Name:</div></th> <td class="style5"><div align="left"> $custname_val</div></td> <th class="style6"><div align="left">Address:</div></th> <td class="style5"> $custadd_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" class="style6" scope="col"><div align="left">Customer Acknowledgement: </div></th> <th width="220" scope="col"><div align="left"></div></th> <th width="151" scope="col"> </th> <th width="213" scope="col"> </th> </tr> <tr> <th><div align="right" class="style6">Name:</div></th> <td class="style5"> $ackname_val</td> <th class="style6"><div align="left">Department/Designation:</div></th> <td class="style5"> $ackdept_val</td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left" class="style6">Background:</div></th> <td width="584" scope="col"><div align="left" class="style5"> $background_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Analysis/Troubleshooting:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $analysis_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Machine Status: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $machinestatus_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Recommendations:</span></div></th> <td width="584" scope="col"><div align="left" class="style5"> $recomm_val</div></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="216" scope="col"><div align="left"><span class="style6">Spare Part Used: </span></div></th> <td width="584" class="style5" scope="col"><div align="left"> $sparepart_val</div></td> </tr> </table> </div> EOF; EOF; $headers = "From: $fsename_val's CSR...\r\n"; $headers .= 'Cc: cristensen.gonzaga@inzpect.com,joysie.sarangena@inzpect.com,' . "\r\n"; $headers .= "Content-type: text/html\r\n"; $subject = "[$systemmodel_val][Date Started:$datestarted_val][status:$completed_val $pending_val]"; $sent = mail($mailto."jrsumalabe@inzpect.com,rolando_laya@inzpect.com,service-inz@inzpect.com, ",$subject, $msg, $headers); if ($sent){ ?> <span class="style190"><span class="style10">Customer Service Report Successfully Sent ! ! !</span> <? }else{ ?> </span><span class="style10">Message Sending failed!</span><span class="style190"> <? } ?> </span></td> </tr> </table></td> </tr> <tr> <td width="5%" bgcolor="#999999"> </td> <td width="47%" align="right" valign="middle" bgcolor="#999999"><form name="form1" method="post" action="csrlogout.php"> <input name="logout" type=submit class="header1" id="logout" value= logout> </form></td> <td width="48%" align="left" valign="middle" bgcolor="#999999"><form name="form2" method="post" action=""> <input name="back" type="button" class="header1" id="back" value=" back " onClick="history.back()"> </form></td> </tr> </table></td> </tr> </table> </div> </body> </html> CSR Sent to E-mail
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.