summary and details-templates with CGExtensions


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $smarty->assign('heading_summary', $this->Lang('heading_summary'));
  4. $smarty->assign(
  5. 'list_summary_templates',
  6. $this->ShowTemplateList(
  7. $id,
  8. $returnid,
  9. TMPL_PREFIX_SUMMARY,
  10. $this->GetPreference('default_summary_template'),
  11. 'summary_templates',
  12. 'default',
  13. $this->Lang('title_summary'),
  14. $this->Lang('text_summary_edit'),
  15. 'defaultadmin'
  16. )
  17. );
  18.  
  19. echo $this->ProcessTemplate('admin_summary_templates.tpl');
  20.  
  21. ?>
  22.  
  23. /************ admin_summary_templates.tpl ***************/
  24.  
  25. <h3>{$heading_summary}</h3>
  26. {$list_summary_templates}
  27.  
  28. /********************* install.php **********************/
  29.  
  30. $this->SetTemplate(
  31. TMPL_PREFIX_SUMMARY.'default',
  32. $this->GetTemplateFromFile('default_summary'),
  33. $this->GetName()
  34. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.