load('libraries', 'table'); $cms->load('helper','url'); $html = new CMSHtml(); $links = myGetDashboardLinks(); $captions = myGetDashboardLinksTitle(); echo $html->show_tabbed_nav($links, $captions, 0); ?>
TPL_ADM_HEADING
TPL_ADM_NEWENTRY _MB_NO_POST

'', 'heading_row_start' => '', 'heading_row_end' => '', 'heading_cell_start' => '', 'row_start' => '', 'row_end' => '', 'cell_start' => '', 'row_alt_start' => '', 'row_alt_end' => '', 'cell_alt_start' => '', 'table_close' => '
', 'heading_cell_end' => '
', 'cell_end' => '
', 'cell_alt_end' => '
' ); $cms->table->set_template($tmpl); if($myentries){ $cms->table->clear(); $cms->table->set_heading('','TPL_ADM_TITLE', 'TPL_ADM_DATE','', ''); foreach($myentries as $row){ if($publishRights){ // User allowed to publish or unpublish. // publish/unpublished icon $onClick = "\"jax.call('myblog', 'myxTogglePublish', {$row->id});\""; if ($row->state == 1) $published = "id}\" src=\"".$cms->get_path('live')."/components/com_myblog/images/publish_g.png\" border=\"0\" alt=''/>"; else $published = "id}\" src=\"".$cms->get_path('live')."/components/com_myblog/images/publish_x.png\" border=\"0\" alt=''/>"; }else{ // User not allowed to publish or unpublish. if ($row->state == 1) $published = "get_path('live')."/components/com_myblog/images/publish_g.png\" border=\"0\" alt=''/>"; else $published = "get_path('live')."/components/com_myblog/images/publish_x.png\" border=\"0\" alt=''/>"; } // Format the date // PHP strftime format $row->created = cmsFormatDate($row->created,'%Y-%m-%d'); // Action links $editlink = rtrim($cms->get_path('live'), '/') . '/index2.php?option=com_myblog&task=write&keepThis=true&TB_iframe=true&no_html=1&id=' . $row->id; $deleteact = "if(!confirm('TPL_ADM_JSDELETE')) return false;"; $deletelink = cmsSefAmpReplace('index.php?option=com_myblog&task=delete&id=' . $row->id); $cms->table->add_row($published, $row->title . '
TPL_ADM_HITS:'.$row->hits.' | TPL_ADM_COMMENTS: ' .$row->commentCount .'', $row->created, 'TPL_ADM_EDIT', 'TPL_ADM_DELETE'); } echo $cms->table->generate(); echo $pagination; } else { echo "TPL_ADM_NOBLOGS"; } ?>