<!DOCTYPE html>
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->

<head>
    <title>Add New Press Releases </title>


    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="description" content="#">
    <meta name="keywords"
        content="Admin , Responsive, Landing, Bootstrap, App, Template, Mobile, iOS, Android, apple, creative app">
    <meta name="author" content="dell">

    <link rel="icon" href="../assets/images/favicon.png" type="image/x-icon">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,800" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="files/bower_components/bootstrap/css/bootstrap.min.css">

    <link rel="stylesheet" type="text/css" href="files/assets/icon/themify-icons/themify-icons.css">

    <link rel="stylesheet" type="text/css" href="files/assets/icon/icofont/css/icofont.css">

    <link rel="stylesheet" type="text/css" href="files/assets/icon/feather/css/feather.css">

    <link rel="stylesheet" type="text/css" href="files/assets/css/style.css">
    <link rel="stylesheet" type="text/css" href="files/assets/css/jquery.mCustomScrollbar.css">
</head>

<body>

    <div class="theme-loader">
        <div class="ball-scale">
            <div class='contain'>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
                <div class="ring">
                    <div class="frame"></div>
                </div>
            </div>
        </div>
    </div>

    <div id="pcoded" class="pcoded">
        <div class="pcoded-overlay-box"></div>
        <div class="pcoded-container navbar-wrapper">
            <?php require_once "topnav.php"; ?>


            <div class="pcoded-main-container">
                <div class="pcoded-wrapper">
                    <?php
    asidenavmenu();
?>
                    <div class="pcoded-content">
                        <div class="pcoded-inner-content">

                            <div class="main-body">
                                <div class="page-wrapper">

                                    <div class="page-header">
                                        <div class="row align-items-end">
                                            <div class="col-lg-8">
                                                <div class="page-header-title">
                                                    <div class="d-inline">
                                                        <h4>Press Releases </h4>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-lg-4">
                                                <div class="page-header-breadcrumb">
                                                    <ul class="breadcrumb-title">
                                                        <li class="breadcrumb-item">
                                                            <a href="index-2.html"> <i class="feather icon-home"></i>
                                                            </a>
                                                        </li>
                                                      
                                                        <li class="breadcrumb-item"><a href="#!">Press Releases </a>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="page-body">
                                        <div class="row">
                                            <div class="col-sm-12">

                                                <div class="card">
                                                    <div class="card-header">
                                                        <h5>
                                                            <?= $formtitle ?>
                                                        </h5>
                                                    </div>
                                                    <?php
    if($Validation->has_error('pageaddsuccess') != ""){
?>
                                                    <div class="alert alert-success">
                                                        <button type="button" class="close" data-dismiss="alert"
                                                            aria-label="Close">
                                                            <i class="icofont icofont-close-line-circled"></i>
                                                        </button>
                                                        <strong>Success!</strong>
                                                        <?=$Validation->has_error('pageaddsuccess')?>
                                                    </div>
                                                    <?php
    }
?>
                                                    <div class="card-block">               
                                                        <form method="post" action="add-press-releases.php">
                                                            <input type="hidden" class="form-control"
                                                                name="pressreleasesid" id="pressreleasesid"
                                                                value="<?=$pressreleasesid?>">
                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    Title</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control"
                                                                        name="pressreleasestitle"
                                                                        id="pressreleasestitle"
                                                                        placeholder="pressreleases Title"
                                                                        value="<?=$pressreleasestitle?>" required>
                                                                    <?php
    if($Validation->has_error('pressreleasestitle') != ""){
?>                        
                                                                    <span
                                                                        class="text text-danger"><?=$Validation->has_error('pressreleasestitle')?></span>
                                                                    <?php
    }
