/software/take_company_details/esi.php
https://bitbucket.org/devenbhooshan/paysewa · PHP · 260 lines · 226 code · 32 blank · 2 comment · 27 complexity · 6a0fb0ebe1162c2fc918dc4421ad4f93 MD5 · raw file
- <?php
- include("../dbinfo.php");
- $flag_for_checking=false;
- $clientid;
- $esino;
- $esitdate;
- $esifdate;
- $userid;
- $password;
- $esidownloadpath;
- $insptrname;
- $inspdate;
- $ecperiod;
- $lcperiod;
- $insplno;
- $replyno;
- //$replydate=$_POST['replydate'];
- $challanamt;
- $challanno;
- $cdepdate;
- $esiinsppath;
- $bresinoyn;
- if(array_key_exists('id',$_GET)&&$_GET['id']!=0){
- $clientid=$_GET['id'];
- $query_for_cheching_status=mysql_query("select esiYN from clientdetails where id='$clientid'");
- $row_for_status=mysql_fetch_array($query_for_cheching_status);
- $status=$row_for_status['esiYN'];
- if($status==1){
-
- $query_for_edit_values=mysql_query("select * from cesidetail where clientid='$clientid'");
- if(mysql_num_rows($query_for_edit_values)>0){
- $POST=mysql_fetch_array($query_for_edit_values);
- $flag_for_checking=true;
- $esino=$POST['esiNo'];
- $esitdate=$POST['esiTDate'];
- $esifdate=$POST['esiFDate'];
- $userid=$POST['userId'];
- $password=$POST['password'];
- $esidownloadpath=$POST['esiDownloadPath'];
- $insptrname=$POST['insptrName'];
- $inspdate=$POST['inspDate'];
- $ecperiod=$POST['ecPeriod'];
- $lcperiod=$POST['lcPeriod'];
- $insplno=$POST['inspLNo'];
- $replyno=$POST['replyNo'];
- //$replydate=$_POST['replydate'];
- $challanamt=$POST['challanAmt'];
- $challanno=$POST['challanNo'];
- $cdepdate=$POST['cDepDate'];
- $esiinsppath=$POST['esiInspPath'];
- $bresinoyn=$POST['brEsiNoYN'];
-
-
- }
- ?>
- <form class="form-horizontal" action="javascript:addesidetails()" id='addesidetails' >
- <fieldset>
- <table>
- <tbody>
- <tr>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESINumber">ESI number</label>
- <div class="controls">
- <input type="text" id="inputESINumber" placeholder="ESI number" name="esino" value="<?php if($flag_for_checking) echo $esino?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESITDate">ESI T Date</label>
- <div class="controls">
- <input type="text" id="inputESITDate" placeholder="ESI T Date" name="esitdate" value="<?php if($flag_for_checking) echo $esitdate?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIFDate">ESI F Date</label>
- <div class="controls">
- <input type="text" id="inputESIFDate" placeholder="ESI F Date" name="esifdate" value="<?php if($flag_for_checking) echo $esifdate?>">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIUserId">User Id</label>
- <div class="controls">
- <input type="text" id="inputESIUserId" placeholder="User Id" name="userid" value="<?php if($flag_for_checking) echo $userid ?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIPassword">Password </label>
- <div class="controls">
- <input type="password" id="inputESIPassword" placeholder="Password" name="password" value="<?php if($flag_for_checking) echo $password?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIDPath">Download Path</label>
- <div class="controls">
- <input type="text" id="inputESIDPath" placeholder="Download Path" name='esidownloadpath' value="<?php if($flag_for_checking) echo $esidownloadpath?>">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">Inspector Name</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="Inspector Name" name="insptrname" value="<?php if($flag_for_checking) echo $insptrname?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIDate">Inspection Date</label>
- <div class="controls">
- <input type="text" id="inputESIIDate" placeholder="DD-MM-YYYY" name="inspdate"value="<?php if($flag_for_checking) echo $inspdate?>" >
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">EC Period</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="EC Period" name="ecperiod" value="<?php if($flag_for_checking) echo $ecperiod?>">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">IC Period</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="IC Period" name="lcperiod" value="<?php if($flag_for_checking) echo $lcperiod?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">Inspector L Number</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="Inspector L Number" name="insplno" value="<?php if($flag_for_checking) echo $insplno?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">Reply Number</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="Reply Number" name="replyno" value="<?php if($flag_for_checking) echo $replyno?>">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">Challan Amount</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="Challan Amount" name="challanamt" value="<?php if($flag_for_checking) echo $challanamt?>">
- </div>
- </div>
- </td>
-
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">Challan Number</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="Challan Number" name="challanno" value="<?php if($flag_for_checking) echo $challanno?>">
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <label class="control-label" for="inputESIIName">CDep Date</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="CDep Date" name="cdepdate" value="<?php if($flag_for_checking) echo $cdepdate?>">
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
-
- <div class="control-group">
- <label class="control-label" for="inputESIIName">ESI LN SP Path</label>
- <div class="controls">
- <input type="text" id="inputESIIName" placeholder="ESI LN SP Path" name="esiinsppath" value="<?php if($flag_for_checking) echo $esiinsppath?>">
- </div>
- </div>
-
- </td>
-
- <td>
- <div class="control-group">
- <label class="control-label" for="inputPTax">BR ESI Number</label>
- <div class="controls">
- <input type="radio" id="inputPTax" value='0' name="bresinoyn" onChange="javascript:rddd(1);" <?php if($flag_for_checking&&$bresinoyn==0) echo 'checked="checked"' ?> >No
- <input type="radio" id="inputPtax" value='1' name="bresinoyn" onChange="javascript:rddd(2);" <?php if($flag_for_checking&&$bresinoyn==1) echo 'checked="checked"' ?>>Yes
- </div>
- </div>
- </td>
- <td>
- <div class="control-group">
- <div class="controls">
- <label class="control-group">
- <button type="submit" class="btn">Submit Details</button>
- </label>
- </div>
- </div>
-
- </td>
-
- </tr>
- </tbody>
- </table>
- </fieldset>
- </form>
-
-
- <?php
- }
- else {
- echo "ESI Not Applicable for this company.<br> See General Details for more information.";
-
-
- }
- }
- else if(array_key_exists('id',$_GET) && $_GET['id']==0) {
- echo "Fill General Details First.";
-
-
- }
- ?>