ok
Direktori : /proc/thread-self/root/home2/selectio/www/application/views/admin/category/ |
Current File : //proc/thread-self/root/home2/selectio/www/application/views/admin/category/add_category.php |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> <div class="row"> <div class="col-lg-8 col-md-12"> <div class="box box-primary"> <div class="box-header with-border"> <div class="left"> <h3 class="box-title"><?php echo trans('add_category'); ?></h3> </div> <div class="right"> <a href="<?php echo admin_url(); ?>categories" class="btn btn-success btn-add-new"> <i class="fa fa-list-ul"></i> <?php echo trans('categories'); ?> </a> </div> </div><!-- /.box-header --> <!-- form start --> <?php echo form_open_multipart('category_controller/add_category_post'); ?> <input type="hidden" name="parent_id" value="0"> <div class="box-body"> <!-- include message block --> <?php $this->load->view('admin/includes/_messages_form'); ?> <?php foreach ($this->languages as $language): ?> <div class="form-group"> <label><?php echo trans("category_name"); ?> (<?php echo $language->name; ?>)</label> <input type="text" class="form-control" name="name_lang_<?php echo $language->id; ?>" placeholder="<?php echo trans("category_name"); ?>" maxlength="255" required> </div> <?php endforeach; ?> <div class="form-group"> <label class="control-label"><?php echo trans("slug"); ?> <small>(<?php echo trans("slug_exp"); ?>)</small> </label> <input type="text" class="form-control" name="slug_lang" placeholder="<?php echo trans("slug"); ?>"> </div> <div class="form-group"> <label class="control-label"><?php echo trans('title'); ?> (<?php echo trans('meta_tag'); ?>)</label> <input type="text" class="form-control" name="title_meta_tag" placeholder="<?php echo trans('title'); ?> (<?php echo trans('meta_tag'); ?>)" value="<?php echo old('title_meta_tag'); ?>"> </div> <div class="form-group"> <label class="control-label"><?php echo trans('description'); ?> (<?php echo trans('meta_tag'); ?>)</label> <input type="text" class="form-control" name="description" placeholder="<?php echo trans('description'); ?> (<?php echo trans('meta_tag'); ?>)" value="<?php echo old('description'); ?>"> </div> <div class="form-group"> <label class="control-label"><?php echo trans('keywords'); ?> (<?php echo trans('meta_tag'); ?>)</label> <input type="text" class="form-control" name="keywords" placeholder="<?php echo trans('keywords'); ?> (<?php echo trans('meta_tag'); ?>)" value="<?php echo old('keywords'); ?>"> </div> <div class="form-group"> <label><?php echo trans('order'); ?></label> <input type="number" class="form-control" name="category_order" placeholder="<?php echo trans('order'); ?>" value="<?php echo old('category_order'); ?>" min="1" max="99999" required> </div> <div class="form-group"> <label><?php echo trans('parent_category'); ?></label> <select class="form-control" name="parent_id[]" onchange="get_subcategories(this.value, 0);" required> <option value="0"><?php echo trans('none'); ?></option> <?php foreach ($parent_categories as $parent_category): ?> <option value="<?php echo $parent_category->id; ?>"><?php echo category_name($parent_category); ?></option> <?php endforeach; ?> </select> <div id="category_select_container"></div> </div> <div class="form-group"> <div class="row"> <div class="col-sm-4 col-xs-12"> <label><?php echo trans('visibility'); ?></label> </div> <div class="col-sm-4 col-xs-12 col-option"> <input type="radio" name="visibility" value="1" id="visibility_1" class="square-purple" checked> <label for="visibility_1" class="option-label"><?php echo trans('show'); ?></label> </div> <div class="col-sm-4 col-xs-12 col-option"> <input type="radio" name="visibility" value="0" id="visibility_2" class="square-purple"> <label for="visibility_2" class="option-label"><?php echo trans('hide'); ?></label> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-sm-4 col-xs-12"> <label><?php echo trans('show_on_main_menu'); ?></label> </div> <div class="col-sm-4 col-xs-12 col-option"> <input type="radio" name="show_on_main_menu" value="1" id="show_on_main_menu_1" class="square-purple" checked> <label for="show_on_main_menu_1" class="option-label"><?php echo trans('yes'); ?></label> </div> <div class="col-sm-4 col-xs-12 col-option"> <input type="radio" name="show_on_main_menu" value="0" id="show_on_main_menu_2" class="square-purple"> <label for="show_on_main_menu_2" class="option-label"><?php echo trans('no'); ?></label> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-sm-4 col-xs-12"> <label><?php echo trans('show_image_on_main_menu'); ?></label> </div> <div class="col-sm-4 col-xs-12 col-option"> <input type="radio" name="show_image_on_main_menu" value="1" id="show_image_on_main_menu_1" class="square-purple"> <label for="show_image_on_main_menu_1" class="option-label"><?php echo trans('yes'); ?></label> </div> <div class="col-sm-4 col-xs-12 col-option"> <input type="radio" name="show_image_on_main_menu" value="0" id="show_image_on_main_menu_2" class="square-purple" checked> <label for="show_image_on_main_menu_2" class="option-label"><?php echo trans('no'); ?></label> </div> </div> </div> <div class="form-group"> <label class="control-label"><?php echo trans('image'); ?></label> <div class="display-block"> <a class='btn btn-success btn-sm btn-file-upload'> <?php echo trans('select_image'); ?> <input type="file" id="Multifileupload" name="file" size="40" accept=".png, .jpg, .jpeg, .gif"> </a> </div> <div id="MultidvPreview" class="image-preview"></div> </div> </div> <!-- /.box-body --> <div class="box-footer"> <button type="submit" class="btn btn-primary pull-right"><?php echo trans('add_category'); ?></button> </div> <!-- /.box-footer --> <?php echo form_close(); ?><!-- form end --> </div> <!-- /.box --> </div> </div> <?php $this->load->view('admin/category/_select_category', ['input_name' => 'parent_id[]']); ?>