![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
djbuddhi
-
Posts
153 -
Joined
-
Last visited
Never
Posts posted by djbuddhi
-
-
Guys;
How 2 get the last date of the current month in mysql
Exp
if the system month is February return should be 29
like that ,how to get it ?
need help...
:o
-
what is the reporting tool used in php applications? i want to print my report via web without the window.print .what sort of package is used 2 have a professtional level print document.
HELP....
-
thank u very much
-
i need a AJAX php image upload script ? for upload a small image by AJAX ,i know how to do it in other method but problem when using AJAx .Pls help
:)
-
hey guys ; i need a pawn shop or juellery shop temaplate ; will u be able 2 find it for my final year project .pls...
-
i want 2 do it on the fly .cluck on a button
-
i want to export mysql query data to a excel file while on the web ?how to do it ?
-
I want to execute a sql and get a result set and written to a text file with the reaming query data like a spread sheet ,how 2 do it .text file written part is confused .pls help me
-
u can restrict by right click on the browser or u can restrict the print screen button both at the same time using a java script .u can protect them anyway
;D
-
upload files , and view something like that
-
I need a simple Document Management system ? From where can i download it /php and mysql
-
i need a javascript to check whether this at least one check box is clicked or not
<!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>
<title>-- UNION ASSURANCE </title>
<link href="bud.css" rel="stylesheet" type="text/css">
<script language="javascript">
var noOfSubmits = 0;
function CheckAll()
{
count = document.form1.elements.length;
for (i=0; i < count; i++)
{
if(document.form1.elements.checked == 1)
{document.form1.elements.checked = 0; }
else {document.form1.elements.checked = 1;}
}
}
function initForm()
{
noOfSubmits = 0;
}
function validate_form()
{
if(document.getElementsByName("items[]").checked)
{
alert("checked");
}
else
{
alert("unchecked");
}
}
function formValid_place()
{ var agree=confirm("Are you sure you wish to continue?");
if (agree)
{
// count_check = document.form1.elements.length;
//for (i=0; i<document.form1.d.length; i++){
//if (document.form1.d.checked==true)
//alert("Checkbox at index "+i+" is checked!")
//}
//return false;
//}
}
noOfSubmits++;
if(noOfSubmits>1)
{
alert("Submission already done. Please wait....");
return false;
}
document.form1.submit();
}else{
return false;
}
return (true);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<body onLoad="initForm();">
<br><br><br><br>
<form name="form1" method="post" action="" onSubmit="return formValid_place()">
<br><div align="center">
<table width="88%" align="center" class="adminlist">
<tr>
<th height="25" colspan="2">
<div align="left">Company Information</div></th>
</tr>
<tr class="row0">
<td width="30%" align="right"> <em>Company Name</em> : </td>
<td width="70%">xcxczxc</td>
</tr>
<tr class="row1">
<td align="right"><em>Address 1 </em>: </td>
<td width="70%">No-90 Galle Road</td>
</tr>
<tr class="row0">
<td align="right"><em>Address 2 : </em></td>
<td>Panadura</td>
</tr>
<tr class="row1">
<td align="right"><em>City : </em></td>
<td width="70%">Panadura</td>
</tr>
</table></div>
<br><br><br><br><div align="center">
<table width="91%" align="center" cellpadding="0" cellspacing="0" class="adminlist">
<tr>
<th height="25" colspan="6">
<div align="left">Mark Payments for Participating Employees </div></th>
<th height="25" colspan="2"><input name="btn" type="button" onclick="CheckAll()" value="Check All"> </th>
</tr>
<tr class="row1">
<td width="13%" height="27" nowrap="nowrap" ><strong><DIV align="right">Policy Number</div> </strong></td>
<td width="17%" nowrap="nowrap" ><strong>Employee Name</strong></td>
<td width="21%" nowrap="nowrap" ><strong>Department</strong></td>
<td width="11%" nowrap="nowrap" ><strong>Policy State</strong></td>
<td width="8%" nowrap="nowrap" ><div align="right"><strong> Premium Amount</strong></div></td>
<td width="8%" nowrap="nowrap" ><strong>No of Days From Last Payment</strong></td>
<td width="14%" nowrap="nowrap" ><strong>Last Payment</strong></td>
<td width="8%" nowrap="nowrap" ><strong>Payment</strong></td>
</tr> <tr class="row1" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
45353</div></td>
<td nowrap="nowrap">Mr vxcv c</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
185.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d1" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="45353" /></div></td>
</tr> <tr class="row0" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
64563</div></td>
<td nowrap="nowrap">Mr Mr.S.De Wijesekera</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
465.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d2" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="64563" /></div></td>
</tr> <tr class="row1" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
44444</div></td>
<td nowrap="nowrap">Mr Mr.S.De Mr.S.De Silva Wijesekera</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
465.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d3" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="44444" /></div></td>
</tr> <tr class="row0" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
32342</div></td>
<td nowrap="nowrap">Mr Mr. S. Gunawardena</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
370.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d4" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="32342" /></div></td>
</tr> <tr class="row1" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
53453</div></td>
<td nowrap="nowrap">Mr Mr. S. Gunawardena</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
375.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d5" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="53453" /></div></td>
</tr> <tr class="row0" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
03423</div></td>
<td nowrap="nowrap">Mr Mr. S. Gunawardena</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
560.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d6" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="3423" /></div></td>
</tr> <tr class="row1" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
00003</div></td>
<td nowrap="nowrap">Mr xcv cxvx</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
465.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d7" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="3" /></div></td>
</tr> <tr class="row0" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
02142</div></td>
<td nowrap="nowrap">Mr p.n.r ranasinhe</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
945.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d8" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="2142" /></div></td>
</tr> <tr class="row1" onmouseout="javascript:style.backgroundColor=''"onmouseover="javascript:style.backgroundColor='#F6F9ED'">
<td nowrap="nowrap"><div align="right">
56456</div></td>
<td nowrap="nowrap">Mrs zzx ZZX</td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap"><font color="#333333">Active</b></font></font></td>
<td nowrap="nowrap"><div align="right">
2,545.00</div></td>
<td nowrap="nowrap"><div align="right">0</div></td>
<td nowrap="nowrap">12 / 06 / 2008</td>
<td nowrap="nowrap"><div align="center"><input type="checkbox" name="d9" class="detailedViewTextBoxsmall" onFocus="this.className='detailedViewTextBoxOnsmall'" onBlur="this.className='detailedViewTextBoxsmall'" value="56456" /></div></td>
</tr> <TR class="row0">
<td ></td>
<td ></td>
<td ></td>
<td ><b>Total (Rs.) :</b></td>
<td ><div align="right"><b>6,375.00</b></div></td>
<td > </td>
<td ></td>
<td ></td>
</TR>
</table>
</div>
<br>
</p>
<br>
<div align="center">
<input type="button" name="Submit32" value="Back" style="width:70px; height:22px " class="mainoption" onClick="location.replace('add_mark_payments.php');">
<input type="submit" name="mark" id="mark" value="Mark" style="width:70px; height:22px " class="mainoption" >
</div></form>
</body>
</html>
-
i need a javascript for soll table heading [ html table heading when scroll down the mouse]
pls help
-
cant this table create dynamically.i need a code like this
-
thanks
-
How can i use php emailer to send mysql query list
ex:
name age salary
a 11 22
b 33 44
c 33 44
d 33 88
e 67 88
this table is creating dynamically buy a sql query .i want 2 send this above table by php mailer
how to do it ?
-
How to get the last date of the month or how to get the previous month in mysql
-
i have the solution now ,some how i manage 2 escape
;D
;D
-
html page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="javascript" src="ajax.js">
</script>
<body>
<form name="form1" method="post" action="">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<input name="r1" id="r1" type="radio" value="1">
<input name="r1" id="r1" type="radio" value="2">
<input name="r1" id="r1" type="radio" value="3">
<input name="r1" id="r1" type="radio" value="4">
</p>
<p> </p>
<p> </p>
<p><div id="diveInfo"></div>
<input type="button" name="Button" value="Button" onClick="ajaxFunction();">
</p>
</form>
</body>
</html>
ajax.js code
function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
alert("Your browser broke..!Pls Try Again ...!");
return false;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
var ajaxDisplay = document.getElementById('diveInfo');
ajaxDisplay.innerHTML = ajaxRequest.responseText;
}
}
var mysearchtxt = document.getElementById("r1").value;
var queryString = "?seachtxt="+mysearchtxt;
ajaxRequest.open("GET", "1.php" + queryString, true);
ajaxRequest.send(null);
}
1.php
<?php
echo $_GET['seachtxt'];
?>
can u tell me why this value alway 1 when clicking every radio button
-
it was not there , i was checking this
-
Can anyone give me AJAX/php code sample of validating email address , checking username exists , on client side onchange event validation .
-
ooh .thanks at the same time how do u post this smiles to the editor
-
i just want to develop a web based text editor ,to that i need to load the font list from a combo box .if the
user select a particular font , all the information type by the user will be receive according to
that font .
pls tell me how to load the font list by php
basically its like a gui where u can see this kind of a layout ,when u tring to create a new topic in this site
-
can u show me an example ? how 2 do it
[SOLVED] MYSQL DAte Question
in MySQL Help
Posted
yes php 4.3.3