%PDF-1.4
Directory : /var/www/vhosts/lautnusantara.com/httpdocs/mis/app/Views/theme/BeyondAdmin/halaman/setting/menu/ |
<div class="row"> <div class="col-lg-12 col-sm-12 col-xs-12"> <div class="widget"> <div class="widget-header bordered-bottom bordered-palegreen bg-blue"> <span class="widget-caption"><?= $page1 ?></span> </div> <div class="widget-body"> <?php if(!empty(session()->getFlashdata('error'))) : ?> <div class="alert alert-danger fade in"> <button class="close" data-dismiss="alert"> × </button> <i class="fa-fw fa fa-times"></i> <strong>Error!</strong> <?= session()->getFlashdata('error'); ?> </div> <?php endif; ?> <div id="horizontal-form"> <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" action="<?= $url_form ?>"> <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">Title</label> <div class="col-sm-10"> <input type="text" class="form-control" id="inputname" placeholder="Menu Title" name="dt_title" value="<?= $dt_title?>" > </div> </div> <div class="form-group"> <label class="col-sm-2 control-label no-padding-right">Icon</label> <div class="col-sm-5"> <input type="text" class="form-control" id="inputname" placeholder="Icon" name="icon" value="<?= $icon?>" > </div> <label class="col-sm-2 control-label no-padding-right">sortir</label> <div class="col-sm-3"> <input type="number" class="form-control" id="inputname" placeholder="0" name="sortir" value="<?= $sortir?>" > </div> </div> <div class="form-group"> <label class="col-sm-2 control-label no-padding-right">Link / Url</label> <div class="col-sm-10"> <input type="text" class="form-control" id="inputname" placeholder="Url / link" name="link" value="<?= $link?>" > </div> </div> <div class="form-group"> <label class="col-sm-2 control-label no-padding-right">Menu Type</label> <div class="col-sm-3"> <select id="typemenu_id" name="typemenu_id" class="select2 style1" style="width: 100%"> <option value="0">Select Type menu</option> <?php foreach($data_menu_type as $dt) { $select=''; if($dt['id']==$typemenu_id ) { $select='selected';} else {$select='';} echo '<option value="'.$dt['id'].'" '.$select.'>'.$dt['name'].'</option>'; } ?> </select> </div> <label class="col-sm-1 control-label no-padding-right">Menu group</label> <div class="col-sm-2"> <select id="groupmenu_id" name="groupmenu_id" class="select2 style1" style="width: 100%"> <option value="0">Select Menu Group </option> <?php foreach($data_menu_group as $dt) { $select=''; if($dt['id']==$groupmenu_id ) { $select='selected';} else {$select='';} echo '<option value="'.$dt['id'].'" '.$select.'>'.$dt['name'].'</option>'; } ?> </select> </div> <label class="col-sm-1 control-label no-padding-right">Parent</label> <div class="col-sm-3"> <select id="parent_id" name="parent_id" class="select2 style1" style="width: 100%"> <option value="0">Select Parent Id </option> <?php foreach($data_parent_menu as $dt) { $select=''; if($dt['id']==$parent_id ) { $select='selected';} else {$select='';} echo '<option value="'.$dt['id'].'" '.$select.'>'.$dt['title'].'</option>'; } ?> </select> </div> </div> <!-- <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">Discription</label> <div class="col-sm-10"> <textarea class="form-control" rows="3" placeholder="Description" name="description" ><?= '';//$description?></textarea> </div> </div> --> <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">Active</label> <div class="col-sm-4"> <label style="margin-top: 5px;"> <input class="checkbox-slider slider-icon colored-blue" type="checkbox" name="active" value="1" <?php if($active==1){ echo 'checked';}?>> <span class="text"></span> </label> </div> <label for="inputEmail3" class="col-sm-2 control-label no-padding-right">Have Child</label> <div class="col-sm-4"> <label style="margin-top: 5px;"> <input class="checkbox-slider slider-icon colored-blue" type="checkbox" name="have_child" value="1" <?php if($have_child==1){ echo 'checked';}?>> <span class="text"></span> </label> </div> </div> <div class="horizontal-space"></div> <div> <input type="hidden" name="id" value="<?=$id?>"> <button type="submit" class="btn btn-blue" >Save</button> <button type="button" class="btn btn-red" onclick="onBack()">Cancel</button> </div> </form> </div> </div> </div> </div> </div> <script type="text/javascript"> function onBack(){ var url = '<?= base_url('menu')?>'; window.open(url, "_self"); } </script>