![]() |
|---|
| [ Index ] |
Source Code Reference for V1.00 |
[Summary view] [Print] [Text view]
1 <?php 2 if (!defined('W2P_BASE_DIR')) { 3 die('You should not access this file directly.'); 4 } 5 6 $AppUI->savePlace(); 7 8 $obj = &new CResource; 9 10 $perms = &$AppUI->acl(); 11 $canEdit = $perms->checkModule($m, 'edit'); 12 13 $titleBlock = &new CTitleBlock('Resources', 'resources.png', $m, $m . '.' . $a); 14 if ($canEdit) { 15 $titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new resource') . '">', '', '<form action="?m=resources&a=addedit" method="post">', '</form>'); 16 } 17 $titleBlock->show(); 18 19 if (isset($_GET['tab'])) { 20 $AppUI->setState('ResourcesIdxTab', w2PgetParam($_GET, 'tab', null)); 21 } 22 $resourceTab = $AppUI->getState('ResourcesIdxTab', 0); 23 $tabBox = &new CTabBox('?m=resources', W2P_BASE_DIR . '/modules/resources/', $resourceTab); 24 $tabbed = $tabBox->isTabbed(); 25 foreach ($obj->loadTypes() as $type) { 26 if ($type['resource_type_id'] == 0 && !$tabbed) 27 continue; 28 $tabBox->add('vw_resources', $type['resource_type_name']); 29 } 30 31 $tabBox->show(); 32 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jan 8 03:00:03 2009 | Cross-referenced by PHPXref 0.7 |