PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/administrator/components/com_easysocial/themes/default/groups/dialog.switchCategory.browse.php

https://gitlab.com/vnsoftdev/swc
PHP | 73 lines | 59 code | 4 blank | 10 comment | 0 complexity | 51a43923f024f2c7b3e03ccce2d42901 MD5 | raw file
 1<?php
 2/**
 3* @package      EasySocial
 4* @copyright    Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
 5* @license      GNU/GPL, see LICENSE.php
 6* EasySocial is free software. This version may have been modified pursuant
 7* to the GNU General Public License, and as distributed it includes or
 8* is derivative of works licensed under the GNU General Public License or
 9* other free or open source software licenses.
10* See COPYRIGHT.php for copyright notices and details.
11*/
12defined( '_JEXEC' ) or die( 'Unauthorized Access' );
13?>
14<dialog>
15    <width>450</width>
16    <height>200</height>
17    <selectors type="json">
18    {
19        "{submitButton}": "[data-submit-button]",
20        "{cancelButton}": "[data-cancel-button]",
21        "{form}": "[data-switch-category-form]"
22    }
23    </selectors>
24    <bindings type="javascript">
25    {
26        "{cancelButton} click": function() {
27            this.parent.close();
28        },
29
30        "{submitButton} click": function() {
31            this.form().submit();
32        }
33    }
34    </bindings>
35    <title><?php echo JText::_('COM_EASYSOCIAL_GROUPS_SWITCH_CATEGORY_DIALOG_TITLE'); ?></title>
36    <content>
37        <div class="clearfix">
38            <form name="switchCategory" method="post" action="index.php" data-switch-category-form>
39            <p>
40                <?php echo JText::_( 'COM_EASYSOCIAL_GROUPS_SWITCH_CATEGORY_DIALOG_DESC' );?>
41            </p>
42
43            <div class="form-group">
44                <label for="total" class="col-md-3 fd-small"><?php echo JText::_( 'COM_EASYSOCIAL_GROUPS_SELECT_CATEGORY' );?></label>
45                <div class="col-md-9">
46                    <select class="form-control input-sm" autocomplete="off" name="category" id="category">
47                        <?php foreach ($categories as $category) { ?>
48                        <option value="<?php echo $category->id; ?>"><?php echo $category->get('title'); ?></option>
49                        <?php } ?>
50                    </select>
51                </div>
52            </div>
53
54            <div>
55                <span class="label label-danger"><?php echo JText::_( 'COM_EASYSOCIAL_FOOTPRINT_IMPORTANT' );?></span>
56                <br /><?php echo JText::_( 'COM_EASYSOCIAL_GROUPS_SWITCH_CATEGORY_DIALOG_FOOTNOTE' );?>
57            </div>
58            <input type="hidden" name="option" value="com_easysocial" />
59            <input type="hidden" name="controller" value="events" />
60            <input type="hidden" name="task" value="switchCategory" />
61            <?php echo JHTML::_('form.token'); ?>
62
63            <?php foreach( $ids as $id ){ ?>
64            <input type="hidden" name="cid[]" value="<?php echo $id; ?>" />
65            <?php } ?>
66            </form>
67        </div>
68    </content>
69    <buttons>
70        <button data-cancel-button type="button" class="btn btn-es btn-sm"><?php echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON'); ?></button>
71        <button data-submit-button type="button" class="btn btn-es-primary btn-sm"><?php echo JText::_('COM_EASYSOCIAL_SWITCH_CATEGORY_BUTTON'); ?></button>
72    </buttons>
73</dialog>