| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- /**
- * The setCategory view of reviewcl module of ZenTaoPMS.
- *
- * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
- * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
- * @author Deqing Chai <chaideqing@cnezsoft.com>
- * @package design
- * @version $Id: setCategory.html.php 4903 2023-10-26 05:32:59Z $
- * @link http://www.zentao.net
- */
- ?>
- <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
- <?php
- $itemRow = <<<EOT
- <tr class='text-left'>
- <td>
- <input type='text' class="form-control" autocomplete="off" value="" name="keys[]">
- </td>
- <td>
- <input type='text' class="form-control" value="" autocomplete="off" name="values[]">
- </td>
- <td class='c-actions'>
- <a href="javascript:void(0)" class='btn btn-link' onclick="addItem(this)"><i class='icon-plus'></i></a>
- <a href="javascript:void(0)" class='btn btn-link' onclick="delItem(this)"><i class='icon-close'></i></a>
- </td>
- </tr>
- EOT;
- ?>
- <?php js::set('itemRow', $itemRow)?>
- <div id='mainContent' class='main-row'>
- <div class='main-col main-content'>
- <div class='main-header'>
- <div class='heading'>
- <strong><?php echo $lang->reviewcl->clcategory;?></strong>
- </div>
- </div>
- <form class="load-indicator main-form form-ajax" method='post'>
- <table class='table table-form active-disabled table-condensed mw-600px'>
- <thead>
- <tr class='text-center'>
- <th class='w-70px'><?php echo $lang->custom->key;?></th>
- <th class='w-250px'><?php echo $lang->custom->value;?></th>
- <th class='w-100px'></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach(array_filter($lang->reviewcl->{$section}) as $key => $value):?>
- <tr class='text-center'>
- <td class='w-70px'>
- <?php echo $key;?>
- <?php echo html::hidden('keys[]', $key) ?>
- </td>
- <td class='w-200px'><?php echo html::input('values[]', $value, "class='form-control'");?></td>
- <td class='c-actions text-left'>
- <a href="javascript:void(0)" onclick="addItem(this)" class='btn btn-link'><i class='icon-plus'></i></a>
- <a href="javascript:void(0)" class='btn btn-link' onclick="delItem(this)"><i class='icon-close'></i></a>
- </td>
- </tr>
- <?php endforeach;?>
- <tr>
- <td colspan='3' class='text-center form-actions'>
- <?php
- $appliedTo = array($currentLang => $lang->custom->currentLang, 'all' => $lang->custom->allLang);
- echo html::radio('lang', $appliedTo, $lang2Set);
- echo html::submitButton();
- if(common::hasPriv('custom', 'restore')) echo html::linkButton($lang->custom->restore, $this->createLink('custom', 'restore', "module=reviewcl&field={$section}"), 'hiddenwin', '', 'btn btn-wide');
- ?>
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- </div>
- <script>
- function addItem(clickedButton)
- {
- $(clickedButton).parent().parent().after(itemRow);
- }
- function delItem(clickedButton)
- {
- $(clickedButton).parent().parent().remove();
- }
- </script>
- <style>
- .main-header {height: 50px; display: flex; align-items: center;}
- </style>
- <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>
|