phpBB Version: 2.0.x ( getestet mit 2.0.8 - 2.0.15 )
/admin/index.php:
suche
Code: Alles auswählen
ksort($module);
while( list($cat, $action_array) = each($module) )
{
$cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);
$template->assign_block_vars("catrow", array(
"ADMIN_CATEGORY" => $cat)
);
ksort($action_array);
$row_count = 0;
while( list($action, $file) = each($action_array) )
{
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
$action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);
$template->assign_block_vars("catrow.modulerow", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"ADMIN_MODULE" => $action,
"U_ADMIN_MODULE" => append_sid($file))
);
$row_count++;
}
}
Code: Alles auswählen
ksort($module);
$select_id = $HTTP_GET_VARS['select_id'];
$i = 1;
while( list($cat, $action_array) = each($module) )
{
$cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);
$cat_id = $i;
$template->assign_block_vars("catrow", array(
"CAT_ID" => ($select_id == $cat_id) ? append_sid("index.$phpEx?pane=left") : append_sid("index.$phpEx?pane=left&select_id=" . $cat_id),
"ADMIN_CATEGORY" => $cat)
);
if ($select_id == $cat_id)
{
ksort($action_array);
$row_count = 0;
while( list($action, $file) = each($action_array) )
{
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
$action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);
$template->assign_block_vars("catrow.modulerow", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"ADMIN_MODULE" => $action,
"U_ADMIN_MODULE" => append_sid($file))
);
$row_count++;
}
}
$i++;
}
suche
Code: Alles auswählen
<td height="28" class="catSides"><span class="cattitle">{catrow.ADMIN_CATEGORY}</span></td>
Code: Alles auswählen
<td height="28" class="catSides"><span class="cattitle"><a href="{catrow.CAT_ID}">{catrow.ADMIN_CATEGORY}</a></span></td>