| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <?php include 'admin_header.php'; ?>
- <div class="content-wrapper">
- <section class="content-header">
- <h1>
- <?=lang::_('Groups')?>
- <small><?=lang::_('Groups')?></small>
- <button type="button" class="btn btn-success pull-right" onclick="window.location='/admin/services/show/'"><i class="fa fa-plus"></i> <?=lang::_('Add new Group')?></button>
- </h1>
- <ol class="breadcrumb">
- <li><a href="/admin"><i class="fa fa-gears"></i> <?=lang::_('Admin')?></a></li>
- <li class="active"><?=lang::_('Groups manager')?></li>
- </ol>
- </section>
-
- <section class="content">
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title"><?=lang::_('List of Groups')?></h3>
- </div>
- <div class="box-body">
- <div class="row"><div class="col-lg-12" style="overflow-x: auto;">
- <table class="table table-bordered table-hover dataTable table-striped data-list">
- <thead>
- <tr>
- <th><?=lang::_('Name')?></th>
- <th><?=lang::_('Date of create')?></th>
- <th> </th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($boxes as $page) : ?>
- <tr>
- <td><?=$page->box_subtitle?></td>
- <td><?=$page->box_date?></td>
- <td>
- <button type="button" onclick="window.location='/admin/services/show/?id=<?=$page->box_id?>';" class="btn btn-flat btn-xs btn-warning"><i class="fa fa-pencil"></i></button>
- <button type="button" onclick="window.location='/admin/services/delete/?id=<?=$page->box_id?>';" class="btn btn-flat btn-xs btn-danger"><i class="fa fa-trash-o"></i></button>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- <tfoot>
- <tr>
- <th><?=lang::_('Name')?></th>
- <th><?=lang::_('Date of create')?></th>
- <th> </th>
- </tr>
- </tfoot>
- </table>
- </div></div>
- </div>
- </div>
-
- <div class="callout callout-success<?php if (!$error) echo ' message-hide';?>">
- <button type="button" class="close" onclick="javascript: $(this).parent('div').fadeOut('fast');">×</button>
- <h4><i class="fa fa-check"></i> <?=lang::_('Yep, successfully saved!')?></h4>
- <p><?=lang::_('The given informations stored in database')?></p>
- </div>
-
- <div id="editor"></div>
- <form role="form" id="slideEditor" action="/admin/services/save/" method="post" enctype="multipart/form-data">
- <input type="hidden" name="MAX_FILE_SIZE" value="9000000000" />
- <input type="hidden" name="box_id" value="<?=$active->box_id?>" />
- <div class="box box-info">
- <div class="box-header with-border">
- <h3 class="box-title"><?=lang::_('Group editor')?></h3>
- <div class="box-tools pull-right">
- <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
- </div>
- </div>
- <div class="box-body">
- <div class="row">
- <div class="col-lg-12">
- <div class="nav-tabs-custom">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#eng" data-toggle="tab" onclick="javascript: $('.tab-pane').removeClass('active'); var hash = $(this).attr('href'); $(hash).addClass('active');">English</a></li>
- <!--<li><a href="#eng" data-toggle="tab" onclick="javascript: $('.tab-pane').removeClass('active'); var hash = $(this).attr('href'); $(hash).addClass('active');">English</a></li>-->
- <!-- <li><a href="#deu" data-toggle="tab">Deutsch</a></li>-->
- </ul>
- </div>
- <div class="tab-content">
- <div class="tab-pane active" id="hun">
- <div class="form-group">
- <label for="box_subtitle"><?=lang::_('Parent service')?>: </label>
- <select name="parent_service" id="parent_service" class="form-control">
- <option value="0"><?=lang::_('No parent service')?></option>
- <?php foreach ($services as $service) : ?>
- <option value="<?=$service['id']?>" <?php if ($active->parent_service == $service['id']) echo 'selected';?>><?=$service['label']?></option>
- <?php endforeach; ?>
- </select>
- </div>
- <div class="form-group">
- <label for="box_subtitle"><?=lang::_('Title')?>: </label>
- <input type="text" name="box_subtitle" value="<?=$active->box_subtitle?>" class="form-control" id="box_subtitle" data-validate="true" />
- </div>
- <div class="form-group">
- <label for="box_subtitle_en"><?=lang::_('Title (EN)')?>: </label>
- <input type="text" name="box_subtitle_en" value="<?=$active->box_subtitle_en?>" class="form-control" id="box_subtitle_en" data-validate="true" />
- </div>
- <div class="form-group">
- <label for="box_title"><?=lang::_('Description')?>: </label>
- <textarea name="box_title" class="form-control" id="box_title"><?=$active->box_title?></textarea>
- </div>
- <div class="form-group">
- <label for="box_button_text_en"><?=lang::_('Description (EN)')?>: </label>
- <textarea name="box_button_text_en" class="form-control" id="box_button_text_en"><?=$active->box_button_text_en?></textarea>
- </div>
- <div class="form-group">
- <label for="box_button_text"><?=lang::_('Price (HUF)')?>: </label>
- <input type="text" name="box_button_text" value="<?=$active->box_button_text?>" class="form-control" id="box_button_text" data-validate="true" />
- </div>
- <!--<div class="form-group">
- <label for="box_button_text_en"><?=lang::_('Discount price (HUF)')?>: </label>
- <input type="text" name="box_button_text_en" value="<?=$active->box_button_text_en?>" class="form-control" id="box_button_text_en" data-validate="true" />
- </div>-->
- <div class="form-group">
- <label for="box_banner"><?=lang::_('Image')?>: </label>
- <input type="file" name="box_banner" class="form-control" id="box_banner" />
- </div>
- <!--<div class="form-group">
- <label for="box_image"><?=lang::_('Preview')?>: </label><br>
- <section style="display: block;width: 100%;height: 650px;background-image: url(/<?=$active->box_banner?>);background-position: center;background-size: cover;background-repeat: no-repeat;">
- </section>
- </div>-->
- </div>
- </div>
-
- </div>
- </div>
- <div class="row">
- <div class="col-lg-12">
- <button type="submit" class="btn btn-success"><?=lang::_('Save');?></button>
- </div>
- </div>
- </div>
- </div>
- </form>
- </section>
- </div>
- <?php include 'admin_footer.php'; ?>
|