Viewing file: ddnewaccount.php (17.36 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); ?> <?php include ('passbook_dd.php'); ?> <?php include ('receiptdd.php'); ?> <?php include ('account_dd.php'); ?> <?php include('session.php'); ?> <?php include ('applicationno.php'); ?> <?php // Create connection $con=mysqli_connect("localhost","anshdiam_user","rb!ans838","anshdiam_sarkmicr_data");
// Check connection if (mysqli_connect_errno())
// Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { echo "We are connected."; }
$result = mysqli_query($con,"SELECT ID, name FROM addmember");
?> </form>
<!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>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>DAVING ACCOUNT</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body { background-color: #CCC; } </style> <script language="JavaScript" type="text/javascript"> <!--
function Toggle(obj){ var val=obj.value; if (!obj.m){ obj.m=''; } if (!obj.m.match(val)){ obj.m+=','+val+','; } var hide=obj.m.split(','); for (var zxc0=0;zxc0<hide.length;zxc0++){ if (document.getElementById(hide[zxc0])){ document.getElementById(hide[zxc0]).style.display='none'; } } var show=val.split(','); for (var zxc1=0;zxc1<show.length;zxc1++){ if (document.getElementById(show[zxc1])){ document.getElementById(show[zxc1]).style.display=''; } } }
//--> </script> </head> <center> <body> <form name="autoSumForm"> <table width="100%" border="0" bgcolor="#FFFFFF"> <tr> <td ><?php include('header.php'); ?></td> <td colspan="2"></td ></tr> <tr> <td colspan="3"> <table width="100%" border="0"> <tr> <td colspan="3" bgcolor="#CCCCCC"><?php include('menubar.php'); ?></td> </tr> <tr> <td width="210" bgcolor="#6699CC">Welcome <?php echo $user ?></td> <td width="335" bgcolor="#6699CC"><a href="logout.php">Logout</a></td> <td width="386" bgcolor="#6699CC"><?php echo "Today is " . date("d/m/y") . "<br>";?></td> </tr> </table> </td> </tr> <tr> <td colspan="2" align="left"> <form action="" method="get" name="form"> Enter Member Code : <?php // Create connection $con=mysqli_connect("localhost","anshdiam_user","rb!ans838","anshdiam_sarkmicr_data");
// Check connection if (mysqli_connect_errno())
// Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { echo "We are connected."; }
$result = mysqli_query($con,"SELECT DISTINCT membercode FROM addmember WHERE branch='$user' order by ID");
?> <select name="q" id="q" > <? while($row = mysqli_fetch_array($result)) { echo "<option value='" . $row['membercode'] . "'>" . $row['membercode'] . "</option>"; } ?> </select> <input type="submit" name="Submit" value="Search" /> </form> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"> <form id="form1" name="form1" method="post" action="ddacc_print.php" enctype="multipart/form-data"> <?php
// Get the search variable from URL
$var = @$_GET['q'] ; $trimmed = trim($var); //trim whitespace from the stored variable
// rows to return $limit=10;
// check for an empty string and display a message. if ($trimmed == "") { exit; }
// check for a search parameter if (!isset($var)) { echo "<p>We dont seem to have a search parameter!</p>"; exit; }
mysql_connect("localhost","anshdiam_user","rb!ans838"); //(host, username, password)
//specify database ** EDIT REQUIRED HERE ** mysql_select_db("anshdiam_sarkmicr_data") or die("Unable to select database"); //select which database we're using
$field = 'membercode'; // Build SQL Query $query = "select * from addmember where $field like \"$trimmed\" order by $field"; // EDIT HERE and specify your table and field names for the SQL query
$numresults=mysql_query($query); $numrows=mysql_num_rows($numresults);
// If we have no results, offer a google search as an alternative
if ($numrows == 0) { echo " Sorry, $trimmed this Number is not found";
}
// next determine if s has been passed to script, if not use 0 if (empty($s)) { $s=0; }
// get results $query .= " limit $s,$limit"; $result = mysql_query($query) or die("Couldn't execute query");
// begin to show results set $count = 1 + $s ;
// now you can display the results returned while ($row= mysql_fetch_array($result)) { echo " <table width=\"100%\" border=\"0\">\n"; echo " <tr bgcolor='#66CCFF'>\n";
echo " <td width=\"111\">Agent Name</td>\n"; echo " <td width='165' bgcolor='#66CCFF' ><input name='agent_name' value='$row[name] ' type='text' required='required' readonly size='40' maxlength='50' /></td>\n";
echo " <td>Agent Rank </td>\n"; echo " <td bgcolor='#66CCFF'><input type=\"text\" bgcolor='#66CCFF' name='agent_rank' value='$row[rank]' readonly id='agent_rank' /> </td>\n";
echo " <td width=\"144\">\n"; echo " <input type=\"text\" bgcolor='#66CCFF' name='agent_code' id='agent_code' value='$trimmed' />\n"; echo " </td>\n"; echo " <td> </td>\n";
echo " </tr>\n"; echo "</table>\n"; echo " \n"; $nc=$row[networkcode]; $agentname="'.$row[name].'"; $name=$row[name]; $midname=$row[mmidname]; $surname=$row[msurname]; $mfname=$row[fname]; $mfmidname=$row[fmidname]; $mfsurname=$row[fsurname]; $village=$row[village]; $post=$row[post]; $distt=$row[distt]; $state=$row[state]; $dob=$row[dob]; $phone=$row[phoneno]; $email=$row[email]; $pin=$row[pin]; $pan=$row[pan]; $occupation=$row[occupation]; $qualification=$row[qualification]; $nomineename=$row[nomineename]; $nomineerelationship=$row[nomineerelationship]; $count++ ; }
$currPage = (($s/$limit) + 1);
//break before paging echo "";
// next we need to do the links to other results if ($s>=1) { // bypass PREV link if s is 0 $prevs=($s-$limit); print "<a href=\"$PHP_SELF?s=$prevs&q=$var\"><< Prev 10</a> "; }
// calculate number of pages needing links $pages=intval($numrows/$limit);
// $pages now contains int of pages needed unless there is a remainder from division
?> </td> </tr> <tr> <td colspan="3" bgcolor="#66CCFF"> <table width="100%" border="0"> <tr> <td align="left" bgcolor="#3399FF">Account No</td> <td align="left" bgcolor="#3399FF"><input name="accountno" type="text" id="accountno" tabindex="1" size="20" maxlength="20" required="required" readonly="readonly" value=<?php echo $accountnew ?> /></td> <td align="left" bgcolor="#3399FF">Join Date</td> <td width="199" align="left" bgcolor="#3399FF"><select name="jdate" size="1" id="da"> <option><?php echo date(d) ?></option> <option>01</option> <option>02</option> <option>03</option> <option>04</option> <option>05</option> <option>06</option> <option>07</option> <option>08</option> <option>09</option> <option>10</option> <option>11</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>23</option> <option>24</option> <option>25</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> </select> <select name="jmonth" id="jmonth"> <option><?php echo date(m) ?></option> <option>01</option> <option>02</option> <option>03</option> <option>04</option> <option>05</option> <option>06</option> <option>07</option> <option>08</option> <option>09</option> <option>10</option> <option>11</option> <option>12</option> </select> <select name="jyear" id="jyear"> <option><?php echo date(Y) ?></option> <option>2014</option> <option>2015</option> <option>2016</option> <option>2017</option> <option>2018</option> <option>2019</option> <option>2020</option> </select></td> <td width="123" align="left" bgcolor="#66CCFF">Agent Code</td> <td align="left" bgcolor="#66CCFF"><input type="text" name="agent_code" id="agent_code" value="<?php echo $trimmed ?>" /></td> </tr> <tr> <td width="105" align="left" bgcolor="#3399FF">Name</td> <td colspan="3" align="left" bgcolor="#3399FF"><input name="cname" type="text" id="cname" size="60" maxlength="80" tabindex="1" required="required"/> <label for="textfield2" ></label></td> <td align="left" bgcolor="#66CCFF">Passbook No</td> <td width="182" align="left" bgcolor="#66CCFF"><label for="textfield"></label> <label for="textfield14"> <input name="passbookno" type="text" required="required" id="passbookno" tabindex="8" value="0" /> </label></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Father/Husband Name</td> <td colspan="3" align="left" bgcolor="#3399FF"><input name="fname" type="text" id="fname" size="60" maxlength="80" tabindex="2" required="required"/></td> <td align="left" bgcolor="#66CCFF">Deposit Days</td> <td align="left" bgcolor="#66CCFF"><input name="days" type="text" required="required" id="days" tabindex="8" value="0" readonly="readonly" /></td> </tr> <tr> <td height="24" align="left" bgcolor="#3399FF">Village</td> <td colspan="3" align="left" bgcolor="#3399FF"><input name="address" type="text" id="address" tabindex="3" size="80" maxlength="80" required="required"/></td> <td align="left" bgcolor="#66CCFF">Employee Code</td> <td align="left" bgcolor="#66CCFF"><input type="text" name="eecode" id="eecode" value="<?php echo $user ?>"/></td> </tr> <tr> <td height="24" align="left" bgcolor="#3399FF">Aadhar No</td> <td width="180" align="left" bgcolor="#3399FF"><input name="aadharno" type="text" id="aadharno" size="15" maxlength="15" /></td> <td width="129" align="left" bgcolor="#3399FF">Application No</td> <td align="left" bgcolor="#3399FF"><input type="text" name="applicationno" id="applicationno" value='<?php echo $totalapplcaion ?>'/></td> <td align="left" bgcolor="#66CCFF">Branch Name</td> <td align="left" bgcolor="#66CCFF"><input name="branchname" type="text" id="branchname" readonly="readonly" value="<?php echo $user ?>" /></td> </tr> <tr> <td height="24" align="left" bgcolor="#3399FF">Pan No</td> <td align="left" bgcolor="#3399FF"><label for="textfield4"></label> <input name="panno" type="text" id="panno" tabindex="3" size="20" maxlength="20"/></td> <td align="left" bgcolor="#3399FF">Phone</td> <td align="left" bgcolor="#3399FF"><input type="text" name="phone" id="phone" tabindex="5" required="required" /></td> <td align="left" bgcolor="#66CCFF">Agent Name</td> <td align="left" bgcolor="#66CCFF"><input type="text" name="agent_name" id="agent_name" value=<?php echo $agentname ?> /></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Email</td> <td align="left" bgcolor="#3399FF"><input name="email" type="text" id="email" tabindex="6" size="30" /></td> <td align="left" bgcolor="#3399FF">Date of Birth</td> <td align="left" bgcolor="#3399FF"><label for="textfield9"></label> <input name="dob" type="date" required="required" id="dob" tabindex="7" /></td> <td align="left" bgcolor="#66CCFF">Late Fees</td> <td width="182" height="20" align="left" bgcolor="#66CCFF"><input name="latefees" type="text" required="required" id="latefees" tabindex="8" value="0" size="10" readonly="readonly" /></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Qualification</td> <td align="left" bgcolor="#3399FF"><label for="textfield5"></label> <input type="text" name="qualification" id="qualification" tabindex="9" /></td> <td align="left" bgcolor="#3399FF">Occupation</td> <td align="left" bgcolor="#3399FF"><label for="textfield10"> <input name="occupation" type="text" id="occupation" tabindex="9" value="Farmer" /> </label></td> <td align="left" bgcolor="#66CCFF">Processing Amount</td> <td align="left" bgcolor="#66CCFF"><input name= "premium" id="premium" value="20" required="required" readonly="readonly" /></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Nominee Name</td> <td align="left" bgcolor="#3399FF"><label for="textfield6"></label> <input type="text" name="nominee_name" id="nominee_name" tabindex="12" /></td> <td align="left" bgcolor="#3399FF">Nominee Age</td> <td align="left" bgcolor="#3399FF"><label for="textfield11"></label> <input name="nominee_age" type="text" id="nominee_age" tabindex="13" size="10" maxlength="10" /></td> <td align="left" bgcolor="#66CCFF">Member Code</td> <td align="left" bgcolor="#66CCFF"><label for="textfield16"> <input type="text" name="mcode" id="mcode" readonly="readonly" tabindex="15" value=<?php echo $trimmed ?> /> </label></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Nominee Relation</td> <td align="left" bgcolor="#3399FF"><input type="text" name="nomineerelation" id="nomineerelation" tabindex="14" /></td> <td align="left" bgcolor="#3399FF">Receipt No</td> <td align="left" bgcolor="#3399FF"><input name="receiptno" type="text" required="required" id="receiptno" tabindex="0" value="<?php echo $receiptnew ?>" readonly="readonly" /></td> <td align="left" bgcolor="#66CCFF">Amount in Word</td> <td align="left" bgcolor="#66CCFF"><input name="amountrs" type="text" id="amountrs" size="20" maxlength="20" readonly="readonly"/></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Payment Mode</td> <td align="left" bgcolor="#3399FF"><select name="paymentmode" id="paymentmode"> <option selected="selected">CASH</option> </select></td> <td align="left" bgcolor="#3399FF">Scheme Name</td> <td align="left" bgcolor="#3399FF"><select name="select" size="1" id="select" > <option value="SAVING">SAVING</option> </select></td> <td align="left" bgcolor="#66CCFF">Payment Mode</td> <td align="left" bgcolor="#66CCFF"><select name="paymentmode2" id="paymentmode2"> <option selected="selected">CASH</option> <option>CHEQUE</option> </select></td> </tr> <tr> <td align="left" bgcolor="#3399FF">Deposit Amount</td> <td bgcolor="#3399FF" align="left" valign="top"><input type="text" name="loanamount" id="loanamount" required="required" /></td> <td align="left" bgcolor="#3399FF">Plant Period</td> <td align="left" bgcolor="#3399FF"><input name="plantime" type="text" id="plantime" value="0" /> Years</td> <td align="left" bgcolor="#66CCFF">Photo</td> <td align="left" bgcolor="#66CCFF"><input type="file" name="upload" id="upload" /></td> </tr> <tr> <td align="left" bgcolor="#3399FF">No of Installment</td> <td bgcolor="#3399FF" align="left" valign="top"><label for="noofinstallment"></label> <input name="noofinstallment" type="text" required="required" id="noofinstallment" value="0" readonly="readonly" /></td> <td align="left" bgcolor="#3399FF">Particulars</td> <td align="left" bgcolor="#3399FF"> <input name="particulars" type="text" id="particulars" value="CASH" /></td> <td align="left" bgcolor="#66CCFF">Signature</td> <td align="left" bgcolor="#66CCFF"><input type="file" name="fileField2" id="fileField2" /></td> </tr> <tr> <td align="left"> </td> <td align="left"> </td> <td align="left"> </td> <td align="left"> </td> <td align="left"><input type="submit" name="ADD" id="ADD" value="ADD" tabindex="22" /></td> <td align="left"> </td> </tr> </table> </form> </td> </tr> </table> </form>
</body></center> </html>
|