Cheetah
Functions | Variables
bottom_menu_compose.php File Reference

Go to the source code of this file.

Functions

 showEditForm ( $aItem)
 
 createNewElement ( $type, $source)
 
 echoMenuEditMsg ( $text, $color='black')
 
 saveItem ( $id, $aItem)
 
 updateLangFile ( $key, $string)
 
 saveOrders ( $sTop, $aCustom)
 

Variables

const CH_SECURITY_EXCEPTIONS true
 
 $aChSecurityExceptions = array ()
 
 $aChSecurityExceptions [] = 'POST.Link'
 
 $logged ['admin'] = member_auth(1, true, true)
 
 $oMenu = new ChWsbMenuBottom()
 
 $sResponce = null
 
if(ch_get('action') !==false$sTopQuery = "SELECT `ID`, `Name`, `Movable` FROM `" . $oMenu->sDbTable . "` WHERE `Active`='1' ORDER BY `Order`"
 
 $rTopItems = db_res($sTopQuery)
 
 $sAllQuery = "SELECT `ID`, `Name` FROM `" . $oMenu->sDbTable . "` WHERE `Clonable`='1' OR (`Clonable`='0' AND `Active`='0') ORDER BY `Name`"
 
 $rAllItems = db_res( $sAllQuery )
 
 $sComposerInit
 
 $iIndex = 0
 
 $iNameIndex = 12
 
 $_page
 
 $sContent
 
 $_page_cont [$iNameIndex]['controls'] = ''
 
 $_page_cont [$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_bmbuilder_box_title'), $sContent)
 

Function Documentation

◆ createNewElement()

createNewElement (   $type,
  $source 
)

@description : function will create new menu items ;

Parameters
:$type(string) - type of ellement ;
:$source(integer) - menu's ID;
Returns
: ID of created menu item ;

Definition at line 296 of file bottom_menu_compose.php.

◆ echoMenuEditMsg()

echoMenuEditMsg (   $text,
  $color = 'black' 
)

Definition at line 321 of file bottom_menu_compose.php.

◆ saveItem()

saveItem (   $id,
  $aItem 
)

@description : function will save all changes into menu items ;

Parameters
:$id(integer) - ID of menu items ;
:$aItem(array) - all needed POST variables ;
:$sMenuSection(string) - position of menu ;
Returns
: Html presentation data (Answer code);

Definition at line 335 of file bottom_menu_compose.php.

◆ saveOrders()

saveOrders (   $sTop,
  $aCustom 
)

@description : function will save menu orders ;

Parameters
:$sTop( string ) - current menu ellement ;
:$aCustom( array ) - all mrnu items ;
:$sMenuSection(string) - position of menu ;

Definition at line 388 of file bottom_menu_compose.php.

◆ showEditForm()

showEditForm (   $aItem)

Definition at line 178 of file bottom_menu_compose.php.

◆ updateLangFile()

updateLangFile (   $key,
  $string 
)

Definition at line 362 of file bottom_menu_compose.php.

Variable Documentation

◆ $_page

$_page
Initial value:
= array(
'name_index' => $iNameIndex,
'css_name' => array('menu_compose.css', 'forms_adv.css'),
'js_name' => array('menu_compose.js', 'ChWsbMenu.js'),
'header' => _t('_adm_bmbuilder_page_title')
)

Definition at line 162 of file bottom_menu_compose.php.

◆ $_page_cont [1/2]

$_page_cont[ $iNameIndex][ 'controls'] = ''

Definition at line 173 of file bottom_menu_compose.php.

◆ $_page_cont [2/2]

$_page_cont[ $iNameIndex][ 'page_main_code'] = DesignBoxAdmin(_t('_adm_bmbuilder_box_title'), $sContent)

Definition at line 174 of file bottom_menu_compose.php.

◆ $aChSecurityExceptions [1/2]

$aChSecurityExceptions = array ()

Definition at line 9 of file bottom_menu_compose.php.

◆ $aChSecurityExceptions [2/2]

$aChSecurityExceptions[] = 'POST.Link'

Definition at line 10 of file bottom_menu_compose.php.

◆ $iIndex

$iIndex = 0

Definition at line 142 of file bottom_menu_compose.php.

◆ $iNameIndex

$iNameIndex = 12

Definition at line 161 of file bottom_menu_compose.php.

◆ $logged

$logged[ 'admin'] = member_auth(1, true, true)

Definition at line 21 of file bottom_menu_compose.php.

◆ $oMenu

$oMenu = new ChWsbMenuBottom()

Definition at line 29 of file bottom_menu_compose.php.

◆ $rAllItems

$rAllItems = db_res( $sAllQuery )

Definition at line 115 of file bottom_menu_compose.php.

◆ $rTopItems

$rTopItems = db_res($sTopQuery)

Definition at line 112 of file bottom_menu_compose.php.

◆ $sAllQuery

$sAllQuery = "SELECT `ID`, `Name` FROM `" . $oMenu->sDbTable . "` WHERE `Clonable`='1' OR (`Clonable`='0' AND `Active`='0') ORDER BY `Name`"

Definition at line 114 of file bottom_menu_compose.php.

◆ $sComposerInit

while (( $aAllItem=$rAllItems->fetch()) !==false) $sComposerInit
Initial value:
= "
<script type=\"text/javascript\">
topParentID = 'menu_app_wrapper';
parserUrl = '" . $GLOBALS['site']['url_admin'] . "bottom_menu_compose.php?';
allowNewItem = true;
allowAddToTop = true;
allowAddToCustom = false;
iInactivePerRow = 5;
sendSystemOrder = false;
aCoords = {};
aCoords['startX'] = 6;
aCoords['startY'] = 24;
aCoords['width'] = 117;
aCoords['height'] = 28;
aCoords['diffX'] = 122;
aCoords['diffY'] = 32;
aTopItems = {};
aCustomItems = {};
aSystemItems = {};
aAllItems = {};
"

Definition at line 117 of file bottom_menu_compose.php.

◆ $sContent

$sContent
Initial value:
= $GLOBALS['oAdmTemplate']->parseHtmlByName('menu_compose.html', array(
'extra_js' => $sComposerInit
))

Definition at line 169 of file bottom_menu_compose.php.

◆ $sResponce

$sResponce = null

Definition at line 31 of file bottom_menu_compose.php.

◆ $sTopQuery

if (ch_get( 'action') !==false) $sTopQuery = "SELECT `ID`, `Name`, `Movable` FROM `" . $oMenu->sDbTable . "` WHERE `Active`='1' ORDER BY `Order`"

Definition at line 111 of file bottom_menu_compose.php.

◆ CH_SECURITY_EXCEPTIONS

const CH_SECURITY_EXCEPTIONS true

This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/

Definition at line 8 of file bottom_menu_compose.php.

$sComposerInit
$sComposerInit
Definition: bottom_menu_compose.php:117
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
$iNameIndex
$iNameIndex
Definition: bottom_menu_compose.php:161
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10