]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php include("header.php"); $ins_obj= new config(); @$postaction=$_GET['edit']; if($postaction=='1') { $condition1="`id`=".$_GET['post_id']; $query=$ins_obj->display_rcd('tbl_rate',$condition1); if(is_array($query) || !empty($query)) { foreach($query as $data) { } } } ?> <?php if($_SERVER['REQUEST_METHOD']=='POST') { $insertdata = array( 'zone' => $ins_obj->validation($_POST['zone']), 'weight' => $ins_obj->validation($_POST['weight']), 'prepaid_cost' => $ins_obj->validation($_POST['prepaid_cost']) ); if(isset($_POST['submit'])) { $action=$_GET['action']; if($action!= "1") { $data= $ins_obj->insert("tbl_rate", $insertdata); if($data=='TRUE') { ?> <script type='text/javascript'> // alert ('Add sucessfully') var timer = setTimeout(function() { window.location.href="<?php echo $_POST['back_url']; ?>" } ); </script> <?php } else { echo "error".mysqli_error($this->con); } // =============================update========================== } else { $where_condition=array('id'=> $postaction); $update_query=$ins_obj->update("tbl_rate",$insertdata,$where_condition); if($update_query=='TRUE') { ?> <script type='text/javascript'> // alert ('Update sucessfully'); var timer = setTimeout(function() { window.location.href="<?php echo $_POST['back_url']; ?>" }); </script> <?php } else { echo "error".mysqli_error($this->con); } } } } ?> <!-- Main Sidebar Container --> <?php include("sidebar.php");?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0 text-dark">Shipping Cost</h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active">Shipping Cost</li> </ol> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.container-fluid --> </div> <!-- /.content-header --> <!-- Main content --> <section class="content"> <div class="container-fluid"> <!-- Small boxes (Stat box) --> <!-- /.row --> <!-- Main row --> <div class="row"> <div class="col-md-12"> <div class="card card-primary card-tabs"> <div class="card-header p-0 pt-1"> <ul class="nav nav-tabs" id="custom-tabs-five-tab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#general" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">General</a> </li> </ul> </div> <form class="form-horizontal" action="?action=<?php echo @$postaction;?>&&edit=<?php echo @$data['id'];?>" method="post" enctype="multipart/form-data"> <div class="card-body"> <div class="tab-content" id="custom-tabs-five-tabContent"> <div class="tab-pane fade active show" id="general" > <div class="card-body"> <div class="form-group row"> <label for="inputEmail3" class="col-sm-2 col-form-label">Zone</label> <div class="col-sm-10"> <select class="form-control" name="zone" required> <option <?php if(@$data['zone']=='z_a' || @$_GET['zone']=='z_a'){?> selected <?php }?> value="z_a">Zone-A</option> <option <?php if(@$data['zone']=='z_b' || @$_GET['zone']=='z_b'){?> selected <?php }?> value="z_b">Zone-B</option> <option <?php if(@$data['zone']=='z_c' || @$_GET['zone']=='z_c'){?> selected <?php }?> value="z_c">Zone-C</option> <option <?php if(@$data['zone']=='z_d' || @$_GET['zone']=='z_d'){?> selected <?php }?> value="z_d">Zone-D</option> <option <?php if(@$data['zone']=='z_e' || @$_GET['zone']=='z_e'){?> selected <?php }?> value="z_e">Zone-E</option> </select> </div> </div> <div class="form-group row"> <label for="inputEmail3" class="col-sm-2 col-form-label">Weight(Kg)</label> <div class="col-sm-10"> <input type="number" step="any" value="<?php echo @$data['weight'];?>" name="weight" class="form-control" placeholder="weight in kg" required> </div> </div> <div class="form-group row"> <label for="inputEmail3" class="col-sm-2 col-form-label">Rate(₹)</label> <div class="col-sm-10"> <input type="number" step="any" name="prepaid_cost" value="<?php echo @$data['prepaid_cost'];?>" class="form-control" placeholder="Enter Price" required> </div> </div> </div> <!-- /.card-body --> </div> </div> </div> <div class="card-footer"> <input type="hidden" name="back_url" value="<?php echo $_SERVER['HTTP_REFERER']; ?>"> <?php if($postaction=='1') { ?> <button type="submit" name="submit" class="btn btn-primary">Update</button> <?php } else { ?> <button type="submit" name="submit" class="btn btn-primary">Submit</button> <?php } ?> </div> </form> </div> </div> </div> <!-- /.row (main row) --> </div><!-- /.container-fluid --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("footer.php");?>