?>
                                                                </div>
                                                            </div>         
                                                            <!-- <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    SubTitle</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control"
                                                                        name="pressreleasessubtitle"
                                                                        id="pressreleasessubtitle"
                                                                        placeholder="pressreleases Sub Title"
                                                                        value="<?=$pressreleasessubtitle?>">
                                                                    <?php
    if($Validation->has_error('pressreleasessubtitle') != ""){
?>
                                                                    <span
                                                                        class="text text-danger"><?=$Validation->has_error('pressreleasessubtitle')?></span>
                                                                    <?php
    }
?>
                                                                </div>
                                                            </div> -->
                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    Desc</label>
                                                                <div class="col-sm-10">
                                                                    <textarea name="pressreleasesdesc"
                                                                        id="pressreleasesdesc"
                                                                        class="form-control pressreleasesdesc ckeditor"><?=$pressreleasesdesc?></textarea>

                                                                    <?php
    if($Validation->has_error('pressreleasesdesc') != ""){
?>
                                                                    <span
                                                                        class="text text-danger"><?=$Validation->has_error('pressreleasesdesc')?></span>
                                                                    <?php
    }
?>
                                                                </div>
                                                            </div>

                                                            <!--<div class="form-group row">
<label class="col-sm-2 col-form-label">pressreleases Short Desc</label>
<div class="col-sm-10">
<textarea name="pressreleasesshortdesc" id="pressreleasesshortdesc" class="form-control pressreleasesshortdesc"><?=$pressreleasesshortdesc?></textarea>

<?php
    if($Validation->has_error('pressreleasesshortdesc') != ""){
?>
    <span class="text text-danger"><?=$Validation->has_error('pressreleasesshortdesc')?></span>
<?php
    }
?>
</div>
</div>-->

                                                            <!-- <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    Image</label>
                                                                <div class="col-sm-10">
                                                                    <a href="#" name="pressreleasesimage"
                                                                        id="pressreleasesimage" />Upload Image</a>
                                                                    <input type="hidden" class="form-control"
                                                                        name="pressreleasesimage1"
                                                                        id="pressreleasesimage1"
                                                                        value="<?=$pressreleasesimage?>" />
                                                                    <br>
                                                                    <br>
                                                                    <div id="mainimagediv">
                                                                        <?php
    if($pressreleasesimage == ''){
?>
                                                                        <input type="hidden" class="form-control"
                                                                            name="pressreleasesimagepath"
                                                                            id="pressreleasesimagepath" />
                                                                        <img src="<?=NO_PRODUCT_IMAGE?>blank.png"
                                                                            style='width: 1%;height: 1%; 1px solid black;padding: 0px 0%;' />
                                                                        <?php
    }
    else
    {
?>
                                                                        <input type="hidden" class="form-control"
                                                                            name="pressreleasesimagepath"
                                                                            id="pressreleasesimagepath"
                                                                            value="<?=$pressreleasesimage?>" />
                                                                        <img src="<?=DOC_ROOT?>pressreleasesimages/<?=$pressreleasesimage?>"
                                                                            style='width: 30%;1px solid black;padding: 0px 0%;' />
                                                                        <?php
    }
?>
                                                                    </div>
                                                                </div>
                                                            </div> -->


                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    Date</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control getdate"
                                                                        name="pressreleasesdate" id="pressreleasesdate"
                                                                        placeholder="pressreleases Date"
                                                                        value="<?=$pressreleasesdate?>">
                                                                    <?php
    if($Validation->has_error('pressreleasesdate') != ""){
?>
                                                                    <span
                                                                        class="text text-danger"><?=$Validation->has_error('pressreleasesdate')?></span>
                                                                    <?php
    }
?>
                                                                </div>
                                                            </div>

                                                            <!-- <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    Read Timeing</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control"
                                                                        name="pressreleasestimeing"
                                                                        id="pressreleasestimeing"
                                                                        placeholder="pressreleases Timeing"
                                                                        value="<?=$pressreleasestimeing?>">
                                                                    <?php
    if($Validation->has_error('pressreleasestimeing') != ""){
?>
                                                                    <span
                                                                        class="text text-danger"><?=$Validation->has_error('pressreleasestimeing')?></span>
                                                                    <?php
    }
