openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit c8006e39be69e86700103ef579a33c6eb311de8c
parent 923e6a6b624d97bf52c397aabf2522c12e1675e8
Author: Jan Dankert <develop@jandankert.de>
Date:   Sun, 23 Feb 2020 23:22:50 +0100

First template compilation with new element renderer.

Diffstat:
modules/cms/ui/themes/default/html/views/configuration/show.php | 61+++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/configuration/src.php | 9+++++----
modules/cms/ui/themes/default/html/views/element/advanced.php | 650+++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/element/info.php | 85++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/element/name.php | 73+++++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/element/prop.php | 118+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/element/properties.php | 601+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/element/remove.php | 128++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/file/advanced.php | 39+++++++++++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/file/compress.php | 90+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/file/edit.php | 57+++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/file/extract.php | 31+++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/file/info.php | 443++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/file/preview.php | 18++++++++++--------
modules/cms/ui/themes/default/html/views/file/pub.php | 52++++++++++++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/file/remove.php | 35+++++++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/file/show.php | 7++++---
modules/cms/ui/themes/default/html/views/file/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/file/uncompress.php | 74++++++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/file/value.php | 51+++++++++++++++++++++++++++++++++------------------
modules/cms/ui/themes/default/html/views/folder/advanced.php | 245+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/folder/content.php | 195++++++++++++++++++++++++++++++++++++++++---------------------------------------
modules/cms/ui/themes/default/html/views/folder/create.php | 122++++++++++++++++++++++++++++++++++++++++---------------------------------------
modules/cms/ui/themes/default/html/views/folder/createfile.php | 155+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/folder/createfolder.php | 65+++++++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/folder/createimage.php | 155+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/folder/createlink.php | 73+++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/folder/createpage.php | 86++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------
modules/cms/ui/themes/default/html/views/folder/createtext.php | 152++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/folder/createurl.php | 94+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/folder/edit.php | 149++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/folder/inherit.php | 67+++++++++++++++++++++++++++++++++++++++++++++----------------------
modules/cms/ui/themes/default/html/views/folder/order.php | 130+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/folder/pub.php | 168+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/folder/remove.php | 42++++++++++++++++++++++++++++++++----------
modules/cms/ui/themes/default/html/views/folder/show.php | 140++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/folder/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/group/add.php | 42++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/group/info.php | 105+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/group/memberships.php | 87++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------
modules/cms/ui/themes/default/html/views/group/prop.php | 45+++++++++++++++++++++++++++++----------------
modules/cms/ui/themes/default/html/views/group/remove.php | 72++++++++++++++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/group/rights.php | 197++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/grouplist/add.php | 41+++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/grouplist/show.php | 74++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/image/compress.php | 90+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/image/edit.php | 56++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/image/extract.php | 31+++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/image/preview.php | 10++++++----
modules/cms/ui/themes/default/html/views/image/pub.php | 51+++++++++++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/image/remove.php | 71+++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/image/show.php | 42++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/image/size.php | 241++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/image/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/image/uncompress.php | 74++++++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/image/value.php | 51+++++++++++++++++++++++++++++++++------------------
modules/cms/ui/themes/default/html/views/language/add.php | 44++++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/language/info.php | 82++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/language/listing.php | 130+++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/language/prop.php | 82++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/language/remove.php | 83++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
modules/cms/ui/themes/default/html/views/language/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/languagelist/add.php | 44++++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/languagelist/show.php | 141++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/link/edit.php | 43+++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/link/remove.php | 35+++++++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/link/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/login/license.php | 290+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/login/login.php | 334++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/login/openid.php | 162++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------
modules/cms/ui/themes/default/html/views/login/password.php | 95+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/login/passwordcode.php | 74++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/login/register.php | 86+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/login/registercode.php | 120+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/model/info.php | 50++++++++++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/model/listing.php | 118+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/model/prop.php | 60++++++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/model/remove.php | 83++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
modules/cms/ui/themes/default/html/views/model/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/modellist/add.php | 42++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/modellist/show.php | 129++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/object/aclform.php | 231++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------
modules/cms/ui/themes/default/html/views/object/copy.php | 78++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/object/info.php | 597+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/object/inherit.php | 65+++++++++++++++++++++++++++++++++++++++++++----------------------
modules/cms/ui/themes/default/html/views/object/name.php | 51+++++++++++++++++++++++++++++++++++++++------------
modules/cms/ui/themes/default/html/views/object/prop.php | 59+++++++++++++++++++++++++++++++++++++++++++++++------------
modules/cms/ui/themes/default/html/views/object/rights.php | 195++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/object/settings.php | 130++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
modules/cms/ui/themes/default/html/views/page/changetemplate.php | 77+++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/page/changetemplateselectelements.php | 51+++++++++++++++++++++++++++++++++------------------
modules/cms/ui/themes/default/html/views/page/edit.php | 105+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/page/form.php | 205++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/page/info.php | 448+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/page/name.php | 90+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------
modules/cms/ui/themes/default/html/views/page/preview.php | 68++++++++++++++++++++++++++++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/page/pub.php | 68++++++++++++++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/page/remove.php | 35+++++++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/page/show.php | 7++++---
modules/cms/ui/themes/default/html/views/page/src.php | 52++++++++++++++++++++++++++++++++++++++++------------
modules/cms/ui/themes/default/html/views/page/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/pageelement/advanced.php | 93+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/pageelement/diff.php | 150++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/pageelement/edit.php | 65+++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/pageelement/export.php | 48++++++++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/pageelement/history.php | 280++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/pageelement/import.php | 59+++++++++++++++++++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/pageelement/info.php | 217+++++++++++++++++++++++++++++++++++++++++--------------------------------------
modules/cms/ui/themes/default/html/views/pageelement/link.php | 143+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/pageelement/preview.php | 27+++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/pageelement/prop.php | 275+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/pageelement/pub.php | 68++++++++++++++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/pageelement/structure.php | 14++++++++------
modules/cms/ui/themes/default/html/views/pageelement/value.php | 623++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/profile/confirmmail.php | 54++++++++++++++++++++++++++++++++++++++----------------
modules/cms/ui/themes/default/html/views/profile/edit.php | 344+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/profile/history.php | 85++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/profile/mail.php | 83++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
modules/cms/ui/themes/default/html/views/profile/memberships.php | 61+++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/profile/pw.php | 150++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
modules/cms/ui/themes/default/html/views/project/add.php | 112+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/project/edit.php | 84+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/project/export.php | 44++++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/project/history.php | 137++++++++++++++++++++++++++++++++++++++++++-------------------------------------
modules/cms/ui/themes/default/html/views/project/info.php | 31+++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/project/maintenance.php | 72++++++++++++++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/project/prop.php | 286+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/project/remove.php | 80+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/projectlist/add.php | 99+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/projectlist/edit.php | 74++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/projectlist/history.php | 97+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/projectlist/info.php | 6++++--
modules/cms/ui/themes/default/html/views/search/edit.php | 138++++++++++++++++++++++++++++++++++++++++---------------------------------------
modules/cms/ui/themes/default/html/views/search/result.php | 68++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/start/applications.php | 61+++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/start/projectmenu.php | 151++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
modules/cms/ui/themes/default/html/views/start/userprojecttimeline.php | 113+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/template/addel.php | 106+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/template/edit.php | 146++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/template/extension.php | 48++++++++++++++++++++++++++++++++++++------------
modules/cms/ui/themes/default/html/views/template/info.php | 70++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/template/listing.php | 64++++++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/template/preview.php | 66++++++++++++++++++++++++++++++++++++++++++++----------------------
modules/cms/ui/themes/default/html/views/template/prop.php | 116+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/template/pub.php | 68++++++++++++++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/template/remove.php | 82++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
modules/cms/ui/themes/default/html/views/template/src.php | 41+++++++++++++++++++++++++++++++----------
modules/cms/ui/themes/default/html/views/template/srcelement.php | 143+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
modules/cms/ui/themes/default/html/views/templatelist/add.php | 139+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
modules/cms/ui/themes/default/html/views/templatelist/show.php | 85++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/text/compress.php | 90+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
modules/cms/ui/themes/default/html/views/text/edit.php | 56++++++++++++++++++++++++++++++++------------------------
modules/cms/ui/themes/default/html/views/text/extract.php | 31+++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/text/preview.php | 10++++++----
modules/cms/ui/themes/default/html/views/text/pub.php | 52++++++++++++++++++++++++++++++++--------------------
modules/cms/ui/themes/default/html/views/text/remove.php | 68++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/text/show.php | 7++++---
modules/cms/ui/themes/default/html/views/text/size.php | 241++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/text/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/text/uncompress.php | 74++++++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/text/value.php | 51+++++++++++++++++++++++++++++++++------------------
modules/cms/ui/themes/default/html/views/title/ping.php | 10++++++----
modules/cms/ui/themes/default/html/views/title/show.php | 887++++++++++++++++++++++++++++++++++++++++---------------------------------------
modules/cms/ui/themes/default/html/views/tree/content.php | 6++++--
modules/cms/ui/themes/default/html/views/tree/tree.php | 6++++--
modules/cms/ui/themes/default/html/views/url/edit.php | 47+++++++++++++++++++++++++++++++----------------
modules/cms/ui/themes/default/html/views/url/preview.php | 18++++++++++--------
modules/cms/ui/themes/default/html/views/url/remove.php | 35+++++++++++++++++++++++++++--------
modules/cms/ui/themes/default/html/views/url/structure.php | 11+++++++----
modules/cms/ui/themes/default/html/views/user/add.php | 42++++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/user/history.php | 85++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
modules/cms/ui/themes/default/html/views/user/info.php | 422+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/user/listing.php | 105+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/user/memberships.php | 74++++++++++++++++++++++++++++++++++++++++++++++----------------------------
modules/cms/ui/themes/default/html/views/user/prop.php | 346++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
modules/cms/ui/themes/default/html/views/user/pw.php | 198+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/user/remove.php | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
modules/cms/ui/themes/default/html/views/user/rights.php | 193+++++++++++++++++++++++++++++++++++++++++++------------------------------------
modules/cms/ui/themes/default/html/views/userlist/add.php | 41+++++++++++++++++++++++++++--------------
modules/cms/ui/themes/default/html/views/userlist/show.php | 129++++++++++++++++++++++++++++++++++++++++++-------------------------------------
180 files changed, 11702 insertions(+), 8451 deletions(-)

