Revonzy Mini Shell

Şuanki Dizin: /home/shrishtiarchitec/public_html/adminpanel/slider/
Dosya Yükle :
Şuanki Dosya : /home/shrishtiarchitec/public_html/adminpanel/slider/edit.php

<?php 
include('../../config.php');
require_once(PATH_LIBRARIES.'/classes/DBConn.php');
require_once(PATH_ADMIN_INCLUDE.'/header.php');
$db = new DBConn();

//Get Here Category List
$sql="SELECT * FROM slider WHERE Id=".$_REQUEST['id'];
$getSliderImage=$db->ExecuteQuery($sql);
?>
<script type="text/javascript" src="imageuplaod.js"></script>
<div id="loading"></div>
<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3>Slider Image Uplaod </h3>
    </div>
  </div>
  <div class="clearfix"></div>
  <div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
      <div class="x_panel">
        <div class="x_title">
          <h2>Update Slider Image</h2>
          <ul class="nav navbar-right panel_toolbox">
             <li><button class="btn btn-round btn-success" onclick="window.history.back();">Back</button>
</li>
          </ul>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
          <form class="form-horizontal form-label-left" action="" method="post" id="categoryform">
            <input type="hidden" id="id" value="<?php echo $_REQUEST['id']; ?>">
            
            
            <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="title">Title <span class="required">*</span> </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
               <input type="text" id="title" class="form-control col-md-7 col-xs-12" name="title" placeholder="title name" value="<?php echo $getSliderImage[1]['Title']; ?>" />
              </div>
            </div>

            <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="line1">Line 1 <span class="required">*</span> </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
               <input type="text" id="line1" class="form-control col-md-7 col-xs-12" name="line1" placeholder="Ex: Creative Architect Designs" value="<?php echo $getSliderImage[1]['Line1']; ?>" />
              </div>
            </div>

            <!-- <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="line2">Line 2 <span class="required">*</span> </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
               <input type="text" id="line2" class="form-control col-md-7 col-xs-12" name="line2" placeholder="Ex: We are a team of professionals" value="<?php echo $getSliderImage[1]['Line2']; ?>" />
              </div>
            </div> -->
            
            <div class="item form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="fileupload">Image Upload <span class="required">*</span> </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <input type="file" id="fileupload" name="fileupload" class="form-control col-md-7 col-xs-12 " accept="image/jpg,image/png,image/jpeg,image/gif" />
                <span id="errmsg"></span>
              </div>
            </div>

            <div class="item form-group profileImg">
              <label class="control-label col-md-3 col-sm-3 col-xs-12"></label>
              <div class="col-md-6 col-sm-6 col-xs-12">
              <?php if($getSliderImage[1]['Image']==""){ ?>
                <img src="<?php echo PATH_IMAGE ?>/user.png" alt="Profile Image">
              <?php }else{ ?>
                <img src="<?php echo PATH_UPLOAD_IMAGE."/slider/".$getSliderImage[1]['Image'];?>" alt="Slider Image">
              <?php } ?>
                <input type="hidden" id="imageupload" name="imageupload" value="<?php echo $getSliderImage[1]['Image']; ?>" />
              </div>
            </div>

            <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="url">URL <span class="required">*</span> </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="url" name="url" required="required" class="form-control col-md-7 col-xs-12" placeholder="http://example.com" value="<?php echo $getSliderImage[1]['URL']; ?>">
                </div>
            </div>

           <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="position">Position <span class="required">*</span> </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="position" name="position" required="required" class="form-control col-md-7 col-xs-12 number" placeholder="1" value="<?php echo $getSliderImage[1]['Position']; ?>">
                </div>
              </div>
            <div class="ln_solid"></div>
            <div class="form-group">
              <div class="col-md-6 col-md-offset-3"> 
                <!-- <button type="submit" class="btn btn-primary">Cancel</button>-->
                <button id="update" type="button" class="btn btn-success">Update</button>
              </div>
            </div>
          </form>
            </div>
            
              </div>
              <!-- GEt HEre All The Image -->
              <div id="imageShow">
              </div>
              
         <div id="dialog1" title="Message" style="display:none; text-align:left;">
            <p>Image Successfully Updated</p>
      </div>
        <div id="dialog2" title="Message" style="display:none; text-align:left;">
            <p>Something is Wrong </p>
      </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php 
require_once(PATH_ADMIN_INCLUDE.'/footer.php');

?>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux vps.suncrosonline.com 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
Apache
162.241.69.42