?>
                                                                </div>
                                                            </div> -->


                                                            <!-- <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    By</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control"
                                                                        name="newscoveragebytitle"
                                                                        id="newscoveragebytitle"
                                                                        placeholder="newscoverage Title"
                                                                        value="<?=$pressreleasesby?>" required>
                                                                    <?php
    if($Validation->has_error('newscoveragebytitle') != ""){
?>
                                                                    <span
                                                                        class="text text-danger"><?=$Validation->has_error('newscoveragebytitle')?></span>
                                                                    <?php
    }
?>
                                                                </div>
                                                            </div> -->

<!-- 
                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Press Coverage
                                                                    Logo</label>
                                                                <div class="col-sm-10">
                                                                    <a href="#" name="newscoveragebyimage"
                                                                        id="newscoveragebyimage" />Logo Upload </a>
                                                                    <input type="hidden" class="form-control"
                                                                        name="newscoveragebyimage1"
                                                                        id="newscoveragebyimage1"
                                                                        value="<?=$pressreleasesbyimage?>" />
                                                                    <br>
                                                                    <br>
                                                                    <div id="mainimagedivs">
                                                                        <?php
    if($pressreleasesbyimage == ''){
?>
                                                                        <input type="hidden" class="form-control"
                                                                            name="newscoveragebyimagepath"
                                                                            id="newscoveragebyimagepath" />
                                                                        <img src="<?=NO_PRODUCT_IMAGE?>blank.png"
                                                                            style='width: 1%;height: 1%; 1px solid black;padding: 0px 0%;' />
                                                                        <?php
    }
    else
    {
?>
                                                                        <input type="hidden" class="form-control"
                                                                            name="newscoveragebyimagepath"
                                                                            id="newscoveragebyimagepath"
                                                                            value="<?=$pressreleasesbyimage?>" />
                                                                        <img src="<?=DOC_ROOT?>pressreleasesimages/<?=$pressreleasesbyimage?>"
                                                                            style='width: 30%;1px solid black;padding: 0px 0%;' />
                                                                        <?php
    }
