Jump to content

tolearn

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tolearn's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, I have a form in which i have to calculate the leave and late days of employees. The coding is as follows: <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript"> /*function calc() { var a=parseInt(document.form1.num1.value); var b=parseInt(document.form1.num2.value); var c=a-b; document.form1.result.value=c; }*/ function calc() { var days=parseFloat(document.form1.days.value); var late=parseInt(document.form1.late.value); var quotient=parseInt(late/3); var reminder=parseInt(late%3); late_days=quotient*0.5; tot_leave=days+late_days; document.form1.total_leave.value=tot_leave; document.form1.late_remaining.value=reminder; } function calc1() { var cut=parseInt(document.form1.cut.value); leave_cut=tot_leave-cut; document.form1.leave_remaining.value=leave_cut; } </script> </head> <body> <form id="form1" name="form1"> <!--<input type="text" name="num1" /> + <input type="text" name="num2" onblur="calc()" /> = <input type="text" name="result" />--> Leave: <input type="text" name="days" /><br /> Late: <input type="text" name="late" onblur="calc()" /><br /> Total Leave: <input type="text" name="total_leave" /><br /> Late Remaining: <input type="text" name="late_remaining" /><br /> Cut: <input type="text" name="cut" onblur="calc1()" /><br /> Leave Remaining: <input type="text" name="leave_remaining" /><br /> </form> </body> </html> But i want this calculation to be done for more than one employee. The number of employees is taken from the database and i have to create an array and then have to calculate. How to do this?
  2. ok Thank you. So what i have to do for making changes as i wish.They said they have given the whole code to us? But im facing difficulties in changing?
  3. Ok. thank you. They have used Ioncube loader. Can any 1 teel about that. Why its used? Is that got anything to do with this {sitelink}??
  4. But they havent used the $ sign before the text. Its just {sitelink}.
  5. Hi, Here is an example: <td width="346" class="logo">{sitelink}<a href="#"><img src="{url_tmpl_main}images/button-hover.gif" width="100%" height="80" border="0" /></a></a> </td> The text i have marked in red. I don have any idea about why they are using like this. Is tht any function call. or any goloba variable? Thank u
  6. Hi Im working with a gaming website. We got the code from outside. It seems like they have used oops concept. Im new to this concept. Also they are using some thing like {welcome} etc. within curly braces. Can any one tell what this means? Thank you.
  7. HI Im developing a billing application. For paying fees for a student i have a page with * dropdown listing the term month (Eg. Nov - Feb, Mar - Apr etc). * dropdown listing the classes in the school(Eg. LKG, UKG, etc). * text box to type the name of the student. If I type a letter, say "a" in the text box all the names from the database starting with the letter which is typed say "a" is listed. I have done this using the AJAX concept. But i get all the names of students in the school database. What i have to get is only the names of students starting with the letter "a" from the particular class i have choosen in the dropdown. How to implement this using AJAX Thank you.
  8. HI Im developing a billing application. In that i have a list listing name of students in a school. Im able to list this using AJAX names of all students when the first letter is typed. But im getting the names of all students in the school I have a dropdown which have the classes. So when i type first letter in the textboz it should list the names of students of particular class choosen in the dropdown. How to do this? Thanks you
  9. Hi I tried by printing also. Everything goes fine. Control goes into the if loop also and im getting the text "Mail has been sent printed". But im not getting the mails. Thank you
  10. Hi Im working with a website. Im using the mail sending option in php. I tried to send mail to my id but im not getting the mail. wat may the problem. Code: <table width="100%" height="100%" border="0"> <tr> <td height="153" align=left valign="top"><table width="831" border="0"> <tr> <td width="768" height="144" align="left" valign="top" ><font size="+2" face="Arial, Helvetica, sans-serif"><strong> <font color="#FF9900">Welcome to the Online Consultancy Service</font></strong></font> <table width="570" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="661" align="left" bgcolor="#FFFFFF">Have your trade or tax related question answered by experts in the field.</td> </tr> <!-- for a nominal fee of INR: <'formatnumber(gc_online_consultancy_service_fee, 2)%>--> <tr> <td align="left" bgcolor="#FFFFFF"> <font color="#FF9900" size="+2" face="Arial, Helvetica, sans-serif"></font> The answer to your question will be emailed to the mail id provided in the form below.</td> </tr> <tr> <td></td> </tr> <tr> <td align="left" bgcolor="#FFFFFF">If you have any questions about this service, please email us at <a href="mailto:contact@agol.in">contact@agol.in</a> for details.</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td height="451"><table width="98%" height="100%" border="0"> <?php if(isset($_POST['fd'])) { ?> <tr bordercolor="#990000"> <td align="left" valign="top"> <div align="center"> <? //ob_start(); //$to = 'contact@agol.in'; $to = "preetha_chandru@rediffmail.com"; $cust_name=$_REQUEST['txtname']; $cust_email=$_REQUEST['txtemail']; $subject=$_REQUEST['txtsubject']; $Query=$_POST['txtquery']; //$body="Name: ".$cust_name."\n"."Email: ".$cust_email."\n"; //$body=$body."Query: \n".$_POST['txtquery']; $body=' <table width="68%" border="1" cellpadding="0" cellspacing="0"> <tr> <td width="30%"> </td> <td width="70%"> </td> </tr> <tr> <td>Name</td> <td>'. $cust_name .'</td> </tr> <tr> <td>Email Id</td> <td>'. $cust_email . '</td> </tr> <tr> <td>Subject</td> <td>' . $subject. '</td> </tr> <tr> <td>Query</td> <td>' .$Query .'</td> </tr> </table>'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'To:www.agol.in <contact@agol.in>' . "\r\n"; $headers .= 'From: <'. $cust_email .'>' . "\r\n"; if(mail($to, $subject, $body, $headers)) { echo "Mail has been sent."; } else { echo "Mail Not sent. Try Again."; } ?> </div></td> </tr> <? } ?> <tr> <td width="86%" align="left" valign="top"><fieldset> <legend><strong><font color="#CC0000" size="+1">Online Consultancy</font></strong></legend> <form id="form1" name="form1" method="post" action="onlineconsultancy.php"> <table width="514" height="120" border="0"> <tr> <td width="171">Name:</td> <td width="327"><input name="txtname" type="text" /></td> </tr> <tr> <td>Email Id:</td> <td><input name="txtemail" type="text" /></td> </tr> <tr> <td>Subject:</td> <td><input name="txtsubject" type="text" /></td> </tr> <tr> <td valign="top">Query:</td> <td><p> <textarea name="txtquery" cols="50" w="w" rows="10"></textarea> </p></td> </tr> <tr> <td valign="top"> </td> <td> </td> </tr> <tr> <td valign="top"><input name="fd" type="hidden" id="fd" value="fd" /></td> <td><input type="submit" name="Submit" value="Submit" /></td> </tr> <tr></tr> </table> </form> <p> </p> <p> </p> <p> </p> </fieldset></td> </tr> </table></td> </table> Thank you
  11. Hi, I have a page where i have a link. When i click that link pdf file has to be downloaded. It has to come with options like open, save and cancel. I tried this with opening a .doc file its working. When i try with .pdf file those options are not coming instead the pdf file opens as a page in IE. What may be the problem? Thank you.
  12. Im working with a ecom site. In that i have a page which lists items and their prices. When i run it locally it displays the curency format correctly as Rs. But when i try it after uploading it is displaying some other characters for currency format. What may be the problem?
  13. Thank you. Can i have somne example code for this? How much it is ggod to work out this with AJAX
×
×
  • 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.