Cheetah
All Classes Namespaces Files Functions Variables Pages
Functions | Variables
member_menu_compose.php File Reference

Go to the source code of this file.

Functions

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

Variables

const CH_SECURITY_EXCEPTIONS true
 
 $aChSecurityExceptions = array ()
 
 $aChSecurityExceptions [] = 'POST.Link'
 
 $logged ['admin'] = member_auth(1, true, true)
 
 $oMemeberMenu = new ChWsbMemberMenu()
 
 $aMenuSection
 
 $sResponce = null
 
 $sMenuSection = 'top'
 
if(isset($_GET['menu_position'])) $aMenuSection [$sMenuSection]['active'] = 1
 
if(ch_get('action') !==false$sTopQuery = "SELECT `ID`, `Name`, `Movable` FROM `sys_menu_member` WHERE `Active`='1' AND `Position`='{$sMenuSection}' AND `Type`<>'linked_item' ORDER BY `Order`"
 
 $rTopItems = db_res($sTopQuery)
 
 $sAllQuery = "SELECT `ID`, `Name` FROM `sys_menu_member` WHERE `Type`<>'linked_item' AND (`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]['page_main_code'] = DesignBoxAdmin(_t('_mmbuilder_box_title'), $sContent, $aMenuSection)
 

Function Documentation

◆ createNewElement()

createNewElement (   $type,
  $source,
  $sMenuSection = 'top' 
)

@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 303 of file member_menu_compose.php.

◆ echoMenuEditMsg()

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

Definition at line 331 of file member_menu_compose.php.

◆ saveItem()

saveItem (   $id,
  $aItem,
  $sMenuSection 
)

@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 345 of file member_menu_compose.php.

◆ saveOrders()

saveOrders (   $sTop,
  $aCustom,
  $sMenuSection 
)

@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 402 of file member_menu_compose.php.

◆ showEditForm()

showEditForm (   $aItem,
  $sMenuSection 
)

Definition at line 196 of file member_menu_compose.php.

◆ updateLangFile()

updateLangFile (   $key,
  $string 
)

Definition at line 374 of file member_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('_mmbuilder_page_title')
)

Definition at line 179 of file member_menu_compose.php.

◆ $_page_cont

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

Definition at line 190 of file member_menu_compose.php.

◆ $aChSecurityExceptions [1/2]

$aChSecurityExceptions = array ()

Definition at line 9 of file member_menu_compose.php.

◆ $aChSecurityExceptions [2/2]

$aChSecurityExceptions[] = 'POST.Link'

Definition at line 10 of file member_menu_compose.php.

◆ $aMenuSection [1/2]

$aMenuSection
Initial value:
= array (
'top' => array ('title' => '_top', 'href' => 'member_menu_compose.php?menu_position=top'),
'top_extra' => array ('title' => '_top_extra', 'href' => 'member_menu_compose.php?menu_position=top_extra'),
)

Definition at line 32 of file member_menu_compose.php.

◆ $aMenuSection [2/2]

if (isset( $_GET[ 'menu_position'])) $aMenuSection[ $sMenuSection][ 'active'] = 1

Definition at line 50 of file member_menu_compose.php.

◆ $iIndex

$iIndex = 0

Definition at line 159 of file member_menu_compose.php.

◆ $iNameIndex

$iNameIndex = 12

Definition at line 178 of file member_menu_compose.php.

◆ $logged

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

Definition at line 23 of file member_menu_compose.php.

◆ $oMemeberMenu

$oMemeberMenu = new ChWsbMemberMenu()

Definition at line 30 of file member_menu_compose.php.

◆ $rAllItems

$rAllItems = db_res( $sAllQuery )

Definition at line 132 of file member_menu_compose.php.

◆ $rTopItems

$rTopItems = db_res($sTopQuery)

Definition at line 128 of file member_menu_compose.php.

◆ $sAllQuery

$sAllQuery = "SELECT `ID`, `Name` FROM `sys_menu_member` WHERE `Type`<>'linked_item' AND (`Clonable`='1' OR (`Clonable`='0' AND `Active`='0')) ORDER BY `Name`"

Definition at line 130 of file member_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'] . "member_menu_compose.php?menu_position={$sMenuSection}';
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 134 of file member_menu_compose.php.

◆ $sContent

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

Definition at line 186 of file member_menu_compose.php.

◆ $sMenuSection

$sMenuSection = 'top'

Definition at line 40 of file member_menu_compose.php.

◆ $sResponce

$sResponce = null

Definition at line 37 of file member_menu_compose.php.

◆ $sTopQuery

if (ch_get( 'action') !==false) $sTopQuery = "SELECT `ID`, `Name`, `Movable` FROM `sys_menu_member` WHERE `Active`='1' AND `Position`='{$sMenuSection}' AND `Type`<>'linked_item' ORDER BY `Order`"

Definition at line 127 of file member_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 member_menu_compose.php.

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