MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/agriba/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/agriba/admin/offer.php
<?php
include'loginQuery/session_start.php'; 
include'dbc.php';
$pageTitle="Add a new Offer and other attributes";
$pageName="Offer";
$linkName="Show All Offer";
$tableName="tbl_offer";
$listPageUrl="offer-list.php";

?>

<!DOCTYPE html>
<html>
    <head>
    
        <meta charset="utf-8">
            <meta content="width=device-width, initial-scale=1.0" name="viewport">
                <meta content="IE=edge" http-equiv="X-UA-Compatible">
                    <!-- Page title -->
                    <title>
                        <?php echo $pageName?>
                    </title>
                    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
                    <!--<link rel="shortcut icon" type="image/ico" href="favicon.ico" />-->
                    <!-- Vendor styles -->
                    <?php include'include/header-file.php';?>
                    <!--select feild css-->                    
                    <link rel="stylesheet" href="vendor/select2-3.5.2/select2.css" />
                    <link rel="stylesheet" href="vendor/select2-bootstrap/select2-bootstrap.css" />
                    <link rel="stylesheet" href="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css" />
                    <link rel="stylesheet" href="vendor/summernote/dist/summernote.css" />
                        <link rel="stylesheet" href="vendor/summernote/dist/summernote-bs3.css" />
                </meta>
            </meta>
        </meta>
    </head>
   
<style>
        .small-header .panel-body h2 {
            margin-top:3px;
        }
        .hbreadcrumb {
            margin-top:0;
        }
</style>    
    <body class="hide-sidebar">
        <!-- Simple splash screen-->
    
        <!--[if lt IE 7]>
<p class="alert alert-danger">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
        <!-- Header -->
        <?php include'include/header.php';?>
        <!-- Header End-->

        <!-- Navigation -->
        <?php include'include/side-menu.php';?>
        <!-- Navigation -->
<?php
    
    if(isset($_GET['id']))
    {
        
        $idd=$_GET['id'];
        $sql=mysqli_query($conn,"select * from $tableName where id='$idd'") or die(mysqli_error($conn));
        $row=mysqli_fetch_assoc($sql);
        extract($row);
        $mode="editOffer";
        $btnname="Update";
    }
    else
    {
        $id                ="";
        $name              ="";
        $thumb    ="";
         $status  ="1";

        $order_number ="";
        $product_id ="";
        $mode="addOffer";
        $idd="";
        $btnname="Save this Offer";
        $active='';
    }
    
?>        
        <!-- Main Wrapper -->
        <div id="wrapper">
       <!--small header start-->    
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li><a href="<?php echo $listPageUrl;?>" class="btn  btn-warning"><strong><?php echo $linkName;?></strong></a></li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
               <?php echo $pageName;?>
            </h2>
            <small><?php echo $pageTitle;?></small>
        </div>
    </div>
</div>     
                                        

<!--small header end-->   
            <div class="content ">
                <div class="row">
                    <div class="col-lg-1"></div>
                    <div class="col-lg-10">
                        <div class="hpanel">
                            
                           
                            
                            <div class="panel-body">
                                <!-- Page Form-->
                                <form id="form_2" role="form" action="dataQuery/process.php" method="post" enctype="multipart/form-data">
                                    <input type="hidden" id="getaction" name="action" value="<?php echo $mode;?>"   />
                                    <input type="hidden" id="getid" name="txtid" value="<?php echo $id;?>"   />
                        
    <div class="form-group row">

        <div class= "col-xs-12 col-sm-5" >
            <label for="name">Title<span class="text-danger">*</span></label>
            <input type="text" name="txtname" value="<?php echo $name ;?>"  class="form-control" required >
        </div>
       
          <div class="col-xs-12 col-sm-2" style="padding-left: 211px;">
           
             <input type="checkbox" id="name" name="txtstatus" <?php 
                if($status==1){ echo "checked";} ?>>
                 <label for="name">Active </label>              
           
        </div>
    </div>

          <p>&nbsp;</p>
          <p>&nbsp;</p>                                                  
    <div class="form-group row">
                                
        <div class="col-xs-3 control-label" for="name"  style="width:19%">
            <div id="brandimageprv1" class="img-content-size-1 common-fram ">
                <?php if($thumb!=""){?>
                    <img src="../media/offer/thumb/<?php echo $thumb?>"/>
                <?php }?>
            </div>
            <input class="textbox brand-img1" type="file" name="image1fleimage" >
        </div>  

        <div class="col-xs-6"  style="width:39%;">
            <p class="text-left"><strong>Image Guidelines</strong></p>
                <ul>
                    <li>Recomended image size 1920 x 800 px </li>
                    <li>Image format must be jpg or jpeg</li>     
                </ul>
        </div>
    </div>                          
                                   <hr>
                                    <div>
                                        <button class="btn btn-sm btn-primary m-t-n-xs" type="submit"><strong><?php echo $btnname;?></strong></button>
                                    </div>
                                </form>

                            </div><!--panel body end-->
                            
                            
                        </div><!--hpanel end-->
                    </div><!--col-10 end-->
                    <div class="col-lg-1"></div>
                </div>
            </div>
            <!-- Footer-->
            <?php include'include/footer-file.php';?>
<!--select feild css-->                    
<script src="vendor/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="vendor/summernote/dist/summernote.min.js"></script>            
             <script>

    $(function () {

        // Initialize summernote plugin
        $('.summernote').summernote();

        $('.summernote1').summernote({
            toolbar: [
                ['headline', ['style']],
                ['style', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']],
                ['textsize', ['fontsize']],
                ['alignment', ['ul', 'ol', 'paragraph', 'lineheight']],
            ]
        });

        $('.summernote2').summernote({
            airMode: true,
        });

    });

</script>

<script src="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js"></script>
<script src="vendor/select2-3.5.2/select2.min.js"></script>
     <?php include'message.php';?>

    </body>
</html>

MMCT - 2023