вопрос
На тестовом сайте поставил модуль System Points 1.5. Прошёл долгую процедуру редактирования кода, необходимую для работы скрипта. Первое же с чем я столкнулся это нерабочий код переключения опций модуля.
Вот данный код
Помогите найти ошибку в коде, буду очень благодарен.
Ссылка на тестовом сайте
Вот данный код
if( $pointconf["sp_menu"] == "0" ){
$navigation_menu = <<<HTML
<table width="100%"><tr><td>
<table style="text-align:center;" width="100%" height="35px"><tr style="vertical-align:middle;" >
<td style="font-size:14px;">
HTML;
$navigation_menu .= menu_link_a( 1, "javascript:ChangeOption('maindiv');", $lang['point_menu1'], $lang['point_nv_menu1'], "•" );
$navigation_menu .= menu_link_a( $pointconf['nick_conf'], "javascript:ShowgCategory('userstyle', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu2'], $lang['point_menu2'], "•" );
$navigation_menu .= menu_link_a( $pointconf['status_conf'], "javascript:ShowgCategory('status', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu2'], $lang['point_nv_menu2'], "•" );
$navigation_menu .= menu_link_a( $pointconf['group_conf'], "javascript:ShowgCategory('uservipstatus', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu3'], $lang['point_nv_menu3'], "•" );
$navigation_menu .= menu_link_a( $pointconf['changenike'], "javascript:ShowgCategory('usernick', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu8'], $lang['point_nv_menu8'], "•" );
$navigation_menu .= menu_link_a( $pointconf['gift_conf'], "javascript:ShowgCategory('gifts', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu4'], $lang['point_nv_menu4'], "•" );
$navigation_menu .= menu_link_a( $pointconf['ref_conf'], "javascript:ShowgCategory('userref', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu5'], $lang['point_nv_menu5'], "•" );
$navigation_menu .= menu_link_a( $pointconf['send_conf'], "javascript:ShowgCategory('sendmoney', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu6'], $lang['point_menu6'], "•" );
$navigation_menu .= menu_link_a( $pointconf['bay_conf'], "javascript:ShowgCategory('baypoints', 'categorydiv'); ChangeOption('categorydiv');", $lang['point_menu9'], $lang['point_menu9'], "•" );
$navigation_menu .= menu_link_a( $pointconf['arhiv_conf'], "javascript:ArchivPoints('0'); ChangeOption('categorydiv');", $lang['point_menu7'], $lang['point_nv_menu7'], "" );
$navigation_menu .= <<<HTML
</td></tr></table></td></tr></table>
HTML;
} else {
$navigation_menu = <<<HTML
<table width="100%"><tr><td>
<table style="text-align:center;" width="100%" height="35px"><tr style="vertical-align:middle;" >
HTML;
$navigation_menu .= menu_link_img( 1, "javascript:ChangeOption('maindiv');", "nv.home.jpg", $lang['point_menu1'] );
$navigation_menu .= menu_link_img( $pointconf['nick_conf'], "javascript:ShowgCategory('userstyle', 'categorydiv'); ChangeOption('categorydiv');", "nv.style.jpg", $lang['point_menu2'] );
$navigation_menu .= menu_link_img( $pointconf['status_conf'], "javascript:ShowgCategory('status', 'categorydiv'); ChangeOption('categorydiv');", "nv.status.jpg", $lang['point_menu2'] );
$navigation_menu .= menu_link_img( $pointconf['group_conf'], "javascript:ShowgCategory('uservipstatus', 'categorydiv'); ChangeOption('categorydiv');", "nv.group.jpg", $lang['point_menu3'] );
$navigation_menu .= menu_link_img( $pointconf['changenike'], "javascript:ShowgCategory('usernick', 'categorydiv'); ChangeOption('categorydiv');", "nv.nick.jpg", $lang['point_menu8'] );
$navigation_menu .= menu_link_img( $pointconf['gift_conf'], "javascript:ShowgCategory('gifts', 'categorydiv'); ChangeOption('categorydiv');", "nv.gifts.jpg", $lang['point_menu4'] );
$navigation_menu .= menu_link_img( $pointconf['ref_conf'], "javascript:ShowgCategory('userref', 'categorydiv'); ChangeOption('categorydiv');", "nv.connectie.jpg", $lang['point_menu5'] );
$navigation_menu .= menu_link_img( $pointconf['send_conf'], "javascript:ShowgCategory('sendmoney', 'categorydiv'); ChangeOption('categorydiv');", "nv.vip.cart.jpg", $lang['point_menu6'] );
$navigation_menu .= menu_link_img( $pointconf['bay_conf'], "javascript:ShowgCategory('baypoints', 'categorydiv'); ChangeOption('categorydiv');", "nv.baypoints.jpg", $lang['point_menu9'] );
$navigation_menu .= menu_link_img( $pointconf['arhiv_conf'], "javascript:ArchivPoints('0'); ChangeOption('categorydiv');", "nv.logs.jpg", $lang['point_menu7'] );
$navigation_menu .= <<<HTML
</tr></table></td></tr></table>
Помогите найти ошибку в коде, буду очень благодарен.
Ссылка на тестовом сайте