//PageBar(資料數, 每頁顯示幾筆資料, 最多顯示幾個頁數選項); mysql_query($sql); $total=mysql_affected_rows(); $navbar = new PageBar($total, 20, 10); $mybar = $navbar->makeBar(); $bar= "<p align='center'>{$mybar['left']}{$mybar['center']}{$mybar['right']}</p>"; $sql.=$mybar['sql'];
<script type='text/javascript' src='ckeditor/ckeditor.js'></script> <textarea name='content' class='ckeditor'>
<script type='text/javascript' src='ckeditor/ckeditor.js'></script> <textarea name='content' cols=30 rows=5 id='editor'>請輸入內容</textarea> <script type='text/javascript'> CKEDITOR.replace('editor' , { skin : 'v2' , toolbar : 'Basic' } ); </script>
CKEDITOR.editorConfig = function( config ) { config.toolbar = 'MyToolbar'; config.toolbar_MyToolbar = [ { name: 'clipboard', items : [ 'Undo','Redo' ] }, { name: 'insert', items : [ 'Image' , 'Flash' , 'Table' , 'HorizontalRule' , 'Smiley' , 'PageBreak' ] }, { name: 'basicstyles', items : [ 'Bold' , 'Italic' , 'Strike' , 'RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList' , 'BulletedList' , 'Outdent' , 'Indent'] }, { name: 'links', items : [ 'Link' , 'Unlink' ] }, { name: 'styles', items : [ 'Styles' , 'Format' ] }, { name: 'tools', items : [ 'Font' , 'FontSize' ] } ]; };