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"> <