| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php include 'admin_header.php'; ?>
- <div class="content-wrapper">
- <section class="content-header">
- <h1>
- <?=lang::_('Customers Reviews')?>
- <small><?=lang::_('Customers Reviews')?></small>
- <button type="button" class="btn btn-success pull-right" onclick="window.location='/admin/reviews/show/'"><i class="fa fa-plus"></i> <?=lang::_('Add new Customers Review')?></button>
- </h1>
- <ol class="breadcrumb">
- <li><a href="/admin"><i class="fa fa-gears"></i> <?=lang::_('Admin')?></a></li>
- <li class="active"><?=lang::_('Customers Reviews 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 Customers Reviews')?></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_title?></td>
- <td><?=$page->box_date?></td>
- <td>
- <button type="button" onclick="window.location='/admin/reviews/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/reviews/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/reviews/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::_('Customers Review 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>
- </ul>
- </div>
- <div class="tab-content">
- <div class="tab-pane active" id="hun">
- <div class="form-group">
- <label for="box_title"><?=lang::_('Review text')?>: </label>
- <textarea name="box_title" class="form-control" id="box_title"><?=$active->box_title?></textarea>
- </div>
- <div class="form-group">
- <label for="box_subtitle"><?=lang::_('Customer name')?>: </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::_('Date')?>: </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_button_text"><?=lang::_('Rate (1-5)')?>: </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_url"><?=lang::_('Google review URL')?>: </label>
- <input type="text" name="box_url" value="<?=$active->box_url?>" class="form-control" id="box_url" data-validate="true" />
- </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'; ?>
|