File: D:/HostingSpaces/SBogers10/spire.komma-mediadesign.nl/wwwroot/kms/client/views/tools/v_dashb.php
<?php
/*
v_news_dashb.php // View
This view is displayed when user is location on the "News Dashboard"
*/
// includes
include DOCUMENT_ROOT.'/app/views/includes/v_public_header.php';
include DOCUMENT_ROOT.'/app/views/includes/v_public_aside.php';
/**
*
* @var string URLencoded name of page
*/
$linkname = URL_PAGE;
/**
*
* @var Button "New Item" Link to page with form for adding new items
*/
$btnNew = new Button(array( 'type'=>'link',
'href'=> LANG_ROOT.$linkname.'/nieuw-item/',
'label'=>$this->lang['new_marketing_tool']));
$btnNew->addClasses(array('blue'));
/**
*
* @var Button "Order Items" Link to page with form for ordering items
*/
$orderLink = LANG_ROOT.$linkname.'/wijzig-volgorde/';
if(defined('URL_SUB') && URL_SUB == 'x2'){ $orderLink .= 'x2 '; }
$btnOrder = new Button(array('type'=>'link',
'href'=> $orderLink,
'label'=>$this->lang['order_btn']));
$btnOrder->addClasses(array('gray'));
/**
*
* @var Button "Delete selected items" Submit button to submit form.
When hit the user wants to delete items, we guide them to a page where the user is asked to confirm this action.
*/
$btnDelSel = new Button(array('type'=>'submit',
'name'=>'prepare_delete_items',
'label'=>$this->lang['delete_btn']));
$btnDelSel->addClasses(array('gray'));
?>
<div id="wrapper">
<!-- header -->
<h1>
<?php
if(defined('URL_SUB') && URL_SUB == 'x2'){ echo 'X2 '; }
echo $this->lang['marketing_tools'];
?>
</h1>
<form action="<?php echo LANG_ROOT.$linkname .'/verwijder-items/'; ?>" method="post">
<!-- buttons -->
<?php
$btnNew->display();
$btnOrder->display();
$btnDelSel->display();
?>
<div class="clear"></div>
<div class="x2_filter">
<a <?php if( ! defined('URL_SUB') || URL_SUB != 'x2'){ echo 'class="active"'; } ?> href="<?php echo LANG_ROOT.$linkname .'/'; ?>">Toon Spire Corp</a> /
<a <?php if(defined('URL_SUB') && URL_SUB == 'x2'){ echo 'class="active"'; } ?> href="<?php echo LANG_ROOT.$linkname .'/x2/'; ?>">Toon X2 Products</a>
</div>
<hr />
<!-- list -->
<ul class="mp-list selectable">
<li class="heading">
<div class="col cb"><input type="checkbox" name="cb" id="check_all"/></div>
<div class="col title"><?php echo $this->lang['title']; ?></div>
<div class="col added"><?php echo $this->lang['added_on']; ?></div>
<div class="col edit"><?php echo $this->lang['actions']; ?></div>
</li>
<?php $this->getData('item_list_heading'); ?>
<?php $this->getData('item_list'); ?>
</ul>
</form>
</div>
<?php
// includes
include DOCUMENT_ROOT.'/app/views/includes/v_public_footer.php';
?>