diff --git a/modules/cms/ui/themes/default/html/views/configuration/show.php b/modules/cms/ui/themes/default/html/views/configuration/show.php @@ -1,25 +1,34 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> - </span> - </td> - </tr> - <?php foreach($config as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$key)) ?> - </span> - </td> - <td class="<?php echo encodeHtml(htmlentities(@$class)) ?>"> - <span class="<?php echo encodeHtml(htmlentities(@$class)) ?>"><?php echo encodeHtml(htmlentities(@$value)) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> + </span> + </td> + </tr> + <?php foreach($config as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@$key)) ?> + </span> + </td> + <td class="<?php echo encodeHtml(htmlentities(@$class)) ?>"> + <span class="<?php echo encodeHtml(htmlentities(@$class)) ?>"><?php echo encodeHtml(htmlentities(@$value)) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/configuration/src.php b/modules/cms/ui/themes/default/html/views/configuration/src.php @@ -1,3 +1,4 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> -<textarea name="source" data-extension="" data-mimetype="" data-mode="yaml" class="editor code-editor"> -</textarea>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + <textarea name="source" data-extension="" data-mimetype="" data-mode="yaml" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$source)) ?> + </textarea> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/element/advanced.php b/modules/cms/ui/themes/default/html/views/element/advanced.php @@ -1,299 +1,349 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','disable_dynamic_code')); if($if2) { ?> - <?php $if3=(!true); if($if3) { ?> - <div class="message warn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NOTICE_CODE_DISABLED'))) ?> - </span> - </div> - <?php } ?> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="advanced" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php $if4=(isset($subtype)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_SUBTYPE'))) ?> - </span> - </div> - <div class="input"> - <?php $if7=(isset($subtypes)); if($if7) { ?> - <input name="subtype" value="<?php echo encodeHtml(htmlentities(@$subtype)) ?>" size="1" class=""> - </input> - <?php } ?> - <?php $if7=!(isset($subtypes)); if($if7) { ?> - <input name="subtype" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$subtype)) ?>" class=""> - </input> - <?php } ?> - </div> - </div> - <?php } ?> - <?php $if4=(isset($with_icon)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="with_icon" value="1" <?php if(''.@$with_icon.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_WITH_ICON'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <?php $if4=(isset($inherit)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="inherit" value="1" <?php if(''.@$inherit.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_INHERIT'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <?php $if4=(isset($all_languages)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="all_languages" value="1" <?php if(''.@$all_languages.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_ALL_LANGUAGES'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <?php $if4=(isset($writable)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="writable" value="1" <?php if(''.@$writable.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_writable'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <?php $if4=(isset($width)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('width'))) ?> - </span> - </div> - <div class="input"> - <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($height)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('height'))) ?> - </span> - </div> - <div class="input"> - <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($dateformat)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DATEFORMAT'))) ?> - </span> - </div> - <div class="input"> - <input name="dateformat" value="<?php echo encodeHtml(htmlentities(@$dateformat)) ?>" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($format)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_FORMAT'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php'); { <?php component_radio_box(format,$formatlist,${format}) ?> ?> - <?php } ?> - </div> - </div> - <?php } ?> - <?php $if4=(isset($decimals)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DECIMALS'))) ?> - </span> - </div> - <div class="input"> - <input name="decimals" type="text" maxlength="2" value="<?php echo encodeHtml(htmlentities(@$decimals)) ?>" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($dec_point)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEC_POINT'))) ?> - </span> - </div> - <div class="input"> - <input name="dec_point" type="text" maxlength="5" value="<?php echo encodeHtml(htmlentities(@$dec_point)) ?>" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($thousand_sep)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_thousand_sep'))) ?> - </span> - </div> - <div class="input"> - <input name="thousand_sep" type="text" maxlength="1" value="<?php echo encodeHtml(htmlentities(@$thousand_sep)) ?>" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($default_text)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_text'))) ?> - </span> - </div> - <div class="input"> - <input name="default_text" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$default_text)) ?>" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($default_longtext)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_longtext'))) ?> - </span> - </div> - <div class="input"> - <textarea name="default_longtext" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$default_longtext)) ?> - </textarea> - </div> - </div> - <?php } ?> - <?php $if4=(isset($parameters)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DYNAMIC_PARAMETERS'))) ?> - </span> - </div> - <div class="input"> - <textarea name="parameters" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$parameters)) ?> - </textarea> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php foreach($dynamic_class_parameters as $paramName=>$defaultValue) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@$paramName)) ?> - </span> - <span class=""> ( - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DEFAULT'))) ?> - </span> - <span class="">) = - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$defaultValue)) ?> - </span> - <br> - </br> - <?php } ?> - </div> - </div> - <?php } ?> - <?php $if4=(isset($select_items)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_select_items'))) ?> - </span> - </div> - <div class="input"> - <textarea name="select_items" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$select_items)) ?> - </textarea> - </div> - </div> - <?php } ?> - <?php $if4=(isset($linkelement)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_LINK'))) ?> - </span> - </div> - <div class="input"> - <input name="linkelement" value="<?php echo encodeHtml(htmlentities(@$linkelement)) ?>" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($name)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($folderobjectid)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_FOLDEROBJECT'))) ?> - </span> - </div> - <div class="input"> - <input name="folderobjectid" value="<?php echo encodeHtml(htmlentities(@$folderobjectid)) ?>" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($default_objectid)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_OBJECT'))) ?> - </span> - </div> - <div class="input"> - <input name="default_objectid" value="<?php echo encodeHtml(htmlentities(@$default_objectid)) ?>" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if4=(isset($code)); if($if4) { ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_code'))) ?> - </span> - </div> - <div class="input"> - <textarea name="code" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$code)) ?> - </textarea> - </div> - </div> - <?php } ?> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','disable_dynamic_code')); if($if1) { ?> + <?php $if1=(!true); if($if1) { ?> + <div class="message warn"> + <span><?php echo encodeHtml(htmlentities(@lang('NOTICE_CODE_DISABLED'))) ?> + </span> + </div> + <?php } ?> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="advanced" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="element" /> + <input type="hidden" name="subaction" value="advanced" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <?php $if1=(isset($subtype)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_SUBTYPE'))) ?> + </span> + </div> + <div class="input"> + <?php $if1=(isset($subtypes)); if($if1) { ?> + <select name="subtype" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($subtypes as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$subtype){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php } ?> + <?php $if1=!(isset($subtypes)); if($if1) { ?> + <div class="inputholder"> + <input name="subtype" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$subtype)) ?>" /> + </div> + <?php } ?> + </div> + </div> + <?php } ?> + <?php $if1=(isset($with_icon)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="with_icon" value="1" <?php if(@$with_icon){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_WITH_ICON'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <?php $if1=(isset($inherit)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="inherit" value="1" <?php if(@$inherit){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_INHERIT'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <?php $if1=(isset($all_languages)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="all_languages" value="1" <?php if(@$all_languages){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_ALL_LANGUAGES'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <?php $if1=(isset($writable)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="writable" value="1" <?php if(@$writable){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_writable'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <?php $if1=(isset($width)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('width'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" /> + </div> + </div> + </div> + <?php } ?> + <?php $if1=(isset($height)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('height'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" /> + </div> + </div> + </div> + <?php } ?> + <?php $if1=(isset($dateformat)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DATEFORMAT'))) ?> + </span> + </div> + <div class="input"> + <select name="dateformat" size="1"> + <?php foreach($dateformats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$dateformat){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + <?php $if1=(isset($format)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_FORMAT'))) ?> + </span> + </div> + <div class="input"> + <?php foreach( $formatlist as $_key=>$_value) { ?> + <label> + <input type="radio" name="format" value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$format){ ?>checked="checked"<?php } ?> /> + <span><?php echo encodeHtml(htmlentities(@$_value)) ?> + </span> + </label> + <br /> + <?php } ?> + </div> + </div> + <?php } ?> + <?php $if1=(isset($decimals)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DECIMALS'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="decimals" type="text" maxlength="2" value="<?php echo encodeHtml(htmlentities(@$decimals)) ?>" /> + </div> + </div> + </div> + <?php } ?> + <?php $if1=(isset($dec_point)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEC_POINT'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="dec_point" type="text" maxlength="5" value="<?php echo encodeHtml(htmlentities(@$dec_point)) ?>" /> + </div> + </div> + </div> + <?php } ?> + <?php $if1=(isset($thousand_sep)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_thousand_sep'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="thousand_sep" type="text" maxlength="1" value="<?php echo encodeHtml(htmlentities(@$thousand_sep)) ?>" /> + </div> + </div> + </div> + <?php } ?> + <?php $if1=(isset($default_text)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_text'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="default_text" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$default_text)) ?>" /> + </div> + </div> + </div> + <?php } ?> + <?php $if1=(isset($default_longtext)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_longtext'))) ?> + </span> + </div> + <div class="input"> + <textarea name="default_longtext" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$default_longtext)) ?> + </textarea> + </div> + </div> + <?php } ?> + <?php $if1=(isset($parameters)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DYNAMIC_PARAMETERS'))) ?> + </span> + </div> + <div class="input"> + <textarea name="parameters" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$parameters)) ?> + </textarea> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php foreach($dynamic_class_parameters as $paramName=>$defaultValue) { ?> + <span><?php echo encodeHtml(htmlentities(@$paramName)) ?> + </span> + <span> ( + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DEFAULT'))) ?> + </span> + <span>) = + </span> + <span><?php echo encodeHtml(htmlentities(@$defaultValue)) ?> + </span> + <br /> + <?php } ?> + </div> + </div> + <?php } ?> + <?php $if1=(isset($select_items)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_select_items'))) ?> + </span> + </div> + <div class="input"> + <textarea name="select_items" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$select_items)) ?> + </textarea> + </div> + </div> + <?php } ?> + <?php $if1=(isset($linkelement)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_LINK'))) ?> + </span> + </div> + <div class="input"> + <select name="linkelement" size="1"> + <?php foreach($linkelements as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$linkelement){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + <?php $if1=(isset($name)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> + </span> + </div> + <div class="input"> + <select name="name" size="1"> + <?php foreach($names as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$name){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + <?php $if1=(isset($folderobjectid)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_FOLDEROBJECT'))) ?> + </span> + </div> + <div class="input"> + <select name="folderobjectid" size="1"> + <?php foreach($folders as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$folderobjectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + <?php $if1=(isset($default_objectid)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_OBJECT'))) ?> + </span> + </div> + <div class="input"> + <select name="default_objectid" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($objects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$default_objectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + <?php $if1=(isset($code)); if($if1) { ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_code'))) ?> + </span> + </div> + <div class="input"> + <textarea name="code" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$code)) ?> + </textarea> + </div> + </div> + <?php } ?> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/element/info.php b/modules/cms/ui/themes/default/html/views/element/info.php @@ -1,37 +1,46 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="data"> - <td colspan="1" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </td> - <td class=""> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${type'))) ?>} - </span> - </td> - </tr> - <tr class="data"> - <td colspan="1" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class="clickable"> - <a target="_self" data-type="edit" data-action="element" data-method="prop" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/element/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <tr class="data"> - <td colspan="1" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('id'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$id)) ?> - </span> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="data"> + <td colspan="1"> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </td> + <td> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('${type'))) ?>} + </span> + </td> + </tr> + <tr class="data"> + <td colspan="1"> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td class="clickable"> + <a target="_self" data-type="edit" data-action="element" data-method="prop" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/element/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <tr class="data"> + <td colspan="1"> + <span><?php echo encodeHtml(htmlentities(@lang('id'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$id)) ?> + </span> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/element/name.php b/modules/cms/ui/themes/default/html/views/element/name.php @@ -1,27 +1,44 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="name" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> - </span> - </td> - <td class=""> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DESCRIPTION'))) ?> - </span> - </td> - <td class=""> - <textarea name="description" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$description)) ?> - </textarea> - </td> - </tr> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="name" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="element" /> + <input type="hidden" name="subaction" value="name" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DESCRIPTION'))) ?> + </span> + </td> + <td> + <textarea name="description" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$description)) ?> + </textarea> + </td> + </tr> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/element/prop.php b/modules/cms/ui/themes/default/html/views/element/prop.php @@ -1,47 +1,69 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LABEL'))) ?> - </span> - </div> - <div class="input"> - <input name="label" required="required" autofocus="autofocus" type="text" maxlength="100" value="<?php echo encodeHtml(htmlentities(@$label)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" required="required" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="255" class="inputarea"><?php echo encodeHtml(htmlentities(@$description)) ?> - </textarea> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_TYPE'))) ?> - </span> - </div> - <div class="input"> - <input name="typeid" value="<?php echo encodeHtml(htmlentities(@$typeid)) ?>" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="element" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('LABEL'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="label" required="required" autofocus="autofocus" type="text" maxlength="100" value="<?php echo encodeHtml(htmlentities(@$label)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" required="required" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="255" class="inputarea"><?php echo encodeHtml(htmlentities(@$description)) ?> + </textarea> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_TYPE'))) ?> + </span> + </div> + <div class="input"> + <select name="typeid" size="1"> + <?php foreach($types as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$typeid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/element/properties.php b/modules/cms/ui/themes/default/html/views/element/properties.php @@ -1,273 +1,326 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="properties" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> - <?php $if5=(isset($subtype)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_SUBTYPE'))) ?> - </span> - </td> - <td class=""> - <?php $if8=(isset($subtypes)); if($if8) { ?> - <input name="subtype" value="<?php echo encodeHtml(htmlentities(@$subtype)) ?>" size="1" class=""> - </input> - <?php } ?> - <?php $if8=!(isset($subtypes)); if($if8) { ?> - <input name="subtype" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$subtype)) ?>" class=""> - </input> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($with_icon)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_WITH_ICON'))) ?> - </span> - </td> - <td class=""> - <input type="checkbox" name="with_icon" value="1" <?php if(''.@$with_icon.''){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($all_languages)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_ALL_LANGUAGES'))) ?> - </span> - </td> - <td class=""> - <input type="checkbox" name="all_languages" value="1" <?php if(''.@$all_languages.''){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($writable)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_writable'))) ?> - </span> - </td> - <td class=""> - <input type="checkbox" name="writable" value="1" <?php if(''.@$writable.''){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($width)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('width'))) ?> - </span> - </td> - <td class=""> - <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($height)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('height'))) ?> - </span> - </td> - <td class=""> - <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($dateformat)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DATEFORMAT'))) ?> - </span> - </td> - <td class=""> - <input name="dateformat" value="<?php echo encodeHtml(htmlentities(@$dateformat)) ?>" size="1" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($format)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_FORMAT'))) ?> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php'); { <?php component_radio_box(format,$formatlist,${format}) ?> ?> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($decimals)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DECIMALS'))) ?> - </span> - </td> - <td class=""> - <input name="decimals" type="text" maxlength="2" value="<?php echo encodeHtml(htmlentities(@$decimals)) ?>" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($dec_point)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEC_POINT'))) ?> - </span> - </td> - <td class=""> - <input name="dec_point" type="text" maxlength="5" value="<?php echo encodeHtml(htmlentities(@$dec_point)) ?>" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($thousand_sep)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_thousand_sep'))) ?> - </span> - </td> - <td class=""> - <input name="thousand_sep" type="text" maxlength="1" value="<?php echo encodeHtml(htmlentities(@$thousand_sep)) ?>" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($default_text)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_text'))) ?> - </span> - </td> - <td class=""> - <input name="default_text" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$default_text)) ?>" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($default_longtext)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_longtext'))) ?> - </span> - </td> - <td class=""> - <textarea name="default_longtext" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$default_longtext)) ?> - </textarea> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($parameters)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DYNAMIC_PARAMETERS'))) ?> - </span> - </td> - <td class=""> - <textarea name="parameters" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$parameters)) ?> - </textarea> - </td> - </tr> - <tr class=""> - <td class=""> - </td> - <td class=""> - <?php foreach($dynamic_class_parameters as $paramName=>$defaultValue) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@$paramName)) ?> - </span> - <span class=""> ( - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DEFAULT'))) ?> - </span> - <span class="">) = - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$defaultValue)) ?> - </span> - <br> - </br> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($select_items)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_select_items'))) ?> - </span> - </td> - <td class=""> - <textarea name="select_items" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$select_items)) ?> - </textarea> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($linkelement)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_LINK'))) ?> - </span> - </td> - <td class=""> - <input name="linkelement" value="<?php echo encodeHtml(htmlentities(@$linkelement)) ?>" size="1" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($name)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> - </span> - </td> - <td class=""> - <input name="name" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" size="1" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($folderobjectid)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_FOLDEROBJECT'))) ?> - </span> - </td> - <td class=""> - <input name="folderobjectid" value="<?php echo encodeHtml(htmlentities(@$folderobjectid)) ?>" size="1" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($default_objectid)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_OBJECT'))) ?> - </span> - </td> - <td class=""> - <input name="default_objectid" value="<?php echo encodeHtml(htmlentities(@$default_objectid)) ?>" size="1" class=""> - </input> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($code)); if($if5) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('EL_PROP_code'))) ?> - </span> - </td> - <td class=""> - <textarea name="code" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$code)) ?> - </textarea> - </td> - </tr> - <?php } ?> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="properties" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="element" /> + <input type="hidden" name="subaction" value="properties" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <?php $if1=(isset($subtype)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_SUBTYPE'))) ?> + </span> + </td> + <td> + <?php $if1=(isset($subtypes)); if($if1) { ?> + <select name="subtype" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($subtypes as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$subtype){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php } ?> + <?php $if1=!(isset($subtypes)); if($if1) { ?> + <div class="inputholder"> + <input name="subtype" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$subtype)) ?>" /> + </div> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($with_icon)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_WITH_ICON'))) ?> + </span> + </td> + <td> + <input type="checkbox" name="with_icon" value="1" <?php if(@$with_icon){ ?>checked="1"<?php } ?> /> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($all_languages)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_ALL_LANGUAGES'))) ?> + </span> + </td> + <td> + <input type="checkbox" name="all_languages" value="1" <?php if(@$all_languages){ ?>checked="1"<?php } ?> /> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($writable)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_writable'))) ?> + </span> + </td> + <td> + <input type="checkbox" name="writable" value="1" <?php if(@$writable){ ?>checked="1"<?php } ?> /> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($width)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('width'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($height)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('height'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($dateformat)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DATEFORMAT'))) ?> + </span> + </td> + <td> + <select name="dateformat" size="1"> + <?php foreach($dateformats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$dateformat){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($format)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_FORMAT'))) ?> + </span> + </td> + <td> + <?php foreach( $formatlist as $_key=>$_value) { ?> + <label> + <input type="radio" name="format" value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$format){ ?>checked="checked"<?php } ?> /> + <span><?php echo encodeHtml(htmlentities(@$_value)) ?> + </span> + </label> + <br /> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($decimals)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DECIMALS'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="decimals" type="text" maxlength="2" value="<?php echo encodeHtml(htmlentities(@$decimals)) ?>" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($dec_point)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEC_POINT'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="dec_point" type="text" maxlength="5" value="<?php echo encodeHtml(htmlentities(@$dec_point)) ?>" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($thousand_sep)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_thousand_sep'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="thousand_sep" type="text" maxlength="1" value="<?php echo encodeHtml(htmlentities(@$thousand_sep)) ?>" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($default_text)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_text'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="default_text" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$default_text)) ?>" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($default_longtext)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_default_longtext'))) ?> + </span> + </td> + <td> + <textarea name="default_longtext" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$default_longtext)) ?> + </textarea> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($parameters)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DYNAMIC_PARAMETERS'))) ?> + </span> + </td> + <td> + <textarea name="parameters" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$parameters)) ?> + </textarea> + </td> + </tr> + <tr> + <td> + </td> + <td> + <?php foreach($dynamic_class_parameters as $paramName=>$defaultValue) { ?> + <span><?php echo encodeHtml(htmlentities(@$paramName)) ?> + </span> + <span> ( + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DEFAULT'))) ?> + </span> + <span>) = + </span> + <span><?php echo encodeHtml(htmlentities(@$defaultValue)) ?> + </span> + <br /> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($select_items)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_select_items'))) ?> + </span> + </td> + <td> + <textarea name="select_items" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$select_items)) ?> + </textarea> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($linkelement)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_LINK'))) ?> + </span> + </td> + <td> + <select name="linkelement" size="1"> + <?php foreach($linkelements as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$linkelement){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($name)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> + </span> + </td> + <td> + <select name="name" size="1"> + <?php foreach($names as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$name){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($folderobjectid)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_FOLDEROBJECT'))) ?> + </span> + </td> + <td> + <select name="folderobjectid" size="1"> + <?php foreach($folders as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$folderobjectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($default_objectid)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_DEFAULT_OBJECT'))) ?> + </span> + </td> + <td> + <select name="default_objectid" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($objects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$default_objectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($code)); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('EL_PROP_code'))) ?> + </span> + </td> + <td> + <textarea name="code" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$code)) ?> + </textarea> + </td> + </tr> + <?php } ?> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/element/remove.php b/modules/cms/ui/themes/default/html/views/element/remove.php @@ -1,53 +1,73 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="confirm" value="1" <?php if(''.@$confirm.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> - </span> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <span class=""> - </span> - <input type="radio" name="type" disabled="" value="value" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('ELEMENT_DELETE_VALUES'))) ?> - </span> - </label> - <br> - </br> - <span class=""> - </span> - <input type="radio" name="type" disabled="" value="all" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('DELETE'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="element" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form element"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="element" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_NAME'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="confirm" value="1" <?php if(@$confirm){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> + </span> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <span> + </span> + <input type="radio" name="type" disabled="" value="value" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('ELEMENT_DELETE_VALUES'))) ?> + </span> + </label> + <br /> + <span> + </span> + <input type="radio" name="type" disabled="" value="all" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('DELETE'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/advanced.php b/modules/cms/ui/themes/default/html/views/file/advanced.php @@ -1,7 +1,30 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="advanced" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <label class="or-form-row or-form-input"><input name="extension" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$extension)) ?>" class="extension"> - </input></label> - <label class="or-form-row or-form-input"><input name="type" value="<?php echo encodeHtml(htmlentities(@$type)) ?>" size="1" class=""> - </input></label> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="advanced" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="advanced" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <label class="or-form-row or-form-input"> + <span class="or-form-label">file_extension + </span> + <input name="extension" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$extension)) ?>" class="extension" /> + </label> + <label class="or-form-row or-form-input"> + <span class="or-form-label">type + </span> + <select name="type" size="1"> + <?php foreach($types as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$type){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </label> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/compress.php b/modules/cms/ui/themes/default/html/views/file/compress.php @@ -1,33 +1,55 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="compress" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </div> - <div class="input"> - <?php { $gz= 'gz'; ?> - <?php } ?> - <input name="format" value="gz" size="1" class=""> - </input> - <?php { $replace= '1'; ?> - <?php } ?> - <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="compress" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="compress" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('OPTIONS'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </div> + <div class="input"> + <?php { $gz= 'gz'; ?> + <?php } ?> + <select name="format" size="1"> + <?php foreach($formats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key=='gz'){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php { $replace= '1'; ?> + <?php } ?> + <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> + </span> + </label> + <br /> + <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/edit.php b/modules/cms/ui/themes/default/html/views/file/edit.php @@ -1,23 +1,32 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <br> - </br> - <input id="req0_file" name="file" size="40" class="upload"> - </input> - <br> - </br> - <br> - </br> - </div> - </div> - <div class="line or-dropzone-upload"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <br /> + <input id="req0_file" name="file" size="40" class="upload" /> + <br /> + <br /> + </div> + </div> + <div class="line or-dropzone-upload"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/extract.php b/modules/cms/ui/themes/default/html/views/file/extract.php @@ -1,7 +1,22 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="extract" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="extract" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="extract" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/info.php b/modules/cms/ui/themes/default/html/views/file/info.php @@ -1,205 +1,236 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_filename'))) ?> - </span> - </div> - <div class="input"> - <span class="filename"><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('file_extension'))) ?> - </span> - </div> - <div class="input"> - <span class="extension"><?php echo encodeHtml(htmlentities(@$extension)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_description'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$description)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$full_filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_SIZE'))) ?> - </span> - </label> - </div> - <div class="input"> - </div> - <span class=""><?php echo encodeHtml(htmlentities(@$size)) ?> - </span> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_mimetype'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$mimetype)) ?> - </span> - <br> - </br> - <a target="_self" data-action="file" data-method="size" data-id="" data-extra="[]" href="/#/file/" class="action"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_file_size'))) ?> - </span> - </a> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('#{id'))) ?>} - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$objectid)) ?> - </span> - </div> - </div> - <?php $if4=(isset($cache_filename)); if($if4) { ?> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CACHE_FILENAME'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$cache_filename)) ?> - </span> - <br> - </br> - <img src="./modules/cms-ui/themes/default/images/icon/el_date.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($cache_filemtime); ?> - <?php } ?> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_PAGES'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <?php foreach($pages as $list_key=>$list_value) { extract($list_value); ?> - <tr class=""> - <td class=""> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <img src="./modules/cms-ui/themes/default/images/icon_page.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div> - <?php $if6=(($pages)==FALSE); if($if6) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - <?php } ?> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_created'))) ?> - </span> - </div> - <div class="input"> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($create_date); ?> - <?php } ?> - <br> - </br> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($create_user); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_lastchange'))) ?> - </span> - </div> - <div class="input"> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - <br> - </br> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_published'))) ?> - </span> - </label> - </div> - <div class="input"> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($published_date); ?> - <?php } ?> - <br> - </br> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($published_user); ?> - <?php } ?> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_filename'))) ?> + </span> + </div> + <div class="input"> + <span class="filename"><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('file_extension'))) ?> + </span> + </div> + <div class="input"> + <span class="extension"><?php echo encodeHtml(htmlentities(@$extension)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_description'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$description)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('additional_info'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$full_filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_SIZE'))) ?> + </span> + </label> + </div> + <div class="input"> + </div> + <span><?php echo encodeHtml(htmlentities(@$size)) ?> + </span> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_mimetype'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$mimetype)) ?> + </span> + <br /> + <a target="_self" data-action="file" data-method="size" data-id="" data-extra="[]" href="/#/file/" class="action"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_file_size'))) ?> + </span> + </a> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('#{id'))) ?>} + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$objectid)) ?> + </span> + </div> + </div> + <?php $if1=(isset($cache_filename)); if($if1) { ?> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CACHE_FILENAME'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$cache_filename)) ?> + </span> + <br /> + <img src="./modules/cms/ui/themes/default/images/icon/el_date.png" /> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($cache_filemtime); ?> + <?php } ?> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_PAGES'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <?php foreach($pages as $list_key=>$list_value) { extract($list_value); ?> + <tr> + <td> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <img src="./modules/cms/ui/themes/default/images/icon_page.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php $if1=(($pages)==FALSE); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + <?php } ?> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('prop_userinfo'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_created'))) ?> + </span> + </div> + <div class="input"> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($create_date); ?> + <?php } ?> + <br /> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($create_user); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_lastchange'))) ?> + </span> + </div> + <div class="input"> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + <br /> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_published'))) ?> + </span> + </label> + </div> + <div class="input"> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($published_date); ?> + <?php } ?> + <br /> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($published_user); ?> + <?php } ?> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/preview.php b/modules/cms/ui/themes/default/html/views/file/preview.php @@ -1,7 +1,9 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="clickable"> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" data-type="popup" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class="action"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LINK_OPEN_IN_NEW_WINDOW'))) ?> - </span> - </a> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="clickable"> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" data-type="popup" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class="action"> + <span><?php echo encodeHtml(htmlentities(@lang('LINK_OPEN_IN_NEW_WINDOW'))) ?> + </span> + </a> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/pub.php b/modules/cms/ui/themes/default/html/views/file/pub.php @@ -1,19 +1,31 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form file"> - <tr class=""> - <td class=""> - <br> - </br> - </td> - </tr> - <tr class=""> - <td class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <tr> + <td> + <br /> + </td> + </tr> + <tr> + <td class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('publish'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/remove.php b/modules/cms/ui/themes/default/html/views/file/remove.php @@ -1,7 +1,26 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span></span></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:GLOBAL_NAME + </span> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">GLOBAL_DELETE + </span> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </label> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/show.php b/modules/cms/ui/themes/default/html/views/file/show.php @@ -1,2 +1,3 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> -<?php echo @$value ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + <?php echo @$value ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/structure.php b/modules/cms/ui/themes/default/html/views/file/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/uncompress.php b/modules/cms/ui/themes/default/html/views/file/uncompress.php @@ -1,27 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="uncompress" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php { $replace= '1'; ?> - <?php } ?> - <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="uncompress" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="uncompress" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $replace= '1'; ?> + <?php } ?> + <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> + </span> + </label> + <br /> + <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/file/value.php b/modules/cms/ui/themes/default/html/views/file/value.php @@ -1,17 +1,32 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> - </span> - </td> - <td class=""> - <textarea name="value" data-extension="" data-mimetype="" data-mode="htmlmixed" class="editor code-editor"> - </textarea> - </td> - </tr> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="file" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form file"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="file" /> + <input type="hidden" name="subaction" value="value" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> + </span> + </td> + <td> + <textarea name="value" data-extension="" data-mimetype="" data-mode="htmlmixed" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$value)) ?> + </textarea> + </td> + </tr> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/advanced.php b/modules/cms/ui/themes/default/html/views/folder/advanced.php @@ -1,109 +1,134 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <input type="checkbox" name="checkall" value="1" <?php if(''.@$checkall.''){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> - </span> - <span class=""> / - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - </tr> - <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td width="1%" class=""> - <?php $if7=($writable); if($if7) { ?> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$id)) ?>" value="1" <?php if(''.@$${id.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - <?php } ?> - <?php $if7=(!'writable'); if($if7) { ?> - <span class=""> - </span> - <?php } ?> - </td> - <td class="clickable"> - <label class="label"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$icon)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <span class=""> - </span> - </a> - </label> - </td> - </tr> - <?php } ?> - <?php $if4=(($object)==FALSE); if($if4) { ?> - <tr class=""> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td class=""> - <span class=""> - </span> - </td> - <td colspan="2" class="clickable"> - <a target="_self" data-type="dialog" data-action="folder" data-method="create" data-id="" data-extra="{'dialogAction':'folder','dialogMethod':'create'}" href="/#/folder/" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_folder_create'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php { $type= $defaulttype; ?> - <?php } ?> - <?php foreach($actionlist as $list_key=>$actiontype) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="<?php echo encodeHtml(htmlentities(@$actiontype)) ?>" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${actiontype'))) ?>} - </span> - </label> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <span class=""> - </span> - <input type="checkbox" name="confirm" value="1" <?php if(''.@$confirm.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> - </span> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FOLDER_SELECT_TARGET_FOLDER'))) ?> - </span> - </div> - <div class="input"> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <input type="checkbox" name="checkall" value="1" <?php if(@$checkall){ ?>checked="1"<?php } ?> /> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> + </span> + <span> / + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + </tr> + <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td width="1%"> + <?php $if1=($writable); if($if1) { ?> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$id)) ?>" value="1" <?php if(@$${id}){ ?>checked="1"<?php } ?> /> + <?php } ?> + <?php $if1=(!'writable'); if($if1) { ?> + <span> + </span> + <?php } ?> + </td> + <td class="clickable"> + <label class="label"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$icon)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <span> + </span> + </a> + </label> + </td> + </tr> + <?php } ?> + <?php $if1=(($object)==FALSE); if($if1) { ?> + <tr> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td> + <span> + </span> + </td> + <td colspan="2" class="clickable"> + <a target="_self" data-type="dialog" data-action="folder" data-method="create" data-id="" data-extra="{'dialogAction':'folder','dialogMethod':'create'}" href="/#/folder/"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_folder_create'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php { $type= $defaulttype; ?> + <?php } ?> + <?php foreach($actionlist as $list_key=>$actiontype) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="<?php echo encodeHtml(htmlentities(@$actiontype)) ?>" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('${actiontype'))) ?>} + </span> + </label> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <span> + </span> + <input type="checkbox" name="confirm" value="1" <?php if(@$confirm){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> + </span> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FOLDER_SELECT_TARGET_FOLDER'))) ?> + </span> + </div> + <div class="input"> + + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/content.php b/modules/cms/ui/themes/default/html/views/folder/content.php @@ -1,95 +1,98 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> - </span> - <span class=""> / - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LASTCHANGE'))) ?> - </span> - </td> - </tr> - <?php $if3=(isset($up_url)); if($if3) { ?> - <tr class="data"> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon_folder.png" class=""> - </img> - <span class="">.. - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php } ?> - <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable <?php echo encodeHtml(htmlentities(@$class)) ?>"> - <img src="./modules/cms-ui/themes/default/images/icon_<?php echo encodeHtml(htmlentities(@$icon)) ?>.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <span class=""> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php $if3=(($object)==FALSE); if($if3) { ?> - <tr class=""> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td colspan="2" class=""> - <a target="_self" data-type="view" data-action="folder" data-method="createfolder" data-id="" data-extra="[]" href="/#/folder/" class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon/create.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_folder_createfolder'))) ?> - </span> - </a> - </td> - </tr> - <tr class="data"> - <td colspan="2" class=""> - <a target="_self" data-type="view" data-action="folder" data-method="createpage" data-id="" data-extra="[]" href="/#/folder/" class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon/create.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_folder_createpage'))) ?> - </span> - </a> - </td> - </tr> - <tr class="data"> - <td colspan="2" class=""> - <a target="_self" data-type="view" data-action="folder" data-method="createfile" data-id="" data-extra="[]" href="/#/folder/" class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon/create.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_folder_createfile'))) ?> - </span> - </a> - </td> - </tr> - <tr class="data"> - <td colspan="2" class=""> - <a target="_self" data-type="modal" data-action="folder" data-method="createlink" data-id="" data-extra="[]" href="/#/folder/" class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon/create.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_folder_createlink'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> + </span> + <span> / + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LASTCHANGE'))) ?> + </span> + </td> + </tr> + <?php $if1=(isset($up_url)); if($if1) { ?> + <tr class="data"> + <td> + <img src="./modules/cms/ui/themes/default/images/icon_folder.png" /> + <span>.. + </span> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php } ?> + <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable <?php echo encodeHtml(htmlentities(@$class)) ?>"> + <img src="./modules/cms/ui/themes/default/images/icon_<?php echo encodeHtml(htmlentities(@$icon)) ?>.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <span> + </span> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php $if1=(($object)==FALSE); if($if1) { ?> + <tr> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createfolder" data-id="" data-extra="[]" href="/#/folder/"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/create.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_folder_createfolder'))) ?> + </span> + </a> + </td> + </tr> + <tr class="data"> + <td colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createpage" data-id="" data-extra="[]" href="/#/folder/"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/create.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_folder_createpage'))) ?> + </span> + </a> + </td> + </tr> + <tr class="data"> + <td colspan="2"> + <a target="_self" data-type="view" data-action="folder" data-method="createfile" data-id="" data-extra="[]" href="/#/folder/"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/create.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_folder_createfile'))) ?> + </span> + </a> + </td> + </tr> + <tr class="data"> + <td colspan="2"> + <a target="_self" data-type="modal" data-action="folder" data-method="createlink" data-id="" data-extra="[]" href="/#/folder/"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/create.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_folder_createlink'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/create.php b/modules/cms/ui/themes/default/html/views/folder/create.php @@ -1,59 +1,61 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-linklist"> - <?php $if3=($mayCreateFolder); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createfolder" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfolder'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createfolder'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php $if3=($mayCreatePage); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createpage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createpage'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createpage'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php $if3=($mayCreateFile); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createfile" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfile'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createfile'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php $if3=($mayCreateImage); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createimage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createimage'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createimage'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php $if3=($mayCreateText); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createtext" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createtext'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createtext'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php $if3=($mayCreateUrl); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createurl" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createurl'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createurl'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php $if3=($mayCreateLink); if($if3) { ?> - <div class="clickable or-linklist-line or-round-corners or-hover-effect"> - <a target="_self" data-type="dialog" data-action="" data-method="createlink" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createlink'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createlink'))) ?> - </span> - </a> - </div> - <?php } ?> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-linklist"> + <?php $if1=($mayCreateFolder); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createfolder" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfolder'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createfolder'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php $if1=($mayCreatePage); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createpage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createpage'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createpage'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php $if1=($mayCreateFile); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createfile" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfile'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createfile'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php $if1=($mayCreateImage); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createimage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createimage'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createimage'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php $if1=($mayCreateText); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createtext" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createtext'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createtext'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php $if1=($mayCreateUrl); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createurl" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createurl'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createurl'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php $if1=($mayCreateLink); if($if1) { ?> + <div class="clickable or-linklist-line or-round-corners or-hover-effect"> + <a target="_self" data-type="dialog" data-action="" data-method="createlink" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createlink'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createlink'))) ?> + </span> + </a> + </div> + <?php } ?> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createfile.php b/modules/cms/ui/themes/default/html/views/folder/createfile.php @@ -1,65 +1,88 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="upload" action="./" data-method="createfile" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="multipart/form-data" data-async="" data-autosave="" class="or-form folder"> - <input type="hidden" name="type" value="file" class=""> - </input> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_FILE'))) ?> - </span> - </label> - </div> - <div class="input"> - <input multiple="multiple" id="req0_file" name="file" size="40" maxlength="<?php echo encodeHtml(htmlentities(@$maxlength)) ?>" class="upload"> - </input> - </div> - </div> - <div class="line or-dropzone-upload"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('file_max_size'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$max_size)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('HTTP_URL'))) ?> - </span> - </div> - <div class="input"> - <input name="url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" class=""> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="upload" action="./" data-method="createfile" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="multipart/form-data" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createfile" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="type" value="file" /> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_FILE'))) ?> + </span> + </label> + </div> + <div class="input"> + <input multiple="multiple" id="req0_file" name="file" size="40" maxlength="<?php echo encodeHtml(htmlentities(@$maxlength)) ?>" class="upload" /> + </div> + </div> + <div class="line or-dropzone-upload"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('file_max_size'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$max_size)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('HTTP_URL'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createfolder.php b/modules/cms/ui/themes/default/html/views/folder/createfolder.php @@ -1,25 +1,38 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="createfolder" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" class=""> - </input> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_FOLDER'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="createfolder" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createfolder" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_FOLDER'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('add'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createimage.php b/modules/cms/ui/themes/default/html/views/folder/createimage.php @@ -1,65 +1,88 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="upload" action="./" data-method="createimage" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="multipart/form-data" data-async="" data-autosave="" class="or-form folder"> - <input type="hidden" name="type" value="file" class=""> - </input> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_FILE'))) ?> - </span> - </label> - </div> - <div class="input"> - <input multiple="multiple" id="req0_file" name="file" size="40" maxlength="<?php echo encodeHtml(htmlentities(@$maxlength)) ?>" class="upload"> - </input> - </div> - </div> - <div class="line or-dropzone-upload"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('file_max_size'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$max_size)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('HTTP_URL'))) ?> - </span> - </div> - <div class="input"> - <input name="url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" class=""> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="upload" action="./" data-method="createimage" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="multipart/form-data" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createimage" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="type" value="file" /> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_FILE'))) ?> + </span> + </label> + </div> + <div class="input"> + <input multiple="multiple" id="req0_file" name="file" size="40" maxlength="<?php echo encodeHtml(htmlentities(@$maxlength)) ?>" class="upload" /> + </div> + </div> + <div class="line or-dropzone-upload"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('file_max_size'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$max_size)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('HTTP_URL'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createlink.php b/modules/cms/ui/themes/default/html/views/folder/createlink.php @@ -1,29 +1,42 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="createlink" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="createlink" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createlink" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createpage.php b/modules/cms/ui/themes/default/html/views/folder/createpage.php @@ -1,33 +1,51 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="createpage" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_TEMPLATE'))) ?> - </span> - </div> - <div class="input"> - <input name="templateid" value="" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus,name"> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="createpage" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createpage" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_TEMPLATE'))) ?> + </span> + </div> + <div class="input"> + <select name="templateid" size="1"> + <?php foreach($templates as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$templateid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus,name" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createtext.php b/modules/cms/ui/themes/default/html/views/folder/createtext.php @@ -1,63 +1,87 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="createtext" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_FILE'))) ?> - </span> - </label> - </div> - <div class="input"> - <input multiple="multiple" id="req0_file" name="file" size="40" maxlength="<?php echo encodeHtml(htmlentities(@$maxlength)) ?>" class="upload"> - </input> - </div> - </div> - <div class="line or-dropzone-upload"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('file_max_size'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$max_size)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('HTTP_URL'))) ?> - </span> - </div> - <div class="input"> - <input name="url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" class=""> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="createtext" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createtext" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_FILE'))) ?> + </span> + </label> + </div> + <div class="input"> + <input multiple="multiple" id="req0_file" name="file" size="40" maxlength="<?php echo encodeHtml(htmlentities(@$maxlength)) ?>" class="upload" /> + </div> + </div> + <div class="line or-dropzone-upload"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('file_max_size'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$max_size)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('HTTP_URL'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/createurl.php b/modules/cms/ui/themes/default/html/views/folder/createurl.php @@ -1,39 +1,53 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="createurl" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('URL'))) ?> - </span> - </div> - <div class="input"> - <input name="url" type="text" maxlength="256" value="" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> - </span> - </div> - <div class="input"> - <textarea name="description" disabled="" maxlength="0" class="inputarea"> - </textarea> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="createurl" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="createurl" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('URL'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="url" type="text" maxlength="256" value="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_DESCRIPTION'))) ?> + </span> + </div> + <div class="input"> + <textarea name="description" disabled="" maxlength="0" class="inputarea"> + </textarea> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/edit.php b/modules/cms/ui/themes/default/html/views/folder/edit.php @@ -1,69 +1,78 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('TYPE'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LASTCHANGE'))) ?> - </span> - </th> - </tr> - <?php $if3=(isset($up_url)); if($if3) { ?> - <tr class="data clickable"> - <td class=""> - <a target="_self" data-type="open" data-action="folder" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$parentid)) ?>" data-extra="[]" href="/#/folder/<?php echo encodeHtml(htmlentities(@$parentid)) ?>" class=""> - <i class="image-icon image-icon--action-folder"> - </i> - <span class="">.. - </span> - </a> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php } ?> - <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data clickable"> - <td class=""> - <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$icon)) ?>"> - </i> - </td> - <td class=""> - <a title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <span class=""> - </span> - </a> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php $if3=(($object)==FALSE); if($if3) { ?> - <tr class=""> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div> - <div class="clickable"> - <a target="_self" data-type="dialog" data-action="folder" data-method="create" data-id="" data-extra="{'dialogAction':'folder','dialogMethod':'create'}" href="/#/folder/" class="or-link-btn"> - <i class="image-icon image-icon--action-new"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('TYPE'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('LASTCHANGE'))) ?> + </span> + </th> + </tr> + <?php $if1=(isset($up_url)); if($if1) { ?> + <tr class="data clickable"> + <td> + <a target="_self" data-type="open" data-action="folder" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$parentid)) ?>" data-extra="[]" href="/#/folder/<?php echo encodeHtml(htmlentities(@$parentid)) ?>"> + <i class="image-icon image-icon--action-folder"> + </i> + <span>.. + </span> + </a> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php } ?> + <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data clickable"> + <td> + <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$icon)) ?>"> + </i> + </td> + <td> + <a title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <span> + </span> + </a> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php $if1=(($object)==FALSE); if($if1) { ?> + <tr> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <div class="clickable"> + <a target="_self" data-type="dialog" data-action="folder" data-method="create" data-id="" data-extra="{'dialogAction':'folder','dialogMethod':'create'}" href="/#/folder/" class="or-link-btn"> + <i class="image-icon image-icon--action-new"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/inherit.php b/modules/cms/ui/themes/default/html/views/folder/inherit.php @@ -1,21 +1,44 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="inherit" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <?php $if3=($type=='folder'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php { $inherit= '1'; ?> - <?php } ?> - <input name="inherit" type="checkbox" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$inherit)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('inherit_rights'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="inherit" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="inherit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=($type=='folder'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $inherit= '1'; ?> + <?php } ?> + <div class="inputholder"> + <input name="inherit" type="checkbox" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$inherit)) ?>" /> + </div> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('inherit_rights'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/order.php b/modules/cms/ui/themes/default/html/views/folder/order.php @@ -1,55 +1,73 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="order" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class="or-table--sortable"> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FOLDER_ORDER'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_FILENAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LASTCHANGE'))) ?> - </span> - </td> - </tr> - <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> - <tr data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="data"> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class="sort-value"><?php echo encodeHtml(htmlentities(@$icon)) ?> - </span> - <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$icon)) ?>"> - </i> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div> - <input type="hidden" name="order" value="<?php echo encodeHtml(htmlentities(@$order)) ?>" class=""> - </input> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="order" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="order" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%" class="or-table--sortable"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('FOLDER_ORDER'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_FILENAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LASTCHANGE'))) ?> + </span> + </td> + </tr> + <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> + <tr data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="data"> + <td> + <span> + </span> + </td> + <td> + <span class="sort-value"><?php echo encodeHtml(htmlentities(@$icon)) ?> + </span> + <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$icon)) ?>"> + </i> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <input type="hidden" name="order" value="<?php echo encodeHtml(htmlentities(@$order)) ?>" /> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/pub.php b/modules/cms/ui/themes/default/html/views/folder/pub.php @@ -1,75 +1,91 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form folder"> - <?php $if3=($pages); if($if3) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="pages" value="1" <?php if(''.@$pages.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_pages'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <?php $if3=($files); if($if3) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="files" value="1" <?php if(''.@$files.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_files'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php $if4=(isset($subdirs)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="subdirs" disabled="disabled" value="1" <?php if(''.@$subdirs.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_PUBLISH_WITH_SUBDIRS'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <?php $if4=(isset($clean)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="clean" value="1" <?php if(''.@$clean.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_CLEAN_AFTER_PUBLISH'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=($pages); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="pages" value="1" <?php if(@$pages){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('global_pages'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <?php $if1=($files); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="files" value="1" <?php if(@$files){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('global_files'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php $if1=(isset($subdirs)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="subdirs" disabled="disabled" value="1" <?php if(@$subdirs){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_PUBLISH_WITH_SUBDIRS'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <?php $if1=(isset($clean)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="clean" value="1" <?php if(@$clean){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('global_CLEAN_AFTER_PUBLISH'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('publish'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/remove.php b/modules/cms/ui/themes/default/html/views/folder/remove.php @@ -1,9 +1,31 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span></span></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="withChildren" disabled="disabled" value="1" <?php if(''.@$withChildren.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="folder" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form folder"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="folder" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:GLOBAL_NAME + </span> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">GLOBAL_DELETE + </span> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">GLOBAL_DELETE_WITH_CHILDREN + </span> + <input type="checkbox" name="withChildren" disabled="disabled" value="1" <?php if(@$withChildren){ ?>checked="1"<?php } ?> /> + </label> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/show.php b/modules/cms/ui/themes/default/html/views/folder/show.php @@ -1,65 +1,73 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('TYPE'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LASTCHANGE'))) ?> - </span> - </th> - </tr> - <?php $if3=(isset($up_url)); if($if3) { ?> - <tr class="data clickable"> - <td class=""> - <i class="image-icon image-icon--action-folder"> - </i> - </td> - <td class=""> - <span class="">.. - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php } ?> - <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable <?php echo encodeHtml(htmlentities(@$class)) ?>"> - <img src="./modules/cms-ui/themes/default/images/icon_<?php echo encodeHtml(htmlentities(@$icon)) ?>.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <span class=""> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php $if3=(($object)==FALSE); if($if3) { ?> - <tr class=""> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div> - <div class="clickable"> - <a target="_self" data-type="view" data-action="folder" data-method="create" data-id="" data-extra="[]" href="/#/folder/" class="or-link-btn"> - <i class="image-icon image-icon--action-new"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('TYPE'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('LASTCHANGE'))) ?> + </span> + </th> + </tr> + <?php $if1=(isset($up_url)); if($if1) { ?> + <tr class="data clickable"> + <td> + <i class="image-icon image-icon--action-folder"> + </i> + </td> + <td> + <span>.. + </span> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php } ?> + <?php foreach($object as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable <?php echo encodeHtml(htmlentities(@$class)) ?>"> + <img src="./modules/cms/ui/themes/default/images/icon_<?php echo encodeHtml(htmlentities(@$icon)) ?>.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <span> + </span> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php $if1=(($object)==FALSE); if($if1) { ?> + <tr> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <div class="clickable"> + <a target="_self" data-type="view" data-action="folder" data-method="create" data-id="" data-extra="[]" href="/#/folder/" class="or-link-btn"> + <i class="image-icon image-icon--action-new"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/structure.php b/modules/cms/ui/themes/default/html/views/folder/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/group/add.php b/modules/cms/ui/themes/default/html/views/group/add.php @@ -1,13 +1,27 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="group" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/group/info.php b/modules/cms/ui/themes/default/html/views/group/info.php @@ -1,47 +1,56 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> - <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input clickable"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <a target="_self" data-type="edit" data-action="group" data-method="prop" data-id="" data-extra="[]" href="/#/group/" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USERS'))) ?> - </span> - </div> - <div class="input"> - <?php foreach($users as $id=>$name) { ?> - <div class="clickable"> - <a target="_self" data-type="open" data-action="user" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/user/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - <br> - </br> - </div> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input clickable"> - <a target="_self" data-type="edit" data-action="group" data-method="memberships" data-id="" data-extra="[]" href="/#/group/" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="group" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input clickable"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <a target="_self" data-type="edit" data-action="group" data-method="prop" data-id="" data-extra="[]" href="/#/group/" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USERS'))) ?> + </span> + </div> + <div class="input"> + <?php foreach($users as $id=>$name) { ?> + <div class="clickable"> + <a target="_self" data-type="open" data-action="user" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/user/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + <br /> + </div> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input clickable"> + <a target="_self" data-type="edit" data-action="group" data-method="memberships" data-id="" data-extra="[]" href="/#/group/" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + <div class="or-form-actionbar"> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/group/memberships.php b/modules/cms/ui/themes/default/html/views/group/memberships.php @@ -1,33 +1,52 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="memberships" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form group"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td width="10%" class=""> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - </tr> - <?php foreach($memberships as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$var)) ?>" value="1" <?php if(''.@$${var.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - <td class=""> - <label class="label"> - <i class="image-icon image-icon--action-user"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </label> - </td> - </tr> - <?php } ?> - </table></div></div> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="memberships" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form group"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="group" /> + <input type="hidden" name="subaction" value="memberships" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td width="10%"> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + </tr> + <?php foreach($memberships as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$var)) ?>" value="1" <?php if(@$${var}){ ?>checked="1"<?php } ?> /> + </td> + <td> + <label class="label"> + <i class="image-icon image-icon--action-user"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </label> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/group/prop.php b/modules/cms/ui/themes/default/html/views/group/prop.php @@ -1,15 +1,28 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="group" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="100" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="name focus"> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="group" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="group" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="100" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="name focus" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/group/remove.php b/modules/cms/ui/themes/default/html/views/group/remove.php @@ -1,25 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="confirm" value="1" <?php if(''.@$confirm.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('GROUP_DELETE'))) ?> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="group" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form group"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="group" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="confirm" value="1" <?php if(@$confirm){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('GROUP_DELETE'))) ?> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/group/rights.php b/modules/cms/ui/themes/default/html/views/group/rights.php @@ -1,87 +1,108 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> - <tr class=""> - <td class=""> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php $if7=(($rights)==FALSE); if($if7) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <?php $if7=!(($rights)==FALSE); if($if7) { ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> - </span> - </td> - <?php foreach($show as $list_key=>$t) { ?> - <td class="help"> - <span title="message:acl<?php echo encodeHtml(htmlentities()) ?>" class=""><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} - </span> - </td> - <?php } ?> - </tr> - <?php foreach($rights as $aclid=>$acl) { extract($acl); ?> - <tr class="data clickable"> - <td class=""> - <?php $if12=(isset($groupname)); if($if12) { ?> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$groupname)) ?> - </span> - <?php } ?> - <?php $if12=!(isset($username)); if($if12) { ?> - <?php $if13=!(isset($groupname)); if($if13) { ?> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_all'))) ?> - </span> - <?php } ?> - <?php } ?> - <?php { unset($username) ?> - <?php } ?> - <?php { unset($groupname) ?> - <?php } ?> - </td> - <td title="<?php echo encodeHtml(htmlentities(@$objectname)) ?>" class=""> - <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$objecttype)) ?>"> - </i> - <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$objecttype)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$objecttype)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$objectname)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$languagename)) ?> - </span> - </td> - <?php foreach($show as $list_key=>$list_value) { ?> - <td class=""> - <?php { $$list_value= $bits[$list_value]; ?> - <?php } ?> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$list_value)) ?>" disabled="disabled" value="1" <?php if(''.@$${list_value.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - <?php } ?> - </tr> - <?php } ?> - </table></div></div> - <?php } ?> - </div></fieldset> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-area"> + <table width="100%"> + <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> + <tr> + <td> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@$projectname)) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php $if1=(($rights)==FALSE); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <?php $if1=!(($rights)==FALSE); if($if1) { ?> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> + </span> + </td> + <?php foreach($show as $list_key=>$t) { ?> + <td class="help"> + <span title="message:acl<?php echo encodeHtml(htmlentities()) ?>"><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} + </span> + </td> + <?php } ?> + </tr> + <?php foreach($rights as $aclid=>$acl) { extract($acl); ?> + <tr class="data clickable"> + <td> + <?php $if1=(isset($groupname)); if($if1) { ?> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@$groupname)) ?> + </span> + <?php } ?> + <?php $if1=!(isset($username)); if($if1) { ?> + <?php $if1=!(isset($groupname)); if($if1) { ?> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('global_all'))) ?> + </span> + <?php } ?> + <?php } ?> + <?php { unset($username) ?> + <?php } ?> + <?php { unset($groupname) ?> + <?php } ?> + </td> + <td title="<?php echo encodeHtml(htmlentities(@$objectname)) ?>"> + <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$objecttype)) ?>"> + </i> + <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$objecttype)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$objecttype)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$objectname)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$languagename)) ?> + </span> + </td> + <?php foreach($show as $list_key=>$list_value) { ?> + <td> + <?php { $$list_value= $bits[$list_value]; ?> + <?php } ?> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$list_value)) ?>" disabled="disabled" value="1" <?php if(@$${list_value}){ ?>checked="1"<?php } ?> /> + </td> + <?php } ?> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?> + </div> + </fieldset> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/grouplist/add.php b/modules/cms/ui/themes/default/html/views/grouplist/add.php @@ -1,13 +1,26 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="grouplist" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form grouplist"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="grouplist" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form grouplist"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="grouplist" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/grouplist/show.php b/modules/cms/ui/themes/default/html/views/grouplist/show.php @@ -1,31 +1,41 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="group" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="group" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/group/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td colspan="2" class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('menu_add'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('menu_add'))) ?>" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="group" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="group" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/group/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td colspan="2" class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('menu_add'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('menu_add'))) ?>" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/compress.php b/modules/cms/ui/themes/default/html/views/image/compress.php @@ -1,33 +1,55 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="compress" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </div> - <div class="input"> - <?php { $gz= 'gz'; ?> - <?php } ?> - <input name="format" value="gz" size="1" class=""> - </input> - <?php { $replace= '1'; ?> - <?php } ?> - <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="compress" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="compress" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('OPTIONS'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </div> + <div class="input"> + <?php { $gz= 'gz'; ?> + <?php } ?> + <select name="format" size="1"> + <?php foreach($formats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key=='gz'){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php { $replace= '1'; ?> + <?php } ?> + <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> + </span> + </label> + <br /> + <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/edit.php b/modules/cms/ui/themes/default/html/views/image/edit.php @@ -1,23 +1,31 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <br> - </br> - <input id="req0_file" name="file" size="40" class="upload"> - </input> - <br> - </br> - <br> - </br> - </div> - </div> - <div class="line or-dropzone-upload"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <br /> + <input id="req0_file" name="file" size="40" class="upload" /> + <br /> + <br /> + </div> + </div> + <div class="line or-dropzone-upload"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/extract.php b/modules/cms/ui/themes/default/html/views/image/extract.php @@ -1,7 +1,22 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="extract" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="extract" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="extract" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/preview.php b/modules/cms/ui/themes/default/html/views/image/preview.php @@ -1,3 +1,5 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" class=""> - </iframe>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>"> + </iframe> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/pub.php b/modules/cms/ui/themes/default/html/views/image/pub.php @@ -1,19 +1,30 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form image"> - <tr class=""> - <td class=""> - <br> - </br> - </td> - </tr> - <tr class=""> - <td class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <tr> + <td> + <br /> + </td> + </tr> + <tr> + <td class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('publish'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/remove.php b/modules/cms/ui/themes/default/html/views/image/remove.php @@ -1,27 +1,42 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DELETE'))) ?> - </span> - </td> - <td class=""> - <input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - </tr> - <tr class=""> - <td colspan="2" class=""> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DELETE'))) ?> + </span> + </td> + <td> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </td> + </tr> + <tr> + <td colspan="2"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/show.php b/modules/cms/ui/themes/default/html/views/image/show.php @@ -1,19 +1,21 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <tr class=""> - <td colspan="2" class=""> - <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" class=""> - </iframe> - <a target="_self" data-action="file" data-method="edit" data-id="" data-extra="[]" href="/#/file/" class="action"> - <img src="./modules/cms-ui/themes/default/images/icon/icon/edit.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_file_edit'))) ?> - </span> - </a> - <a target="_self" data-action="file" data-method="editvalue" data-id="" data-extra="[]" href="/#/file/" class="action"> - <img src="./modules/cms-ui/themes/default/images/icon/icon/editvalue.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_file_editvalue'))) ?> - </span> - </a> - </td> - </tr>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + + <tr> + <td colspan="2"> + <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>"> + </iframe> + <a target="_self" data-action="file" data-method="edit" data-id="" data-extra="[]" href="/#/file/" class="action"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/edit.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_file_edit'))) ?> + </span> + </a> + <a target="_self" data-action="file" data-method="editvalue" data-id="" data-extra="[]" href="/#/file/" class="action"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/editvalue.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_file_editvalue'))) ?> + </span> + </a> + </td> + </tr> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/size.php b/modules/cms/ui/themes/default/html/views/image/size.php @@ -1,99 +1,140 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="size" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('IMAGE_OLD_SIZE'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$width)) ?> - </span> - <span class=""> * - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$height)) ?> - </span> - </div> - </div> - <?php $if3=!(($formats)==FALSE); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="factor" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_SIZE_FACTOR'))) ?> - </span> - </label> - <input name="factor" value="<?php echo encodeHtml(htmlentities(@$factor)) ?>" size="1" class=""> - </input> - <?php { $factor= '1'; ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="input" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_NEW_WIDTH_HEIGHT'))) ?> - </span> - </label> - </div> - <div class="label"> - </div> - <div class="input"> - <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" class=""> - </input> - <span class=""> * - </span> - <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_FORMAT'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="format" value="<?php echo encodeHtml(htmlentities(@$format)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_JPEG_COMPRESSION'))) ?> - </span> - </label> - </div> - <div class="input"> - <?php { $jpeg_compression= '70'; ?> - <?php } ?> - <input name="jpeg_compression" value="<?php echo encodeHtml(htmlentities(@$jpeg_compression)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="copy" value="1" <?php if(''.@$copy.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="size" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="size" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('IMAGE_OLD_SIZE'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$width)) ?> + </span> + <span> * + </span> + <span><?php echo encodeHtml(htmlentities(@$height)) ?> + </span> + </div> + </div> + <?php $if1=!(($formats)==FALSE); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('IMAGE_NEW_SIZE'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="factor" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_SIZE_FACTOR'))) ?> + </span> + </label> + <select name="factor" size="1"> + <?php foreach($factors as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$factor){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php { $factor= '1'; ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="input" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_NEW_WIDTH_HEIGHT'))) ?> + </span> + </label> + </div> + <div class="label"> + </div> + <div class="input"> + <div class="inputholder"> + <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" /> + </div> + <span> * + </span> + <div class="inputholder"> + <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_FORMAT'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="format" size="1"> + <?php foreach($formats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$format){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_JPEG_COMPRESSION'))) ?> + </span> + </label> + </div> + <div class="input"> + <?php { $jpeg_compression= '70'; ?> + <?php } ?> + <select name="jpeg_compression" size="1"> + <?php foreach($jpeglist as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$jpeg_compression){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="copy" value="1" <?php if(@$copy){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/structure.php b/modules/cms/ui/themes/default/html/views/image/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/uncompress.php b/modules/cms/ui/themes/default/html/views/image/uncompress.php @@ -1,27 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="uncompress" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php { $replace= '1'; ?> - <?php } ?> - <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="uncompress" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="uncompress" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $replace= '1'; ?> + <?php } ?> + <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> + </span> + </label> + <br /> + <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/image/value.php b/modules/cms/ui/themes/default/html/views/image/value.php @@ -1,17 +1,32 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> - </span> - </td> - <td class=""> - <textarea name="value" data-extension="" data-mimetype="" data-mode="htmlmixed" class="editor code-editor"> - </textarea> - </td> - </tr> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="image" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form image"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="image" /> + <input type="hidden" name="subaction" value="value" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> + </span> + </td> + <td> + <textarea name="value" data-extension="" data-mimetype="" data-mode="htmlmixed" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$value)) ?> + </textarea> + </td> + </tr> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/language/add.php b/modules/cms/ui/themes/default/html/views/language/add.php @@ -1,13 +1,29 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="language" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> - </span> - </div> - <div class="input"> - <input name="isocode" value="<?php echo encodeHtml(htmlentities(@$isocode)) ?>" size="1" class=""> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="language" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="language" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> + </span> + </div> + <div class="input"> + <select name="isocode" size="1"> + <?php foreach($isocodes as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$isocode){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/language/info.php b/modules/cms/ui/themes/default/html/views/language/info.php @@ -1,35 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="language" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> - <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input clickable"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> - </span> - </div> - <div class="input clickable"> - <span class=""><?php echo encodeHtml(htmlentities(@$isocode)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input clickable"> - <a target="_self" data-type="edit" data-action="language" data-method="prop" data-id="" data-extra="[]" href="/#/language/" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="language" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="language" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input clickable"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> + </span> + </div> + <div class="input clickable"> + <span><?php echo encodeHtml(htmlentities(@$isocode)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input clickable"> + <a target="_self" data-type="edit" data-action="language" data-method="prop" data-id="" data-extra="[]" href="/#/language/" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + <div class="or-form-actionbar"> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/language/listing.php b/modules/cms/ui/themes/default/html/views/language/listing.php @@ -1,59 +1,69 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon_language.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$isocode)) ?> - </span> - </td> - <td class=""> - <?php $if8=(isset($default_url)); if($if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> - </span> - <?php } ?> - <?php if(!$if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> - </span> - <?php } ?> - </td> - <td class=""> - <?php $if8=(isset($select_url)); if($if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_select'))) ?> - </span> - <?php } ?> - <?php if(!$if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_selected'))) ?> - </span> - <?php } ?> - </td> - </tr> - <?php { unset($select_url) ?> - <?php } ?> - <?php { unset($default_url) ?> - <?php } ?> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span> + </span> + </td> + <td> + <span> + </span> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <img src="./modules/cms/ui/themes/default/images/icon/icon_language.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$isocode)) ?> + </span> + </td> + <td> + <?php $if1=(isset($default_url)); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> + </span> + <?php } ?> + <?php if(!$if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> + </span> + <?php } ?> + </td> + <td> + <?php $if1=(isset($select_url)); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_select'))) ?> + </span> + <?php } ?> + <?php if(!$if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_selected'))) ?> + </span> + <?php } ?> + </td> + </tr> + <?php { unset($select_url) ?> + <?php } ?> + <?php { unset($default_url) ?> + <?php } ?> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/language/prop.php b/modules/cms/ui/themes/default/html/views/language/prop.php @@ -1,33 +1,47 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="language" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> - </span> - </div> - <div class="input"> - <input name="isocode" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$isocode)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="is_default" disabled="disabled" value="1" <?php if(''.@$is_default.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="language" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="language" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="isocode" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$isocode)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="is_default" disabled="disabled" value="1" <?php if(@$is_default){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/language/remove.php b/modules/cms/ui/themes/default/html/views/language/remove.php @@ -1,29 +1,52 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="language" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="confirm" value="1" <?php if(''.@$confirm.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="language" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form language"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="language" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="confirm" value="1" <?php if(@$confirm){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/language/structure.php b/modules/cms/ui/themes/default/html/views/language/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/languagelist/add.php b/modules/cms/ui/themes/default/html/views/languagelist/add.php @@ -1,13 +1,29 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="languagelist" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form languagelist"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> - </span> - </div> - <div class="input"> - <input name="isocode" value="<?php echo encodeHtml(htmlentities(@$isocode)) ?>" size="1" class=""> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="languagelist" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form languagelist"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="languagelist" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> + </span> + </div> + <div class="input"> + <select name="isocode" size="1"> + <?php foreach($isocodes as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$isocode){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/languagelist/show.php b/modules/cms/ui/themes/default/html/views/languagelist/show.php @@ -1,65 +1,74 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <i class="image-icon image-icon--action-language"> - </i> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="language" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/language/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$isocode)) ?> - </span> - </td> - <?php $if5=(!$is_default); if($if5) { ?> - <td class="clickable"> - <?php $if7=(isset($id)); if($if7) { ?> - <a target="_self" data-type="post" data-action="language" data-method="setdefault" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" data-data="{"action":"language","subaction":"setdefault","id":"<?php echo encodeHtml(htmlentities(@$id)) ?>",\"token":"<?php echo token() ?>","none":"0"}"" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> - </span> - </a> - <?php } ?> - <?php if(!$if7) { ?> - <?php } ?> - </td> - <?php } ?> - <?php if(!$if5) { ?> - <td class=""> - <em class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> - </em> - </td> - <?php } ?> - </tr> - <?php { unset($select_url) ?> - <?php } ?> - <?php { unset($default_url) ?> - <?php } ?> - <?php } ?> - <tr class="data"> - <td colspan="3" class="clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('LANGUAGE_ISOCODE'))) ?> + </span> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <i class="image-icon image-icon--action-language"> + </i> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="language" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/language/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$isocode)) ?> + </span> + </td> + <?php $if1=(!$is_default); if($if1) { ?> + <td class="clickable"> + <?php $if1=(isset($id)); if($if1) { ?> + <a target="_self" data-type="post" data-action="language" data-method="setdefault" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" data-data="{"action":"language","subaction":"setdefault","id":"<?php echo encodeHtml(htmlentities(@$id)) ?>",\"token":"<?php echo token() ?>","none":"0"}""> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> + </span> + </a> + <?php } ?> + <?php if(!$if1) { ?> + <?php } ?> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <td> + <em><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> + </em> + </td> + <?php } ?> + </tr> + <?php { unset($select_url) ?> + <?php } ?> + <?php { unset($default_url) ?> + <?php } ?> + <?php } ?> + <tr class="data"> + <td colspan="3" class="clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/link/edit.php b/modules/cms/ui/themes/default/html/views/link/edit.php @@ -1,13 +1,28 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="link" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form link"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('link_target'))) ?> - </span> - </div> - <div class="input"> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="link" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form link"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="link" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('link_target'))) ?> + </span> + </div> + <div class="input"> + + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/link/remove.php b/modules/cms/ui/themes/default/html/views/link/remove.php @@ -1,7 +1,26 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="link" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form link"> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span></span></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="link" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form link"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="link" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:GLOBAL_NAME + </span> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">GLOBAL_DELETE + </span> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </label> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/link/structure.php b/modules/cms/ui/themes/default/html/views/link/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/license.php b/modules/cms/ui/themes/default/html/views/login/license.php @@ -1,123 +1,165 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-form"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$user_name)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_FULLNAME'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$user_fullname)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_LOGIN_DATE'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($user_login); ?> - <?php } ?> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$cms_name)) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$cms_version)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('OPERATOR'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$cms_operator)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('DATE_TIME'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$time)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('OPERATING_SYSTEM'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$os)) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$release)) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$machine)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('INTERPRETER'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$version)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('license'))) ?> - </span> - </td> - </tr> - <?php foreach($software as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-type="external" data-action="" data-method="" data-id="" data-extra="[]" href="<?php echo encodeHtml(htmlentities(@$url)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$license)) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div> - </div></fieldset> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-form"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('USER'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$user_name)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_FULLNAME'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$user_fullname)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_LOGIN_DATE'))) ?> + </span> + </div> + <div class="input"> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($user_login); ?> + <?php } ?> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('CMS'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$cms_name)) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@$cms_version)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('OPERATOR'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$cms_operator)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('SYSTEM'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('DATE_TIME'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$time)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('OPERATING_SYSTEM'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$os)) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@$release)) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@$machine)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('INTERPRETER'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$version)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('LICENSE'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="or-table-wrapper"> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('license'))) ?> + </span> + </td> + </tr> + <?php foreach($software as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-type="external" data-action="" data-method="" data-id="" data-extra="[]" href="<?php echo encodeHtml(htmlentities(@$url)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$license)) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + </div> + </fieldset> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/login.php b/modules/cms/ui/themes/default/html/views/login/login.php @@ -1,147 +1,185 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="login" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" data-after-success="reloadAll" class="or-form login"> - <?php $if3=(config('login','logo','enabled')); if($if3) { ?> - <?php $if4=!((config('login','logo','url'))==FALSE); if($if4) { ?> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(config('login','logo','url'))) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <img src="<?php echo encodeHtml(htmlentities(config('login','logo','image'))) ?>" class=""> - </img> - </a> - <?php } ?> - <?php if(!$if4) { ?> - <img src="<?php echo encodeHtml(htmlentities(config('login','logo','image'))) ?>" class=""> - </img> - <?php } ?> - <?php } ?> - <?php $if3=!((config('login','motd'))==FALSE); if($if3) { ?> - <div class="message info"> - <span class=""><?php echo encodeHtml(htmlentities(config('login','motd'))) ?> - </span> - </div> - <?php } ?> - <?php $if3=(config('login','nologin')); if($if3) { ?> - <div class="message error"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LOGIN_NOLOGIN_DESC'))) ?> - </span> - </div> - <?php } ?> - <?php $if3=(config('security','readonly')); if($if3) { ?> - <div class="message warn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_READONLY_DESC'))) ?> - </span> - </div> - <?php } ?> - <?php $if3=(!config('login','nologin')); if($if3) { ?> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> - </span> - </label> - </div> - <div class="input"> - <?php $if6=!(isset($force_username)); if($if6) { ?> - <input name="login_name" required="required" placeholder="<?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?>" autofocus="autofocus" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$login_name)) ?>" class="name"> - </input> - <?php } ?> - <?php if(!$if6) { ?> - <input type="hidden" name="login_name" value="<?php echo encodeHtml(htmlentities(@$login_name)) ?>" class=""> - </input> - <span class=""><?php echo encodeHtml(htmlentities(@$force_username)) ?> - </span> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_PASSWORD'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="login_password" size="20" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$login_password)) ?>" class="name"> - </input></div> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="remember" value="1" <?php if(''.@$remember.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('REMEMBER_ME'))) ?> - </span> - </label> - </div> - </div> - <?php } ?> - <fieldset class="or-group toggle-open-close closed"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password1" size="25" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password1)) ?>" class=""> - </input></div> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD_REPEAT'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password2" size="25" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password2)) ?>" class=""> - </input></div> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close closed"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_TOKEN'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="user_token" type="text" maxlength="30" value="" class=""> - </input> - </div> - </div> - </div></fieldset> - <?php $if3=(intval('1')<intval('size:dbids')); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('DATABASE'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="dbid" value="<?php echo encodeHtml(htmlentities(@$dbid)) ?>" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - <?php } ?> - <?php if(!$if3) { ?> - <input type="hidden" name="dbid" value="<?php echo encodeHtml(htmlentities(@$dbid)) ?>" class=""> - </input> - <?php } ?> - <input type="hidden" name="objectid" value="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - </input> - <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" class=""> - </input> - <input type="hidden" name="projectid" value="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" class=""> - </input> - <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" class=""> - </input> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="login" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" data-after-success="reloadAll" class="or-form login"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="login" /> + <input type="hidden" name="subaction" value="login" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=(config('login','logo','enabled')); if($if1) { ?> + <?php $if1=!((config('login','logo','url'))==FALSE); if($if1) { ?> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(config('login','logo','url'))) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <img src="<?php echo encodeHtml(htmlentities(config('login','logo','image'))) ?>" /> + </a> + <?php } ?> + <?php if(!$if1) { ?> + <img src="<?php echo encodeHtml(htmlentities(config('login','logo','image'))) ?>" /> + <?php } ?> + <?php } ?> + <?php $if1=!((config('login','motd'))==FALSE); if($if1) { ?> + <div class="message info"> + <span><?php echo encodeHtml(htmlentities(config('login','motd'))) ?> + </span> + </div> + <?php } ?> + <?php $if1=(config('login','nologin')); if($if1) { ?> + <div class="message error"> + <span><?php echo encodeHtml(htmlentities(@lang('LOGIN_NOLOGIN_DESC'))) ?> + </span> + </div> + <?php } ?> + <?php $if1=(config('security','readonly')); if($if1) { ?> + <div class="message warn"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_READONLY_DESC'))) ?> + </span> + </div> + <?php } ?> + <?php $if1=(!config('login','nologin')); if($if1) { ?> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> + </span> + </label> + </div> + <div class="input"> + <?php $if1=!(isset($force_username)); if($if1) { ?> + <div class="inputholder"> + <input name="login_name" required="required" placeholder="<?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?>" autofocus="autofocus" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$login_name)) ?>" class="name" /> + </div> + <?php } ?> + <?php if(!$if1) { ?> + <input type="hidden" name="login_name" value="<?php echo encodeHtml(htmlentities(@$login_name)) ?>" /> + <span><?php echo encodeHtml(htmlentities(@$force_username)) ?> + </span> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_PASSWORD'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="login_password" size="20" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$login_password)) ?>" class="name" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="remember" value="1" <?php if(@$remember){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('REMEMBER_ME'))) ?> + </span> + </label> + </div> + </div> + <?php } ?> + <fieldset class="or-group toggle-open-close closed"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password1" size="25" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password1)) ?>" class="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD_REPEAT'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password2" size="25" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password2)) ?>" class="" /> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close closed"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('USER_TOKEN'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_TOKEN'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="user_token" type="text" maxlength="30" value="" /> + </div> + </div> + </div> + </div> + </fieldset> + <?php $if1=(intval('1')<intval('size:dbids')); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('DATABASE'))) ?> + <img src="themes/default/images/icon/method/database.svg" />" /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('DATABASE'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="dbid" size="1"> + <?php foreach($dbids as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$dbid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <?php if(!$if1) { ?> + <input type="hidden" name="dbid" value="<?php echo encodeHtml(htmlentities(@$dbid)) ?>" /> + <?php } ?> + <input type="hidden" name="objectid" value="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" /> + <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" /> + <input type="hidden" name="projectid" value="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" /> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('menu_login'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/openid.php b/modules/cms/ui/themes/default/html/views/login/openid.php @@ -1,63 +1,97 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="_top" action="./" data-method="login" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> - <?php $if3=(config('security','openid','enable')); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('openid_user'))) ?> - </span> - <?php $if7=!((config('security','openid','logo_url'))==FALSE); if($if7) { ?> - <img src="<?php echo encodeHtml(htmlentities(config('security','openid','logo_url'))) ?>" class=""> - </img> - <?php } ?> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php'); { <?php component_radio_box(openid_provider,$openid_providers,${openid_provider}) ?> ?> - <?php } ?> - <?php $if7=($openid_user_identity); if($if7) { ?> - <input type="radio" name="openid_provider" disabled="" value="identity" checked="<?php echo encodeHtml(htmlentities(@$openid_provider)) ?>" class=""> - </input> - <input name="openid_url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$openid_url)) ?>" class="name"> - </input> - <?php } ?> - </div> - </div> - </div></fieldset> - <?php $if4=(intval('1')<intval('size:dbids')); if($if4) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('DATABASE'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="dbid" value="<?php echo encodeHtml(htmlentities(@$actdbid)) ?>" size="1" class=""> - </input> - <input type="hidden" name="screenwidth" value="9999" class=""> - </input> - </div> - </div> - </div></fieldset> - <?php } ?> - <?php if(!$if4) { ?> - <input type="hidden" name="dbid" value="<?php echo encodeHtml(htmlentities(@$actdbid)) ?>" class=""> - </input> - <?php } ?> - <input type="hidden" name="objectid" value="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - </input> - <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" class=""> - </input> - <input type="hidden" name="projectid" value="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" class=""> - </input> - <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" class=""> - </input> - <?php } ?> - <?php if(!$if3) { ?> - <div class="message error"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('OPENID_NOT_ENABLED'))) ?> - </span> - </div> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="_top" action="./" data-method="login" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="login" /> + <input type="hidden" name="subaction" value="login" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=(config('security','openid','enable')); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('OPENID'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('openid_user'))) ?> + </span> + <?php $if1=!((config('security','openid','logo_url'))==FALSE); if($if1) { ?> + <img src="<?php echo encodeHtml(htmlentities(config('security','openid','logo_url'))) ?>" /> + <?php } ?> + </div> + <div class="input"> + <?php foreach( $openid_providers as $_key=>$_value) { ?> + <label> + <input type="radio" name="openid_provider" value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$openid_provider){ ?>checked="checked"<?php } ?> /> + <span><?php echo encodeHtml(htmlentities(@$_value)) ?> + </span> + </label> + <br /> + <?php } ?> + <?php $if1=($openid_user_identity); if($if1) { ?> + <input type="radio" name="openid_provider" disabled="" value="identity" checked="<?php echo encodeHtml(htmlentities(@$openid_provider)) ?>" /> + <div class="inputholder"> + <input name="openid_url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$openid_url)) ?>" class="name" /> + </div> + <?php } ?> + </div> + </div> + </div> + </fieldset> + <?php $if1=(intval('1')<intval('size:dbids')); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('DATABASE'))) ?> + <img src="themes/default/images/icon/method/database.svg" />" /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('DATABASE'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="dbid" size="1"> + <?php foreach($dbids as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$actdbid.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <input type="hidden" name="screenwidth" value="9999" /> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <?php if(!$if1) { ?> + <input type="hidden" name="dbid" value="<?php echo encodeHtml(htmlentities(@$actdbid)) ?>" /> + <?php } ?> + <input type="hidden" name="objectid" value="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" /> + <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" /> + <input type="hidden" name="projectid" value="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" /> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + <?php } ?> + <?php if(!$if1) { ?> + <div class="message error"> + <span><?php echo encodeHtml(htmlentities(@lang('OPENID_NOT_ENABLED'))) ?> + </span> + </div> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/password.php b/modules/cms/ui/themes/default/html/views/login/password.php @@ -1,33 +1,60 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('login','send_password')); if($if2) { ?> - <form name="" target="_self" data-target="view" action="./" data-method="password" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> - <div class="line logo"> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> - </span> - </div> - <div class="input"> - <input name="username" autofocus="autofocus" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$username)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DATABASE'))) ?> - </span> - </div> - <div class="input"> - <input name="dbid" value="actdbid" size="1" class=""> - </input> - </div> - </div> - </form> - <?php } ?> - <?php if(!$if2) { ?> - <div class="message error"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('PASSWORD_NOT_ENABLED'))) ?> - </span> - </div> - <?php } ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <?php $if1=(config('login','send_password')); if($if1) { ?> + <form name="" target="_self" data-target="view" action="./" data-method="password" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="login" /> + <input type="hidden" name="subaction" value="password" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_password.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_password'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_password_text'))) ?> + </p> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="username" autofocus="autofocus" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$username)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DATABASE'))) ?> + </span> + </div> + <div class="input"> + <select name="dbid" size="1"> + <?php foreach($dbids as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key=='actdbid'){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?> + <?php if(!$if1) { ?> + <div class="message error"> + <span><?php echo encodeHtml(htmlentities(@lang('PASSWORD_NOT_ENABLED'))) ?> + </span> + </div> + <?php } ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/passwordcode.php b/modules/cms/ui/themes/default/html/views/login/passwordcode.php @@ -1,23 +1,49 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="_top" action="./" data-method="passwordcode" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> - <tr class=""> - <td colspan="2" class="logo"> - <div class="line logo"> - </div> - </td> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('mail_code'))) ?> - </span> - </td> - <td class=""> - <input name="code" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$code)) ?>" class=""> - </input> - </td> - </tr> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="_top" action="./" data-method="passwordcode" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="login" /> + <input type="hidden" name="subaction" value="passwordcode" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td colspan="2" class="logo"> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_password.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_password'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_password_text'))) ?> + </p> + </div> + </div> + </td> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('mail_code'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="code" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$code)) ?>" /> + </div> + </td> + </tr> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/register.php b/modules/cms/ui/themes/default/html/views/login/register.php @@ -1,31 +1,53 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('login','register')); if($if2) { ?> - <form name="" target="_self" data-target="view" action="./" data-method="register" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> - <div class="line logo"> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_MAIL'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="mail" type="text" maxlength="256" value="" class="focus"> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - </form> - <?php } ?> - <?php if(!$if2) { ?> - <div class="message error"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('REGISTER_NOT_ENABLED'))) ?> - </span> - </div> - <?php } ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('login','register')); if($if1) { ?> + <form name="" target="_self" data-target="view" action="./" data-method="register" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="login" /> + <input type="hidden" name="subaction" value="register" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_register.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_register'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_register_text'))) ?> + </p> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_MAIL'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="mail" type="text" maxlength="256" value="" class="focus" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?> + <?php if(!$if1) { ?> + <div class="message error"> + <span><?php echo encodeHtml(htmlentities(@lang('REGISTER_NOT_ENABLED'))) ?> + </span> + </div> + <?php } ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/login/registercode.php b/modules/cms/ui/themes/default/html/views/login/registercode.php @@ -1,45 +1,73 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="registercode" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> - <div class="line logo"> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_REGISTER_CODE'))) ?> - </span> - </div> - <div class="input"> - <input name="code" type="text" maxlength="256" value="" class="focus"> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> - </span> - </div> - <div class="input"> - <input name="username" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$username)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_PASSWORD'))) ?> - </span> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password" size="25" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password)) ?>" class=""> - </input></div> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DATABASE'))) ?> - </span> - </div> - <div class="input"> - <input name="dbid" value="actdbid" size="1" class=""> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="registercode" data-action="login" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form login"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="login" /> + <input type="hidden" name="subaction" value="registercode" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_register.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_register'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_register_text'))) ?> + </p> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_REGISTER_CODE'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="code" type="text" maxlength="256" value="" class="focus" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_USERNAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="username" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$username)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('USER_PASSWORD'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password" size="25" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password)) ?>" class="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DATABASE'))) ?> + </span> + </div> + <div class="input"> + <select name="dbid" size="1"> + <?php foreach($dbids as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key=='actdbid'){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/model/info.php b/modules/cms/ui/themes/default/html/views/model/info.php @@ -1,19 +1,29 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="model" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form model"> - <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input clickable"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <a target="_self" data-type="edit" data-action="model" data-method="prop" data-id="" data-extra="[]" href="/#/model/" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="model" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form model"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="model" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input clickable"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <a target="_self" data-type="edit" data-action="model" data-method="prop" data-id="" data-extra="[]" href="/#/model/" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + <div class="or-form-actionbar"> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/model/listing.php b/modules/cms/ui/themes/default/html/views/model/listing.php @@ -1,53 +1,63 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <a target="_self" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon_model.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <?php $if8=(isset($default_url)); if($if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> - </span> - <?php } ?> - <?php if(!$if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> - </span> - <?php } ?> - </td> - <td class=""> - <?php $if8=(isset($select_url)); if($if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_select'))) ?> - </span> - <?php } ?> - <?php if(!$if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_selected'))) ?> - </span> - <?php } ?> - </td> - </tr> - <?php { unset($select_url) ?> - <?php } ?> - <?php { unset($default_url) ?> - <?php } ?> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span> + </span> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <a target="_self" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <img src="./modules/cms/ui/themes/default/images/icon/icon_model.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <?php $if1=(isset($default_url)); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> + </span> + <?php } ?> + <?php if(!$if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> + </span> + <?php } ?> + </td> + <td> + <?php $if1=(isset($select_url)); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_select'))) ?> + </span> + <?php } ?> + <?php if(!$if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_selected'))) ?> + </span> + <?php } ?> + </td> + </tr> + <?php { unset($select_url) ?> + <?php } ?> + <?php { unset($default_url) ?> + <?php } ?> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/model/prop.php b/modules/cms/ui/themes/default/html/views/model/prop.php @@ -1,23 +1,35 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="model" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form model"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" autofocus="autofocus" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="is_default" disabled="disabled" value="1" <?php if(''.@$is_default.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="model" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form model"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="model" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" autofocus="autofocus" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="is_default" disabled="disabled" value="1" <?php if(@$is_default){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/model/remove.php b/modules/cms/ui/themes/default/html/views/model/remove.php @@ -1,29 +1,52 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="model" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form model"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="confirm" value="1" <?php if(''.@$confirm.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="model" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form model"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="model" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="confirm" value="1" <?php if(@$confirm){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/model/structure.php b/modules/cms/ui/themes/default/html/views/model/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/modellist/add.php b/modules/cms/ui/themes/default/html/views/modellist/add.php @@ -1,13 +1,27 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="modellist" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form modellist"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="modellist" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form modellist"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="modellist" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/modellist/show.php b/modules/cms/ui/themes/default/html/views/modellist/show.php @@ -1,59 +1,68 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="model" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/model/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <i class="image-icon image-icon--action-model"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <?php $if5=(!$is_default); if($if5) { ?> - <td class="clickable"> - <?php $if7=(isset($id)); if($if7) { ?> - <a target="_self" data-type="post" data-action="model" data-method="setdefault" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" data-data="{"action":"model","subaction":"setdefault","id":"<?php echo encodeHtml(htmlentities(@$id)) ?>",\"token":"<?php echo token() ?>","none":"0"}"" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> - </span> - </a> - <?php } ?> - </td> - <?php } ?> - <?php if(!$if5) { ?> - <td class=""> - <em class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> - </em> - </td> - <?php } ?> - </tr> - <?php { unset($select_url) ?> - <?php } ?> - <?php { unset($default_url) ?> - <?php } ?> - <?php } ?> - <tr class="data"> - <td colspan="2" class="clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span> + </span> + </td> + <td> + <span> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="model" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/model/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <i class="image-icon image-icon--action-model"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <?php $if1=(!$is_default); if($if1) { ?> + <td class="clickable"> + <?php $if1=(isset($id)); if($if1) { ?> + <a target="_self" data-type="post" data-action="model" data-method="setdefault" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" data-data="{"action":"model","subaction":"setdefault","id":"<?php echo encodeHtml(htmlentities(@$id)) ?>",\"token":"<?php echo token() ?>","none":"0"}""> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_make_default'))) ?> + </span> + </a> + <?php } ?> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <td> + <em><?php echo encodeHtml(htmlentities(@lang('GLOBAL_is_default'))) ?> + </em> + </td> + <?php } ?> + </tr> + <?php { unset($select_url) ?> + <?php } ?> + <?php { unset($default_url) ?> + <?php } ?> + <?php } ?> + <tr class="data"> + <td colspan="2" class="clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/aclform.php b/modules/cms/ui/themes/default/html/views/object/aclform.php @@ -1,89 +1,140 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="aclform" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="all" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ALL'))) ?> - </span> - </label> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="user" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="userid" value="" size="1" class=""> - </input> - </div> - </div> - <?php $if4=(isset($groups)); if($if4) { ?> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="group" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_GROUP'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="groupid" value="" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="languageid" value="" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php foreach($show as $k=>$t) { ?> - <div class=""> - <?php $if8=($t=='read'); if($if8) { ?> - <?php { $$t= true; ?> - <?php } ?> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$t)) ?>" disabled="disabled" value="1" <?php if(''.@$${t.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - <?php } ?> - <?php if(!$if8) { ?> - <?php { unset($$t) ?> - <?php } ?> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$t)) ?>" value="1" <?php if(''.@$${t.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - <?php } ?> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} - </span> - </label> - </div> - <?php } ?> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="aclform" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="aclform" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('users'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="all" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ALL'))) ?> + </span> + </label> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="user" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="userid" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($users as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$userid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php $if1=(isset($groups)); if($if1) { ?> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="group" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_GROUP'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="groupid" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($groups as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$groupid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('language'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="languageid" size="1"> + <?php foreach($languages as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$languageid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('acl'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php foreach($show as $k=>$t) { ?> + <div class=""> + <?php $if1=($t=='read'); if($if1) { ?> + <?php { $$t= true; ?> + <?php } ?> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$t)) ?>" disabled="disabled" value="1" <?php if(@$${t}){ ?>checked="1"<?php } ?> /> + <?php } ?> + <?php if(!$if1) { ?> + <?php { unset($$t) ?> + <?php } ?> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$t)) ?>" value="1" <?php if(@$${t}){ ?>checked="1"<?php } ?> /> + <?php } ?> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} + </span> + </label> + </div> + <?php } ?> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/copy.php b/modules/cms/ui/themes/default/html/views/object/copy.php @@ -1,31 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="copy" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <div class="line"> - <div class="label"> - <input type="hidden" name="sourceid" value="<?php echo encodeHtml(htmlentities(@$sourceId)) ?>" class=""> - </input> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$source['name'])) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input name="type" value="<?php echo encodeHtml(htmlentities(@$type)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <input type="hidden" name="targetid" value="<?php echo encodeHtml(htmlentities(@$targetId)) ?>" class=""> - </input> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$target['name'])) ?> - </span> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="copy" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="copy" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <input type="hidden" name="sourceid" value="<?php echo encodeHtml(htmlentities(@$sourceId)) ?>" /> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$source['name'])) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <select name="type" size="1"> + <?php foreach($types as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$type){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <input type="hidden" name="targetid" value="<?php echo encodeHtml(htmlentities(@$targetId)) ?>" /> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$target['name'])) ?> + </span> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/info.php b/modules/cms/ui/themes/default/html/views/object/info.php @@ -1,269 +1,326 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_filename'))) ?> - </span> - </div> - <div class="input"> - <span class="filename"><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('file_extension'))) ?> - </span> - </div> - <div class="input"> - <span class="extension"><?php echo encodeHtml(htmlentities(@$extension)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_description'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$description)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$full_filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_SIZE'))) ?> - </span> - </label> - </div> - <div class="input"> - </div> - <span class=""><?php echo encodeHtml(htmlentities(@$size)) ?> - </span> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_mimetype'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$mimetype)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="size" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'size'}" href="/#//" class="action"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_file_size'))) ?> - </span> - </a> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('#{id'))) ?>} - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$objectid)) ?> - </span> - </div> - </div> - <?php $if4=(isset($cache_filename)); if($if4) { ?> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CACHE_FILENAME'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$cache_filename)) ?> - </span> - <br> - </br> - <img src="./modules/cms-ui/themes/default/images/icon/el_date.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($cache_filemtime); ?> - <?php } ?> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_PAGES'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <?php foreach($pages as $list_key=>$list_value) { extract($list_value); ?> - <tr class=""> - <td class=""> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <img src="./modules/cms-ui/themes/default/images/icon_page.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div> - <?php $if6=(($pages)==FALSE); if($if6) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - <?php } ?> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="settings" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'settings'}" href="/#//" class=""> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_state'))) ?> - </span> - </div> - <div class="input"> - <?php $if8=($is_valid); if($if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('is_yes'))) ?> - </span> - <?php } ?> - <?php if(!$if8) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('is_no'))) ?> - </span> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('from'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($valid_from_date); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('until'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($valid_to_date); ?> - <?php } ?> - </div> - </div> - </a> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_created'))) ?> - </span> - </div> - <div class="input"> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($create_date); ?> - <?php } ?> - <br> - </br> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($create_user); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_lastchange'))) ?> - </span> - </div> - <div class="input"> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - <br> - </br> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_published'))) ?> - </span> - </label> - </div> - <div class="input"> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($published_date); ?> - <?php } ?> - <br> - </br> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($published_user); ?> - <?php } ?> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <?php foreach($settings as $name=>$value) { ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - <td class="clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="settings" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'settings'}" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$value)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_filename'))) ?> + </span> + </div> + <div class="input"> + <span class="filename"><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('file_extension'))) ?> + </span> + </div> + <div class="input"> + <span class="extension"><?php echo encodeHtml(htmlentities(@$extension)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_description'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$description)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('additional_info'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$full_filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_SIZE'))) ?> + </span> + </label> + </div> + <div class="input"> + </div> + <span><?php echo encodeHtml(htmlentities(@$size)) ?> + </span> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_mimetype'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$mimetype)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="size" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'size'}" href="/#//" class="action"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_file_size'))) ?> + </span> + </a> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('#{id'))) ?>} + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$objectid)) ?> + </span> + </div> + </div> + <?php $if1=(isset($cache_filename)); if($if1) { ?> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CACHE_FILENAME'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$cache_filename)) ?> + </span> + <br /> + <img src="./modules/cms/ui/themes/default/images/icon/el_date.png" /> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($cache_filemtime); ?> + <?php } ?> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_PAGES'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <?php foreach($pages as $list_key=>$list_value) { extract($list_value); ?> + <tr> + <td> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <img src="./modules/cms/ui/themes/default/images/icon_page.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php $if1=(($pages)==FALSE); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + <?php } ?> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('validity'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="settings" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'settings'}" href="/#//"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_state'))) ?> + </span> + </div> + <div class="input"> + <?php $if1=($is_valid); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('is_yes'))) ?> + </span> + <?php } ?> + <?php if(!$if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('is_no'))) ?> + </span> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('from'))) ?> + </span> + </div> + <div class="input"> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($valid_from_date); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('until'))) ?> + </span> + </div> + <div class="input"> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($valid_to_date); ?> + <?php } ?> + </div> + </div> + </a> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('prop_userinfo'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_created'))) ?> + </span> + </div> + <div class="input"> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($create_date); ?> + <?php } ?> + <br /> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($create_user); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_lastchange'))) ?> + </span> + </div> + <div class="input"> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + <br /> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_published'))) ?> + </span> + </label> + </div> + <div class="input"> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($published_date); ?> + <?php } ?> + <br /> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($published_user); ?> + <?php } ?> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('settings'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <?php foreach($settings as $name=>$value) { ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + <td class="clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="settings" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'settings'}" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@$value)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/inherit.php b/modules/cms/ui/themes/default/html/views/object/inherit.php @@ -1,21 +1,42 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="inherit" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <?php $if3=($type=='folder'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php { $inherit= '1'; ?> - <?php } ?> - <input type="checkbox" name="inherit" value="1" <?php if(''.@$inherit.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('inherit_rights'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="inherit" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="inherit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=($type=='folder'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $inherit= '1'; ?> + <?php } ?> + <input type="checkbox" name="inherit" value="1" <?php if(@$inherit){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('inherit_rights'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/name.php b/modules/cms/ui/themes/default/html/views/object/name.php @@ -1,11 +1,38 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="name" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" class=""> - </input> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <label class="or-form-row or-form-input"><input name="name" required="required" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input></label> - <label class="or-form-row or-form-checkbox"><textarea name="description" disabled="" maxlength="255" class="description"><?php echo encodeHtml(htmlentities(@$description)) ?> - </textarea></label> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="name" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="name" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('alias'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <label class="or-form-row or-form-input"> + <span class="or-form-label">name + </span> + <input name="name" required="required" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">description + </span> + <textarea name="description" disabled="" maxlength="255" class="description"><?php echo encodeHtml(htmlentities(@$description)) ?> + </textarea> + </label> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('global_save'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/prop.php b/modules/cms/ui/themes/default/html/views/object/prop.php @@ -1,11 +1,46 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <label class="or-form-row or-form-input"><input name="filename" autofocus="autofocus" type="text" maxlength="150" value="<?php echo encodeHtml(htmlentities(@$filename)) ?>" class="filename"> - </input></label> - <label class="or-form-row or-form-input"><input name="alias_filename" type="text" maxlength="150" value="<?php echo encodeHtml(htmlentities(@$alias_filename)) ?>" class="filename"> - </input></label> - <label class="or-form-row or-form-input"><input name="alias_folderid" value="<?php echo encodeHtml(htmlentities(@$alias_folderid)) ?>" size="1" class=""> - </input></label> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('global_prop'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <label class="or-form-row or-form-input"> + <span class="or-form-label">global_filename + </span> + <input name="filename" autofocus="autofocus" type="text" maxlength="150" value="<?php echo encodeHtml(htmlentities(@$filename)) ?>" class="filename" /> + </label> + <label class="or-form-row or-form-input"> + <span class="or-form-label">alias + </span> + <input name="alias_filename" type="text" maxlength="150" value="<?php echo encodeHtml(htmlentities(@$alias_filename)) ?>" class="filename" /> + </label> + <label class="or-form-row or-form-input"> + <span class="or-form-label">folder + </span> + <select name="alias_folderid" size="1"> + <?php foreach($folders as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$alias_folderid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </label> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('global_save'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/rights.php b/modules/cms/ui/themes/default/html/views/object/rights.php @@ -1,91 +1,102 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=($type=='folder'); if($if2) { ?> - <?php } ?> - <?php if(!$if2) { ?> - <?php } ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> - </span> - </td> - <?php foreach($show as $list_key=>$t) { ?> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} - </span> - </td> - <?php } ?> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_delete'))) ?> - </span> - </td> - </tr> - <?php $if3=(($acls)==FALSE); if($if3) { ?> - <tr class="data"> - <td colspan="99" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <?php $if3=!(($acls)==FALSE); if($if3) { ?> - <?php } ?> - <?php foreach($acls as $aclid=>$acl) { extract($acl); ?> - <tr class="data"> - <td class=""> - <?php $if6=(isset($username)); if($if6) { ?> - <i class="image-icon image-icon--action-user"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$username)) ?> - </span> - <?php } ?> - <?php $if6=(isset($groupname)); if($if6) { ?> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$groupname)) ?> - </span> - <?php } ?> - <?php $if6=!(isset($username)); if($if6) { ?> - <?php $if7=!(isset($groupname)); if($if7) { ?> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_all'))) ?> - </span> - <?php } ?> - <?php } ?> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$languagename)) ?> - </span> - </td> - <?php foreach($show as $list_key=>$t) { ?> - <td class=""> - <?php $if7=('var:$t'); if($if7) { ?> - <span class="">&check; - </span> - <?php } ?> - </td> - <?php } ?> - <td class="clickable"> - <a target="_self" data-type="post" data-action="" data-method="delacl" data-id="" data-extra="{'aclid':'<?php echo encodeHtml(htmlentities(@$aclid)) ?>'}" data-data="{"action":"object","subaction":"delacl","id":"",\"token":"<?php echo token() ?>","aclid":"<?php echo encodeHtml(htmlentities(@$aclid)) ?>","none":"0"}"" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DELETE'))) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td colspan="99" class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('menu_aclform'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('menu_aclform'))) ?>" data-type="dialog" data-action="" data-method="aclform" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'aclform'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=($type=='folder'); if($if1) { ?> + + <?php } ?> + <?php if(!$if1) { ?> + + <?php } ?> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> + </span> + </td> + <?php foreach($show as $list_key=>$t) { ?> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} + </span> + </td> + <?php } ?> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('global_delete'))) ?> + </span> + </td> + </tr> + <?php $if1=(($acls)==FALSE); if($if1) { ?> + <tr class="data"> + <td colspan="99"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <?php $if1=!(($acls)==FALSE); if($if1) { ?> + <?php } ?> + <?php foreach($acls as $aclid=>$acl) { extract($acl); ?> + <tr class="data"> + <td> + <?php $if1=(isset($username)); if($if1) { ?> + <i class="image-icon image-icon--action-user"> + </i> + <span><?php echo encodeHtml(htmlentities(@$username)) ?> + </span> + <?php } ?> + <?php $if1=(isset($groupname)); if($if1) { ?> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@$groupname)) ?> + </span> + <?php } ?> + <?php $if1=!(isset($username)); if($if1) { ?> + <?php $if1=!(isset($groupname)); if($if1) { ?> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('global_all'))) ?> + </span> + <?php } ?> + <?php } ?> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$languagename)) ?> + </span> + </td> + <?php foreach($show as $list_key=>$t) { ?> + <td> + <?php $if1=('var:$t'); if($if1) { ?> + <span>&check; + </span> + <?php } ?> + </td> + <?php } ?> + <td class="clickable"> + <a target="_self" data-type="post" data-action="" data-method="delacl" data-id="" data-extra="{'aclid':'<?php echo encodeHtml(htmlentities(@$aclid)) ?>'}" data-data="{"action":"object","subaction":"delacl","id":"",\"token":"<?php echo token() ?>","aclid":"<?php echo encodeHtml(htmlentities(@$aclid)) ?>","none":"0"}""> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DELETE'))) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td colspan="99" class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('menu_aclform'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('menu_aclform'))) ?>" data-type="dialog" data-action="" data-method="aclform" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'aclform'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/object/settings.php b/modules/cms/ui/themes/default/html/views/object/settings.php @@ -1,47 +1,81 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="settings" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('from'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="valid_from_date" type="date" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_from_date)) ?>" class=""> - </input> - <input name="valid_from_time" type="time" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_from_time)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('until'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="valid_until_date" type="date" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_until_date)) ?>" class=""> - </input> - <input name="valid_until_time" type="time" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_until_time)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('SETTINGS'))) ?> - </span> - </label> - </div> - <div class="input"> - <textarea name="settings" data-extension="" data-mimetype="" data-mode="yaml" class="editor code-editor"> - </textarea> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="settings" data-action="object" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form object"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="object" /> + <input type="hidden" name="subaction" value="settings" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('validity'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('from'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="valid_from_date" type="date" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_from_date)) ?>" /> + </div> + <div class="inputholder"> + <input name="valid_from_time" type="time" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_from_time)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('until'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="valid_until_date" type="date" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_until_date)) ?>" /> + </div> + <div class="inputholder"> + <input name="valid_until_time" type="time" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$valid_until_time)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('settings'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('SETTINGS'))) ?> + </span> + </label> + </div> + <div class="input"> + <textarea name="settings" data-extension="" data-mimetype="" data-mode="yaml" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$settings)) ?> + </textarea> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/changetemplate.php b/modules/cms/ui/themes/default/html/views/page/changetemplate.php @@ -1,31 +1,44 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="changetemplateselectelements" data-action="page" data-id="<?php echo OR_ID ?>" method="get" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> - <input type="hidden" name="templateid" value="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" class=""> - </input> - <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" class=""> - </input> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('page_template_old'))) ?> - </span> - </div> - <div class="input"> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$template_url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <img src="./modules/cms-ui/themes/default/images/icon_template.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$template_name)) ?> - </span> - </a> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('page_template_new'))) ?> - </span> - </div> - <div class="input"> - <input name="newtemplateid" value="" size="1" class=""> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="changetemplateselectelements" data-action="page" data-id="<?php echo OR_ID ?>" method="get" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="changetemplateselectelements" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="templateid" value="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" /> + <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" /> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('page_template_old'))) ?> + </span> + </div> + <div class="input"> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$template_url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <img src="./modules/cms/ui/themes/default/images/icon_template.png" /> + <span><?php echo encodeHtml(htmlentities(@$template_name)) ?> + </span> + </a> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('page_template_new'))) ?> + </span> + </div> + <div class="input"> + <select name="newtemplateid" size="1"> + <?php foreach($templates as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$newtemplateid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('BUTTON_NEXT'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/changetemplateselectelements.php b/modules/cms/ui/themes/default/html/views/page/changetemplateselectelements.php @@ -1,17 +1,32 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="changetemplateselectelements" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> - <input type="hidden" name="newtemplateid" value="<?php echo encodeHtml(htmlentities(@$newtemplateid)) ?>" class=""> - </input> - <?php foreach($elements as $list_key=>$list_value) { extract($list_value); ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - <div class="input"> - <input name="<?php echo encodeHtml(htmlentities(@$newElementsName)) ?>" value="" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="changetemplateselectelements" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="changetemplateselectelements" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="newtemplateid" value="<?php echo encodeHtml(htmlentities(@$newtemplateid)) ?>" /> + <?php foreach($elements as $list_key=>$list_value) { extract($list_value); ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + <div class="input"> + <select name="<?php echo encodeHtml(htmlentities(@$newElementsName)) ?>" size="1"> + <?php foreach($newElementsList as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$${newElementsName}){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('MENU_CHANGETEMPLATE'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/edit.php b/modules/cms/ui/themes/default/html/views/page/edit.php @@ -1,47 +1,56 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('DESCRIPTION'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('TYPE'))) ?> - </span> - </th> - </tr> - <?php $if3=(($elements)==FALSE); if($if3) { ?> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <?php foreach($elements as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data clickable"> - <td class=""> - <a title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="pageelement" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$pageelementid)) ?>" data-extra="[]" href="/#/pageelement/<?php echo encodeHtml(htmlentities(@$pageelementid)) ?>" class=""> - <i class="image-icon image-icon--action-pageelement"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$label)) ?> - </span> - </a> - </td> - <td title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$desc)) ?> - </span> - </td> - <td class=""> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$typename)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${typename'))) ?>} - </span> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('DESCRIPTION'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('TYPE'))) ?> + </span> + </th> + </tr> + <?php $if1=(($elements)==FALSE); if($if1) { ?> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <?php foreach($elements as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data clickable"> + <td> + <a title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="pageelement" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$pageelementid)) ?>" data-extra="[]" href="/#/pageelement/<?php echo encodeHtml(htmlentities(@$pageelementid)) ?>"> + <i class="image-icon image-icon--action-pageelement"> + </i> + <span><?php echo encodeHtml(htmlentities(@$label)) ?> + </span> + </a> + </td> + <td title="<?php echo encodeHtml(htmlentities(@$desc)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$desc)) ?> + </span> + </td> + <td> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$typename)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('${typename'))) ?>} + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/form.php b/modules/cms/ui/themes/default/html/views/page/form.php @@ -1,85 +1,118 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="form" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <?php $if6=(($el)==FALSE); if($if6) { ?> - <tr class=""> - <td colspan="4" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <?php $if6=!(($el)==FALSE); if($if6) { ?> - <tr class=""> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('PAGE_ELEMENT_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_CHANGE'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <label class="label"> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </label> - </td> - <td class=""> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$saveid)) ?>" value="1" <?php if(''.@$${saveid.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - <td class=""> - <?php $if10=(in_array($type,explode(",",'text,date,number')); if($if10) { ?> - <input name="<?php echo encodeHtml(htmlentities(@$id)) ?>" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$value)) ?>" class=""> - </input> - <?php } ?> - <?php $if10=($type=='longtext'); if($if10) { ?> - <textarea name="<?php echo encodeHtml(htmlentities(@$id)) ?>" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$value)) ?> - </textarea> - <?php } ?> - <?php $if10=(in_array($type,explode(",",'select,link,list')); if($if10) { ?> - <input name="<?php echo encodeHtml(htmlentities(@$id)) ?>" value="<?php echo encodeHtml(htmlentities(@$value)) ?>" size="1" class=""> - </input> - <?php } ?> - </td> - </tr> - <?php } ?> - <?php } ?> - </table></div></div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php $if6=(isset($release)); if($if6) { ?> - <div class=""> - <input type="checkbox" name="release" value="1" <?php if(''.@$release.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> - </span> - </label> - </div> - <?php } ?> - <?php $if6=(isset($publish)); if($if6) { ?> - <div class=""> - <input type="checkbox" name="publish" value="1" <?php if(''.@$publish.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('PAGE_PUBLISH_AFTER_SAVE'))) ?> - </span> - </label> - </div> - <?php } ?> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="form" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="form" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <?php $if1=(($el)==FALSE); if($if1) { ?> + <tr> + <td colspan="4"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <?php $if1=!(($el)==FALSE); if($if1) { ?> + <tr> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('PAGE_ELEMENT_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_CHANGE'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <label class="label"> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </label> + </td> + <td> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$saveid)) ?>" value="1" <?php if(@$${saveid}){ ?>checked="1"<?php } ?> /> + </td> + <td> + <?php $if1=(in_array($type,explode(",",'text,date,number')); if($if1) { ?> + <div class="inputholder"> + <input name="<?php echo encodeHtml(htmlentities(@$id)) ?>" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$value)) ?>" /> + </div> + <?php } ?> + <?php $if1=($type=='longtext'); if($if1) { ?> + <textarea name="<?php echo encodeHtml(htmlentities(@$id)) ?>" disabled="" maxlength="0" class="inputarea"><?php echo encodeHtml(htmlentities(@$value)) ?> + </textarea> + <?php } ?> + <?php $if1=(in_array($type,explode(",",'select,link,list')); if($if1) { ?> + <select name="<?php echo encodeHtml(htmlentities(@$id)) ?>" size="1"> + <?php foreach($list as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$value.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php } ?> + </td> + </tr> + <?php } ?> + <?php } ?> + </table> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php $if1=(isset($release)); if($if1) { ?> + <div class=""> + <input type="checkbox" name="release" value="1" <?php if(@$release){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> + </span> + </label> + </div> + <?php } ?> + <?php $if1=(isset($publish)); if($if1) { ?> + <div class=""> + <input type="checkbox" name="publish" value="1" <?php if(@$publish){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('PAGE_PUBLISH_AFTER_SAVE'))) ?> + </span> + </label> + </div> + <?php } ?> + </div> + </fieldset> + + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/info.php b/modules/cms/ui/themes/default/html/views/page/info.php @@ -1,201 +1,245 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> - <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${type'))) ?>} - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_filename'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_description'))) ?> - </span> - </div> - <div class="input"> - <span class="description"><?php echo encodeHtml(htmlentities(@$description)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="prop" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'prop'}" href="/#//" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </div></fieldset> - <?php foreach($languages as $list_key=>$list_value) { extract($list_value); ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span></span></label> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$description)) ?> - </span></span></label> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$alias)) ?> - </span></span></label> - <div class="clickable"> - <a target="_self" data-type="edit" data-action="page" data-method="name" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>'}" href="/#/page/" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div></fieldset> - <?php } ?> - <fieldset class="or-group toggle-open-close closed show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class="filename"><?php echo encodeHtml(htmlentities(@$full_filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class="filename"><?php echo encodeHtml(htmlentities(@$tmp_filename)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_template'))) ?> - </span> - </label> - </div> - <div class="input"> - <?php $if6=(isset($templateid)); if($if6) { ?> - <div class="clickable"> - <a target="_self" data-type="open" data-action="template" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" data-extra="[]" href="/#/template/<?php echo encodeHtml(htmlentities(@$templateid)) ?>" class=""> - <i class="image-icon image-icon--action-template"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$template_name)) ?> - </span> - </a> - </div> - <?php } ?> - <?php if(!$if6) { ?> - <i class="image-icon image-icon--action-template"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$template_name)) ?> - </span> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_MIMETYPE'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class="filename"><?php echo encodeHtml(htmlentities(@$mime_type)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('id'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$objectid)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close closed show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_created'))) ?> - </span> - </label> - </div> - <div class="input"> - <img src="./modules/cms-ui/themes/default/images/icon/el_date.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date('var:create_date'); ?> - <?php } ?> - <br> - </br> - <img src="./modules/cms-ui/themes/default/images/icon/user.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user('var:create_user'); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_lastchange'))) ?> - </span> - </label> - </div> - <div class="input"> - <img src="./modules/cms-ui/themes/default/images/icon/el_date.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date('var:lastchange_date'); ?> - <?php } ?> - <br> - </br> - <img src="./modules/cms-ui/themes/default/images/icon/user.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user('var:lastchange_user'); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_published'))) ?> - </span> - </label> - </div> - <div class="input"> - <img src="./modules/cms-ui/themes/default/images/icon/el_date.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date('var:published_date'); ?> - <?php } ?> - <br> - </br> - <img src="./modules/cms-ui/themes/default/images/icon/user.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user('var:published_user'); ?> - <?php } ?> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <span class="headline"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@lang('${type'))) ?>} + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_filename'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_description'))) ?> + </span> + </div> + <div class="input"> + <span class="description"><?php echo encodeHtml(htmlentities(@$description)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="prop" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'prop'}" href="/#//" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + </fieldset> + <?php foreach($languages as $list_key=>$list_value) { extract($list_value); ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@$languagename)) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:name + </span> + </label> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:description + </span> + </label> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:alias + </span> + </label> + <div class="clickable"> + <a target="_self" data-type="edit" data-action="page" data-method="name" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>'}" href="/#/page/" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </fieldset> + <?php } ?> + <fieldset class="or-group toggle-open-close closed show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('additional_info'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> + </span> + </label> + </div> + <div class="input"> + <span class="filename"><?php echo encodeHtml(htmlentities(@$full_filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_full_filename'))) ?> + </span> + </label> + </div> + <div class="input"> + <span class="filename"><?php echo encodeHtml(htmlentities(@$tmp_filename)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_template'))) ?> + </span> + </label> + </div> + <div class="input"> + <?php $if1=(isset($templateid)); if($if1) { ?> + <div class="clickable"> + <a target="_self" data-type="open" data-action="template" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" data-extra="[]" href="/#/template/<?php echo encodeHtml(htmlentities(@$templateid)) ?>"> + <i class="image-icon image-icon--action-template"> + </i> + <span><?php echo encodeHtml(htmlentities(@$template_name)) ?> + </span> + </a> + </div> + <?php } ?> + <?php if(!$if1) { ?> + <i class="image-icon image-icon--action-template"> + </i> + <span><?php echo encodeHtml(htmlentities(@$template_name)) ?> + </span> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_MIMETYPE'))) ?> + </span> + </label> + </div> + <div class="input"> + <span class="filename"><?php echo encodeHtml(htmlentities(@$mime_type)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('id'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$objectid)) ?> + </span> + </div> + </div> + </div> + </fieldset> + + <fieldset class="or-group toggle-open-close closed show"> + <legend class="on-click-open-close">message:prop_userinfo + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_created'))) ?> + </span> + </label> + </div> + <div class="input"> + <img src="./modules/cms/ui/themes/default/images/icon/el_date.png" /> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date('var:create_date'); ?> + <?php } ?> + <br /> + <img src="./modules/cms/ui/themes/default/images/icon/user.png" /> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user('var:create_user'); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_lastchange'))) ?> + </span> + </label> + </div> + <div class="input"> + <img src="./modules/cms/ui/themes/default/images/icon/el_date.png" /> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date('var:lastchange_date'); ?> + <?php } ?> + <br /> + <img src="./modules/cms/ui/themes/default/images/icon/user.png" /> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user('var:lastchange_user'); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_published'))) ?> + </span> + </label> + </div> + <div class="input"> + <img src="./modules/cms/ui/themes/default/images/icon/el_date.png" /> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date('var:published_date'); ?> + <?php } ?> + <br /> + <img src="./modules/cms/ui/themes/default/images/icon/user.png" /> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user('var:published_user'); ?> + <?php } ?> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/name.php b/modules/cms/ui/themes/default/html/views/page/name.php @@ -1,19 +1,69 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="name" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> - <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" class=""> - </input> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <label class="or-form-row or-form-input"><input name="name" required="required" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input></label> - <label class="or-form-row or-form-checkbox"><textarea name="description" disabled="" maxlength="255" class="description"><?php echo encodeHtml(htmlentities(@$description)) ?> - </textarea></label> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <label class="or-form-row or-form-input"><input name="alias_filename" type="text" maxlength="150" value="<?php echo encodeHtml(htmlentities(@$alias_filename)) ?>" class="filename"> - </input></label> - <label class="or-form-row or-form-input"><input name="alias_folderid" value="<?php echo encodeHtml(htmlentities(@$alias_folderid)) ?>" size="1" class=""> - </input></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="leave_link" value="1" <?php if(''.@$leave_link.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="name" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="name" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <label class="or-form-row or-form-input"> + <span class="or-form-label">name + </span> + <input name="name" required="required" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">description + </span> + <textarea name="description" disabled="" maxlength="255" class="description"><?php echo encodeHtml(htmlentities(@$description)) ?> + </textarea> + </label> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('alias'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <label class="or-form-row or-form-input"> + <span class="or-form-label">alias + </span> + <input name="alias_filename" type="text" maxlength="150" value="<?php echo encodeHtml(htmlentities(@$alias_filename)) ?>" class="filename" /> + </label> + <label class="or-form-row or-form-input"> + <span class="or-form-label">folder + </span> + <select name="alias_folderid" size="1"> + <?php foreach($folders as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$alias_folderid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">leave_link + </span> + <input type="checkbox" name="leave_link" value="1" <?php if(@$leave_link){ ?>checked="1"<?php } ?> /> + </label> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('global_save'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/preview.php b/modules/cms/ui/themes/default/html/views/page/preview.php @@ -1,19 +1,47 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="self" action="./" data-method="preview" data-action="page" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form page"> - <input name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" size="1" class=""> - </input> - <input name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" size="1" class=""> - </input> - </form> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="toolbar-icon clickable"> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" data-type="popup" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class="action"> - <i class="image-icon image-icon--menu-open_in_new"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('link_open_in_new_window'))) ?> - </span> - </a> - </div> - <iframe name="preview" src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" class=""> - </iframe> - </div></fieldset>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="self" action="./" data-method="preview" data-action="page" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="preview" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <select name="languageid" size="1"> + <?php foreach($languages as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$languageid.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <select name="modelid" size="1"> + <?php foreach($models as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$modelid.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('PREVIEW'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="toolbar-icon clickable"> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" data-type="popup" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class="action"> + <i class="image-icon image-icon--menu-open_in_new"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('link_open_in_new_window'))) ?> + </span> + </a> + </div> + <iframe name="preview" src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>"> + </iframe> + </div> + </fieldset> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/pub.php b/modules/cms/ui/themes/default/html/views/page/pub.php @@ -1,23 +1,43 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form page"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="files" value="1" <?php if(''.@$files.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_files'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="files" value="1" <?php if(@$files){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_files'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/remove.php b/modules/cms/ui/themes/default/html/views/page/remove.php @@ -1,7 +1,26 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span></span></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="page" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:GLOBAL_NAME + </span> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">GLOBAL_DELETE + </span> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </label> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/show.php b/modules/cms/ui/themes/default/html/views/page/show.php @@ -1,2 +1,3 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> -<?php echo @$output ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + <?php echo @$output ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/src.php b/modules/cms/ui/themes/default/html/views/page/src.php @@ -1,11 +1,39 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="self" action="./" data-method="src" data-action="page" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form page"> - <input name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" size="1" class=""> - </input> - <input name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" size="1" class=""> - </input> - </form> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <textarea name="src" data-extension="" data-mimetype="" data-mode="html" class="editor code-editor"> - </textarea> - </div></fieldset>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="self" action="./" data-method="src" data-action="page" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form page"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="page" /> + <input type="hidden" name="subaction" value="src" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <select name="languageid" size="1"> + <?php foreach($languages as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$languageid.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <select name="modelid" size="1"> + <?php foreach($models as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$modelid.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('SOURCE'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <textarea name="src" data-extension="" data-mimetype="" data-mode="html" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$src)) ?> + </textarea> + </div> + </fieldset> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/page/structure.php b/modules/cms/ui/themes/default/html/views/page/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/advanced.php b/modules/cms/ui/themes/default/html/views/pageelement/advanced.php @@ -1,41 +1,50 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('language'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('value'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('editor'))) ?> - </span> - </th> - </tr> - <?php foreach($languages as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$languagename)) ?> - </span> - </td> - <td class="clickable"> - <a target="_self" data-type="edit" data-action="pageelement" data-method="value" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>'}" href="/#/pageelement/" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$value)) ?> - </span> - </a> - </td> - <td class=""> - <?php foreach($editors as $id=>$name) { ?> - <div class="clickable"> - <a target="_self" data-type="edit" data-action="pageelement" data-method="value" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>','format':'<?php echo encodeHtml(htmlentities(@$id)) ?>'}" href="/#/pageelement/" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </div> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('language'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('value'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('editor'))) ?> + </span> + </th> + </tr> + <?php foreach($languages as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@$languagename)) ?> + </span> + </td> + <td class="clickable"> + <a target="_self" data-type="edit" data-action="pageelement" data-method="value" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>'}" href="/#/pageelement/"> + <span><?php echo encodeHtml(htmlentities(@$value)) ?> + </span> + </a> + </td> + <td> + <?php foreach($editors as $id=>$name) { ?> + <div class="clickable"> + <a target="_self" data-type="edit" data-action="pageelement" data-method="value" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>','format':'<?php echo encodeHtml(htmlentities(@$id)) ?>'}" href="/#/pageelement/"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </div> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/diff.php b/modules/cms/ui/themes/default/html/views/pageelement/diff.php @@ -1,69 +1,79 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class=""> - <td class=""> - </td> - <td class=""> - <em class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_COMPARE'))) ?> - </em> - <span class=""> - </span> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date_left); ?> - <?php } ?> - </td> - <td class=""> - </td> - <td class=""> - <em class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_WITH'))) ?> - </em> - <span class=""> - </span> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date_right); ?> - <?php } ?> - </td> - </tr> - <tr class=""> - <td colspan="4" class=""> - </td> - </tr> - <?php foreach($diff as $list_key=>$list_value) { extract($list_value); ?> - <tr class="diff"> - <?php $if5=(isset($left)); if($if5) { ?> - <td width="5%" class="line"> - <tt class=""><?php echo encodeHtml(htmlentities(@$left['line'])) ?> - </tt> - </td> - <td width="45%" class="<?php echo encodeHtml(htmlentities(@$left['type'])) ?>"> - <span class=""><?php echo encodeHtml(htmlentities(@$left['text'])) ?> - </span> - </td> - <?php } ?> - <?php if(!$if5) { ?> - <td width="50%" colspan="2" class="help"> - <span class=""> - </span> - </td> - <?php } ?> - <?php $if5=(isset($right)); if($if5) { ?> - <td width="5%" class="line"> - <tt class=""><?php echo encodeHtml(htmlentities(@$right['line'])) ?> - </tt> - </td> - <td width="45%" class="<?php echo encodeHtml(htmlentities(@$right['type'])) ?>"> - <span class=""><?php echo encodeHtml(htmlentities(@$right['text'])) ?> - </span> - </td> - <?php } ?> - <?php if(!$if5) { ?> - <td width="50%" colspan="2" class="help"> - <span class=""> - </span> - </td> - <?php } ?> - </tr> - <?php { unset($left) ?> - <?php } ?> - <?php { unset($right) ?> - <?php } ?> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr> + <td> + </td> + <td> + <em><?php echo encodeHtml(htmlentities(@lang('GLOBAL_COMPARE'))) ?> + </em> + <span> + </span> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date_left); ?> + <?php } ?> + </td> + <td> + </td> + <td> + <em><?php echo encodeHtml(htmlentities(@lang('GLOBAL_WITH'))) ?> + </em> + <span> + </span> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date_right); ?> + <?php } ?> + </td> + </tr> + <tr> + <td colspan="4"> + </td> + </tr> + <?php foreach($diff as $list_key=>$list_value) { extract($list_value); ?> + <tr class="diff"> + <?php $if1=(isset($left)); if($if1) { ?> + <td width="5%" class="line"> + <tt><?php echo encodeHtml(htmlentities(@$left['line'])) ?> + </tt> + </td> + <td width="45%" class="<?php echo encodeHtml(htmlentities(@$left['type'])) ?>"> + <span><?php echo encodeHtml(htmlentities(@$left['text'])) ?> + </span> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <td width="50%" colspan="2" class="help"> + <span> + </span> + </td> + <?php } ?> + <?php $if1=(isset($right)); if($if1) { ?> + <td width="5%" class="line"> + <tt><?php echo encodeHtml(htmlentities(@$right['line'])) ?> + </tt> + </td> + <td width="45%" class="<?php echo encodeHtml(htmlentities(@$right['type'])) ?>"> + <span><?php echo encodeHtml(htmlentities(@$right['text'])) ?> + </span> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <td width="50%" colspan="2" class="help"> + <span> + </span> + </td> + <?php } ?> + </tr> + <?php { unset($left) ?> + <?php } ?> + <?php { unset($right) ?> + <?php } ?> + <?php } ?> + </table> + </div> + </div> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/edit.php b/modules/cms/ui/themes/default/html/views/pageelement/edit.php @@ -1,27 +1,36 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('language'))) ?> - </span> - </th> - <th class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('value'))) ?> - </span> - </th> - </tr> - <?php foreach($languages as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data clickable"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$languagename)) ?> - </span> - </td> - <td title="<?php echo encodeHtml(htmlentities(@$value)) ?>" class=""> - <a target="_self" data-type="edit" data-action="pageelement" data-method="value" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>'}" href="/#/pageelement/" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$value)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('language'))) ?> + </span> + </th> + <th> + <span><?php echo encodeHtml(htmlentities(@lang('value'))) ?> + </span> + </th> + </tr> + <?php foreach($languages as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data clickable"> + <td> + <span><?php echo encodeHtml(htmlentities(@$languagename)) ?> + </span> + </td> + <td title="<?php echo encodeHtml(htmlentities(@$value)) ?>"> + <a target="_self" data-type="edit" data-action="pageelement" data-method="value" data-id="" data-extra="{'languageid':'<?php echo encodeHtml(htmlentities(@$languageid)) ?>'}" href="/#/pageelement/"> + <span><?php echo encodeHtml(htmlentities(@$value)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/export.php b/modules/cms/ui/themes/default/html/views/pageelement/export.php @@ -1,13 +1,33 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="export" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> - <tr class=""> - <td class=""> - <input name="type" value="<?php echo encodeHtml(htmlentities(@$type)) ?>" size="1" class=""> - </input> - </td> - </tr> - <tr class=""> - <td class=""> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="export" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="export" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td> + <select name="type" size="1"> + <?php foreach($types as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$type){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <tr> + <td> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/history.php b/modules/cms/ui/themes/default/html/views/pageelement/history.php @@ -1,131 +1,147 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="diff" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="get" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NR'))) ?> - </span> - </td> - <td colspan="2" class="help"> - <?php $if6=(isset($compareid)); if($if6) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_COMPARE'))) ?> - </span> - <?php } ?> - <?php if(!$if6) { ?> - <span class=""> - </span> - <?php } ?> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('DATE'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_STATE'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ACTION'))) ?> - </span> - </td> - </tr> - <?php $if4=(($el)==FALSE); if($if4) { ?> - <tr class=""> - <td colspan="8" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$lfd_nr)) ?> - </span> - </td> - <td class=""> - <?php $if7=(isset($compareid)); if($if7) { ?> - <input type="radio" name="compareid" disabled="" value="<?php echo encodeHtml(htmlentities(@$id)) ?>" checked="<?php echo encodeHtml(htmlentities(@$compareid)) ?>" class=""> - </input> - <?php } ?> - <?php if(!$if7) { ?> - <span class=""> - </span> - <?php } ?> - </td> - <td class=""> - <?php $if7=(isset($compareid)); if($if7) { ?> - <input type="radio" name="withid" disabled="" value="<?php echo encodeHtml(htmlentities(@$id)) ?>" checked="<?php echo encodeHtml(htmlentities(@$withid)) ?>" class=""> - </input> - <?php } ?> - <?php if(!$if7) { ?> - <span class=""> - </span> - <?php } ?> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($date); ?> - <?php } ?> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$user)) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$value)) ?> - </span> - </td> - <?php $if6=($public); if($if6) { ?> - <td class=""> - <strong class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_PUBLIC'))) ?> - </strong> - </td> - <?php } ?> - <?php if(!$if6) { ?> - <?php $if7=(isset($releaseUrl)); if($if7) { ?> - <td class="clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE_DESC'))) ?>" target="_self" data-type="post" data-action="" data-method="release" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="{'valueid':'<?php echo encodeHtml(htmlentities(@$valueid)) ?>'}" data-data="{"action":"pageelement","subaction":"release","id":"<?php echo encodeHtml(htmlentities(@$objectid)) ?>",\"token":"<?php echo token() ?>","valueid":"<?php echo encodeHtml(htmlentities(@$valueid)) ?>","none":"0"}"" class=""> - <strong class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> - </strong> - </a> - </td> - <?php } ?> - <?php if(!$if7) { ?> - <td class=""> - <em class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_INACTIVE'))) ?> - </em> - </td> - <?php } ?> - <?php } ?> - <?php $if6=($active); if($if6) { ?> - <td class=""> - <em class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ACTIVE'))) ?> - </em> - </td> - <?php } ?> - <?php if(!$if6) { ?> - <?php $if7=(isset($useUrl)); if($if7) { ?> - <td class="clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('GLOBAL_USE_DESC'))) ?>" target="_self" data-type="post" data-action="" data-method="use" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="{'valueid':'<?php echo encodeHtml(htmlentities(@$valueid)) ?>'}" data-data="{"action":"pageelement","subaction":"use","id":"<?php echo encodeHtml(htmlentities(@$objectid)) ?>",\"token":"<?php echo token() ?>","valueid":"<?php echo encodeHtml(htmlentities(@$valueid)) ?>","none":"0"}"" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USE'))) ?> - </span> - </a> - </td> - <?php } ?> - <?php if(!$if7) { ?> - <td class=""> - </td> - <?php } ?> - <?php } ?> - </tr> - <?php } ?> - </table></div></div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="diff" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="get" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="diff" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NR'))) ?> + </span> + </td> + <td colspan="2" class="help"> + <?php $if1=(isset($compareid)); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_COMPARE'))) ?> + </span> + <?php } ?> + <?php if(!$if1) { ?> + <span> + </span> + <?php } ?> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('DATE'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_STATE'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ACTION'))) ?> + </span> + </td> + </tr> + <?php $if1=(($el)==FALSE); if($if1) { ?> + <tr> + <td colspan="8"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@$lfd_nr)) ?> + </span> + </td> + <td> + <?php $if1=(isset($compareid)); if($if1) { ?> + <input type="radio" name="compareid" disabled="" value="<?php echo encodeHtml(htmlentities(@$id)) ?>" checked="<?php echo encodeHtml(htmlentities(@$compareid)) ?>" /> + <?php } ?> + <?php if(!$if1) { ?> + <span> + </span> + <?php } ?> + </td> + <td> + <?php $if1=(isset($compareid)); if($if1) { ?> + <input type="radio" name="withid" disabled="" value="<?php echo encodeHtml(htmlentities(@$id)) ?>" checked="<?php echo encodeHtml(htmlentities(@$withid)) ?>" /> + <?php } ?> + <?php if(!$if1) { ?> + <span> + </span> + <?php } ?> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($date); ?> + <?php } ?> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$user)) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$value)) ?> + </span> + </td> + <?php $if1=($public); if($if1) { ?> + <td> + <strong><?php echo encodeHtml(htmlentities(@lang('GLOBAL_PUBLIC'))) ?> + </strong> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <?php $if1=(isset($releaseUrl)); if($if1) { ?> + <td class="clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE_DESC'))) ?>" target="_self" data-type="post" data-action="" data-method="release" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="{'valueid':'<?php echo encodeHtml(htmlentities(@$valueid)) ?>'}" data-data="{"action":"pageelement","subaction":"release","id":"<?php echo encodeHtml(htmlentities(@$objectid)) ?>",\"token":"<?php echo token() ?>","valueid":"<?php echo encodeHtml(htmlentities(@$valueid)) ?>","none":"0"}""> + <strong><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> + </strong> + </a> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <td> + <em><?php echo encodeHtml(htmlentities(@lang('GLOBAL_INACTIVE'))) ?> + </em> + </td> + <?php } ?> + <?php } ?> + <?php $if1=($active); if($if1) { ?> + <td> + <em><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ACTIVE'))) ?> + </em> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <?php $if1=(isset($useUrl)); if($if1) { ?> + <td class="clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('GLOBAL_USE_DESC'))) ?>" target="_self" data-type="post" data-action="" data-method="use" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="{'valueid':'<?php echo encodeHtml(htmlentities(@$valueid)) ?>'}" data-data="{"action":"pageelement","subaction":"use","id":"<?php echo encodeHtml(htmlentities(@$objectid)) ?>",\"token":"<?php echo token() ?>","valueid":"<?php echo encodeHtml(htmlentities(@$valueid)) ?>","none":"0"}""> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USE'))) ?> + </span> + </a> + </td> + <?php } ?> + <?php if(!$if1) { ?> + <td> + </td> + <?php } ?> + <?php } ?> + </tr> + <?php } ?> + </table> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('compare'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/import.php b/modules/cms/ui/themes/default/html/views/pageelement/import.php @@ -1,19 +1,38 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="import" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> - <tr class=""> - <td class=""> - <input name="type" value="<?php echo encodeHtml(htmlentities(@$type)) ?>" size="1" class=""> - </input> - </td> - </tr> - <tr class=""> - <td class=""> - <input id="req0_file" name="file" size="40" class="upload"> - </input> - </td> - </tr> - <tr class=""> - <td class=""> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="import" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="import" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td> + <select name="type" size="1"> + <?php foreach($types as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$type){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <tr> + <td> + <input id="req0_file" name="file" size="40" class="upload" /> + </td> + </tr> + <tr> + <td> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/info.php b/modules/cms/ui/themes/default/html/views/pageelement/info.php @@ -1,103 +1,112 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class="name"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('description'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$description)) ?> - </span> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </td> - <td class="filename"> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('el_${element_type'))) ?>} - </span> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('template'))) ?> - </span> - </td> - <td class="clickable"> - <a target="_self" data-type="open" data-action="template" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$template_id)) ?>" data-extra="[]" href="/#/template/<?php echo encodeHtml(htmlentities(@$template_id)) ?>" class=""> - <i class="image-icon image-icon--action-template"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$template_name)) ?> - </span> - </a> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('element'))) ?> - </span> - </td> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$element_name)) ?>" name="<?php echo encodeHtml(htmlentities(@$element_name)) ?>" data-action="element" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$element_id)) ?>" data-extra="[]" href="/#/element/<?php echo encodeHtml(htmlentities(@$element_id)) ?>" class=""> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$element_name)) ?> - </span> - </a> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('format'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('element'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$element_format)) ?> - </span> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('format'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$format)) ?> - </span> - </td> - </tr> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - <td class=""> - <i class="image-icon image-icon--action-el_date"> - </i> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - <span class="">, - </span> - <i class="image-icon image-icon--action-user"> - </i> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> - <?php } ?> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td class="name"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$description)) ?> + </span> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </td> + <td class="filename"> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('el_${element_type'))) ?>} + </span> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('template'))) ?> + </span> + </td> + <td class="clickable"> + <a target="_self" data-type="open" data-action="template" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$template_id)) ?>" data-extra="[]" href="/#/template/<?php echo encodeHtml(htmlentities(@$template_id)) ?>"> + <i class="image-icon image-icon--action-template"> + </i> + <span><?php echo encodeHtml(htmlentities(@$template_name)) ?> + </span> + </a> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('element'))) ?> + </span> + </td> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$element_name)) ?>" name="<?php echo encodeHtml(htmlentities(@$element_name)) ?>" data-action="element" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$element_id)) ?>" data-extra="[]" href="/#/element/<?php echo encodeHtml(htmlentities(@$element_id)) ?>"> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@$element_name)) ?> + </span> + </a> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('format'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('element'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$element_format)) ?> + </span> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('format'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$format)) ?> + </span> + </td> + </tr> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + <td> + <i class="image-icon image-icon--action-el_date"> + </i> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + <span>, + </span> + <i class="image-icon image-icon--action-user"> + </i> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> + <?php } ?> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/link.php b/modules/cms/ui/themes/default/html/views/pageelement/link.php @@ -1,57 +1,84 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="link" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> - <tr class=""> - <td colspan="2" class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@$desc)) ?> - </span> - </td> - </tr> - <tr class=""> - <td colspan="2" class=""> - <input name="linkobjectid" value="<?php echo encodeHtml(htmlentities(@$linkobjectid)) ?>" size="1" class=""> - </input> - </td> - </tr> - <?php $if5=(isset($release)); if($if5) { ?> - <?php $if6=(isset($publish)); if($if6) { ?> - <tr class=""> - <td colspan="2" class=""> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - </td> - </tr> - <?php } ?> - <?php } ?> - <?php $if5=(isset($release)); if($if5) { ?> - <tr class=""> - <td colspan="2" class=""> - <input type="checkbox" name="release" value="1" <?php if(''.@$release.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> - </span> - </label> - </td> - </tr> - <?php } ?> - <?php $if5=(isset($publish)); if($if5) { ?> - <tr class=""> - <td colspan="2" class=""> - <input type="checkbox" name="publish" value="1" <?php if(''.@$publish.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('PAGE_PUBLISH_AFTER_SAVE'))) ?> - </span> - </label> - </td> - </tr> - <?php } ?> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="link" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="link" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td colspan="2" class="help"> + <span><?php echo encodeHtml(htmlentities(@$desc)) ?> + </span> + </td> + </tr> + <tr> + <td colspan="2"> + <select name="linkobjectid" size="1"> + <?php foreach($objects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$linkobjectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </td> + </tr> + <?php $if1=(isset($release)); if($if1) { ?> + <?php $if1=(isset($publish)); if($if1) { ?> + <tr> + <td colspan="2"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + </td> + </tr> + <?php } ?> + <?php } ?> + <?php $if1=(isset($release)); if($if1) { ?> + <tr> + <td colspan="2"> + <input type="checkbox" name="release" value="1" <?php if(@$release){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> + </span> + </label> + </td> + </tr> + <?php } ?> + <?php $if1=(isset($publish)); if($if1) { ?> + <tr> + <td colspan="2"> + <input type="checkbox" name="publish" value="1" <?php if(@$publish){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('PAGE_PUBLISH_AFTER_SAVE'))) ?> + </span> + </label> + </td> + </tr> + <?php } ?> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/preview.php b/modules/cms/ui/themes/default/html/views/pageelement/preview.php @@ -1,7 +1,18 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="preview"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <span class=""><?php echo @$preview ?> - </span> - </div></fieldset> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="preview"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('page_preview'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <span><?php echo @$preview ?> + </span> + </div> + </fieldset> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/prop.php b/modules/cms/ui/themes/default/html/views/pageelement/prop.php @@ -1,117 +1,156 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class="name"> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('description'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$description)) ?> - </span> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </td> - <td class="filename"> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('el_${element_type'))) ?>} - </span> - </td> - </tr> - <tr class=""> - <td colspan="2" class=""> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('template'))) ?> - </span> - </td> - <td class=""> - <?php $if6=(isset($template_url)); if($if6) { ?> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$template_url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <img src="./modules/cms-ui/themes/default/images/icon/icon_template.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$template_name)) ?> - </span> - </a> - <?php } ?> - <?php $if6=(($template_url)==FALSE); if($if6) { ?> - <img src="./modules/cms-ui/themes/default/images/icon/icon_template.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$template_name)) ?> - </span> - <?php } ?> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('element'))) ?> - </span> - </td> - <td class=""> - <?php $if6=(isset($element_url)); if($if6) { ?> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$element_url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$element_name)) ?> - </span> - </a> - <?php } ?> - <?php $if6=(($element_url)==FALSE); if($if6) { ?> - <img src="./modules/cms-ui/themes/default/images/icon/element.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$element_name)) ?> - </span> - <?php } ?> - </td> - </tr> - <tr class=""> - <td colspan="2" class=""> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - <td class=""> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class=""> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon/el_date.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon/user.png" class=""> - </img> - <?php include_once( 'modules/template-engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> - <?php } ?> - </td> - </tr> - </table></div></div> - </td> - </tr> - </table></div></div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td class="name"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$description)) ?> + </span> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </td> + <td class="filename"> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('el_${element_type'))) ?>} + </span> + </td> + </tr> + <tr> + <td colspan="2"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('additional_info'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('template'))) ?> + </span> + </td> + <td> + <?php $if1=(isset($template_url)); if($if1) { ?> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$template_url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <img src="./modules/cms/ui/themes/default/images/icon/icon_template.png" /> + <span><?php echo encodeHtml(htmlentities(@$template_name)) ?> + </span> + </a> + <?php } ?> + <?php $if1=(($template_url)==FALSE); if($if1) { ?> + <img src="./modules/cms/ui/themes/default/images/icon/icon_template.png" /> + <span><?php echo encodeHtml(htmlentities(@$template_name)) ?> + </span> + <?php } ?> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('element'))) ?> + </span> + </td> + <td> + <?php $if1=(isset($element_url)); if($if1) { ?> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$element_url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$element_type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@$element_name)) ?> + </span> + </a> + <?php } ?> + <?php $if1=(($element_url)==FALSE); if($if1) { ?> + <img src="./modules/cms/ui/themes/default/images/icon/element.png" /> + <span><?php echo encodeHtml(htmlentities(@$element_name)) ?> + </span> + <?php } ?> + </td> + </tr> + <tr> + <td colspan="2"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('prop_userinfo'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + <td> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr> + <td> + <img src="./modules/cms/ui/themes/default/images/icon/el_date.png" /> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + <td> + <img src="./modules/cms/ui/themes/default/images/icon/user.png" /> + <?php include_once( 'modules/template_engine/components/html/user/component-user.php'); { component_user($lastchange_user); ?> + <?php } ?> + </td> + </tr> + </table> + </div> + </div> + </td> + </tr> + </table> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/pub.php b/modules/cms/ui/themes/default/html/views/pageelement/pub.php @@ -1,23 +1,43 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form pageelement"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="files" value="1" <?php if(''.@$files.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_files'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="files" value="1" <?php if(@$files){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_files'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/structure.php b/modules/cms/ui/themes/default/html/views/pageelement/structure.php @@ -1,5 +1,7 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(isset($text)); if($if2) { ?> - <div class="structure"> - </div> - <?php } ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(isset($text)); if($if1) { ?> + <div class="structure"> + </div> + <?php } ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/pageelement/value.php b/modules/cms/ui/themes/default/html/views/pageelement/value.php @@ -1,261 +1,360 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> - <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" class=""> - </input> - <input type="hidden" name="elementid" value="<?php echo encodeHtml(htmlentities(@$elementid)) ?>" class=""> - </input> - <input type="hidden" name="value_time" value="<?php echo encodeHtml(htmlentities(@$value_time)) ?>" class=""> - </input> - <span class="help"><?php echo encodeHtml(htmlentities(@$desc)) ?> - </span> - <?php $if3=($type=='date'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <label class="or-form-row or-form-input"><input name="date" type="date" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$date)) ?>" class=""> - </input></label> - <label class="or-form-row or-form-input"><input name="time" type="time" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$time)) ?>" class=""> - </input></label> - </div> - </div></fieldset> - <?php } ?> - <?php $if3=($type=='text'); if($if3) { ?> - <tr class=""> - <td colspan="2" class=""> - <input name="text" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" class="text"> - </input> - </td> - </tr> - <?php } ?> - <?php $if3=($type=='longtext'); if($if3) { ?> - <input type="hidden" name="format" value="<?php echo encodeHtml(htmlentities(@$format)) ?>" class=""> - </input> - <?php $if4=(isset($preview)); if($if4) { ?> - <div class="preview"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <span class=""><?php echo @$preview ?> - </span> - </div></fieldset> - </div> - <?php } ?> - <?php $if4=($editor=='markdown'); if($if4) { ?> - <textarea name="text" class="editor markdown-editor"> - </textarea> - <?php } ?> - <?php $if4=($editor=='html'); if($if4) { ?> - <textarea name="text" id="pageelement_edit_editor" class="editor html-editor"> - </textarea> - <?php } ?> - <?php $if4=($editor=='wiki'); if($if4) { ?> - <?php $if5=(isset($languagetext)); if($if5) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <span class=""><?php echo encodeHtml(htmlentities(@$languagetext)) ?> - </span> - </div></fieldset> - <br> - </br> - <br> - </br> - <?php } ?> - <textarea name="text" class="editor wiki-editor"> - </textarea> - <fieldset class="or-group toggle-open-close closed show"><div class="closable"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','strong-begin'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('text_markup_strong'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','strong-end'))) ?> - </span> - <br> - </br> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','emphatic-begin'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('text_markup_emphatic'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','emphatic-end'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-numbered'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('text_markup_numbered_list'))) ?> - </span> - <br> - </br> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-numbered'))) ?> - </span> - <span class="">... - </span> - <br> - </br> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-unnumbered'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('text_markup_unnumbered_list'))) ?> - </span> - <br> - </br> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-unnumbered'))) ?> - </span> - <span class="">... - </span> - <br> - </br> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('text_markup_table'))) ?> - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <span class="">... - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <span class="">... - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <br> - </br> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <span class="">... - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <span class="">... - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <span class="">... - </span> - <span class=""><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> - </span> - <br> - </br> - </td> - </table></div></div> - </div></fieldset> - <?php } ?> - <?php $if4=($editor=='text'); if($if4) { ?> - <textarea name="text" disabled="" maxlength="0" class="editor raw-editor"><?php echo encodeHtml(htmlentities(@$text)) ?> - </textarea> - <?php } ?> - <?php } ?> - <?php $if3=($type=='link'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('link_target'))) ?> - </span> - </label> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('link_url'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="linkurl" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$linkurl)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - <?php } ?> - <?php $if3=($type=='list'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <input name="linkobjectid" value="<?php echo encodeHtml(htmlentities(@$linkobjectid)) ?>" size="1" class=""> - </input> - </div> - </div></fieldset> - <?php } ?> - <?php $if3=($type=='insert'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <input name="linkobjectid" value="<?php echo encodeHtml(htmlentities(@$linkobjectid)) ?>" size="1" class=""> - </input> - </div> - </div></fieldset> - <?php } ?> - <?php $if3=($type=='number'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <input type="hidden" name="decimals" value="decimals" class=""> - </input> - <input name="number" type="text" maxlength="20" value="<?php echo encodeHtml(htmlentities(@$number)) ?>" class=""> - </input> - </div> - </div></fieldset> - <?php } ?> - <?php $if3=($type=='select'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <input name="text" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" size="1" class=""> - </input> - </div> - </div></fieldset> - <?php } ?> - <?php $if3=($type=='longtext'); if($if3) { ?> - <?php $if4=($editor=='wiki'); if($if4) { ?> - <?php $if5=(isset($languages)); if($if5) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <?php foreach($languages as $languageid=>$languagename) { ?> - <input type="radio" name="otherlanguageid" disabled="" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" checked="<?php echo encodeHtml(htmlentities(@$otherlanguageid)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@$languagename)) ?> - </span> - </label> - <br> - </br> - <?php } ?> - </div> - </div></fieldset> - <?php } ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <input type="checkbox" name="preview" value="1" <?php if(''.@$preview.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('PAGE_PREVIEW'))) ?> - </span> - </label> - </div> - </div></fieldset> - <?php } ?> - <?php } ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php $if4=(isset($release)); if($if4) { ?> - <div class=""> - <input type="checkbox" name="release" value="1" <?php if(''.@$release.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> - </span> - </label> - </div> - <?php } ?> - <?php $if4=(isset($publish)); if($if4) { ?> - <div class=""> - <input type="checkbox" name="publish" value="1" <?php if(''.@$publish.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('PAGE_PUBLISH_AFTER_SAVE'))) ?> - </span> - </label> - </div> - <?php } ?> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="pageelement" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form pageelement"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="pageelement" /> + <input type="hidden" name="subaction" value="value" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="languageid" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" /> + <input type="hidden" name="elementid" value="<?php echo encodeHtml(htmlentities(@$elementid)) ?>" /> + <input type="hidden" name="value_time" value="<?php echo encodeHtml(htmlentities(@$value_time)) ?>" /> + <span class="help"><?php echo encodeHtml(htmlentities(@$desc)) ?> + </span> + <?php $if1=($type=='date'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('date'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <label class="or-form-row or-form-input"> + <span class="or-form-label">date + </span> + <input name="date" type="date" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$date)) ?>" /> + </label> + <label class="or-form-row or-form-input"> + <span class="or-form-label">time + </span> + <input name="time" type="time" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$time)) ?>" /> + </label> + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($type=='text'); if($if1) { ?> + <tr> + <td colspan="2"> + <div class="inputholder"> + <input name="text" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" class="text" /> + </div> + </td> + </tr> + <?php } ?> + <?php $if1=($type=='longtext'); if($if1) { ?> + <input type="hidden" name="format" value="<?php echo encodeHtml(htmlentities(@$format)) ?>" /> + <?php $if1=(isset($preview)); if($if1) { ?> + <div class="preview"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('page_preview'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <span><?php echo @$preview ?> + </span> + </div> + </fieldset> + </div> + <?php } ?> + <?php $if1=($editor=='markdown'); if($if1) { ?> + <textarea name="text" class="editor markdown-editor"><?php echo encodeHtml(htmlentities(@$text)) ?> + </textarea> + <?php } ?> + <?php $if1=($editor=='html'); if($if1) { ?> + <textarea name="text" id="pageelement_edit_editor" class="editor html-editor"><?php echo @$text ?> + </textarea> + <?php } ?> + <?php $if1=($editor=='wiki'); if($if1) { ?> + <?php $if1=(isset($languagetext)); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@$languagename)) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <span><?php echo encodeHtml(htmlentities(@$languagetext)) ?> + </span> + </div> + </fieldset> + <br /> + <br /> + <?php } ?> + <textarea name="text" class="editor wiki-editor"><?php echo @$text ?> + </textarea> + <fieldset class="or-group toggle-open-close closed show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('help'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <td> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','strong-begin'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('text_markup_strong'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','strong-end'))) ?> + </span> + <br /> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','emphatic-begin'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('text_markup_emphatic'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','emphatic-end'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-numbered'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('text_markup_numbered_list'))) ?> + </span> + <br /> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-numbered'))) ?> + </span> + <span>... + </span> + <br /> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-unnumbered'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('text_markup_unnumbered_list'))) ?> + </span> + <br /> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','list-unnumbered'))) ?> + </span> + <span>... + </span> + <br /> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(@lang('text_markup_table'))) ?> + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <span>... + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <span>... + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <br /> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <span>... + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <span>... + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <span>... + </span> + <span><?php echo encodeHtml(htmlentities(config('editor','text-markup','table-cell-sep'))) ?> + </span> + <br /> + </td> + </table> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($editor=='text'); if($if1) { ?> + <textarea name="text" disabled="" maxlength="0" class="editor raw-editor"><?php echo encodeHtml(htmlentities(@$text)) ?> + </textarea> + + <?php } ?> + <?php } ?> + <?php $if1=($type=='link'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('link_target'))) ?> + </span> + </label> + </div> + <div class="input"> + + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('link_url'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="linkurl" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$linkurl)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($type=='list'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class=""> + <select name="linkobjectid" size="1"> + <?php foreach($objects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$linkobjectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($type=='insert'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class=""> + <select name="linkobjectid" size="1"> + <?php foreach($objects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$linkobjectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($type=='number'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class=""> + <input type="hidden" name="decimals" value="decimals" /> + <div class="inputholder"> + <input name="number" type="text" maxlength="20" value="<?php echo encodeHtml(htmlentities(@$number)) ?>" /> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($type=='select'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class=""> + <select name="text" size="1"> + <?php foreach($items as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$text){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </fieldset> + <?php } ?> + <?php $if1=($type=='longtext'); if($if1) { ?> + <?php $if1=($editor=='wiki'); if($if1) { ?> + <?php $if1=(isset($languages)); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('editor_show_language'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class=""> + <?php foreach($languages as $languageid=>$languagename) { ?> + <input type="radio" name="otherlanguageid" disabled="" value="<?php echo encodeHtml(htmlentities(@$languageid)) ?>" checked="<?php echo encodeHtml(htmlentities(@$otherlanguageid)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@$languagename)) ?> + </span> + </label> + <br /> + <?php } ?> + </div> + </div> + </fieldset> + <?php } ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('PAGE_PREVIEW'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class=""> + <input type="checkbox" name="preview" value="1" <?php if(@$preview){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('PAGE_PREVIEW'))) ?> + </span> + </label> + </div> + </div> + </fieldset> + <?php } ?> + <?php } ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php $if1=(isset($release)); if($if1) { ?> + <div class=""> + <input type="checkbox" name="release" value="1" <?php if(@$release){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_RELEASE'))) ?> + </span> + </label> + </div> + <?php } ?> + <?php $if1=(isset($publish)); if($if1) { ?> + <div class=""> + <input type="checkbox" name="publish" value="1" <?php if(@$publish){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('PAGE_PUBLISH_AFTER_SAVE'))) ?> + </span> + </label> + </div> + <?php } ?> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('APPLY'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--apply" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('save'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/profile/confirmmail.php b/modules/cms/ui/themes/default/html/views/profile/confirmmail.php @@ -1,15 +1,37 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="line logo"> - </div> - <form name="" target="_self" data-target="view" action="./" data-method="confirmmail" data-action="profile" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('mail_code'))) ?> - </label> - </div> - <div class="input"> - <input name="code" required="required" autofocus="autofocus" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$code)) ?>" class=""> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_changemail.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_changemail'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_changemail_text'))) ?> + </p> + </div> + </div> + <form name="" target="_self" data-target="view" action="./" data-method="confirmmail" data-action="profile" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="profile" /> + <input type="hidden" name="subaction" value="confirmmail" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('mail_code'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="code" required="required" autofocus="autofocus" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$code)) ?>" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/profile/edit.php b/modules/cms/ui/themes/default/html/views/profile/edit.php @@ -1,139 +1,203 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="profile" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </label> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$mail)) ?> - </span> - <br> - </br> - <br> - </br> - <div class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('mail'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('mail'))) ?>" data-type="dialog" data-action="profile" data-method="mail" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'mail'}" href="/#/profile/" class="action"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_fullname'))) ?> - </label> - </div> - <div class="input"> - <input name="fullname" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$fullname)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_tel'))) ?> - </label> - </div> - <div class="input"> - <input name="tel" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$tel)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_desc'))) ?> - </label> - </div> - <div class="input"> - <input name="desc" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$desc)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_style'))) ?> - </label> - </div> - <div class="input"> - <input name="style" value="<?php echo encodeHtml(htmlentities(@$style)) ?>" size="1" class="or-theme-chooser"> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('timezone'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="timezone" value="<?php echo encodeHtml(htmlentities(@$timezone)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('language'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="language" value="<?php echo encodeHtml(htmlentities(@$language)) ?>" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_password_expires'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($passwordExpires); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="totp" value="1" <?php if(''.@$totp.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> - </label> - <i data-qrcode="<?php echo encodeHtml(htmlentities(@$totpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="hotp" value="1" <?php if(''.@$hotp.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_hotp'))) ?> - </label> - <i data-qrcode="<?php echo encodeHtml(htmlentities(@$hotpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="profile" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="profile" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </label> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('MENU_PROFILE_MAIL'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$mail)) ?> + </span> + <br /> + <br /> + <div class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('mail'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('mail'))) ?>" data-type="dialog" data-action="profile" data-method="mail" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'mail'}" href="/#/profile/" class="action"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_PROP'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_fullname'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="fullname" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$fullname)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_tel'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="tel" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$tel)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_desc'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="desc" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$desc)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_style'))) ?> + </label> + </div> + <div class="input"> + <select name="style" size="1" class="or-theme-chooser"> + <?php foreach($allstyles as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$style){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('timezone'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="timezone" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($timezone_list as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$timezone){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('language'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="language" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($language_list as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$language){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('security'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_password_expires'))) ?> + </span> + </div> + <div class="input"> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($passwordExpires); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="totp" value="1" <?php if(@$totp){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> + </label> + <i data-qrcode="<?php echo encodeHtml(htmlentities(@$totpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="hotp" value="1" <?php if(@$hotp){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_hotp'))) ?> + </label> + <i data-qrcode="<?php echo encodeHtml(htmlentities(@$hotpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('global_save'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/profile/history.php b/modules/cms/ui/themes/default/html/views/profile/history.php @@ -1,37 +1,46 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('project'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - </tr> - <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" data-type="open" data-action="project" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" data-extra="[]" href="/#/project/<?php echo encodeHtml(htmlentities(@$projectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$projectname)) ?> - </span> - </a> - </td> - <td title="<?php echo encodeHtml(htmlentities(@$filename)) ?>" class="clickable"> - <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </a> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('project'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + </tr> + <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" data-type="open" data-action="project" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" data-extra="[]" href="/#/project/<?php echo encodeHtml(htmlentities(@$projectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$projectname)) ?> + </span> + </a> + </td> + <td title="<?php echo encodeHtml(htmlentities(@$filename)) ?>" class="clickable"> + <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </a> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/profile/mail.php b/modules/cms/ui/themes/default/html/views/profile/mail.php @@ -1,25 +1,56 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="mail" data-action="profile" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> - <div class="line logo"> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_new_mail'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="mail" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$mail)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - <div class="clickable"> - <a target="_self" data-type="dialog" data-action="profile" data-method="confirmmail" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'confirmmail'}" href="/#/profile/" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('mail_code'))) ?> - </span> - </a> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="mail" data-action="profile" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="profile" /> + <input type="hidden" name="subaction" value="mail" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_changemail.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_changemail'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_changemail_text'))) ?> + </p> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_new_mail'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="mail" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$mail)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + <div class="clickable"> + <a target="_self" data-type="dialog" data-action="profile" data-method="confirmmail" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'confirmmail'}" href="/#/profile/"> + <span><?php echo encodeHtml(htmlentities(@lang('mail_code'))) ?> + </span> + </a> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/profile/memberships.php b/modules/cms/ui/themes/default/html/views/profile/memberships.php @@ -1,25 +1,34 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - </tr> - <?php $if3=(($groups)==FALSE); if($if3) { ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <?php foreach($groups as $list_key=>$group) { ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$group)) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + </tr> + <?php $if1=(($groups)==FALSE); if($if1) { ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <?php foreach($groups as $list_key=>$group) { ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@$group)) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/profile/pw.php b/modules/cms/ui/themes/default/html/views/profile/pw.php @@ -1,53 +1,95 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="pw" data-action="profile" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> - <?php $if3=($pwchange_enabled); if($if3) { ?> - <div class="line logo"> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_password'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="act_password" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$act_password)) ?>" class="focus"> - </input></div> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_new_password'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password1" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password1)) ?>" class=""> - </input></div> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_new_password_repeat'))) ?> - </span> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password2" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password2)) ?>" class=""> - </input></div> - </div> - </div> - </div></fieldset> - <?php } ?> - <?php if(!$if3) { ?> - <div class="message warn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('pwchange_not_allowed'))) ?> - </span> - </div> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="pw" data-action="profile" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form profile"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="profile" /> + <input type="hidden" name="subaction" value="pw" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=($pwchange_enabled); if($if1) { ?> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_changepassword.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_changepassword'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_changepassword_text'))) ?> + </p> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('user_act_password'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_password'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="act_password" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$act_password)) ?>" class="focus" /> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('user_new_password'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_new_password'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password1" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password1)) ?>" class="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_new_password_repeat'))) ?> + </span> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password2" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password2)) ?>" class="" /> + </div> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <?php if(!$if1) { ?> + <div class="message warn"> + <span><?php echo encodeHtml(htmlentities(@lang('pwchange_not_allowed'))) ?> + </span> + </div> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/add.php b/modules/cms/ui/themes/default/html/views/project/add.php @@ -1,41 +1,69 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="project" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> - <tr class=""> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </td> - </tr> - <tr class=""> - <td colspan="3" class=""> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <input type="radio" name="type" disabled="" value="empty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('empty'))) ?> - </span> - </label> - </div> - <div class=""> - <input type="radio" name="type" disabled="" value="copy" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> - </span> - </label> - <input name="projectid" value="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" size="1" class=""> - </input> - </div> - </div></fieldset> - </td> - </tr> - <tr class=""> - <td colspan="3" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="project" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="project" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </td> + </tr> + <tr> + <td colspan="3"> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class=""> + <input type="radio" name="type" disabled="" value="empty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('empty'))) ?> + </span> + </label> + </div> + <div class=""> + <input type="radio" name="type" disabled="" value="copy" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> + </span> + </label> + <select name="projectid" size="1"> + <?php foreach($projects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$projectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </fieldset> + </td> + </tr> + <tr> + <td colspan="3" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/edit.php b/modules/cms/ui/themes/default/html/views/project/edit.php @@ -1,37 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> - </span> - <span class=""> / - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - </tr> - <?php $if3=(isset($up_url)); if($if3) { ?> - <tr class="data"> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon_folder_up.png" class=""> - </img> - <span class="">.. - </span> - </td> - </tr> - <?php } ?> - <?php foreach($content as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$type)) ?>"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${name'))) ?>} - </span> - <span class=""> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_TYPE'))) ?> + </span> + <span> / + </span> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + </tr> + <?php $if1=(isset($up_url)); if($if1) { ?> + <tr class="data"> + <td> + <img src="./modules/cms/ui/themes/default/images/icon_folder_up.png" /> + <span>.. + </span> + </td> + </tr> + <?php } ?> + <?php foreach($content as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$type)) ?>"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('${name'))) ?>} + </span> + <span> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/export.php b/modules/cms/ui/themes/default/html/views/project/export.php @@ -1,13 +1,29 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="export" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DATABASE'))) ?> - </span> - </div> - <div class="input"> - <input name="dbid" value="actdbid" size="1" class=""> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="export" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="project" /> + <input type="hidden" name="subaction" value="export" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DATABASE'))) ?> + </span> + </div> + <div class="input"> + <select name="dbid" size="1"> + <?php foreach($dbids as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key=='actdbid'){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/history.php b/modules/cms/ui/themes/default/html/views/project/history.php @@ -1,63 +1,72 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - </tr> - <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> - <?php $if4=($typeid=='1'); if($if4) { ?> - <?php { $type= 'folder'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='2'); if($if4) { ?> - <?php { $type= 'file'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='3'); if($if4) { ?> - <?php { $type= 'page'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='4'); if($if4) { ?> - <?php { $type= 'link'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='5'); if($if4) { ?> - <?php { $type= 'url'; ?> - <?php } ?> - <?php } ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$username)) ?> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + </tr> + <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> + <?php $if1=($typeid=='1'); if($if1) { ?> + <?php { $type= 'folder'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='2'); if($if1) { ?> + <?php { $type= 'file'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='3'); if($if1) { ?> + <?php { $type= 'page'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='4'); if($if1) { ?> + <?php { $type= 'link'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='5'); if($if1) { ?> + <?php { $type= 'url'; ?> + <?php } ?> + <?php } ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$username)) ?> + </span> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/info.php b/modules/cms/ui/themes/default/html/views/project/info.php @@ -1,7 +1,22 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> - <?php foreach($info as $list_key=>$list_value) { ?> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$list_value)) ?> - </span></span></label> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="project" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php foreach($info as $list_key=>$list_value) { ?> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:<?php echo encodeHtml(htmlentities(@$list_key)) ?> + </span> + </label> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/maintenance.php b/modules/cms/ui/themes/default/html/views/project/maintenance.php @@ -1,25 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="maintenance" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class=""> - <span class=""> - </span> - <input type="radio" name="type" disabled="" value="check_limit" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('project_check_limit'))) ?> - </span> - </label> - </div> - <div class=""> - <span class=""> - </span> - <input type="radio" name="type" disabled="" value="check_files" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('project_check_files'))) ?> - </span> - </label> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="maintenance" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="project" /> + <input type="hidden" name="subaction" value="maintenance" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class=""> + <span> + </span> + <input type="radio" name="type" disabled="" value="check_limit" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('project_check_limit'))) ?> + </span> + </label> + </div> + <div class=""> + <span> + </span> + <input type="radio" name="type" disabled="" value="check_files" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('project_check_files'))) ?> + </span> + </label> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/prop.php b/modules/cms/ui/themes/default/html/views/project/prop.php @@ -1,115 +1,169 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_NAME'))) ?> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="name"> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_HOSTNAME'))) ?> - </label> - </div> - <div class="input"> - <input name="url" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_TARGET_DIR'))) ?> - </label> - </div> - <div class="input"> - <input name="target_dir" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$target_dir)) ?>" class="filename"> - </input> - </div> - </div> - <?php $if4=(config('publish','project','override_system_command')); if($if4) { ?> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_CMD_AFTER_PUBLISH'))) ?> - </label> - </div> - <div class="input"> - <input name="cmd_after_publish" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$cmd_after_publish)) ?>" class="filename"> - </input> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="publishFileExtension" value="1" <?php if(''.@$publishFileExtension.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_publish_File_Extension'))) ?> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="publishPageExtension" value="1" <?php if(''.@$publishPageExtension.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_publish_page_Extension'))) ?> - </label> - </div> - </div> - <label class="or-form-row or-form-radio"><input type="radio" name="linksAbsolute" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$linksAbsolute)) ?>" class=""> - </input></label> - <label class="or-form-row or-form-radio"><input type="radio" name="linksAbsolute" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$linksAbsolute)) ?>" class=""> - </input></label> - </div></fieldset> - <?php $if3=('config:publish/ftp/enable'); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_FTP_URL'))) ?> - </label> - </div> - <div class="input"> - <input name="ftp_url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$ftp_url)) ?>" class="filename"> - </input> - <br> - </br> - <input type="checkbox" name="ftp_passive" value="1" <?php if(''.@$ftp_passive.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_FTP_PASSIVE'))) ?> - </label> - </div> - </div> - </div></fieldset> - <?php } ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="content_negotiation" value="1" <?php if(''.@$content_negotiation.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_CONTENT_NEGOTIATION'))) ?> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="cut_index" value="1" <?php if(''.@$cut_index.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_CUT_INDEX'))) ?> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="project" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_NAME'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="name" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_HOSTNAME'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="url" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('PUBLISH'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_TARGET_DIR'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="target_dir" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$target_dir)) ?>" class="filename" /> + </div> + </div> + </div> + <?php $if1=(config('publish','project','override_system_command')); if($if1) { ?> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_CMD_AFTER_PUBLISH'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="cmd_after_publish" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$cmd_after_publish)) ?>" class="filename" /> + </div> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="publishFileExtension" value="1" <?php if(@$publishFileExtension){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_publish_File_Extension'))) ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="publishPageExtension" value="1" <?php if(@$publishPageExtension){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_publish_page_Extension'))) ?> + </label> + </div> + </div> + <label class="or-form-row or-form-radio"> + <span class="or-form-label">LINKS_RELATIVE + </span> + <input type="radio" name="linksAbsolute" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$linksAbsolute)) ?>" /> + </label> + <label class="or-form-row or-form-radio"> + <span class="or-form-label">LINKS_ABSOLUTE + </span> + <input type="radio" name="linksAbsolute" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$linksAbsolute)) ?>" /> + </label> + </div> + </fieldset> + <?php $if1=('config:publish/ftp/enable'); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('project_FTP'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_FTP_URL'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="ftp_url" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$ftp_url)) ?>" class="filename" /> + </div> + <br /> + <input type="checkbox" name="ftp_passive" value="1" <?php if(@$ftp_passive){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_FTP_PASSIVE'))) ?> + </label> + </div> + </div> + </div> + </fieldset> + <?php } ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="content_negotiation" value="1" <?php if(@$content_negotiation){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_CONTENT_NEGOTIATION'))) ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="cut_index" value="1" <?php if(@$cut_index){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('PROJECT_CUT_INDEX'))) ?> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/project/remove.php b/modules/cms/ui/themes/default/html/views/project/remove.php @@ -1,29 +1,49 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <div class=""> - <input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> - </span> - </label> - </div> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="project" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form project"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="project" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <div class=""> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> + </span> + </label> + </div> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/projectlist/add.php b/modules/cms/ui/themes/default/html/views/projectlist/add.php @@ -1,37 +1,60 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="projectlist" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form projectlist"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="empty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('empty'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="type" disabled="" value="copy" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> - </span> - </label> - <input name="projectid" value="" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="projectlist" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form projectlist"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="projectlist" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="empty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('empty'))) ?> + </span> + </label> + <br /> + <input type="radio" name="type" disabled="" value="copy" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> + </span> + </label> + <select name="projectid" size="1"> + <?php foreach($projects as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$projectid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/projectlist/edit.php b/modules/cms/ui/themes/default/html/views/projectlist/edit.php @@ -1,31 +1,41 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - </tr> - <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="project" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/project/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <i class="image-icon image-icon--action-project"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('new'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('new'))) ?>" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + </tr> + <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="project" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/project/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <i class="image-icon image-icon--action-project"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('new'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('new'))) ?>" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/projectlist/history.php b/modules/cms/ui/themes/default/html/views/projectlist/history.php @@ -1,43 +1,52 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('project'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - </tr> - <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" data-type="post" data-action="start" data-method="projectmenu" data-id="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" data-extra="[]" data-data="{"action":"start","subaction":"projectmenu","id":"<?php echo encodeHtml(htmlentities(@$projectid)) ?>",\"token":"<?php echo token() ?>","none":"0"}"" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$projectname)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$username)) ?> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('project'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + </tr> + <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" data-type="post" data-action="start" data-method="projectmenu" data-id="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" data-extra="[]" data-data="{"action":"start","subaction":"projectmenu","id":"<?php echo encodeHtml(htmlentities(@$projectid)) ?>",\"token":"<?php echo token() ?>","none":"0"}""> + <span><?php echo encodeHtml(htmlentities(@$projectname)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$username)) ?> + </span> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/projectlist/info.php b/modules/cms/ui/themes/default/html/views/projectlist/info.php @@ -1 +1,3 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/search/edit.php b/modules/cms/ui/themes/default/html/views/search/edit.php @@ -1,67 +1,69 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="result" data-action="search" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form search"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('value'))) ?> - </span> - </label> - <br> - </br> - </div> - <div class="input"> - <input name="text" placeholder="<?php echo encodeHtml(htmlentities(@lang('search'))) ?>" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filter'))) ?> - </span> - </label> - <br> - </br> - </div> - <div class="input"> - <input type="checkbox" name="id" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','id'))) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('id'))) ?> - </span> - </label> - <br> - </br> - <input type="checkbox" name="name" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','name'))) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </label> - <br> - </br> - <input type="checkbox" name="filename" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','filename'))) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> - </span> - </label> - <br> - </br> - <input type="checkbox" name="description" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','description'))) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('description'))) ?> - </span> - </label> - <br> - </br> - <input type="checkbox" name="content" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','content'))) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('content'))) ?> - </span> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="result" data-action="search" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form search"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="search" /> + <input type="hidden" name="subaction" value="result" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('value'))) ?> + </span> + </label> + <br /> + </div> + <div class="input"> + <div class="inputholder"> + <input name="text" placeholder="<?php echo encodeHtml(htmlentities(@lang('search'))) ?>" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('filter'))) ?> + </span> + </label> + <br /> + </div> + <div class="input"> + <input type="checkbox" name="id" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','id'))) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('id'))) ?> + </span> + </label> + <br /> + <input type="checkbox" name="name" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','name'))) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </label> + <br /> + <input type="checkbox" name="filename" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','filename'))) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> + </span> + </label> + <br /> + <input type="checkbox" name="description" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','description'))) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + </span> + </label> + <br /> + <input type="checkbox" name="content" value="1" checked="<?php echo encodeHtml(htmlentities(config('search','quicksearch','flag','content'))) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('content'))) ?> + </span> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/search/result.php b/modules/cms/ui/themes/default/html/views/search/result.php @@ -1,29 +1,37 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class=""> - <td class="header"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="header"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LASTCHANGE'))) ?> - </span> - </td> - </tr> - <?php foreach($result as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <img src="./modules/cms-ui/themes/default/images/icon_<?php echo encodeHtml(htmlentities(@$type)) ?>.png" class=""> - </img> - <span title="<?php echo encodeHtml(htmlentities(@$desc)) ?>" class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr> + <td class="header"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="header"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LASTCHANGE'))) ?> + </span> + </td> + </tr> + <?php foreach($result as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <img src="./modules/cms/ui/themes/default/images/icon_<?php echo encodeHtml(htmlentities(@$type)) ?>.png" /> + <span title="<?php echo encodeHtml(htmlentities(@$desc)) ?>"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/start/applications.php b/modules/cms/ui/themes/default/html/views/start/applications.php @@ -1,25 +1,34 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="data"> - <td colspan="2" class=""> - <a target="_self" data-action="index" data-method="projectmenu" data-id="" data-extra="[]" href="/#/index/" class=""> - <span class="">OpenRat - </span> - </a> - </td> - </tr> - <?php foreach($applications as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$description)) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="data"> + <td colspan="2"> + <a target="_self" data-action="index" data-method="projectmenu" data-id="" data-extra="[]" href="/#/index/"> + <span>OpenRat + </span> + </a> + </td> + </tr> + <?php foreach($applications as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <a target="_self" data-url="<?php echo encodeHtml(htmlentities(@$url)) ?>" data-action="" data-method="" data-id="" data-extra="[]" href="/#//"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$description)) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/start/projectmenu.php b/modules/cms/ui/themes/default/html/views/start/projectmenu.php @@ -1,51 +1,98 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class=""> - <td colspan="2" class="logo"> - <div class="line logo"> - </div> - </td> - </tr> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('project'))) ?> - </span> - </td> - </tr> - <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('TREE_CHOOSE_PROJECT'))) ?>" target="_self" data-type="post" data-action="" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" data-data="{"action":"start","subaction":"projectmenu","id":"<?php echo encodeHtml(htmlentities(@$id)) ?>",\"token":"<?php echo token() ?>","none":"0"}"" class=""> - <?php { $project= 'project'; ?> - <?php } ?> - <img src="./modules/cms-ui/themes/default/images/icon_project.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - <div class="onrowvisible"> - <div class="arrow-down"> - </div> - <div class="dropdown"> - <form name="" target="_self" data-target="view" action="./" data-method="project" data-action="index" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form index"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class=""> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php'); { <?php component_radio_box(modelid,$models,${defaultmodelid}) ?> ?> - <?php } ?> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/radiobox/component-radio-box.php'); { <?php component_radio_box(languageid,$languages,${defaultlanguageid}) ?> ?> - <?php } ?> - </td> - <td class=""> - </td> - </tr> - </table></div></div> - </form> - </div> - </div> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr> + <td colspan="2" class="logo"> + <div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_projectmenu.png" border="0" /> + </div> + <div class="input"> + <h2><?php echo encodeHtml(htmlentities(@lang('logo_projectmenu'))) ?> + </h2> + <p><?php echo encodeHtml(htmlentities(@lang('logo_projectmenu_text'))) ?> + </p> + </div> + </div> + </td> + </tr> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('project'))) ?> + </span> + </td> + </tr> + <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('TREE_CHOOSE_PROJECT'))) ?>" target="_self" data-type="post" data-action="" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" data-data="{"action":"start","subaction":"projectmenu","id":"<?php echo encodeHtml(htmlentities(@$id)) ?>",\"token":"<?php echo token() ?>","none":"0"}""> + <?php { $project= 'project'; ?> + <?php } ?> + <img src="./modules/cms/ui/themes/default/images/icon_project.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + <div class="onrowvisible"> + <div class="arrow-down"> + </div> + <div class="dropdown"> + <form name="" target="_self" data-target="view" action="./" data-method="project" data-action="index" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form index"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="index" /> + <input type="hidden" name="subaction" value="project" /> + <input type="hidden" name="id" value="<?php echo encodeHtml(htmlentities(@$id)) ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr> + <td> + <?php foreach( $models as $_key=>$_value) { ?> + <label> + <input type="radio" name="modelid" value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==${defaultmodelid}){ ?>checked="checked"<?php } ?> /> + <span><?php echo encodeHtml(htmlentities(@$_value)) ?> + </span> + </label> + <br /> + <?php } ?> + </td> + <td> + <?php foreach( $languages as $_key=>$_value) { ?> + <label> + <input type="radio" name="languageid" value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==${defaultlanguageid}){ ?>checked="checked"<?php } ?> /> + <span><?php echo encodeHtml(htmlentities(@$_value)) ?> + </span> + </label> + <br /> + <?php } ?> + </td> + <td> + + </td> + </tr> + </table> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + </div> + </div> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/start/userprojecttimeline.php b/modules/cms/ui/themes/default/html/views/start/userprojecttimeline.php @@ -1,51 +1,60 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - </tr> - <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> - <?php $if4=($typeid=='1'); if($if4) { ?> - <?php { $type= 'folder'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='2'); if($if4) { ?> - <?php { $type= 'file'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='4'); if($if4) { ?> - <?php { $type= 'link'; ?> - <?php } ?> - <?php } ?> - <?php $if4=($typeid=='3'); if($if4) { ?> - <?php { $type= 'page'; ?> - <?php } ?> - <?php } ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + </tr> + <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> + <?php $if1=($typeid=='1'); if($if1) { ?> + <?php { $type= 'folder'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='2'); if($if1) { ?> + <?php { $type= 'file'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='4'); if($if1) { ?> + <?php { $type= 'link'; ?> + <?php } ?> + <?php } ?> + <?php $if1=($typeid=='3'); if($if1) { ?> + <?php { $type= 'page'; ?> + <?php } ?> + <?php } ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/addel.php b/modules/cms/ui/themes/default/html/views/template/addel.php @@ -1,39 +1,65 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="addel" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> - </span> - </div> - <div class="input"> - <input name="name" required="required" autofocus="autofocus" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('element_type'))) ?> - </span> - </div> - <div class="input"> - <?php { $text= 'text'; ?> - <?php } ?> - <input name="typeid" value="<?php echo encodeHtml(htmlentities(@$typeid)) ?>" size="1" class=""> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <label class="label"> - <input type="checkbox" name="addtotemplate" value="1" checked="1" class=""> - </input> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_template_srcelement'))) ?> - </span> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="addel" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="addel" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('global_name'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" required="required" autofocus="autofocus" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('element_type'))) ?> + </span> + </div> + <div class="input"> + <?php { $text= 'text'; ?> + <?php } ?> + <select name="typeid" size="1"> + <?php foreach($types as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$typeid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <label class="label"> + <input type="checkbox" name="addtotemplate" value="1" checked="1" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_template_srcelement'))) ?> + </span> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/edit.php b/modules/cms/ui/themes/default/html/views/template/edit.php @@ -1,63 +1,81 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </td> - </tr> - <?php foreach($elements as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="element" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/element/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$type)) ?>"> - </i> - <span title="<?php echo encodeHtml(htmlentities(@$description)) ?>" class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('${type'))) ?>} - </span> - </td> - </tr> - <?php } ?> - <?php $if3=(($elements)==FALSE); if($if3) { ?> - <tr class=""> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td colspan="2" class="clickable"> - <a target="_self" data-type="dialog" data-action="template" data-method="addel" data-id="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" data-extra="{'dialogAction':'template','dialogMethod':'addel'}" href="/#/template/<?php echo encodeHtml(htmlentities(@$templateid)) ?>" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_template_addel'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div> - <?php foreach($models as $list_key=>$list_value) { extract($list_value); ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="clickable"> - <code class=""><?php echo encodeHtml(htmlentities(@$source)) ?> - </code> - <br> - </br> - <a target="_self" data-type="edit" data-action="" data-method="src" data-id="" data-extra="{'modelid':'<?php echo encodeHtml(htmlentities(@$modelid)) ?>'}" href="/#//" class="or-form-button"> - <i class="image-icon image-icon--action-template"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div></fieldset> - <?php } ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </td> + </tr> + <?php foreach($elements as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="element" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/element/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <i class="image-icon image-icon--action-el_<?php echo encodeHtml(htmlentities(@$type)) ?>"> + </i> + <span title="<?php echo encodeHtml(htmlentities(@$description)) ?>"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('${type'))) ?>} + </span> + </td> + </tr> + <?php } ?> + <?php $if1=(($elements)==FALSE); if($if1) { ?> + <tr> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td colspan="2" class="clickable"> + <a target="_self" data-type="dialog" data-action="template" data-method="addel" data-id="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" data-extra="{'dialogAction':'template','dialogMethod':'addel'}" href="/#/template/<?php echo encodeHtml(htmlentities(@$templateid)) ?>"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_template_addel'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php foreach($models as $list_key=>$list_value) { extract($list_value); ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@$name)) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="clickable"> + <code><?php echo encodeHtml(htmlentities(@$source)) ?> + </code> + <br /> + <a target="_self" data-type="edit" data-action="" data-method="src" data-id="" data-extra="{'modelid':'<?php echo encodeHtml(htmlentities(@$modelid)) ?>'}" href="/#//" class="or-form-button"> + <i class="image-icon image-icon--action-template"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </fieldset> + <?php } ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/extension.php b/modules/cms/ui/themes/default/html/views/template/extension.php @@ -1,11 +1,35 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="extension" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> - <?php foreach($extension as $list_key=>$list_value) { extract($list_value); ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php { $$name= $extension; ?> - <?php } ?> - <label class="or-form-row or-form-input"><input name="<?php echo encodeHtml(htmlentities(@$name)) ?>" required="required" type="text" maxlength="10" value="<?php echo encodeHtml(htmlentities(@$${name)) ?>}" class=""> - </input></label> - </div></fieldset> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="extension" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="extension" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php foreach($extension as $list_key=>$list_value) { extract($list_value); ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@$name)) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php { $$name= $extension; ?> + <?php } ?> + <label class="or-form-row or-form-input"> + <span class="or-form-label">template_extension + </span> + <input name="<?php echo encodeHtml(htmlentities(@$name)) ?>" required="required" type="text" maxlength="10" value="<?php echo encodeHtml(htmlentities(@$${name)) ?>}" /> + </label> + </div> + </fieldset> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/info.php b/modules/cms/ui/themes/default/html/views/template/info.php @@ -1,31 +1,37 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="data"> - <td colspan="1" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('id'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$id)) ?> - </span> - </td> - </tr> - <tr class="headline"> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('pages'))) ?> - </span> - </td> - </tr> - <?php foreach($pages as $pageid=>$name) { ?> - <tr class="data"> - <td colspan="2" class="clickable"> - <a target="_self" data-type="open" data-action="page" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$pageid)) ?>" data-extra="[]" href="/#/page/<?php echo encodeHtml(htmlentities(@$pageid)) ?>" class=""> - <i class="image-icon image-icon--action-page"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-area"> + <table width="100%"> + <tr class="data"> + <td colspan="1"> + <span><?php echo encodeHtml(htmlentities(@lang('id'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$id)) ?> + </span> + </td> + </tr> + <tr class="headline"> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('pages'))) ?> + </span> + </td> + </tr> + <?php foreach($pages as $pageid=>$name) { ?> + <tr class="data"> + <td colspan="2" class="clickable"> + <a target="_self" data-type="open" data-action="page" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$pageid)) ?>" data-extra="[]" href="/#/page/<?php echo encodeHtml(htmlentities(@$pageid)) ?>"> + <i class="image-icon image-icon--action-page"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/listing.php b/modules/cms/ui/themes/default/html/views/template/listing.php @@ -1,25 +1,37 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - </tr> - <?php foreach($templates as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - </tr> - <?php } ?> - </table></div></div> - <?php $if4=(($templates)==FALSE); if($if4) { ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NO_TEMPLATES_AVAILABLE_DESC'))) ?> - </span> - <?php } ?> - <a target="_self" data-action="template" data-method="add" data-id="" data-extra="[]" href="/#/template/" class="action"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_template_add'))) ?> - </span> - </a>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + </tr> + <?php foreach($templates as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php $if1=(($templates)==FALSE); if($if1) { ?> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NO_TEMPLATES_AVAILABLE_DESC'))) ?> + </span> + <?php } ?> + <a target="_self" data-action="template" data-method="add" data-id="" data-extra="[]" href="/#/template/" class="action"> + <span><?php echo encodeHtml(htmlentities(@lang('menu_template_add'))) ?> + </span> + </a> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/preview.php b/modules/cms/ui/themes/default/html/views/template/preview.php @@ -1,21 +1,43 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="self" action="./" data-method="preview" data-action="template" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form template"> - <input name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" size="1" class=""> - </input> - </form> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" class=""> - </iframe> - <a target="_self" data-action="file" data-method="edit" data-id="" data-extra="[]" href="/#/file/" class="action"> - <img src="./modules/cms-ui/themes/default/images/icon/icon/edit.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_file_edit'))) ?> - </span> - </a> - <a target="_self" data-action="file" data-method="editvalue" data-id="" data-extra="[]" href="/#/file/" class="action"> - <img src="./modules/cms-ui/themes/default/images/icon/icon/editvalue.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_file_editvalue'))) ?> - </span> - </a> - </div></fieldset>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="self" action="./" data-method="preview" data-action="template" data-id="<?php echo OR_ID ?>" method="GET" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="1" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="preview" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <select name="modelid" size="1"> + <?php foreach($models as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==''.@$modelid.''){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + <div class="or-form-actionbar"> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('preview'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>"> + </iframe> + <a target="_self" data-action="file" data-method="edit" data-id="" data-extra="[]" href="/#/file/" class="action"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/edit.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_file_edit'))) ?> + </span> + </a> + <a target="_self" data-action="file" data-method="editvalue" data-id="" data-extra="[]" href="/#/file/" class="action"> + <img src="./modules/cms/ui/themes/default/images/icon/icon/editvalue.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('menu_file_editvalue'))) ?> + </span> + </a> + </div> + </fieldset> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/prop.php b/modules/cms/ui/themes/default/html/views/template/prop.php @@ -1,49 +1,65 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('TEMPLATE_NAME'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('file_extension'))) ?> - </span> - </div> - <div class="input"> - <a target="_self" data-type="view" data-action="" data-method="extension" data-id="" data-extra="[]" href="/#//" class=""> - <div class="inputholder"> - <span class=""><?php echo encodeHtml(htmlentities(@$extension)) ?> - </span> - </div> - </a> - <div class="clickable"> - <a target="_self" data-type="view" data-action="" data-method="extension" data-id="" data-extra="[]" href="/#//" class="action"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('file_mimetype'))) ?> - </span> - </div> - <div class="input"> - <a target="_self" data-action="template" data-method="extension" data-id="" data-extra="[]" href="/#/template/" class=""> - <div class="inputholder"> - <span class=""><?php echo encodeHtml(htmlentities(@$mime_type)) ?> - </span> - </div> - </a> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('TEMPLATE_NAME'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('file_extension'))) ?> + </span> + </div> + <div class="input"> + <a target="_self" data-type="view" data-action="" data-method="extension" data-id="" data-extra="[]" href="/#//"> + <div class="inputholder"> + <span><?php echo encodeHtml(htmlentities(@$extension)) ?> + </span> + </div> + </a> + <div class="clickable"> + <a target="_self" data-type="view" data-action="" data-method="extension" data-id="" data-extra="[]" href="/#//" class="action"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('file_mimetype'))) ?> + </span> + </div> + <div class="input"> + <a target="_self" data-action="template" data-method="extension" data-id="" data-extra="[]" href="/#/template/"> + <div class="inputholder"> + <span><?php echo encodeHtml(htmlentities(@$mime_type)) ?> + </span> + </div> + </a> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/pub.php b/modules/cms/ui/themes/default/html/views/template/pub.php @@ -1,23 +1,43 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form template"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="pages" disabled="disabled" value="1" checked="1" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('publish'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="pages" disabled="disabled" value="1" checked="1" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('publish'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/remove.php b/modules/cms/ui/themes/default/html/views/template/remove.php @@ -1,29 +1,51 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('CONFIRM_DELETE'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/src.php b/modules/cms/ui/themes/default/html/views/template/src.php @@ -1,9 +1,30 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="src" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> - <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" class=""> - </input> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <textarea name="source" data-extension="" data-mimetype="" data-mode="htmlmixed" class="editor code-editor"> - </textarea> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="src" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="src" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <input type="hidden" name="modelid" value="<?php echo encodeHtml(htmlentities(@$modelid)) ?>" /> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('source'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <textarea name="source" data-extension="" data-mimetype="" data-mode="htmlmixed" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$source)) ?> + </textarea> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('APPLY'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--apply" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/template/srcelement.php b/modules/cms/ui/themes/default/html/views/template/srcelement.php @@ -1,61 +1,80 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="srcelement" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> - <?php $if3=(isset($elements)); if($if3) { ?> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="addelement" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('value'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="elementid" value="<?php echo encodeHtml(htmlentities(@$elementid)) ?>" size="1" class=""> - </input> - </div> - </div> - <?php } ?> - <?php $if3=(isset($writable_elements)); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="addicon" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ICON'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="writable_elementid" value="<?php echo encodeHtml(htmlentities(@$writable_elementid)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="addifempty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('TEMPLATE_SRC_IFEMPTY'))) ?> - </span> - </label> - </div> - <div class="input"> - </div> - </div> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="addifnotempty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('TEMPLATE_SRC_IFNOTEMPTY'))) ?> - </span> - </label> - </div> - <div class="input"> - </div> - </div> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="srcelement" data-action="template" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form template"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="template" /> + <input type="hidden" name="subaction" value="srcelement" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <?php $if1=(isset($elements)); if($if1) { ?> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="addelement" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('value'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="elementid" size="1"> + <?php foreach($elements as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$elementid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <?php } ?> + <?php $if1=(isset($writable_elements)); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="addicon" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_ICON'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="writable_elementid" size="1"> + <?php foreach($writable_elements as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$writable_elementid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="addifempty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('TEMPLATE_SRC_IFEMPTY'))) ?> + </span> + </label> + </div> + <div class="input"> + </div> + </div> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="addifnotempty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('TEMPLATE_SRC_IFNOTEMPTY'))) ?> + </span> + </label> + </div> + <div class="input"> + </div> + </div> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/templatelist/add.php b/modules/cms/ui/themes/default/html/views/templatelist/add.php @@ -1,55 +1,82 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="templatelist" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form templatelist"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </div> - <div class="input"> - <input name="name" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class=""> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <input type="radio" name="type" disabled="" value="empty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - </div> - <div class="input"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('empty'))) ?> - </span> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> - </span> - </label> - <input type="radio" name="type" disabled="" value="copy" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - </div> - <div class="input"> - <input name="templateid" value="<?php echo encodeHtml(htmlentities(@$templateid)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('example'))) ?> - </span> - </label> - <input type="radio" name="type" disabled="" value="example" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - </div> - <div class="input"> - <input name="example" value="<?php echo encodeHtml(htmlentities(@$example)) ?>" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="templatelist" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form templatelist"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="templatelist" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="50" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <input type="radio" name="type" disabled="" value="empty" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + </div> + <div class="input"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('empty'))) ?> + </span> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> + </span> + </label> + <input type="radio" name="type" disabled="" value="copy" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + </div> + <div class="input"> + <select name="templateid" size="1"> + <?php foreach($templates as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$templateid){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('example'))) ?> + </span> + </label> + <input type="radio" name="type" disabled="" value="example" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + </div> + <div class="input"> + <select name="example" size="1"> + <?php foreach($examples as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$example){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/templatelist/show.php b/modules/cms/ui/themes/default/html/views/templatelist/show.php @@ -1,37 +1,46 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - </tr> - <?php foreach($templates as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <i class="image-icon image-icon--action-template"> - </i> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="template" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/template/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - <?php $if3=(($templates)==FALSE); if($if3) { ?> - <tr class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NO_TEMPLATES_AVAILABLE_DESC'))) ?> - </span> - </tr> - <?php } ?> - <tr class="data"> - <td colspan="1" class="clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + </tr> + <?php foreach($templates as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <i class="image-icon image-icon--action-template"> + </i> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="template" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/template/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + <?php $if1=(($templates)==FALSE); if($if1) { ?> + <tr> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NO_TEMPLATES_AVAILABLE_DESC'))) ?> + </span> + </tr> + <?php } ?> + <tr class="data"> + <td colspan="1" class="clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/compress.php b/modules/cms/ui/themes/default/html/views/text/compress.php @@ -1,33 +1,55 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="compress" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('type'))) ?> - </span> - </div> - <div class="input"> - <?php { $gz= 'gz'; ?> - <?php } ?> - <input name="format" value="gz" size="1" class=""> - </input> - <?php { $replace= '1'; ?> - <?php } ?> - <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="compress" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="compress" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('OPTIONS'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('type'))) ?> + </span> + </div> + <div class="input"> + <?php { $gz= 'gz'; ?> + <?php } ?> + <select name="format" size="1"> + <?php foreach($formats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key=='gz'){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php { $replace= '1'; ?> + <?php } ?> + <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> + </span> + </label> + <br /> + <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/edit.php b/modules/cms/ui/themes/default/html/views/text/edit.php @@ -1,23 +1,31 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <br> - </br> - <input id="req0_file" name="file" size="40" class="upload"> - </input> - <br> - </br> - <br> - </br> - </div> - </div> - <div class="line or-dropzone-upload"> - <div class="label"> - </div> - <div class="input"> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <br /> + <input id="req0_file" name="file" size="40" class="upload" /> + <br /> + <br /> + </div> + </div> + <div class="line or-dropzone-upload"> + <div class="label"> + </div> + <div class="input"> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/extract.php b/modules/cms/ui/themes/default/html/views/text/extract.php @@ -1,7 +1,22 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="extract" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="extract" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="extract" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/preview.php b/modules/cms/ui/themes/default/html/views/text/preview.php @@ -1,3 +1,5 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" class=""> - </iframe>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <iframe src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>"> + </iframe> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/pub.php b/modules/cms/ui/themes/default/html/views/text/pub.php @@ -1,19 +1,31 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php $if2=(config('security','nopublish')); if($if2) { ?> - <div class="message warn"> - <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> - </span> - </div> - <?php } ?> - <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form text"> - <tr class=""> - <td class=""> - <br> - </br> - </td> - </tr> - <tr class=""> - <td class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php $if1=(config('security','nopublish')); if($if1) { ?> + <div class="message warn"> + <span class="help"><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOPUBLISH_DESC'))) ?> + </span> + </div> + <?php } ?> + <form name="" target="_self" data-target="view" action="./" data-method="pub" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="1" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="pub" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <tr> + <td> + <br /> + </td> + </tr> + <tr> + <td class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('publish'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/remove.php b/modules/cms/ui/themes/default/html/views/text/remove.php @@ -1,27 +1,39 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - </tr> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DELETE'))) ?> - </span> - </td> - <td class=""> - <input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - </tr> - <tr class=""> - <td colspan="2" class=""> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + </tr> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_DELETE'))) ?> + </span> + </td> + <td> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </td> + </tr> + <tr> + <td colspan="2"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/show.php b/modules/cms/ui/themes/default/html/views/text/show.php @@ -1,2 +1,3 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> -<?php echo @$value ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + <?php echo @$value ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/size.php b/modules/cms/ui/themes/default/html/views/text/size.php @@ -1,99 +1,140 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="size" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('IMAGE_OLD_SIZE'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$width)) ?> - </span> - <span class=""> * - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$height)) ?> - </span> - </div> - </div> - <?php $if3=!(($formats)==FALSE); if($if3) { ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="factor" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_SIZE_FACTOR'))) ?> - </span> - </label> - <input name="factor" value="<?php echo encodeHtml(htmlentities(@$factor)) ?>" size="1" class=""> - </input> - <?php { $factor= '1'; ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="input" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_NEW_WIDTH_HEIGHT'))) ?> - </span> - </label> - </div> - <div class="label"> - </div> - <div class="input"> - <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" class=""> - </input> - <span class=""> * - </span> - <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_FORMAT'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="format" value="<?php echo encodeHtml(htmlentities(@$format)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_JPEG_COMPRESSION'))) ?> - </span> - </label> - </div> - <div class="input"> - <?php { $jpeg_compression= '70'; ?> - <?php } ?> - <input name="jpeg_compression" value="<?php echo encodeHtml(htmlentities(@$jpeg_compression)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="copy" value="1" <?php if(''.@$copy.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> - </span> - </label> - </div> - </div> - </div></fieldset> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="size" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="size" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('IMAGE_OLD_SIZE'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$width)) ?> + </span> + <span> * + </span> + <span><?php echo encodeHtml(htmlentities(@$height)) ?> + </span> + </div> + </div> + <?php $if1=!(($formats)==FALSE); if($if1) { ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('IMAGE_NEW_SIZE'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="factor" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_SIZE_FACTOR'))) ?> + </span> + </label> + <select name="factor" size="1"> + <?php foreach($factors as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$factor){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + <?php { $factor= '1'; ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="input" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_NEW_WIDTH_HEIGHT'))) ?> + </span> + </label> + </div> + <div class="label"> + </div> + <div class="input"> + <div class="inputholder"> + <input name="width" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$width)) ?>" /> + </div> + <span> * + </span> + <div class="inputholder"> + <input name="height" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$height)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_FORMAT'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="format" size="1"> + <?php foreach($formats as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$format){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('FILE_IMAGE_JPEG_COMPRESSION'))) ?> + </span> + </label> + </div> + <div class="input"> + <?php { $jpeg_compression= '70'; ?> + <?php } ?> + <select name="jpeg_compression" size="1"> + <?php foreach($jpeglist as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$jpeg_compression){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="copy" value="1" <?php if(@$copy){ ?>checked="1"<?php } ?> /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('copy'))) ?> + </span> + </label> + </div> + </div> + </div> + </fieldset> + <?php } ?> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/structure.php b/modules/cms/ui/themes/default/html/views/text/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/uncompress.php b/modules/cms/ui/themes/default/html/views/text/uncompress.php @@ -1,27 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="uncompress" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <?php { $replace= '1'; ?> - <?php } ?> - <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> - </span> - </label> - <br> - </br> - <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" class=""> - </input> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </label> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="uncompress" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="uncompress" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <?php { $replace= '1'; ?> + <?php } ?> + <input type="radio" name="replace" disabled="" value="1" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('replace'))) ?> + </span> + </label> + <br /> + <input type="radio" name="replace" disabled="" value="0" checked="<?php echo encodeHtml(htmlentities(@$replace)) ?>" /> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </label> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/text/value.php b/modules/cms/ui/themes/default/html/views/text/value.php @@ -1,17 +1,32 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> - <tr class=""> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> - </span> - </td> - <td class=""> - <textarea name="value" data-extension="<?php echo encodeHtml(htmlentities(@$extension)) ?>" data-mimetype="<?php echo encodeHtml(htmlentities(@$mimetype)) ?>" data-mode="htmlmixed" class="editor code-editor"> - </textarea> - </td> - </tr> - <tr class=""> - <td colspan="2" class="act"> - </td> - </tr> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="value" data-action="text" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form text"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="text" /> + <input type="hidden" name="subaction" value="value" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <tr> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_VALUE'))) ?> + </span> + </td> + <td> + <textarea name="value" data-extension="<?php echo encodeHtml(htmlentities(@$extension)) ?>" data-mimetype="<?php echo encodeHtml(htmlentities(@$mimetype)) ?>" data-mode="htmlmixed" class="editor code-editor"><?php echo encodeHtml(htmlentities(@$value)) ?> + </textarea> + </td> + </tr> + <tr> + <td colspan="2" class="act"> + + </td> + </tr> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('APPLY'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--apply" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/title/ping.php b/modules/cms/ui/themes/default/html/views/title/ping.php @@ -1,3 +1,5 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <span class="">1 - </span>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <span>1 + </span> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/title/show.php b/modules/cms/ui/themes/default/html/views/title/show.php @@ -1,441 +1,444 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-menu"> - <div class="or-menu-group"> - <div class="toolbar-icon toggle-nav-open-close"> - <i class="image-icon image-icon--menu-menu"> - </i> - </div> - <div class="toolbar-icon toggle-nav-small"> - <i class="image-icon image-icon--menu-minimize"> - </i> - </div> - <?php $if4=(isset($dbname)); if($if4) { ?> - <div class="toolbar-icon"> - <i class="image-icon image-icon--action-database"> - </i> - <span class="label"> - </span> - <div class="arrow arrow-down"> - </div> - <div class="dropdown"> - <div class="entry"> - <span title="<?php echo encodeHtml(htmlentities(@$dbid)) ?>" class=""><?php echo encodeHtml(htmlentities(@$dbname)) ?> - </span> - </div> - </div> - </div> - <?php } ?> - <?php $if4=($isLoggedIn); if($if4) { ?> - <div class="toolbar-icon clickable filtered on-action-folder on-action-page on-action-file on-action-projectlist on-action-templatelist on-action-userlist on-action-grouplist on-action-languagelist on-action-modellist"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_new_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - </a> - </div> - <?php } ?> - <?php $if4=($isLoggedIn); if($if4) { ?> - <div class="toolbar-icon clickable filtered on-action-folder on-action-page on-action-file on-action-image on-action-text on-action-pageelement on-action-template"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_pub_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="pub" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'pub'}" href="/#//" class=""> - <i class="image-icon image-icon--method-publish"> - </i> - </a> - </div> - <?php } ?> - <?php $if4=($isLoggedIn); if($if4) { ?> - <div class="toolbar-icon menu"> - <i class="image-icon image-icon--action-file"> - </i> - <span class="label"><?php echo encodeHtml(htmlentities(@lang('file'))) ?> - </span> - <div class="arrow arrow-down"> - </div> - <div class="dropdown"> - <div class="entry clickable filtered on-action-folder on-action-page on-action-file on-action-projectlist on-action-templatelist on-action-userlist on-action-grouplist on-action-languagelist on-action-modellist"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_new_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_new'))) ?> - </span> - <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','add'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createfolder_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createfolder" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfolder'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createfolder'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createpage_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createpage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createpage'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createpage'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createfile_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createfile" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfile'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createfile'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createimage_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createimage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createimage'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createimage'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createtext_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createtext" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createtext'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createtext'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createlink_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createlink" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createlink'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createlink'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createurl_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createurl" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createurl'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_createurl'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-file"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_compress_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="compress" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'compress'}" href="/#//" class=""> - <i class="image-icon image-icon--method-compress"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_compress'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-file"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_decompress_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="decompress" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'decompress'}" href="/#//" class=""> - <i class="image-icon image-icon--method-decompress"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_decompress'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-file"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_extract_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="extract" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'extract'}" href="/#//" class=""> - <i class="image-icon image-icon--method-extract"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_extract'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT_DESC'))) ?>" target="_self" data-type="post" data-action="login" data-method="logout" data-id="" data-extra="[]" data-data="{"action":"login","subaction":"logout","id":"",\"token":"<?php echo token() ?>","none":"0"}"" class="entry"> - <i class="image-icon image-icon--method-logout"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT'))) ?> - </span> - </a> - </div> - </div> - </div> - <?php } ?> - <?php $if4=($isLoggedIn); if($if4) { ?> - <div class="toolbar-icon menu"> - <i class="image-icon image-icon--menu-edit"> - </i> - <span class="label"><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - <div class="arrow arrow-down"> - </div> - <div class="dropdown"> - <div class="entry clickable filtered on-action-user on-action-project on-action-link on-action-folder on-action-page on-action-template on-action-element on-action-file on-action-url on-action-image on-action-text on-action-language on-action-model"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_prop_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="prop" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'prop'}" href="/#//" class=""> - <i class="image-icon image-icon--method-prop"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_prop'))) ?> - </span> - <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','prop'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-link on-action-folder on-action-page on-action-file on-action-text on-action-url on-action-image"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_settings_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="settings" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'settings'}" href="/#//" class=""> - <i class="image-icon image-icon--method-settings"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_settings'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-page on-action-file on-action-folder on-action-text on-action-image on-action-pageelement on-action-template"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_pub_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="pub" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'pub'}" href="/#//" class=""> - <i class="image-icon image-icon--method-publish"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_pub'))) ?> - </span> - <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','pub'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-pageelement"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_archive_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="archive" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'archive'}" href="/#//" class="entry"> - <i class="image-icon image-icon--method-archive"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_archive'))) ?> - </span> - <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','archive'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-project on-action-folder on-action-link on-action-user on-action-group on-action-page on-action-file on-action-image on-action-text on-action-url"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_rights_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="rights" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'rights'}" href="/#//" class=""> - <i class="image-icon image-icon--method-rights"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_rights'))) ?> - </span> - <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','rights'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-pageelement on-action-user on-action-group on-action-page on-action-project on-action-projectlist"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_history_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="history" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'history'}" href="/#//" class=""> - <i class="image-icon image-icon--method-history"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_history'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-project on-action-template on-action-page on-action-element on-action-image on-action-file on-action-folder on-action-url on-action-image on-action-text on-action-link on-action-language on-action-model on-action-user on-action-group"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_delete_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="remove" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'remove'}" href="/#//" class=""> - <i class="image-icon image-icon--method-delete"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_delete'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-page on-action-file on-action-image on-action-template on-action-pageelement"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_preview_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="preview" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'preview'}" href="/#//" class=""> - <i class="image-icon image-icon--method-preview"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_preview'))) ?> - </span> - </a> - </div> - </div> - </div> - <?php } ?> - <?php $if4=($isLoggedIn); if($if4) { ?> - <div class="toolbar-icon menu"> - <i class="image-icon image-icon--menu-extra"> - </i> - <span class="label"><?php echo encodeHtml(htmlentities(@lang('extras'))) ?> - </span> - <div class="arrow arrow-down"> - </div> - <div class="dropdown"> - <div class="entry clickable filtered on-action-user"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_password_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="pw" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'pw'}" href="/#//" class=""> - <i class="image-icon image-icon--method-password"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_password'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-user on-action-group"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_memberships_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="memberships" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'memberships'}" href="/#//" class=""> - <i class="image-icon image-icon--method-membership"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_memberships'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder on-action-element on-action-file on-action-image on-action-text on-action-pageelement"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_advanced_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="advanced" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'advanced'}" href="/#//" class=""> - <i class="image-icon image-icon--method-advanced"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_advanced'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-page"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_changetemplate_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="changetemplate" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'changetemplate'}" href="/#//" class=""> - <i class="image-icon image-icon--method-changetemplate"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_changetemplate'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-template on-action-configuration on-action-page"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_src_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="src" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'src'}" href="/#//" class=""> - <i class="image-icon image-icon--method-code"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_src'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-template"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_extension_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="extension" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'extension'}" href="/#//" class=""> - <i class="image-icon image-icon--method-extension"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_extension'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-text"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_value_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="value" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'value'}" href="/#//" class=""> - <i class="image-icon image-icon--method-value"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_value'))) ?> - </span> - </a> - </div> - <div class="entry clickable filtered on-action-folder"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_order_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="order" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'order'}" href="/#//" class=""> - <i class="image-icon image-icon--method-order"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_order'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-image"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_size_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="size" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'size'}" href="/#//" class=""> - <i class="image-icon image-icon--method-size"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_size'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable filtered on-action-project"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_maintenance_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="maintenance" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'maintenance'}" href="/#//" class=""> - <i class="image-icon image-icon--method-maintenance"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_maintenance'))) ?> - </span> - </a> - </div> - </div> - </div> - <?php } ?> - </div> - <div class="or-menu-group"> - <div class="toolbar-icon user menu"> - <i class="image-icon image-icon--action-user"> - </i> - <span class="label"><?php echo encodeHtml(htmlentities(@$userfullname)) ?> - </span> - <div class="arrow arrow-down"> - </div> - <div class="dropdown"> - <?php $if6=($isLoggedIn); if($if6) { ?> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_PROFILE_DESC'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="edit" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'edit'}" href="/#/profile/" class=""> - <i class="image-icon image-icon--action-user"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_profile'))) ?> - </span> - <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','action','profile'))) ?> - </span> - </a> - </div> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_password_DESC'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="pw" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'pw'}" href="/#/profile/" class=""> - <i class="image-icon image-icon--method-password"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_password'))) ?> - </span> - </a> - </div> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_mail_DESC'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="mail" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'mail'}" href="/#/profile/" class=""> - <i class="image-icon image-icon--method-mail"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_mail'))) ?> - </span> - </a> - </div> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_license_DESC'))) ?>" target="_self" data-type="dialog" data-action="login" data-method="license" data-id="" data-extra="{'dialogAction':'login','dialogMethod':'license'}" href="/#/login/" class=""> - <i class="image-icon image-icon--method-info"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_info'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('menu_history_desc'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="history" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'history'}" href="/#/profile/" class=""> - <i class="image-icon image-icon--method-history"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('menu_history'))) ?> - </span> - </a> - </div> - <div class="divide"> - </div> - <div class="entry clickable"> - <a data-after-success="reloadAll" title="<?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT_DESC'))) ?>" target="_self" data-type="post" data-action="login" data-method="logout" data-id="" data-extra="[]" data-data="{"action":"login","subaction":"logout","id":"",\"token":"<?php echo token() ?>","none":"0"}"" class="entry"> - <i class="image-icon image-icon--method-logout"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT'))) ?> - </span> - </a> - </div> - <?php } ?> - <?php if(!$if6) { ?> - <div class="entry clickable"> - <a title="<?php echo encodeHtml(htmlentities(@lang('USER_LOGIN_DESC'))) ?>" target="_self" data-type="dialog" data-action="login" data-method="login" data-id="" data-extra="{'dialogAction':'login','dialogMethod':'login'}" href="/#/login/" class=""> - <i class="image-icon image-icon--method-user"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_LOGIN'))) ?> - </span> - </a> - </div> - <?php } ?> - </div> - </div> - <?php $if4=($isLoggedIn); if($if4) { ?> - <div class="toolbar-icon menu search"> - <i class="image-icon image-icon--method-search"> - </i> - <input name="text" placeholder="<?php echo encodeHtml(htmlentities(@lang('search'))) ?>" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" class=""> - </input> - <div class="arrow arrow-down"> - </div> - <div class="dropdown"> - <span class=""> - </span> - </div> - </div> - <?php } ?> - </div> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-menu"> + <div class="or-menu-group"> + <div class="toolbar-icon toggle-nav-open-close"> + <i class="image-icon image-icon--menu-menu"> + </i> + </div> + <div class="toolbar-icon toggle-nav-small"> + <i class="image-icon image-icon--menu-minimize"> + </i> + </div> + <?php $if1=(isset($dbname)); if($if1) { ?> + <div class="toolbar-icon"> + <i class="image-icon image-icon--action-database"> + </i> + <span class="label"> + </span> + <div class="arrow arrow-down"> + </div> + <div class="dropdown"> + <div class="entry"> + <span title="<?php echo encodeHtml(htmlentities(@$dbid)) ?>"><?php echo encodeHtml(htmlentities(@$dbname)) ?> + </span> + </div> + </div> + </div> + <?php } ?> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="toolbar-icon clickable filtered on-action-folder on-action-page on-action-file on-action-projectlist on-action-templatelist on-action-userlist on-action-grouplist on-action-languagelist on-action-modellist"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_new_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + </a> + </div> + <?php } ?> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="toolbar-icon clickable filtered on-action-folder on-action-page on-action-file on-action-image on-action-text on-action-pageelement on-action-template"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_pub_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="pub" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'pub'}" href="/#//"> + <i class="image-icon image-icon--method-publish"> + </i> + </a> + </div> + <?php } ?> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="toolbar-icon menu"> + <i class="image-icon image-icon--action-file"> + </i> + <span class="label"><?php echo encodeHtml(htmlentities(@lang('file'))) ?> + </span> + <div class="arrow arrow-down"> + </div> + <div class="dropdown"> + <div class="entry clickable filtered on-action-folder on-action-page on-action-file on-action-projectlist on-action-templatelist on-action-userlist on-action-grouplist on-action-languagelist on-action-modellist"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_new_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_new'))) ?> + </span> + <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','add'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createfolder_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createfolder" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfolder'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createfolder'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createpage_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createpage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createpage'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createpage'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createfile_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createfile" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createfile'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createfile'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createimage_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createimage" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createimage'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createimage'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createtext_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createtext" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createtext'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createtext'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createlink_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createlink" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createlink'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createlink'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_createurl_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="createurl" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'createurl'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_createurl'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-file"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_compress_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="compress" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'compress'}" href="/#//"> + <i class="image-icon image-icon--method-compress"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_compress'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-file"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_decompress_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="decompress" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'decompress'}" href="/#//"> + <i class="image-icon image-icon--method-decompress"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_decompress'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-file"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_extract_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="extract" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'extract'}" href="/#//"> + <i class="image-icon image-icon--method-extract"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_extract'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT_DESC'))) ?>" target="_self" data-type="post" data-action="login" data-method="logout" data-id="" data-extra="[]" data-data="{"action":"login","subaction":"logout","id":"",\"token":"<?php echo token() ?>","none":"0"}"" class="entry"> + <i class="image-icon image-icon--method-logout"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT'))) ?> + </span> + </a> + </div> + </div> + </div> + <?php } ?> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="toolbar-icon menu"> + <i class="image-icon image-icon--menu-edit"> + </i> + <span class="label"><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + <div class="arrow arrow-down"> + </div> + <div class="dropdown"> + <div class="entry clickable filtered on-action-user on-action-project on-action-link on-action-folder on-action-page on-action-template on-action-element on-action-file on-action-url on-action-image on-action-text on-action-language on-action-model"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_prop_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="prop" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'prop'}" href="/#//"> + <i class="image-icon image-icon--method-prop"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_prop'))) ?> + </span> + <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','prop'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-link on-action-folder on-action-page on-action-file on-action-text on-action-url on-action-image"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_settings_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="settings" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'settings'}" href="/#//"> + <i class="image-icon image-icon--method-settings"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_settings'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-page on-action-file on-action-folder on-action-text on-action-image on-action-pageelement on-action-template"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_pub_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="pub" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'pub'}" href="/#//"> + <i class="image-icon image-icon--method-publish"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_pub'))) ?> + </span> + <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','pub'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-pageelement"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_archive_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="archive" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'archive'}" href="/#//" class="entry"> + <i class="image-icon image-icon--method-archive"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_archive'))) ?> + </span> + <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','archive'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-project on-action-folder on-action-link on-action-user on-action-group on-action-page on-action-file on-action-image on-action-text on-action-url"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_rights_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="rights" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'rights'}" href="/#//"> + <i class="image-icon image-icon--method-rights"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_rights'))) ?> + </span> + <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','method','rights'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-pageelement on-action-user on-action-group on-action-page on-action-project on-action-projectlist"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_history_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="history" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'history'}" href="/#//"> + <i class="image-icon image-icon--method-history"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_history'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-project on-action-template on-action-page on-action-element on-action-image on-action-file on-action-folder on-action-url on-action-image on-action-text on-action-link on-action-language on-action-model on-action-user on-action-group"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_delete_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="remove" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'remove'}" href="/#//"> + <i class="image-icon image-icon--method-delete"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_delete'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-page on-action-file on-action-image on-action-template on-action-pageelement"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_preview_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="preview" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'preview'}" href="/#//"> + <i class="image-icon image-icon--method-preview"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_preview'))) ?> + </span> + </a> + </div> + </div> + </div> + <?php } ?> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="toolbar-icon menu"> + <i class="image-icon image-icon--menu-extra"> + </i> + <span class="label"><?php echo encodeHtml(htmlentities(@lang('extras'))) ?> + </span> + <div class="arrow arrow-down"> + </div> + <div class="dropdown"> + <div class="entry clickable filtered on-action-user"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_password_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="pw" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'pw'}" href="/#//"> + <i class="image-icon image-icon--method-password"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_password'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-user on-action-group"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_memberships_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="memberships" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'memberships'}" href="/#//"> + <i class="image-icon image-icon--method-membership"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_memberships'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder on-action-element on-action-file on-action-image on-action-text on-action-pageelement"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_advanced_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="advanced" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'advanced'}" href="/#//"> + <i class="image-icon image-icon--method-advanced"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_advanced'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-page"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_changetemplate_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="changetemplate" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'changetemplate'}" href="/#//"> + <i class="image-icon image-icon--method-changetemplate"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_changetemplate'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-template on-action-configuration on-action-page"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_src_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="src" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'src'}" href="/#//"> + <i class="image-icon image-icon--method-code"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_src'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-template"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_extension_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="extension" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'extension'}" href="/#//"> + <i class="image-icon image-icon--method-extension"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_extension'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-text"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_value_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="value" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'value'}" href="/#//"> + <i class="image-icon image-icon--method-value"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_value'))) ?> + </span> + </a> + </div> + <div class="entry clickable filtered on-action-folder"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_order_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="order" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'order'}" href="/#//"> + <i class="image-icon image-icon--method-order"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_order'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-image"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_size_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="size" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'size'}" href="/#//"> + <i class="image-icon image-icon--method-size"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_size'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable filtered on-action-project"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_maintenance_desc'))) ?>" target="_self" data-type="dialog" data-action="" data-method="maintenance" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'maintenance'}" href="/#//"> + <i class="image-icon image-icon--method-maintenance"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_maintenance'))) ?> + </span> + </a> + </div> + </div> + </div> + <?php } ?> + </div> + <div class="or-menu-group"> + <div class="toolbar-icon user menu"> + <i class="image-icon image-icon--action-user"> + </i> + <span class="label"><?php echo encodeHtml(htmlentities(@$userfullname)) ?> + </span> + <div class="arrow arrow-down"> + </div> + <div class="dropdown"> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_PROFILE_DESC'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="edit" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'edit'}" href="/#/profile/"> + <i class="image-icon image-icon--action-user"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_profile'))) ?> + </span> + <span class="keystroke"><?php echo encodeHtml(htmlentities(config('ui','keybinding','action','profile'))) ?> + </span> + </a> + </div> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_password_DESC'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="pw" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'pw'}" href="/#/profile/"> + <i class="image-icon image-icon--method-password"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_password'))) ?> + </span> + </a> + </div> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_mail_DESC'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="mail" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'mail'}" href="/#/profile/"> + <i class="image-icon image-icon--method-mail"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_mail'))) ?> + </span> + </a> + </div> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_license_DESC'))) ?>" target="_self" data-type="dialog" data-action="login" data-method="license" data-id="" data-extra="{'dialogAction':'login','dialogMethod':'license'}" href="/#/login/"> + <i class="image-icon image-icon--method-info"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_info'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('menu_history_desc'))) ?>" target="_self" data-type="dialog" data-action="profile" data-method="history" data-id="" data-extra="{'dialogAction':'profile','dialogMethod':'history'}" href="/#/profile/"> + <i class="image-icon image-icon--method-history"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('menu_history'))) ?> + </span> + </a> + </div> + <div class="divide"> + </div> + <div class="entry clickable"> + <a data-after-success="reloadAll" title="<?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT_DESC'))) ?>" target="_self" data-type="post" data-action="login" data-method="logout" data-id="" data-extra="[]" data-data="{"action":"login","subaction":"logout","id":"",\"token":"<?php echo token() ?>","none":"0"}"" class="entry"> + <i class="image-icon image-icon--method-logout"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('USER_LOGOUT'))) ?> + </span> + </a> + </div> + <?php } ?> + <?php if(!$if1) { ?> + <div class="entry clickable"> + <a title="<?php echo encodeHtml(htmlentities(@lang('USER_LOGIN_DESC'))) ?>" target="_self" data-type="dialog" data-action="login" data-method="login" data-id="" data-extra="{'dialogAction':'login','dialogMethod':'login'}" href="/#/login/"> + <i class="image-icon image-icon--method-user"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('USER_LOGIN'))) ?> + </span> + </a> + </div> + <?php } ?> + </div> + </div> + <?php $if1=($isLoggedIn); if($if1) { ?> + <div class="toolbar-icon menu search"> + <i class="image-icon image-icon--method-search"> + </i> + <div class="inputholder"> + <input name="text" placeholder="<?php echo encodeHtml(htmlentities(@lang('search'))) ?>" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$text)) ?>" /> + </div> + <div class="arrow arrow-down"> + </div> + <div class="dropdown"> + <span> + </span> + </div> + </div> + <?php } ?> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/tree/content.php b/modules/cms/ui/themes/default/html/views/tree/content.php @@ -1 +1,3 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/tree/tree.php b/modules/cms/ui/themes/default/html/views/tree/tree.php @@ -1 +1,3 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/url/edit.php b/modules/cms/ui/themes/default/html/views/url/edit.php @@ -1,15 +1,30 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="url" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form url"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('link_url'))) ?> - </span> - </div> - <div class="input"> - <input name="url" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" class=""> - </input> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="edit" data-action="url" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form url"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="url" /> + <input type="hidden" name="subaction" value="edit" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('link_url'))) ?> + </span> + </div> + <div class="input"> + <div class="inputholder"> + <input name="url" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$url)) ?>" /> + </div> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/url/preview.php b/modules/cms/ui/themes/default/html/views/url/preview.php @@ -1,7 +1,9 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="toolbar-icon"> - <i class="image-icon image-icon--menu-refresh"> - </i> - </div> - <iframe name="preview" src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>" class=""> - </iframe>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="toolbar-icon"> + <i class="image-icon image-icon--menu-refresh"> + </i> + </div> + <iframe name="preview" src="<?php echo encodeHtml(htmlentities(@$preview_url)) ?>"> + </iframe> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/url/remove.php b/modules/cms/ui/themes/default/html/views/url/remove.php @@ -1,7 +1,26 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="url" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form url"> - <label class="or-form-row"><span class="or-form-input"><span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span></span></label> - <label class="or-form-row or-form-checkbox"><input type="checkbox" name="delete" value="1" <?php if(''.@$delete.''){ ?>checked="1"<?php } ?> class=""> - </input></label> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="url" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form url"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="url" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <label class="or-form-row"> + <span class="or-form-input"> + </span> + <span class="or-form-label">message:GLOBAL_NAME + </span> + </label> + <label class="or-form-row or-form-checkbox"> + <span class="or-form-label">GLOBAL_DELETE + </span> + <input type="checkbox" name="delete" value="1" <?php if(@$delete){ ?>checked="1"<?php } ?> /> + </label> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/url/structure.php b/modules/cms/ui/themes/default/html/views/url/structure.php @@ -1,3 +1,6 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="structure tree"> - </div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="structure tree"> + + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/add.php b/modules/cms/ui/themes/default/html/views/user/add.php @@ -1,13 +1,27 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="user" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="user" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="user" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/history.php b/modules/cms/ui/themes/default/html/views/user/history.php @@ -1,37 +1,46 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('project'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> - </span> - </td> - </tr> - <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class="clickable"> - <a target="_self" data-type="open" data-action="project" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" data-extra="[]" href="/#/project/<?php echo encodeHtml(htmlentities(@$projectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$projectname)) ?> - </span> - </a> - </td> - <td title="<?php echo encodeHtml(htmlentities(@$filename)) ?>" class="clickable"> - <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$filename)) ?> - </span> - </a> - </td> - <td class=""> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> - <?php } ?> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('project'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('filename'))) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('lastchange'))) ?> + </span> + </td> + </tr> + <?php foreach($timeline as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td class="clickable"> + <a target="_self" data-type="open" data-action="project" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$projectid)) ?>" data-extra="[]" href="/#/project/<?php echo encodeHtml(htmlentities(@$projectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$projectname)) ?> + </span> + </a> + </td> + <td title="<?php echo encodeHtml(htmlentities(@$filename)) ?>" class="clickable"> + <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$type)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$type)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$filename)) ?> + </span> + </a> + </td> + <td> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastchange_date); ?> + <?php } ?> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/info.php b/modules/cms/ui/themes/default/html/views/user/info.php @@ -1,193 +1,227 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> - <span class="headline"><?php echo encodeHtml(htmlentities(@$fullname)) ?> - </span> - <?php $if3=!(($image)==FALSE); if($if3) { ?> - <div class="line"> - <div class="input"> - <img src="<?php echo encodeHtml(htmlentities(@$image)) ?>" class=""> - </img> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </span> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_fullname'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$fullname)) ?> - </span> - </div> - </div> - <?php $if4=(config('security','user','show_admin_mail')); if($if4) { ?> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> - </label> - </div> - <div class="input"> - <a target="_self" data-url="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" data-type="external" data-action="" data-method="" data-id="" data-extra="[]" href="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$mail)) ?> - </span> - </a> - <i data-qrcode="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('description'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$desc)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_tel'))) ?> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$tel)) ?> - </span> - <i data-qrcode="tel:<?php echo encodeHtml(htmlentities(@$tel)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('timezone'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$timezone)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('language'))) ?> - </span> - </label> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$language)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input clickable"> - <a target="_self" data-type="dialog" data-action="" data-method="prop" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'prop'}" href="/#//" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> - </span> - </a> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close closed show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="is_admin" disabled="disabled" value="1" <?php if(''.@$is_admin.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_admin'))) ?> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang(':user_ldapdn'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$ldap_dn)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_style'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$style)) ?> - </span> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close closed show"><div class="closable"> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_password_expires'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($passwordExpires); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input clickable"> - <a target="_self" data-type="dialog" data-action="user" data-method="pw" data-id="" data-extra="{'dialogAction':'user','dialogMethod':'pw'}" href="/#/user/" class="or-link-btn"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('edit_password'))) ?> - </span> - </a> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('user_last_login'))) ?> - </span> - </div> - <div class="input"> - <?php include_once( 'modules/template-engine/components/html/date/component-date.php'); { component_date($lastLogin); ?> - <?php } ?> - </div> - </div> - <div class="line"> - <div class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('token'))) ?> - </span> - </div> - <div class="input"> - <span class=""><?php echo encodeHtml(htmlentities(@$totpToken)) ?> - </span> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> - </label> - </div> - <div class="input"> - <input type="checkbox" name="totp" value="1" <?php if(''.@$totp.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> - </label> - <i data-qrcode="<?php echo encodeHtml(htmlentities(@$totpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="info" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="user" /> + <input type="hidden" name="subaction" value="info" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <span class="headline"><?php echo encodeHtml(htmlentities(@$fullname)) ?> + </span> + <?php $if1=!(($image)==FALSE); if($if1) { ?> + <div class="line"> + <div class="input"> + <img src="<?php echo encodeHtml(htmlentities(@$image)) ?>" /> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </span> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('ADDITIONAL_INFO'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_fullname'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$fullname)) ?> + </span> + </div> + </div> + <?php $if1=(config('security','user','show_admin_mail')); if($if1) { ?> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> + </label> + </div> + <div class="input"> + <a target="_self" data-url="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" data-type="external" data-action="" data-method="" data-id="" data-extra="[]" href="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>"> + <span><?php echo encodeHtml(htmlentities(@$mail)) ?> + </span> + </a> + <i data-qrcode="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('description'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$desc)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_tel'))) ?> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$tel)) ?> + </span> + <i data-qrcode="tel:<?php echo encodeHtml(htmlentities(@$tel)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('timezone'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$timezone)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('language'))) ?> + </span> + </label> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$language)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input clickable"> + <a target="_self" data-type="dialog" data-action="" data-method="prop" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'prop'}" href="/#//" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit'))) ?> + </span> + </a> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close closed show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="is_admin" disabled="disabled" value="1" <?php if(@$is_admin){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_admin'))) ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang(':user_ldapdn'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$ldap_dn)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_style'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$style)) ?> + </span> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close closed show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('security'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_password_expires'))) ?> + </span> + </div> + <div class="input"> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($passwordExpires); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input clickable"> + <a target="_self" data-type="dialog" data-action="user" data-method="pw" data-id="" data-extra="{'dialogAction':'user','dialogMethod':'pw'}" href="/#/user/" class="or-link-btn"> + <span><?php echo encodeHtml(htmlentities(@lang('edit_password'))) ?> + </span> + </a> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('user_last_login'))) ?> + </span> + </div> + <div class="input"> + <?php include_once( 'modules/template_engine/components/html/date/component-date.php'); { component_date($lastLogin); ?> + <?php } ?> + </div> + </div> + <div class="line"> + <div class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('token'))) ?> + </span> + </div> + <div class="input"> + <span><?php echo encodeHtml(htmlentities(@$totpToken)) ?> + </span> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> + </label> + </div> + <div class="input"> + <input type="checkbox" name="totp" value="1" <?php if(@$totp){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> + </label> + <i data-qrcode="<?php echo encodeHtml(htmlentities(@$totpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/listing.php b/modules/cms/ui/themes/default/html/views/user/listing.php @@ -1,47 +1,56 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon_user.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon_user.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@$fullname)) ?> - </span> - <?php $if8=($isAdmin); if($if8) { ?> - <span class=""> ( - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_ADMIN'))) ?> - </span> - <span class="">) - </span> - <?php } ?> - </td> - <td class=""> - <a target="_self" data-action="index" data-method="switchuser" data-id="<?php echo encodeHtml(htmlentities(@$userid)) ?>" data-extra="[]" href="/#/index/<?php echo encodeHtml(htmlentities(@$userid)) ?>" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <img src="./modules/cms/ui/themes/default/images/icon_user.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td> + <img src="./modules/cms/ui/themes/default/images/icon_user.png" /> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@$fullname)) ?> + </span> + <?php $if1=($isAdmin); if($if1) { ?> + <span> ( + </span> + <span><?php echo encodeHtml(htmlentities(@lang('USER_ADMIN'))) ?> + </span> + <span>) + </span> + <?php } ?> + </td> + <td> + <a target="_self" data-action="index" data-method="switchuser" data-id="<?php echo encodeHtml(htmlentities(@$userid)) ?>" data-extra="[]" href="/#/index/<?php echo encodeHtml(htmlentities(@$userid)) ?>"> + <span><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/memberships.php b/modules/cms/ui/themes/default/html/views/user/memberships.php @@ -1,27 +1,45 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="memberships" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td colspan="2" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('group'))) ?> - </span> - </td> - </tr> - <?php foreach($memberships as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td width="10%" class=""> - <input type="checkbox" name="group<?php echo encodeHtml(htmlentities(@$id)) ?>" value="1" checked="<?php echo encodeHtml(htmlentities(@$member)) ?>" class=""> - </input> - </td> - <td class=""> - <label class="label"> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </label> - </td> - </tr> - <?php } ?> - </table></div></div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="memberships" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="user" /> + <input type="hidden" name="subaction" value="memberships" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td colspan="2"> + <span><?php echo encodeHtml(htmlentities(@lang('group'))) ?> + </span> + </td> + </tr> + <?php foreach($memberships as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td width="10%"> + <input type="checkbox" name="group<?php echo encodeHtml(htmlentities(@$id)) ?>" value="1" checked="<?php echo encodeHtml(htmlentities(@$member)) ?>" /> + </td> + <td> + <label class="label"> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </label> + </td> + </tr> + <?php } ?> + </table> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/prop.php b/modules/cms/ui/themes/default/html/views/user/prop.php @@ -1,143 +1,201 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="name,focus"> - </input> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_fullname'))) ?> - </label> - </div> - <div class="input"> - <input name="fullname" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$fullname)) ?>" class=""> - </input> - </div> - </div> - <?php $if4=(config('security','user','show_admin_mail')); if($if4) { ?> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> - </label> - </div> - <div class="input"> - <input name="mail" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$mail)) ?>" class=""> - </input> - <i data-qrcode="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_desc'))) ?> - </label> - </div> - <div class="input"> - <input name="desc" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$desc)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_tel'))) ?> - </label> - </div> - <div class="input"> - <input name="tel" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$tel)) ?>" class=""> - </input> - <i data-qrcode="tel:<?php echo encodeHtml(htmlentities(@$tel)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('timezone'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="timezone" value="<?php echo encodeHtml(htmlentities(@$timezone)) ?>" size="1" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('language'))) ?> - </span> - </label> - </div> - <div class="input"> - <input name="language" value="<?php echo encodeHtml(htmlentities(@$language)) ?>" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="is_admin" value="1" <?php if(''.@$is_admin.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_admin'))) ?> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_ldapdn'))) ?> - </label> - </div> - <div class="input"> - <input name="ldap_dn" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$ldap_dn)) ?>" class=""> - </input> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_style'))) ?> - </label> - </div> - <div class="input"> - <input name="style" value="<?php echo encodeHtml(htmlentities(@$style)) ?>" size="1" class=""> - </input> - </div> - </div> - </div></fieldset> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="totp" value="1" <?php if(''.@$totp.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> - </label> - <i data-qrcode="<?php echo encodeHtml(htmlentities(@$totpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="hotp" value="1" <?php if(''.@$hotp.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_hotp'))) ?> - </label> - <i data-qrcode="<?php echo encodeHtml(htmlentities(@$hotpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> - </i> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="prop" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="user" /> + <input type="hidden" name="subaction" value="prop" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="name,focus" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('ADDITIONAL_INFO'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_fullname'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="fullname" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$fullname)) ?>" /> + </div> + </div> + </div> + <?php $if1=(config('security','user','show_admin_mail')); if($if1) { ?> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="mail" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$mail)) ?>" /> + </div> + <i data-qrcode="mailto:<?php echo encodeHtml(htmlentities(@$mail)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_desc'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="desc" type="text" maxlength="255" value="<?php echo encodeHtml(htmlentities(@$desc)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_tel'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="tel" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$tel)) ?>" /> + </div> + <i data-qrcode="tel:<?php echo encodeHtml(htmlentities(@$tel)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('timezone'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="timezone" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($timezone_list as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$timezone){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"> + <span><?php echo encodeHtml(htmlentities(@lang('language'))) ?> + </span> + </label> + </div> + <div class="input"> + <select name="language" size="1"> + <option value=""><?php echo encodeHtml(htmlentities(@lang('LIST_ENTRY_EMPTY'))) ?> + </option> + <?php foreach($language_list as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$language){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="is_admin" value="1" <?php if(@$is_admin){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_admin'))) ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_ldapdn'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="ldap_dn" type="text" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$ldap_dn)) ?>" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_style'))) ?> + </label> + </div> + <div class="input"> + <select name="style" size="1"> + <?php foreach($allstyles as $_key=>$_value) { ?> + <option value="<?php echo encodeHtml(htmlentities(@$_key)) ?>" <?php if($_key==$style){ ?>selected="selected"<?php } ?>><?php echo encodeHtml(htmlentities(@$_value)) ?> + </option> + <?php } ?> + </select> + </div> + </div> + </div> + </fieldset> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('security'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="totp" value="1" <?php if(@$totp){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_totp'))) ?> + </label> + <i data-qrcode="<?php echo encodeHtml(htmlentities(@$totpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="hotp" value="1" <?php if(@$hotp){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_hotp'))) ?> + </label> + <i data-qrcode="<?php echo encodeHtml(htmlentities(@$hotpSecretUrl)) ?>" title="<?php echo encodeHtml(htmlentities(@lang('QRCODE_SHOW'))) ?>" class="image-icon image-icon--menu-qrcode or-qrcode or-info"> + </i> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/pw.php b/modules/cms/ui/themes/default/html/views/user/pw.php @@ -1,89 +1,107 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="pw" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="proposal" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@$password_proposal)) ?> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_new_password'))) ?> - </span> - <span class=""> - </span> - <span class=""><?php echo encodeHtml(htmlentities(@$password_proposal)) ?> - </span> - </label> - <input type="hidden" name="password_proposal" value="<?php echo encodeHtml(htmlentities(@$password_proposal)) ?>" class=""> - </input> - </div> - </div> - <?php $if3=(config('mail','enabled')); if($if3) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="random" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_random_password'))) ?> - </label> - </div> - </div> - <?php } ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="radio" name="type" disabled="" value="input" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD_INPUT'))) ?> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('USER_new_password'))) ?> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password1" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password1)) ?>" class=""> - </input></div> - </div> - </div> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('USER_new_password_repeat'))) ?> - </label> - </div> - <div class="input"> - <div class="inputholder"><input type="password" name="password2" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password2)) ?>" class=""> - </input></div> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <?php $if3=(config('mail','enabled')); if($if3) { ?> - <?php $if4=(isset($mail)); if($if4) { ?> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="email" value="1" <?php if(''.@$email.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail_new_password'))) ?> - </label> - </div> - </div> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="timeout" value="1" <?php if(''.@$timeout.''){ ?>checked="1"<?php } ?> class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_password_timeout'))) ?> - </label> - </div> - </div> - <?php } ?> - <?php } ?> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="pw" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="user" /> + <input type="hidden" name="subaction" value="pw" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="proposal" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"><?php echo encodeHtml(htmlentities(@$password_proposal)) ?> + <span><?php echo encodeHtml(htmlentities(@lang('USER_new_password'))) ?> + </span> + <span> + </span> + <span><?php echo encodeHtml(htmlentities(@$password_proposal)) ?> + </span> + </label> + <input type="hidden" name="password_proposal" value="<?php echo encodeHtml(htmlentities(@$password_proposal)) ?>" /> + </div> + </div> + <?php $if1=(config('mail','enabled')); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="random" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_random_password'))) ?> + </label> + </div> + </div> + <?php } ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="radio" name="type" disabled="" value="input" checked="<?php echo encodeHtml(htmlentities(@$type)) ?>" /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('USER_NEW_PASSWORD_INPUT'))) ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('USER_new_password'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password1" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password1)) ?>" class="" /> + </div> + </div> + </div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('USER_new_password_repeat'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input type="password" name="password2" size="40" maxlength="256" value="<?php echo encodeHtml(htmlentities(@$password2)) ?>" class="" /> + </div> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <?php $if1=(config('mail','enabled')); if($if1) { ?> + <?php $if1=(isset($mail)); if($if1) { ?> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="email" value="1" <?php if(@$email){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_mail_new_password'))) ?> + </label> + </div> + </div> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="timeout" value="1" <?php if(@$timeout){ ?>checked="1"<?php } ?> /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_password_timeout'))) ?> + </label> + </div> + </div> + <?php } ?> + <?php } ?> + + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/remove.php b/modules/cms/ui/themes/default/html/views/user/remove.php @@ -1,27 +1,56 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </label> - </div> - <div class="input"> - <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </div> - </div> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - </div></fieldset> - <div class="line"> - <div class="label"> - </div> - <div class="input"> - <input type="checkbox" name="confirm" value="1" <?php if(''.@$confirm.''){ ?>checked="1"<?php } ?> required="required" class=""> - </input> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('delete'))) ?> - </label> - </div> - </div> - </div></fieldset> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="remove" data-action="user" data-id="<?php echo OR_ID ?>" method="POST" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form user"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="user" /> + <input type="hidden" name="subaction" value="remove" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('NAME'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </label> + </div> + <div class="input"> + <span class="name"><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </div> + </div> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@lang('options'))) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + </div> + </fieldset> + <div class="line"> + <div class="label"> + </div> + <div class="input"> + <input type="checkbox" name="confirm" value="1" <?php if(@$confirm){ ?>checked="1"<?php } ?> required="required" /> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('delete'))) ?> + </label> + </div> + </div> + </div> + </fieldset> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/user/rights.php b/modules/cms/ui/themes/default/html/views/user/rights.php @@ -1,87 +1,104 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> - <fieldset class="or-group toggle-open-close open show"><div class="closable"> - <?php $if4=(($rights)==FALSE); if($if4) { ?> - <div class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> - </span> - </div> - <?php } ?> - <?php $if4=!(($rights)==FALSE); if($if4) { ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> - </span> - </td> - <td class="help"> - <span class=""><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> - </span> - </td> - <?php foreach($show as $list_key=>$t) { ?> - <td class="help"> - <span title="message:acl<?php echo encodeHtml(htmlentities()) ?>" class=""><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} - </span> - </td> - <?php } ?> - </tr> - <?php foreach($rights as $aclid=>$acl) { extract($acl); ?> - <tr class="data clickable"> - <td class=""> - <?php $if9=(isset($username)); if($if9) { ?> - <i class="image-icon image-icon--action-user"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$username)) ?> - </span> - <?php } ?> - <?php $if9=(isset($groupname)); if($if9) { ?> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$groupname)) ?> - </span> - <?php } ?> - <?php $if9=!(isset($username)); if($if9) { ?> - <?php $if10=!(isset($groupname)); if($if10) { ?> - <i class="image-icon image-icon--action-group"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('global_all'))) ?> - </span> - <?php } ?> - <?php } ?> - <?php { unset($username) ?> - <?php } ?> - <?php { unset($groupname) ?> - <?php } ?> - </td> - <td class=""> - <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$objecttype)) ?>"> - </i> - <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$objecttype)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$objecttype)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>" class=""> - <span title="<?php echo encodeHtml(htmlentities(@lang('select'))) ?>" class=""><?php echo encodeHtml(htmlentities(@$objectname)) ?> - </span> - </a> - </td> - <td class=""> - <i class="image-icon image-icon--action-language"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$languagename)) ?> - </span> - </td> - <?php foreach($show as $list_key=>$list_value) { ?> - <td class=""> - <?php { $$list_value= $bits[$list_value]; ?> - <?php } ?> - <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$list_value)) ?>" disabled="disabled" value="1" <?php if(''.@$${list_value.'}'){ ?>checked="1"<?php } ?> class=""> - </input> - </td> - <?php } ?> - </tr> - <?php } ?> - </table></div></div> - <?php } ?> - </div></fieldset> - <?php } ?>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <?php foreach($projects as $list_key=>$list_value) { extract($list_value); ?> + <fieldset class="or-group toggle-open-close open show"> + <legend class="on-click-open-close"><?php echo encodeHtml(htmlentities(@$projectname)) ?> + <img /> + <div class="arrow arrow-right on-closed"> + </div> + <div class="arrow arrow-down on-open"> + </div> + </legend> + <div class="closable"> + <?php $if1=(($rights)==FALSE); if($if1) { ?> + <div class=""> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NOT_FOUND'))) ?> + </span> + </div> + <?php } ?> + <?php $if1=!(($rights)==FALSE); if($if1) { ?> + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_USER'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_NAME'))) ?> + </span> + </td> + <td class="help"> + <span><?php echo encodeHtml(htmlentities(@lang('GLOBAL_LANGUAGE'))) ?> + </span> + </td> + <?php foreach($show as $list_key=>$t) { ?> + <td class="help"> + <span title="message:acl<?php echo encodeHtml(htmlentities()) ?>"><?php echo encodeHtml(htmlentities(@lang('${t'))) ?>} + </span> + </td> + <?php } ?> + </tr> + <?php foreach($rights as $aclid=>$acl) { extract($acl); ?> + <tr class="data clickable"> + <td> + <?php $if1=(isset($username)); if($if1) { ?> + <i class="image-icon image-icon--action-user"> + </i> + <span><?php echo encodeHtml(htmlentities(@$username)) ?> + </span> + <?php } ?> + <?php $if1=(isset($groupname)); if($if1) { ?> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@$groupname)) ?> + </span> + <?php } ?> + <?php $if1=!(isset($username)); if($if1) { ?> + <?php $if1=!(isset($groupname)); if($if1) { ?> + <i class="image-icon image-icon--action-group"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('global_all'))) ?> + </span> + <?php } ?> + <?php } ?> + <?php { unset($username) ?> + <?php } ?> + <?php { unset($groupname) ?> + <?php } ?> + </td> + <td> + <i class="image-icon image-icon--action-<?php echo encodeHtml(htmlentities(@$objecttype)) ?>"> + </i> + <a target="_self" data-type="open" data-action="<?php echo encodeHtml(htmlentities(@$objecttype)) ?>" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$objectid)) ?>" data-extra="[]" href="/#/<?php echo encodeHtml(htmlentities(@$objecttype)) ?>/<?php echo encodeHtml(htmlentities(@$objectid)) ?>"> + <span title="<?php echo encodeHtml(htmlentities(@lang('select'))) ?>"><?php echo encodeHtml(htmlentities(@$objectname)) ?> + </span> + </a> + </td> + <td> + <i class="image-icon image-icon--action-language"> + </i> + <span><?php echo encodeHtml(htmlentities(@$languagename)) ?> + </span> + </td> + <?php foreach($show as $list_key=>$list_value) { ?> + <td> + <?php { $$list_value= $bits[$list_value]; ?> + <?php } ?> + <input type="checkbox" name="<?php echo encodeHtml(htmlentities(@$list_value)) ?>" disabled="disabled" value="1" <?php if(@$${list_value}){ ?>checked="1"<?php } ?> /> + </td> + <?php } ?> + </tr> + <?php } ?> + </table> + </div> + </div> + <?php } ?> + </div> + </fieldset> + <?php } ?> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/userlist/add.php b/modules/cms/ui/themes/default/html/views/userlist/add.php @@ -1,13 +1,26 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="userlist" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form userlist"> - <div class="line"> - <div class="label"> - <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> - </label> - </div> - <div class="input"> - <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus"> - </input> - </div> - </div> - </form>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + <form name="" target="_self" data-target="view" action="./" data-method="add" data-action="userlist" data-id="<?php echo OR_ID ?>" method="post" enctype="application/x-www-form-urlencoded" data-async="" data-autosave="" class="or-form userlist"> + <input type="hidden" name="token" value="<?php echo token();?>" /> + <input type="hidden" name="action" value="userlist" /> + <input type="hidden" name="subaction" value="add" /> + <input type="hidden" name="id" value="<?php echo OR_ID ?>" /> + <div> + <div class="line"> + <div class="label"> + <label class="label"><?php echo encodeHtml(htmlentities(@lang('user_username'))) ?> + </label> + </div> + <div class="input"> + <div class="inputholder"> + <input name="name" type="text" maxlength="128" value="<?php echo encodeHtml(htmlentities(@$name)) ?>" class="focus" /> + </div> + </div> + </div> + </div> + <div class="or-form-actionbar"> + <input type="button" value="<?php echo encodeHtml(htmlentities(@lang('CANCEL'))) ?>" class="or-form-btn or-form-btn--secondary or-form-btn--cancel" /> + <input type="submit" value="<?php echo encodeHtml(htmlentities(@lang('button_ok'))) ?>" class="or-form-btn or-form-btn--primary or-form-btn--save" /> + </div> + </form> + <?php } ?>+ \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/userlist/show.php b/modules/cms/ui/themes/default/html/views/userlist/show.php @@ -1,59 +1,68 @@ -<?php if (!defined('OR_TITLE')) die('Forbidden'); ?> - <div class="or-table-wrapper"><div class="or-table-area"><table width="100%" class=""> - <tr class="headline"> - <td class=""> - <img src="./modules/cms-ui/themes/default/images/icon_user.png" class=""> - </img> - <span class=""><?php echo encodeHtml(htmlentities(@lang('name'))) ?> - </span> - </td> - <td class=""> - <span class=""> - </span> - </td> - <td class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> - </span> - </td> - </tr> - <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> - <tr class="data"> - <td data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="user" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="user" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/user/<?php echo encodeHtml(htmlentities(@$id)) ?>" class=""> - <i class="image-icon image-icon--action-user"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@$name)) ?> - </span> - </a> - </td> - <td data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="user" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable"> - <span class=""><?php echo encodeHtml(htmlentities(@$fullname)) ?> - </span> - <?php $if6=($isAdmin); if($if6) { ?> - <span class=""> ( - </span> - <span class=""><?php echo encodeHtml(htmlentities(@lang('USER_ADMIN'))) ?> - </span> - <span class="">) - </span> - <?php } ?> - </td> - <td class="clickable"> - <a target="_self" data-type="post" data-action="user" data-method="switch" data-id="<?php echo encodeHtml(htmlentities(@$userid)) ?>" data-extra="[]" data-data="{"action":"user","subaction":"switch","id":"<?php echo encodeHtml(htmlentities(@$userid)) ?>",\"token":"<?php echo token() ?>","none":"0"}"" class=""> - <span class=""><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> - </span> - </a> - </td> - </tr> - <?php } ?> - <tr class="data"> - <td colspan="3" class="clickable"> - <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('add'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('add'))) ?>" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//" class=""> - <i class="image-icon image-icon--method-add"> - </i> - <span class=""><?php echo encodeHtml(htmlentities(@lang('new'))) ?> - </span> - </a> - </td> - </tr> - </table></div></div>- \ No newline at end of file +<?php if (defined('OR_TITLE')) { ?> + + + <div class="or-table-wrapper"> + <div class="or-table-filter"> + <input type="search" name="filter" placeholder="<?php echo encodeHtml(htmlentities(@lang('SEARCH_FILTER'))) ?>" /> + </div> + <div class="or-table-area"> + <table width="100%"> + <tr class="headline"> + <td> + <img src="./modules/cms/ui/themes/default/images/icon_user.png" /> + <span><?php echo encodeHtml(htmlentities(@lang('name'))) ?> + </span> + </td> + <td> + <span> + </span> + </td> + <td> + <span><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> + </span> + </td> + </tr> + <?php foreach($el as $list_key=>$list_value) { extract($list_value); ?> + <tr class="data"> + <td data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="user" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-type="open" data-action="user" data-method="" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" data-extra="[]" href="/#/user/<?php echo encodeHtml(htmlentities(@$id)) ?>"> + <i class="image-icon image-icon--action-user"> + </i> + <span><?php echo encodeHtml(htmlentities(@$name)) ?> + </span> + </a> + </td> + <td data-name="<?php echo encodeHtml(htmlentities(@$name)) ?>" data-action="user" data-id="<?php echo encodeHtml(htmlentities(@$id)) ?>" class="clickable"> + <span><?php echo encodeHtml(htmlentities(@$fullname)) ?> + </span> + <?php $if1=($isAdmin); if($if1) { ?> + <span> ( + </span> + <span><?php echo encodeHtml(htmlentities(@lang('USER_ADMIN'))) ?> + </span> + <span>) + </span> + <?php } ?> + </td> + <td class="clickable"> + <a target="_self" data-type="post" data-action="user" data-method="switch" data-id="<?php echo encodeHtml(htmlentities(@$userid)) ?>" data-extra="[]" data-data="{"action":"user","subaction":"switch","id":"<?php echo encodeHtml(htmlentities(@$userid)) ?>",\"token":"<?php echo token() ?>","none":"0"}""> + <span><?php echo encodeHtml(htmlentities(@lang('LOGIN'))) ?> + </span> + </a> + </td> + </tr> + <?php } ?> + <tr class="data"> + <td colspan="3" class="clickable"> + <a target="_self" date-name="<?php echo encodeHtml(htmlentities(@lang('add'))) ?>" name="<?php echo encodeHtml(htmlentities(@lang('add'))) ?>" data-type="dialog" data-action="" data-method="add" data-id="" data-extra="{'dialogAction':null,'dialogMethod':'add'}" href="/#//"> + <i class="image-icon image-icon--method-add"> + </i> + <span><?php echo encodeHtml(htmlentities(@lang('new'))) ?> + </span> + </a> + </td> + </tr> + </table> + </div> + </div> + <?php } ?>+ \ No newline at end of file