".lang('noaccessto', array(lang('listcss')))."

"; return; } include_once("header.php"); $db = cmsms()->GetDb(); #****************************************************************************** # first : displaying error message, if any. #****************************************************************************** if (isset($_GET["message"])) { $message = preg_replace('/\

'.$message.'

'; } else if( isset($_GET['messagekey']) ) { $message = lang($_GET['messagekey']); echo '

'.$message.'

'; } ?>
Execute($query); $page = 1; if (isset($_GET['page'])) $page = $_GET['page']; $limit = get_preference($userid,'liststylesheets_pagelimit',20); if ($result->RecordCount() > $limit) { echo "

".pagination($page, $result->RecordCount(), $limit)."

"; } echo $themeObject->ShowHeader('liststylesheets').'
'; if ($result && $result->RecordCount() > 0) { # displaying the table header echo "\n"; echo ''; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ''; echo ''; # this var is used to show each line with different color $currow = "row1"; # we now show each line $counter = 0; while ($one = $result->FetchRow()){ if ($counter < $page*$limit && $counter >= ($page*$limit)-$limit) { echo "\n"; if( $modify ) { echo "\n"; } else { echo "\n"; } if( $modifyAssoc || $delAssoc || $addAssoc ) { echo "\n"; } else { echo ""; } // if user has right to add (copy) if ($addcss) { echo '\n"; } else { echo ""; } // if user has right to edit if ($modify) { echo "\n"; } else { echo ""; } // if user has right to delete if ($delcss) { echo "\n"; } else { echo ""; } if( $delcss ) { echo ''; } else { echo ''; } echo "\n"; ("row1" == $currow) ? $currow="row2" : $currow="row1"; } $counter++; } ## foreach echo ''; echo "
".lang('title')."     
".$one["css_name"]."".$one["css_name"].""; echo $themeObject->DisplayImage('icons/system/css.gif', lang('attachtotemplate'),'','','systemicon'); echo " '; echo $themeObject->DisplayImage('icons/system/copy.gif', lang('copy'),'','','systemicon'); echo " "; echo $themeObject->DisplayImage('icons/system/edit.gif', lang('edit'),'','','systemicon'); echo " "; echo $themeObject->DisplayImage('icons/system/delete.gif', lang('delete'),'','','systemicon'); echo " 
\n"; } # end if result // this bottom stuff is ugly ?>

«