Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/eventsbyshubhchintak/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include'loginQuery/session_start.php'; include'dbc.php'; $pageTitle="Add a new Package and other attributes"; $pageName="Package Name"; $linkName="All Package"; $tableName="tbl_package"; $listPageUrl="package-list.php"; ?> <!DOCTYPE html> <html> <head> <title><?php echo $pageName; ?> | <?php echo $companyName; ?></title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Vendor styles --> <link rel="stylesheet" href="vendor/fontawesome/css/font-awesome.css" /> <link rel="stylesheet" href="vendor/metisMenu/dist/metisMenu.css" /> <link rel="stylesheet" href="vendor/animate.css/animate.css" /> <link rel="stylesheet" href="vendor/bootstrap/dist/css/bootstrap.css" /> <link rel="stylesheet" href="vendor/xeditable/bootstrap3-editable/css/bootstrap-editable.css" /> <link rel="stylesheet" href="vendor/select2-3.5.2/select2.css" /> <link rel="stylesheet" href="vendor/select2-bootstrap/select2-bootstrap.css" /> <link rel="stylesheet" href="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css" /> <link rel="stylesheet" href="vendor/bootstrap-datepicker-master/dist/css/bootstrap-datepicker3.min.css" /> <link rel="stylesheet" href="vendor/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" /> <link rel="stylesheet" href="vendor/clockpicker/dist/bootstrap-clockpicker.min.css" /> <link rel="stylesheet" href="vendor/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" /> <!-- App styles --> <link rel="stylesheet" href="fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css" /> <link rel="stylesheet" href="fonts/pe-icon-7-stroke/css/helper.css" /> <link rel="stylesheet" href="styles/style.css"> <script type="text/javascript" src="js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: "textarea", plugins: [ "codesample", "advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | codesample " }); </script> </head> <body class="fixed-small-header light-skin fixed-navbar sidebar-scroll"> <!-- Header --> <?php include 'includes/header.php'; ?> <!-- Navigation --> <?php include 'includes/sidemenu.php'; ?> <!-- php code --> <?php if(isset($_GET['id'])) { $idd=$_GET['id']; $sql=mysqli_query($conn,"select * from $tableName where id='$idd'") or die(mysqli_error($conn)); $row=mysqli_fetch_assoc($sql); extract($row); $occasionidAry = explode(',',$occaison_id); $mode="editPackage"; $btnname="Update"; } else { $id =""; $name =""; $url =""; $order_number =""; $keyword=""; $thumb =""; $city_id=""; $status ="1"; $metakeyword=""; $wholesale=""; $metadescription=""; $plateprice=""; $description=""; $guestcapacity=""; $price=""; $occaison_id=""; $mode="addPackage"; $idd=""; $btnname="Save "; $active=''; } ?> <!-- php code close --> <!-- Main Wrapper --> <div id="wrapper"> <div class="small-header"> <div class="hpanel"> <br><br> <div class="panel-body"> <div id="hbreadcrumb" class="pull-right"> <ol class="hbreadcrumb breadcrumb"> <li><a href="<?php echo $listPageUrl; ?>" class="btn btn-sm btn-primary m-t-n-xs"><strong><?php echo $linkName; ?></strong></a></li> </ol> </div> <h2 class="font-light m-b-xs"> <?php echo $pageTitle; ?> </h2> <small><a href="home.php">Dashboard</a></small> </div> </div> </div> <br><br> <div class="content"> <div class="row"> <div class="col-lg-6"> <div class="hpanel"> <div class="panel-heading"> Add Package </div> <div class="panel-body"> <form role="form" id="form" action="dataQuery/process.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="action" value="<?php echo $mode;?>" /> <input type="hidden" id="getid" name="txtid" value="<?php echo $id;?>" /> <div class="form-group"> <label>Title *</label> <input type="name" id="applicationname" class="form-control" name="txtname" value="<?php echo $name ;?>" required> </div> <div class="form-group"> <label>Url *</label> <input type="name" id="setpageName" class="form-control" name="txturl" value="<?php echo $url ;?>" required> </div> <div class="form-group"> <label>Package Price *</label> <input type="name" class="form-control" name="txtprice" value="<?php echo $price ;?>" required> </div> <div class="form-group"> <label>Guests Capacity *</label> <input type="name" class="form-control" name="txtguestcapacity" value="<?php echo $guestcapacity ;?>" required> </div> <div class="form-group"> <label>Price Per Plate *</label> <input type="name" class="form-control" name="txtplateprice" value="<?php echo $plateprice ;?>" required> </div> <div class="form-group"> <label>Select City *</label> <select name="selcity" class="js-source-states form-control" style="width: 100%"> <option value="">Select</option> <?php $sql=mysqli_query($conn,"select * from tbl_city order by name")or die(mysqli_error($conn)); while($row=mysqli_fetch_assoc($sql)) {?> <option <?php if($city_id==$row['id']){ echo 'selected';}?> value="<?php echo $row['id'];?>"><?php echo $row['name']; ?></option> <?php }?> </select> </div> <div class="form-group"> <label>Select Occasions *</label> <select class="js-source-states-2 form-control" multiple="multiple" name="seloccasion[]"> <option value="">Select</option> <?php $sqloccasion=mysqli_query($conn,"select * from tbl_occasion order by name")or die(mysqli_error($conn)); while($rowoccasion=mysqli_fetch_assoc($sqloccasion)) {?> <!-- <option <?php if($occaison_id==$rowoccasion['id']){ echo 'selected';}?> value="<?php echo $rowoccasion['id'];?>"><?php echo $rowoccasion['name']; ?></option> --> <option <?php if($occaison_id==""){echo "selected";} else { if(in_array($rowoccasion['id'],$occasionidAry)){ echo "selected";} }?> value="<?php echo $rowoccasion['id'];?>"><?php echo $rowoccasion['name']; ?></option> <?php }?> </select> </div> <div class="form-group"> <label>Meta Keyword</label> <input type="name" class="form-control" name="txtmetakeyword" value="<?php echo $metakeyword ;?>"> </div> <div class="form-group"> <label>Meta Description</label> <input type="name" class="form-control" name="txtmetadescription" value="<?php echo $metadescription ;?>"> </div> <div class="form-group"> <label>Order Number *</label> <input type="number" class="form-control" name="txtorder" value="<?php echo $order_number ;?>" required> </div> <div class="form-group"> <label for="name">Description</label> <textarea name="txtshortdescription" placeholder="enter the item description" ><?php echo $description;?></textarea> </div> </div> </div> </div> <div class="col-lg-6"> <div class="hpanel"> <div class="panel-heading"> Add Feature Image * </div> <div class="panel-body"> <div id="brandimageprv1" class="img-content-size-1 common-fram "> <?php if($thumb!=""){?> <img src="../media/package/thumb/<?php echo $thumb?>"/> <?php }?> </div> <input class="textbox brand-img1" type="file" name="image1fleimage" > <br> <ul> <li>Recomended image size 800 x 450 px </li> <li>Image format must be jpg</li> </ul> <br><br> <div> <button class="btn btn-success btn-sm submitbtn" type="submit"><strong>Submit</strong></button> </div> </div> </div> </div> </form> </div> </div> <!-- Footer--> <?php include 'includes/footer.php'; ?> </div> <!-- Vendor scripts --> <!-- Vendor scripts --> <script src="vendor/jquery/dist/jquery.min.js"></script> <script src="vendor/jquery-ui/jquery-ui.min.js"></script> <script src="vendor/slimScroll/jquery.slimscroll.min.js"></script> <script src="vendor/bootstrap/dist/js/bootstrap.min.js"></script> <script src="vendor/jquery-flot/jquery.flot.js"></script> <script src="vendor/jquery-flot/jquery.flot.resize.js"></script> <script src="vendor/jquery-flot/jquery.flot.pie.js"></script> <script src="vendor/flot.curvedlines/curvedLines.js"></script> <script src="vendor/jquery.flot.spline/index.js"></script> <script src="vendor/metisMenu/dist/metisMenu.min.js"></script> <script src="vendor/iCheck/icheck.min.js"></script> <script src="vendor/peity/jquery.peity.min.js"></script> <script src="vendor/sparkline/index.js"></script> <script src="vendor/select2-3.5.2/select2.min.js"></script> <!-- App scripts --> <script src="scripts/homer.js"></script> <script src="scripts/charts.js"></script> <script src="js/custum.js"></script> <!-- TinyMCE CDN --> <script src="vendor/summernote/dist/summernote.min.js"></script> <script> $(function () { // Initialize summernote plugin $('.summernote').summernote(); $('.summernote1').summernote({ toolbar: [ ['headline', ['style']], ['style', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']], ['textsize', ['fontsize']], ['alignment', ['ul', 'ol', 'paragraph', 'lineheight']], ] }); $('.summernote2').summernote({ airMode: true, }); }); $(".js-source-states-2").select2(); $(".js-source-states").select2(); </script> </body> </html>