<!DOCTYPE html>
<html lang="en">


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

<head>
    <title>Add New Page</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>
    <?php
   
    echo "<script>var userType = '". $G_usertype ."';</script>";
    ?>
                
    <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>Page Setting</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="#!">Page Setting</a>
                                                        </li>
                                                        <li class="breadcrumb-item"><a href="#!">Add New Page</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-page.php">
                                                            <input name="form" type="hidden" style="display:none;" />
                                                            <input type="hidden" class="form-control" name="pageid"
                                                                id="pageid" value="<?=$pageid?>">
                                                                           
                                                                <div class="form-group row" id="pageTitleField">
                                                                    <label class="col-sm-2 col-form-label">Page Title</label>
                                                                    <div class="col-sm-10">
                                                                        <input 
                                                                            type="text" 
                                                                            class="form-control pagetitle" 
                                                                            name="pagetitle" 
                                                                            placeholder="Page Title" 
                                                                            value="<?=$pagetitle?>">
                                                                        <?php if ($Validation->has_error('pagetitle') != "") { ?>
                                                                            <span class="text text-danger"><?=$Validation->has_error('pagetitle')?></span>
                                                                        <?php } ?>
                                                                    </div>
                                                                </div>
                                                                
                                                                      



                                                                                                                        
                                                       
                                                          
                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Meta Title</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control" name="metatitle" id="metatitle"  placeholder="Enter Meta Title" value="<?=$metatitle?>">
                                                                    <?php
                                                                    if ($Validation->has_error('metatitle') != "") {
                                                                    ?>     
                                                                        <span
                                                                            class="text text-danger"><?= $Validation->has_error('metatitle') ?></span>
                                                                    <?php
                                                                    }
                                                                    ?>  
                                                                </div>
                                                            </div> 
                                                          
                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Meta Description</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control" name="meta-description" id="meta-description"  placeholder="Enter Meta Description" value="<?=$metadescription?>">
                                                                    <?php
                                                                    if ($Validation->has_error('meta-description') != "") {
                                                                    ?>     
                                                                        <span
                                                                            class="text text-danger"><?= $Validation->has_error('meta-description') ?></span>
                                                                    <?php
                                                                    }
                                                                    ?>
                                                                </div>
                                                            </div> 

                                                            <div class="form-group row">
                                                                <label class="col-sm-2 col-form-label">Meta keywords</label>
                                                                <div class="col-sm-10">
                                                                    <input type="text" class="form-control" name="meta-keywords" id="meta-keywords"  placeholder="Enter Meta keywords" value="<?=$metakeywords?>">
                                                                    <?php
                                                                    if ($Validation->has_error('meta-keywords') != "") {
                                                                    ?>
                                                                        <span
                                                                            class="text text-danger"><?= $Validation->has_error('meta-keywords') ?></span>
                                                                    <?php
                                                                    }
                                                                    ?>  
                                                                </div>   
                                                            </div>


                                                            <div class="form-group row" id="pageDescField">
                                                                <label class="col-sm-2 col-form-label">Page Desc</label>
                                                                <div class="col-sm-10">
                                                                    <textarea name="pagedesc" id="pagedesc" class="form-control pagedesc ckeditor"><?=$pagedesc?></textarea>
                                                                    <?php if ($Validation->has_error('pagedesc') != "") { ?>
                                                                        <span class="text text-danger"><?=$Validation->has_error('pagedesc')?></span>
                                                                    <?php } ?>
                                                                </div>
                                                            </div>
                                                            
                                                            <div class="form-group row" id="isParentPageField">
                                                                <label class="col-sm-2 col-form-label">Is Parent Page</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="parentpage" id="parentpageyes" value="1" 
                                                                            <?php echo ($isparentpage==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="parentpage" id="parentpageno" value="0" 
                                                                            <?php echo ($isparentpage==0) ? 'checked' : '' ; ?>> No
                                                                        </label>
                                                                    </div>
                                                                    <span class="text text-danger"></span>
                                                                </div>
                                                            </div>
                                                            
                                                            <div class="form-group row" id="parentPageSelectField">
                                                                <label class="col-sm-2 col-form-label">Select Parent Page</label>
                                                                <div class="col-sm-10">
                                                                    <select name="parentpageid" class="form-control">
                                                                        <?=$parentpagelist?>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                            
                                                            <div class="form-group row" id="publishField">
                                                                <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="btnaddpage">Submit</button>
                                                                </div>
                                                            </div>
                                                        </form>
                                                    </div>
                                                </div>



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

                                </div>
                            </div>

                            <!--<div id="styleSelector">
</div>-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        // JavaScript logic to hide fields for "manager" user type
        if (userType === "manager") {
            // Hide specific fields
            document.getElementById('pageDescField').style.display = 'none';
            document.getElementById('isParentPageField').style.display = 'none';
            document.getElementById('parentPageSelectField').style.display = 'none';
            document.getElementById('publishField').style.display = 'none';
            document.getElementById('pageTitleField').style.display = 'none';
        }
    </script>
    

    <!--[if lt IE 10]>
<div class="ie-warning">
    <h1>Warning!!</h1>
    <p>You are using an outdated version of Internet Explorer, please upgrade <br/>to any of the following web browsers to access this website.</p>
    <div class="iew-container">
        <ul class="iew-download">
            <li>
                <a href="http://www.google.com/chrome/">
                    <img src="files/assets/images/browser/chrome.png" alt="Chrome">
                    <div>Chrome</div>
                </a>
            </li>
            <li>
                <a href="https://www.mozilla.org/en-US/firefox/new/">
                    <img src="files/assets/images/browser/firefox.png" alt="Firefox">
                    <div>Firefox</div>
                </a>
            </li>
            <li>
                <a href="http://www.opera.com">
                    <img src="files/assets/images/browser/opera.png" alt="Opera">
                    <div>Opera</div>
                </a>
            </li>
            <li>
                <a href="https://www.apple.com/safari/">
                    <img src="files/assets/images/browser/safari.png" alt="Safari">
                    <div>Safari</div>
                </a>
            </li>
            <li>
                <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie">
                    <img src="files/assets/images/browser/ie.png" alt="">
                    <div>IE (9 & above)</div>
                </a>
            </li>
        </ul>
    </div>
    <p>Sorry for the inconvenience!</p>
</div>
<![endif]-->


    <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>
</body>

<!-- Mirrored from colorlib.com//polygon/adminty/default/form-validation.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 09 Apr 2020 09:54:10 GMT -->

</html>