本文整理汇总了PHP中mosHTML::writableCell方法的典型用法代码示例。如果您正苦于以下问题:PHP mosHTML::writableCell方法的具体用法?PHP mosHTML::writableCell怎么用?PHP mosHTML::writableCell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mosHTML
的用法示例。
在下文中一共展示了mosHTML::writableCell方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: system_info
//.........这里部分代码省略.........
<tr>
<td valign="top">
<strong>Configuration File:</strong>
</td>
<td>
<?php
$cf = file($mosConfig_absolute_path . '/configuration.php');
foreach ($cf as $k => $v) {
if (preg_match('/mosConfig_host/i', $v)) {
$cf[$k] = '$mosConfig_host = \'xxxxxx\'';
} elseif (preg_match('/mosConfig_user/i', $v)) {
$cf[$k] = '$mosConfig_user = \'xxxxxx\'';
} elseif (preg_match('/mosConfig_password/i', $v)) {
$cf[$k] = '$mosConfig_password = \'xxxxxx\'';
} elseif (preg_match('/mosConfig_db /i', $v)) {
$cf[$k] = '$mosConfig_db = \'xxxxxx\'';
}
}
foreach ($cf as $k => $v) {
$k = htmlspecialchars($k);
$v = htmlspecialchars($v);
$cf[$k] = $v;
}
echo implode("<br />", $cf);
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab("PHP Info", "php-page");
?>
<table class="adminform">
<tr>
<th colspan="2">
PHP Information
</th>
</tr>
<tr>
<td>
<?php
ob_start();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
$output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
$output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
$output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
$output = preg_replace('#<hr />#', '', $output);
echo $output;
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab('Permissions', 'perms');
?>
<table class="adminform">
<tr>
<th colspan="2">
Directory Permissions
</th>
</tr>
<tr>
<td>
<strong>For all Joomla! functions and features to work ALL of the following directories should be writeable:</strong>
<?php
$sp = ini_get('session.save_path');
mosHTML::writableCell('administrator/backups');
mosHTML::writableCell('administrator/components');
mosHTML::writableCell('administrator/modules');
mosHTML::writableCell('administrator/templates');
mosHTML::writableCell('components');
mosHTML::writableCell('images');
mosHTML::writableCell('images/banners');
mosHTML::writableCell('images/stories');
mosHTML::writableCell('language');
mosHTML::writableCell('mambots');
mosHTML::writableCell('mambots/content');
mosHTML::writableCell('mambots/editors');
mosHTML::writableCell('mambots/editors-xtd');
mosHTML::writableCell('mambots/search');
mosHTML::writableCell('mambots/system');
mosHTML::writableCell('media');
mosHTML::writableCell('modules');
mosHTML::writableCell('templates');
mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Cache Directory</strong> ');
mosHTML::writableCell($sp, 0, '<strong>Session Directory</strong> ');
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->endPane();
?>
<?php
}
示例2: showNewsFeeds
//.........这里部分代码省略.........
<a href="<?php
echo $link;
?>
" title="Editar fonte da notícia">
<?php
echo $row->name;
?>
</a>
<?php
}
?>
</td>
<td width="10%" align="center">
<a href="javascript: void(0);" onclick="return listItemTask('cb<?php
echo $i;
?>
','<?php
echo $task;
?>
')">
<img src="images/<?php
echo $img;
?>
" border="0" alt="<?php
echo $alt;
?>
" />
</a>
</td>
<td align="center">
<?php
echo $pageNav->orderUpIcon($i);
?>
</td>
<td align="center">
<?php
echo $pageNav->orderDownIcon($i, $n);
?>
</td>
<td>
<a href="<?php
echo $row->cat_link;
?>
" title="Editar Categoria">
<?php
echo $row->catname;
?>
</a>
</td>
<td align="center">
<?php
echo $row->numarticles;
?>
</td>
<td align="center">
<?php
echo $row->cache_time;
?>
</td>
</tr>
<?php
$k = 1 - $k;
}
?>
</table>
<?php
echo $pageNav->getListFooter();
?>
<table class="adminform">
<tr>
<td>
<table align="center">
<?php
$visible = 0;
// check to hide certain paths if not super admin
if ($my->gid == 25) {
$visible = 1;
}
mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório do cache</strong> ', $visible);
?>
</table>
</td>
</tr>
</table>
<input type="hidden" name="option" value="<?php
echo $option;
?>
" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="hidemainmenu" value="0">
<input type="hidden" name="<?php
echo josSpoofValue();
?>
" value="1" />
</form>
<?php
}
示例3: settings
function settings($option, &$params, $id)
{
global $mosConfig_live_site, $mosConfig_cachepath, $my;
?>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
<tr>
<th>
Configurações do Difusor de Notícias
</th>
</tr>
</table>
<table class="adminform">
<tr>
<th>
Parâmetros
</th>
</tr>
<tr>
<td>
<?php
echo $params->render();
?>
</td>
</tr>
</table>
<table class="adminform">
<tr>
<td>
<table align="center">
<?php
$visible = 0;
// check to hide certain paths if not super admin
if ($my->gid == 25) {
$visible = 1;
}
mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório de Cache</strong> ', $visible);
?>
</table>
</td>
</tr>
</table>
<input type="hidden" name="id" value="<?php
echo $id;
?>
" />
<input type="hidden" name="name" value="Difusão de Notícias" />
<input type="hidden" name="admin_menu_link" value="option=com_syndicate" />
<input type="hidden" name="admin_menu_alt" value="Administrar configuração de Difusão de Notícias" />
<input type="hidden" name="option" value="com_syndicate" />
<input type="hidden" name="admin_menu_img" value="js/ThemeOffice/component.png" />
<input type="hidden" name="option" value="<?php
echo $option;
?>
" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="<?php
echo josSpoofValue();
?>
" value="1" />
</form>
<script language="Javascript" src="<?php
echo $mosConfig_live_site;
?>
/includes/js/overlib_mini.js"></script>
<?php
}
示例4: system_info
//.........这里部分代码省略.........
$cf[$k] = '$mosConfig_host = \'xxxxxx\'';
} else {
if (eregi('mosConfig_user', $v)) {
$cf[$k] = '$mosConfig_user = \'xxxxxx\'';
} else {
if (eregi('mosConfig_password', $v)) {
$cf[$k] = '$mosConfig_password = \'xxxxxx\'';
} else {
if (eregi('mosConfig_db ', $v)) {
$cf[$k] = '$mosConfig_db = \'xxxxxx\'';
} else {
if (eregi('<?php', $v)) {
$cf[$k] = '<?php';
}
}
}
}
}
}
echo implode("<br />", $cf);
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab(T_("PHP Info"), "php-page");
?>
<table class="adminform">
<tr>
<th colspan="2">
<?php
echo T_('PHP Information');
?>
</th>
</tr>
<tr>
<td>
<?php
ob_start();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
$output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
$output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
$output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
$output = preg_replace('#<hr />#', '', $output);
echo $output;
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab(T_('Permissions'), 'perms');
?>
<table class="adminform">
<tr>
<th colspan="2"> <?php
echo T_('Directory Permissions');
?>
</th>
</tr>
<tr>
<td>
<strong><?php
echo T_('For all Mambo functions and features to work ALL of the following directories should be writeable:');
?>
</strong>
<?php
mosHTML::writableCell('administrator/backups');
mosHTML::writableCell('administrator/components');
mosHTML::writableCell('administrator/modules');
mosHTML::writableCell('administrator/templates');
mosHTML::writableCell('cache');
mosHTML::writableCell('components');
mosHTML::writableCell('images');
mosHTML::writableCell('images/banners');
mosHTML::writableCell('images/stories');
mosHTML::writableCell('language');
mosHTML::writableCell('mambots');
mosHTML::writableCell('mambots/content');
mosHTML::writableCell('mambots/editors');
mosHTML::writableCell('mambots/editors-xtd');
mosHTML::writableCell('mambots/search');
mosHTML::writableCell('media');
mosHTML::writableCell('modules');
mosHTML::writableCell('templates');
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->endPane();
?>
<?php
}
示例5: system_info
//.........这里部分代码省略.........
$cf = file($mosConfig_absolute_path . '/configuration.php');
foreach ($cf as $k => $v) {
if (eregi('mosConfig_host', $v)) {
$cf[$k] = '$mosConfig_host = \'xxxxxx\'';
} else {
if (eregi('mosConfig_user', $v)) {
$cf[$k] = '$mosConfig_user = \'xxxxxx\'';
} else {
if (eregi('mosConfig_password', $v)) {
$cf[$k] = '$mosConfig_password = \'xxxxxx\'';
} else {
if (eregi('mosConfig_db ', $v)) {
$cf[$k] = '$mosConfig_db = \'xxxxxx\'';
}
}
}
}
}
foreach ($cf as $k => $v) {
$k = htmlspecialchars($k);
$v = htmlspecialchars($v);
$cf[$k] = $v;
}
echo implode("<br />", $cf);
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab("PHP Info", "php-page");
?>
<table class="adminform">
<tr>
<th colspan="2">
Informações PHP
</th>
</tr>
<tr>
<td>
<?php
ob_start();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
$output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
$output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
$output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
$output = preg_replace('#<hr />#', '', $output);
echo $output;
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab('Permissões', 'perms');
?>
<table class="adminform">
<tr>
<th colspan="2">
Permissões dos Diretórios
</th>
</tr>
<tr>
<td>
<strong>Para todas as funções e características do Joomla! funcionem, TODOS os diretórios a seguir devem ter permissão de escrita</strong>
<?php
$sp = ini_get('session.save_path');
mosHTML::writableCell('administrator/backups');
mosHTML::writableCell('administrator/components');
mosHTML::writableCell('administrator/modules');
mosHTML::writableCell('administrator/templates');
mosHTML::writableCell('components');
mosHTML::writableCell('images');
mosHTML::writableCell('images/banners');
mosHTML::writableCell('images/stories');
mosHTML::writableCell('language');
mosHTML::writableCell('mambots');
mosHTML::writableCell('mambots/content');
mosHTML::writableCell('mambots/editors');
mosHTML::writableCell('mambots/editors-xtd');
mosHTML::writableCell('mambots/search');
mosHTML::writableCell('mambots/system');
mosHTML::writableCell('media');
mosHTML::writableCell('modules');
mosHTML::writableCell('templates');
mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Cache Directory</strong> ');
mosHTML::writableCell($sp, 0, '<strong>Session Directory</strong> ');
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->endPane();
?>
<?php
}
示例6: system_info
//.........这里部分代码省略.........
$cf[$k] = '$mosConfig_user = \'xxxxxx\'';
} else {
if (eregi('mosConfig_password', $v)) {
$cf[$k] = '$mosConfig_password = \'xxxxxx\'';
} else {
if (eregi('mosConfig_db ', $v)) {
$cf[$k] = '$mosConfig_db = \'xxxxxx\'';
} else {
if (eregi('<?php', $v)) {
$cf[$k] = '<?php';
}
}
}
}
}
}
echo implode('<br>', $cf);
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab($GLOBALS['messages']['siphpinfo'], 'php-page');
?>
<table class="adminform">
<tr>
<th colspan="2">
<?php
echo $GLOBALS['messages']['siphpinformation'];
?>
:
</th>
</tr>
<tr>
<td>
<?php
ob_start();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
$output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
$output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
$output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
$output = preg_replace('#<hr />#', '', $output);
echo $output;
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab($GLOBALS['messages']['sipermissions'], 'perms');
?>
<table class="adminform">
<tr>
<th colspan="2"> <?php
echo $GLOBALS['messages']['sidirperms'];
?>
:</th>
</tr>
<tr>
<td colspan="2">
<span style="font-weight:bold;"><?php
echo $GLOBALS['messages']['sidirpermsmess'];
?>
:</span>
</td>
</tr>
<tr>
<td width="50%">
<?php
mosHTML::writableCell('administrator/backups');
mosHTML::writableCell('administrator/components');
mosHTML::writableCell('administrator/modules');
mosHTML::writableCell('administrator/templates');
mosHTML::writableCell('cache');
mosHTML::writableCell('components');
mosHTML::writableCell('images');
mosHTML::writableCell('images/banners');
mosHTML::writableCell('images/stories');
mosHTML::writableCell('language');
mosHTML::writableCell('mambots');
mosHTML::writableCell('mambots/content');
mosHTML::writableCell('mambots/search');
mosHTML::writableCell('media');
mosHTML::writableCell('modules');
mosHTML::writableCell('templates');
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->endPane();
?>
<?php
}
示例7: system_info
//.........这里部分代码省略.........
foreach ($cf as $k => $v) {
if (eregi('mosConfig_host', $v)) {
$cf[$k] = '$mosConfig_host = \'xxxxxx\'';
} else {
if (eregi('mosConfig_user', $v)) {
$cf[$k] = '$mosConfig_user = \'xxxxxx\'';
} else {
if (eregi('mosConfig_password', $v)) {
$cf[$k] = '$mosConfig_password = \'xxxxxx\'';
} else {
if (eregi('mosConfig_db ', $v)) {
$cf[$k] = '$mosConfig_db = \'xxxxxx\'';
} else {
if (eregi('<?php', $v)) {
$cf[$k] = '<?php';
}
}
}
}
}
}
echo implode("<br />", $cf);
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab($adminLanguage->A_COMP_ADMIN_PHP_INFO2, "php-page");
?>
<table class="adminform">
<tr>
<th colspan="2">
<?php
echo $adminLanguage->A_COMP_ADMIN_PHP_INFO;
?>
</th>
</tr>
<tr>
<td>
<?php
ob_start();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output);
$output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]);
$output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output);
$output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output);
$output = preg_replace('#<hr />#', '', $output);
echo $output;
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->startTab($adminLanguage->A_COMP_ADMIN_PERMISSIONS, "perms");
?>
<table class="adminform">
<tr>
<th colspan="2">
<?php
echo $adminLanguage->A_COMP_ADMIN_DIR_PERM;
?>
</th>
</tr>
<tr>
<td>
<strong>
<?php
echo $adminLanguage->A_COMP_ADMIN_FOR_ALL;
?>
</strong>
<?php
mosHTML::writableCell('administrator/backups');
mosHTML::writableCell('administrator/components');
mosHTML::writableCell('administrator/modules');
mosHTML::writableCell('administrator/templates');
mosHTML::writableCell('cache');
mosHTML::writableCell('components');
mosHTML::writableCell('images');
mosHTML::writableCell('images/banners');
mosHTML::writableCell('images/stories');
mosHTML::writableCell('language');
mosHTML::writableCell('mambots');
mosHTML::writableCell('mambots/content');
mosHTML::writableCell('mambots/search');
mosHTML::writableCell('media');
mosHTML::writableCell('modules');
mosHTML::writableCell('templates');
?>
</td>
</tr>
</table>
<?php
$tabs->endTab();
$tabs->endPane();
}
示例8: editModule
//.........这里部分代码省略.........
?>
</td>
</tr>
</table>
<table class="adminform">
<tr>
<th >
Parâmetros
</th>
</tr>
<tr>
<td>
<?php
echo $params->render();
?>
</td>
</tr>
</table>
<?php
if ($row->module == "") {
?>
<table class="adminform">
<tr>
<td>
<table align="center">
<?php
$visible = 0;
// check to hide certain paths if not super admin
if ($my->gid == 25) {
$visible = 1;
}
mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Diretório de Cache</strong> ', $visible);
?>
</table>
</td>
</tr>
</table>
<?php
}
?>
</td>
<td width="40%" >
<table width="100%" class="adminform">
<tr>
<th>
Páginas / Itens
</th>
</tr>
<tr>
<td>
Link(s) do Item de Menu:
<br />
<?php
echo $lists['selections'];
?>
</td>
</tr>
</table>
</td>
</tr>
<?php
if ($row->module == "") {
?>
<tr>