<? include("header.php");

$id=$_REQUEST['id'];

include "checksession.php";

include ("include/db-connect.php");

if(isset($_REQUEST['edit']))
	{
	$email=$_REQUEST['email'];
	$mobnum1=$_REQUEST['mobnum1'];
	$mobnum2=$_REQUEST['mobnum2'];
    
 	$update= "UPDATE ".$MAIL_CON." SET email='$email', mobnum1='$mobnum1', mobnum2='$mobnum2' WHERE id='1'";
	
 $exe_tab=mysql_query($update);
 ?>
 <script>
 window.location="mob_mail.php?ed=su";
 </script>
 <?
 
	 //header("location:mob_mail.php?ed=su");
	
	}
 ?>

  
<div id="content">
  <div class="breadcrumb">
       <!-- <a href="http://amarasudhan.com/admin/index.php?route=common/home&amp;token=b735cc089ec2d51abb9a8e1901f501fb">Home</a>-->
      </div>
              <div class="box">
    <div class="heading">
      <h1><img src="view/image/home.png" alt="" /> Dashboard > <? echo $array['menu'] ?>  Logo</h1>
    </div>
    <div class="content">
      <div class="overview" style="width:50%; margin-left:300px;">
        <div class="dashboard-heading"><? echo $array['menu'] ?> Logo</div>
        <div class="dashboard-content">
        
 
   <?php 
 $sel="select * from ".$MAIL_CON." where id=1";
 $run=mysql_query($sel);
 $array=mysql_fetch_array($run);
 $name=$array['image_name'];
  
 ?>
 
 <?php if($_REQUEST['ed']=='su'){ echo "<div class='alert_succes'>Contact Edited Successfully</div>"; } else { echo "";}?>

 <form action="" method="post" enctype="multipart/form-data" id="question" >
 <!-- <script type="text/javascript" src="../prototype.js"></script>
  <script type="text/javascript" src="../validation.js"></script>-->
  <script src="../ckeditor.js"></script>
  
  
      
		<div class="add_row" style="margin-top:20px"><div id="wrapper">
		<div class="wrap_box">
        
         <div style="float:left;width:200px;">Email ID:&nbsp;<font color="#FF0000">*</font>	</div> 
							<div id="txtHintstate" style="margin-left:200px;">
							  <input  type="text"  name="email" value="<?php echo $array['email']; ?>" size="40">                             
			  </div>   
                            
                    <div style="float:left;width:200px; margin-top:10px;">Contact Number1:&nbsp;<font color="#FF0000">*</font>	</div> 
							<div id="txtHintstate" style="margin-left:200px; margin-top:10px;">
							  <input  type="text"  name="mobnum1" value="<?php echo $array['mobnum1']; ?>" size="40">
                             </div>     
                  <div style="float:left;width:200px; margin-top:10px;">Contact Number2:&nbsp;<font color="#FF0000">*</font>	</div> 
							<div id="txtHintstate" style="margin-left:200px; margin-top:10px;">
							  <input  type="text"  name="mobnum2" value="<?php echo $array['mobnum2']; ?>" size="40">   
                                                    
                           </div> 
                       <div class="add_row" style="margin-left:195px;">
                      <p><span class="maintextbox"> <input type="submit" name="edit" id="button" value="Submit" ><br><br>
                      <a href="logo.php">Back</a>  </span></p>
                      </div></div><!-- End option--></div><!-- End add_row-->
                      </div>      
                         
               
   </form>
        </div>
      </div>
      
      
    </div>
  </div>
</div>
<!--[if IE]>
<script type="text/javascript" src="view/javascript/jquery/flot/excanvas.js"></script>
<![endif]--> 
<script type="text/javascript" src="view/javascript/jquery/flot/jquery.flot.js"></script> 
<script type="text/javascript"><!--
function getSalesChart(range) {
	$.ajax({
		type: 'get',
		url: 'index.php?route=common/home/chart&token=b735cc089ec2d51abb9a8e1901f501fb&range=' + range,
		dataType: 'json',
		async: false,
		success: function(json) {
			var option = {	
				shadowSize: 0,
				lines: { 
					show: true,
					fill: true,
					lineWidth: 1
				},
				grid: {
					backgroundColor: '#FFFFFF'
				},	
				xaxis: {
            		ticks: json.xaxis
				}
			}

			$.plot($('#report'), [json.order, json.customer], option);
		}
	});
}

getSalesChart($('#range').val());
//--></script> 
</div>
<?  include("footer.php"); ?>