Cheetah
Functions | Variables
menu_compose_admin.php File Reference

Go to the source code of this file.

Functions

 showEditFormCustom ( $aItem)
 
 showEditFormTop ( $aItem)
 
 createNewElement ( $type, $source)
 
 echoMenuEditMsg ( $text, $color='black')
 
 saveItem ( $id, $aItem)
 
 saveOrders ( $sTop, $aCustom)
 

Variables

 $logged ['admin'] = member_auth( 1, true, true )
 
if(ch_get('action') !==false$sTopQuery = "SELECT `id`, `title` FROM `sys_menu_admin` WHERE `parent_id`='0' ORDER BY `order`"
 
 $rTopItems = db_res( $sTopQuery )
 
 $sAllTopQuery = "SELECT * FROM (SELECT `id` + 1000 AS `id`, `title` FROM `sys_menu_admin` WHERE `parent_id`='0' UNION SELECT `id`, `title` FROM `sys_menu_admin`) AS `t`"
 
 $aAllTopItems = $GLOBALS['MySQL']->getPairs($sAllTopQuery, 'id', 'title')
 
 $sComposerInit
 
 $iIndex = 0
 
 $iNameIndex = 12
 
 $_page
 
 $sContent
 
 $_page_cont [$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_adm_ambuilder_title'), $sContent)
 

Function Documentation

◆ createNewElement()

createNewElement (   $type,
  $source 
)

Definition at line 319 of file menu_compose_admin.php.

◆ echoMenuEditMsg()

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

Definition at line 380 of file menu_compose_admin.php.

◆ saveItem()

saveItem (   $id,
  $aItem 
)

Definition at line 387 of file menu_compose_admin.php.

◆ saveOrders()

saveOrders (   $sTop,
  $aCustom 
)

Definition at line 408 of file menu_compose_admin.php.

◆ showEditFormCustom()

showEditFormCustom (   $aItem)

Definition at line 189 of file menu_compose_admin.php.

◆ showEditFormTop()

showEditFormTop (   $aItem)

Definition at line 261 of file menu_compose_admin.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_ambuilder_title')
)

Definition at line 173 of file menu_compose_admin.php.

◆ $_page_cont

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

Definition at line 184 of file menu_compose_admin.php.

◆ $aAllTopItems

$aAllTopItems = $GLOBALS['MySQL']->getPairs($sAllTopQuery, 'id', 'title')

Definition at line 108 of file menu_compose_admin.php.

◆ $iIndex

$iIndex = 0

Definition at line 135 of file menu_compose_admin.php.

◆ $iNameIndex

$iNameIndex = 12

Definition at line 172 of file menu_compose_admin.php.

◆ $logged

$logged[ 'admin'] = member_auth( 1, true, 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 19 of file menu_compose_admin.php.

◆ $rTopItems

$rTopItems = db_res( $sTopQuery )

Definition at line 105 of file menu_compose_admin.php.

◆ $sAllTopQuery

$sAllTopQuery = "SELECT * FROM (SELECT `id` + 1000 AS `id`, `title` FROM `sys_menu_admin` WHERE `parent_id`='0' UNION SELECT `id`, `title` FROM `sys_menu_admin`) AS `t`"

Definition at line 107 of file menu_compose_admin.php.

◆ $sComposerInit

foreach ( $aAllTopItems as $iId=> $sTitle) $sComposerInit
Initial value:
= "
<script type=\"text/javascript\">
topParentID = 'menu_app_wrapper';
parserUrl = '" . $GLOBALS['site']['url_admin'] . "menu_compose_admin.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 110 of file menu_compose_admin.php.

◆ $sContent

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

Definition at line 180 of file menu_compose_admin.php.

◆ $sTopQuery

if (ch_get( 'action') !==false) $sTopQuery = "SELECT `id`, `title` FROM `sys_menu_admin` WHERE `parent_id`='0' ORDER BY `order`"

Definition at line 104 of file menu_compose_admin.php.

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