?>
                                                                    </div>
                                                                </div>
                                                            </div> -->


                                                            <!-- <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">If Logo is not
                                                                    available then enter the source</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control"
                                                                        name="imagesource" id="imagesource"
                                                                        placeholder="enter the source"
                                                                        value="<?=$imagesource?>">
                                                                </div>
                                                            </div> -->


                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Publish</label>
                                                                <div class="col-sm-10">
                                                                    <div class="form-check form-check-inline">
                                                                        <label class="form-check-label">
                                                                            <input class="form-check-input" type="radio"
                                                                                name="status" id="statusyes" value="1"
                                                                                <?php echo ($status==1) ? 'checked' : ''
                                                                                ; ?> > Yes
                                                                        </label>
                                                                    </div>
                                                                    <div class="form-check form-check-inline">
                                                                        <label class="form-check-label">
                                                                            <input class="form-check-input" type="radio"
                                                                                name="status" id="statusno" value="0"
                                                                                <?php echo ($status==0) ? 'checked' : ''
                                                                                ; ?> > No
                                                                        </label>
                                                                    </div>
                                                                    <span class="text text-danger"></span>
                                                                </div>
                                                            </div>
                                                            <div class="form-group row">
                                                                <label class="col-sm-2"></label>
                                                                <div class="col-sm-10">
                                                                    <button type="submit" class="btn btn-primary m-b-0"
                                                                        name="btnaddpressreleases">Submit</button>
                                                                </div>
                                                            </div>
                                                        </form>
                                                    </div>
                                                </div>



                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>




    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/jquery/js/jquery.min.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/jquery-ui/js/jquery-ui.min.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/popper.js/js/popper.min.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/bootstrap/js/bootstrap.min.js"></script>

    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/jquery-slimscroll/js/jquery.slimscroll.js"></script>

    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/modernizr/js/modernizr.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/modernizr/js/css-scrollbars.js"></script>

    <script src="cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"
        type="7949847dfb016e45bb844ac5-text/javascript"></script>
    <script src="cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"
        type="7949847dfb016e45bb844ac5-text/javascript"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/assets/pages/form-validation/validate.js"></script>

    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/i18next/js/i18next.min.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/i18next-xhr-backend/js/i18nextXHRBackend.min.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/i18next-browser-languagedetector/js/i18nextBrowserLanguageDetector.min.js"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript"
        src="files/bower_components/jquery-i18next/js/jquery-i18next.min.js"></script>

    <!--<script type="7949847dfb016e45bb844ac5-text/javascript" src="files/assets/pages/form-validation/form-validation.js"></script>-->
    <script src="files/assets/js/pcoded.min.js" type="7949847dfb016e45bb844ac5-text/javascript"></script>
    <script src="files/assets/js/vartical-layout.min.js" type="7949847dfb016e45bb844ac5-text/javascript"></script>
    <script src="files/assets/js/jquery.mCustomScrollbar.concat.min.js"
        type="7949847dfb016e45bb844ac5-text/javascript"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript" src="files/assets/js/script.js"></script>

    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13"
        type="7949847dfb016e45bb844ac5-text/javascript"></script>
    <script type="7949847dfb016e45bb844ac5-text/javascript">
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-23581568-13');
</script>
    <script src="ajax.cloudflare.com/cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.js"
        data-cf-settings="7949847dfb016e45bb844ac5-|49" defer=""></script>
    <script src="<?=ADMIN_DIR?>ckeditor/ckeditor.js"></script>
    <script src="<?=DOC_ROOT?>js/ajaxupload.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script>
        jQuery(function () {
            new AjaxUpload('#pressreleasesimage', {
                action: "<?=DOC_ROOT?>imageupload/uploadpressreleases.php", // I disabled uploads in this example for security reaaons
                name: 'myfile',
                onChange: function () {
                    jQuery('#mainimagediv').html('<img src="<?=DOC_ROOT?>pressreleasesimages/loader.gif" style="width: 40%;" />');
                },
                onComplete: function (file, response) {
                    var imagename = response;
                    jQuery('#mainimagediv').html('<img src="<?=DOC_ROOT?>pressreleasesimages/' + imagename + '" style="width: 40%;" />').show('slow');
                    jQuery('#pressreleasesimagepath').val(imagename);
                    jQuery('#pressreleasesimage1').val(imagename);
                }
            });
        })


        jQuery(function () {
            new AjaxUpload('#newscoveragebyimage', {
                action: "<?=DOC_ROOT?>imageupload/uploadpressreleases.php", // I disabled uploads in this example for security reaaons 
                name: 'myfile',
                onChange: function () {
                    jQuery('#mainimagedivs').html('<img src="<?=DOC_ROOT?>pressreleasesimages/loader.gif" style="width: 40%;" />');
                },
                onComplete: function (file, response) {
                    var imagename = response;
                    jQuery('#mainimagedivs').html('<img src="<?=DOC_ROOT?>pressreleasesimages/' + imagename + '" style="width: 40%;" />').show('slow');
                    jQuery('#newscoveragebyimagepath').val(imagename);
                    jQuery('#newscoveragebyimage1').val(imagename);
                }
            });
        })    
    </script>

    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

    <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

    <script type="text/javascript">
        //$(document).ready(function () {
        $('body').on('focus', '.getdate', function () { // code

            $(this).datepicker({
                defaultDate: "",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                createButton: false,
                displayClose: true,
                closeOnSelect: true,
                selectMultiple: false,
                dateFormat: 'dd-mm-yy',
                yearRange: '1930:2025'
            });
        });
        //});
    </script>
</body>

</html>