home
/
zktecojo
/
public_html
/
app
/
storage
/
views
/
test
➕ New
📤 Upload
✎ Editing:
cfb07f80d0365bee5622c529f5c115af
← Back
<?php echo $__env->make('admin.common.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php echo $__env->make('admin.common.leftmenu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <aside class="right-side"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Dashboard <small>Control panel</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li>Pages</li> <li class="active">Add New</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="box box-warning"> <div class="box-header"> <h3 class="box-title">Add Pages</h3> <h4 class="pull-right col-sm-3 center"><a href="<?php echo URL::to('/')?>/admin/pages">View Page list</a></h4> </div> <!-- /.box-header --> <div class="box-body admin"> <?php echo (!empty($messages))? $messages:''; ?> <?php echo Form::open(array('url' => 'admin/pages/create','files' => true)); ?> <input type="hidden" name="page_type" value="1" /> <div class="row"> <div class="col-sm-12"> <span class="optchck"><input type="checkbox" name="is_footer_link" value="2" /> Show this menu in Footer Link</span> <span class="optchck"><input type="checkbox" id="is_video_gallery" name="is_video_gallery" value="1" /> Show video Gallery</span> <span class="optchck"><input type="checkbox" id="is_image_gallery" name="is_image_gallery" value="1" /> Show image Gallery</span> <span class="optchck"><input type="checkbox" id="show_submenu_in_page" name="show_submenu_in_page" value="1" /> Show Subdivisions in page</span> </div> </div> <div class="row"> <div class="col-sm-12"> <label> Select Menu( If any ) Main/Submenu</label> <select name="page_parent_id" class="form-control"> <option value="0">--------</option> <?php if(!empty($menuTree)){ echo get_menu_helper($menuTree,'option',0,null) ; } ?> </select> </div> </div> <div class="row"> <div class="col-sm-6"> <label id="uploadImage">Upload Menu Image</label> <input type="file" name="page_image" class="form-control" placeholder="" /> </div> </div> <div class="row"> <div class="col-sm-12"> <label> Select Page Layout</label> <select name="page_layout" class="form-control" id="layout"> <option value="1"> Blank Page Layout </option> <option value="2">2 Column Page Layout</option> <!--<option value="3">Image Gallery Layout</option> <option value="4">Video Gallery Layout</option>--> </select> </div> </div> <div class="row" id="twoColOptionsDiv" style="display:none"> <div class="col-sm-6"> <label>Select Left Section</label> <select name="left_section" class="form-control" id="left_section"> <option value="1">Show Sub Menu</option> <option value="2">Show Image</option> <!--<option value="3">Show Listing</option>--> </select> </div> </div> <div class="row" style="display:none" id="image_upload"> <div class="col-sm-6"> <label id="uploadImage">Upload Left Side Image</label> <input type="file" name="page_banner" class="form-control" placeholder="" /> </div> <div class="col-sm-6"> <label>Left Section Title</label> <input type="text" name="left_section_title" class="form-control"/> </div> </div> <hr/> <div class="row"> <div class="col-sm-6"> <label> Menu Name</label> <input type="text" name="page_name" value="<?php echo Input::old('page_name'); ?>" class="form-control" placeholder="Enter the English page name here" /> </div> <div class="col-sm-6"> <label> Menu Arabic name</label> <input type="text" dir="rtl" name="page_name_arabic" value="<?php echo Input::old('page_name_arabic'); ?>" class="form-control" placeholder="Enter the Arabic page name here" /> </div> </div> <div class="row"> <div class="col-sm-6"> <label> Menu SubTitle (If any)</label> <input type="text" name="page_subtitle" value="<?php echo Input::old('page_subtitle'); ?>" class="form-control" placeholder="Enter the English page sub title here" /> </div> <div class="col-sm-6"> <label> Menu Arabic SubTitle (If any)</label> <input type="text" dir="rtl" name="page_subtitle_arabic" value="<?php echo Input::old('page_subtitle_arabic'); ?>" class="form-control" placeholder="Enter the Arabic page sub title here" /> </div> </div> <div class="row"> <div class="col-sm-6"> <label> Page Short Description (If any)</label> <input type="text" name="page_short_desc" value="<?php echo Input::old('page_short_desc'); ?>" class="form-control" placeholder="Enter the English page short description here" /> </div> <div class="col-sm-6"> <label> Arabic Page Short Description (If any)</label> <input type="text" dir="rtl" name="page_short_desc_arabic" value="<?php echo Input::old('page_short_desc_arabic'); ?>" class="form-control" placeholder="Enter the Arabic page short description here" /> </div> </div> <div class="row" id="txtEditors"> <div class="col-sm-6"> <label> Page Content (If any)</label> <textarea type="text" id="editor1" name="page_large_desc" class="form-control" placeholder="Enter the English page content here"> <?php echo Input::old('page_large_desc'); ?> </textarea> </div> <div class="col-sm-6"> <label> Arabic Page Content (If any)</label> <textarea id="editor2" name="page_large_desc_arabic" dir="ltr" class="form-control" placeholder="Enter the Arabic page content here" > <?php echo Input::old('page_large_desc_arabic'); ?></textarea> </div> </div> <div class="row" id="txtEditors2" style="display:none"> <div class="col-sm-6"> <label> Page Content Full Width Section(If any)</label> <textarea type="text" id="editor3" name="page_large_desc2" class="form-control" placeholder="Enter the English page content here"> <?php echo Input::old('page_large_desc'); ?> </textarea> </div> <div class="col-sm-6"> <label> Arabic Page Content Full Width Section(If any)</label> <textarea id="editor4" name="page_large_desc2_arabic" dir="ltr" class="form-control" placeholder="Enter the Arabic page content here" > <?php echo Input::old('page_large_desc_arabic'); ?></textarea> </div> </div> <hr/> <h3>Page SEO</h3> <div class="row"> <div class="col-sm-8"> <label> SEO Page Title</label> <input type="text" name="page_seo_title" value="<?php echo Input::old('page_seo_title'); ?>" class="form-control" placeholder="Enter the page name here" /> </div> </div> <div class="row"> <div class="col-sm-8"> <label> Page Meta Title</label> <input type="text" name="page_meta_title" value="<?php echo Input::old('page_meta_title'); ?>" class="form-control" placeholder="Enter the page name here" /> </div> </div> <div class="row"> <div class="col-sm-8"> <label>Page Meta Author</label> <textarea name="page_meta_author" class="form-control notHome" placeholder="" ><?php echo Input::old('page_meta_author'); ?></textarea> </div> </div> <div class="row"> <div class="col-sm-8"> <label>Page Meta Description</label> <textarea name="page_meta_description" class="form-control notHome" placeholder="" ><?php echo Input::old('page_meta_description'); ?></textarea> </div> </div> <div class="row"> <div class="col-sm-8"> <label>Page Meta Keyword</label> <textarea name="page_meta_keyword" class="form-control notHome" placeholder="" ><?php echo Input::old('page_meta_keyword'); ?></textarea> </div> </div> <hr/> <div class="row"> <div class="col-sm-6"> <label>Status</label> <select name="page_status" class="form-control"> <option value="1">Activate</option> <option value="0">Deactivate</option> </select> </div> </div> <div class="row"> <div class="col-sm-6"> <label>Display Priority</label> <input type="text" name="page_priority" value="<?php echo Input::old('page_priority'); ?>" class="form-control numOnly" placeholder="Enter display priority here" /> </div> </div> <div class="form-group"></div> <div class="form-group"> <input type="submit" name="createbtnsubmit" value="Submit" class="btn btn-primary"> <a href="<?php echo URL::to('admin/pages'); ?>" class="btn btn-primary">Close</a> </div> <?php echo Form::close(); ?> </div> <!-- /.box-body --> </div> </section><!-- /.content --> </aside> <script src="<?php echo URL::to('assets/admin/js/plugins/tinymce/tinymce.min.js'); ?>" type="text/javascript"></script> <script type="text/javascript"> $(function() { tinymce.init({ mode : "exact", relative_urls:false, selector: '#editor1', plugins: ["link","paste","spellchecker","preview","fullscreen","code","table","filemanager","directionality"], toolbar: ["fullscreen | undo redo | ltr rtl | filemanager | bullist numlist |styleselect | bold italic | aligncenter alignright alignjustify | link"], }); tinymce.init({ mode : "exact", relative_urls:false, selector: '#editor2', plugins: ["link","paste","spellchecker","preview","fullscreen","code","table","filemanager","directionality"], toolbar: ["fullscreen | undo redo | ltr rtl | filemanager | bullist numlist |styleselect | bold italic | aligncenter alignright alignjustify | link"], }); tinymce.init({ mode : "exact", relative_urls:false, selector: '#editor3', plugins: ["link","paste","spellchecker","preview","fullscreen","code","table","filemanager","directionality"], toolbar: ["fullscreen | undo redo | ltr rtl | filemanager | bullist numlist |styleselect | bold italic | aligncenter alignright alignjustify | link"], }); tinymce.init({ mode : "exact", relative_urls:false, selector: '#editor4', plugins: ["link","paste","spellchecker","preview","fullscreen","code","table","filemanager","directionality"], toolbar: ["fullscreen | undo redo | ltr rtl | filemanager | bullist numlist |styleselect | bold italic | aligncenter alignright alignjustify | link"], }); }); $(document).ready(function(){ $('#layout').on('change',function(){ var pageID = parseInt($('#layout option:selected').val()); switch(pageID){ case 1: $('#txtEditors').show(); $('#txtEditors2').hide(); // $('#image_upload').show(); $('#twoColOptionsDiv').hide(); // $('#uploadImage').html('Upload Image'); break; case 2: $('#txtEditors').show(); $('#txtEditors2').show(); // $('#image_upload').show(); $('#twoColOptionsDiv').show(); // $('#uploadImage').html('Upload Left Side Image'); break; case 3: $('#txtEditors').show(); $('#txtEditors2').hide(); // $('#image_upload').hide(); $('#twoColOptionsDiv').hide(); // $('#uploadImage').html('Upload Image'); break; case 4: $('#txtEditors').hide(); $('#txtEditors2').hide(); // $('#image_upload').hide(); $('#twoColOptionsDiv').hide(); // $('#uploadImage').html('Upload Image'); break; case 5: $('#txtEditors').hide(); $('#txtEditors2').hide(); // $('#image_upload').hide(); $('#twoColOptionsDiv').hide(); // $('#uploadImage').html('Upload Image'); break; } }); $('#left_section').on('change',function(){ var leftID = parseInt($('#left_section option:selected').val()); switch(leftID){ case 1: $('#image_upload').hide(); $('#uploadImage').html('Upload Image'); break; case 2: $('#image_upload').show(); $('#uploadImage').html('Upload Left Side Image'); break; case 3: $('#image_upload').hide(); $('#uploadImage').html('Upload Image'); break; case 4: $('#image_upload').hide(); $('#uploadImage').html('Upload Image'); break; } }); }); </script> <?php echo $__env->make('admin.common.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel