Cheetah
Functions | Variables
nav_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 ChWsbMenu()
 
if(ch_get('action') !==false$sTopQuery = "SELECT `ID`, `Name`, `Movable` FROM `sys_menu_top` WHERE `Active`=1 AND `Type`='top' ORDER BY `Order`"
 
 $rTopItems = db_res( $sTopQuery )
 
 $sSysQuery = "SELECT `ID`, `Name`, `Movable` FROM `sys_menu_top` WHERE `Active`=1 AND `Type`='system' ORDER BY `Order`"
 
 $rSysItems = db_res( $sSysQuery )
 
 $sAllQuery = "SELECT `ID`, `Name` FROM `sys_menu_top` WHERE `Type`!='system' AND (`Clonable`='1' OR (`Clonable`='0' AND `Active`='0')) ORDER BY `Name`"
 
 $rAllItems = db_res( $sAllQuery )
 
 $sAdminUrl = CH_WSB_URL_ADMIN
 
 $sComposerInit
 
 $iIndex = 0
 
 $iNameIndex = 12
 
 $_page
 
 $sContent
 
 $_page_cont [$iNameIndex]['controls'] = null
 
 $_page_cont [$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_mbuilder_title_box'), $sContent)
 

Function Documentation

◆ createNewElement()

createNewElement (   $type,
  $source 
)

Definition at line 333 of file nav_menu_compose.php.

◆ echoMenuEditMsg()

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

Definition at line 363 of file nav_menu_compose.php.

◆ saveItem()

saveItem (   $id,
  $aItem 
)

Definition at line 371 of file nav_menu_compose.php.

◆ saveOrders()

saveOrders (   $sTop,
  $aCustom 
)

Definition at line 420 of file nav_menu_compose.php.

◆ showEditForm()

showEditForm (   $aItem)

Definition at line 215 of file nav_menu_compose.php.

◆ updateLangFile()

updateLangFile (   $key,
  $string 
)

Definition at line 401 of file nav_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_mbuilder_title')
)

Definition at line 198 of file nav_menu_compose.php.

◆ $_page_cont [1/2]

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

Definition at line 209 of file nav_menu_compose.php.

◆ $_page_cont [2/2]

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

Definition at line 210 of file nav_menu_compose.php.

◆ $aChSecurityExceptions [1/2]

$aChSecurityExceptions = array ()

Definition at line 13 of file nav_menu_compose.php.

◆ $aChSecurityExceptions [2/2]

$aChSecurityExceptions[] = 'POST.Link'

Definition at line 14 of file nav_menu_compose.php.

◆ $iIndex

$iIndex = 0

Definition at line 153 of file nav_menu_compose.php.

◆ $iNameIndex

$iNameIndex = 12

Definition at line 197 of file nav_menu_compose.php.

◆ $logged

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

Definition at line 26 of file nav_menu_compose.php.

◆ $oMenu

$oMenu = new ChWsbMenu()

Definition at line 33 of file nav_menu_compose.php.

◆ $rAllItems

$rAllItems = db_res( $sAllQuery )

Definition at line 123 of file nav_menu_compose.php.

◆ $rSysItems

$rSysItems = db_res( $sSysQuery )

Definition at line 120 of file nav_menu_compose.php.

◆ $rTopItems

$rTopItems = db_res( $sTopQuery )

Definition at line 117 of file nav_menu_compose.php.

◆ $sAdminUrl

$sAdminUrl = CH_WSB_URL_ADMIN

Definition at line 125 of file nav_menu_compose.php.

◆ $sAllQuery

$sAllQuery = "SELECT `ID`, `Name` FROM `sys_menu_top` WHERE `Type`!='system' AND (`Clonable`='1' OR (`Clonable`='0' AND `Active`='0')) ORDER BY `Name`"

Definition at line 122 of file nav_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'] . "nav_menu_compose.php?';
allowNewItem = true;
allowAddToTop = true;
allowAddToCustom = true;
iInactivePerRow = 7;
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 127 of file nav_menu_compose.php.

◆ $sContent

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

Definition at line 205 of file nav_menu_compose.php.

◆ $sSysQuery

$sSysQuery = "SELECT `ID`, `Name`, `Movable` FROM `sys_menu_top` WHERE `Active`=1 AND `Type`='system' ORDER BY `Order`"

Definition at line 119 of file nav_menu_compose.php.

◆ $sTopQuery

if (ch_get( 'action') !==false) $sTopQuery = "SELECT `ID`, `Name`, `Movable` FROM `sys_menu_top` WHERE `Active`=1 AND `Type`='top' ORDER BY `Order`"

Definition at line 116 of file nav_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 12 of file nav_menu_compose.php.

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