本文整理匯總了PHP中SubPanel::getModulesWithSubpanels方法的典型用法代碼示例。如果您正苦於以下問題:PHP SubPanel::getModulesWithSubpanels方法的具體用法?PHP SubPanel::getModulesWithSubpanels怎麽用?PHP SubPanel::getModulesWithSubpanels使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SubPanel
的用法示例。
在下文中一共展示了SubPanel::getModulesWithSubpanels方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_form_header
echo '</select>';
echo '<input type="submit" class="button" name="Submit" value="' . $mod_strings['LBL_SELECT_FILE'] . '"></form>';
$edit_in_place = '';
if (!empty($_SESSION['editinplace'])) {
$edit_in_place = 'checked';
}
echo '</form>';
echo <<<EOQ
<form name='editinplace' method='post' action='index.php' >
<input type='hidden' name='action' value='index'>
<input type='hidden' name='module' value='DynamicLayout'>
<input type='hidden' name='in_place' value='true'>
{$mod_strings['LBL_EDIT_IN_PLACE']} <input type="checkbox" name="edit_in_place" class="checkbox" onChange='document.editinplace.submit();' value="Edit In Place" {$edit_in_place}>
</form>
EOQ;
$subpanelmodules = SubPanel::getModulesWithSubpanels();
echo '<BR><BR>';
echo get_form_header($mod_strings['LBL_SELECT_A_SUBPANEL'], '', false);
echo <<<EOQ
<script>
var last_subpanel = '';
function swap_subpanels(){
\tsubpanel_module = document.getElementById('select_subpanel_module');
\tselected_subpanel = subpanel_module.options[subpanel_module.selectedIndex].value;
\t
\tif(last_subpanel != ''){
\t\tdocument.getElementById(last_subpanel).style.display = 'none';
\t}
\tlast_subpanel = selected_subpanel;
\tdocument.getElementById(last_subpanel).style.display = 'inline';
}