HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/spire.komma-mediadesign.nl/wwwroot/kms/client/views/products/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_product']));
$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['products'].' | '.$_SESSION['prod_info']['label']; ?></h1>
	
	<form action="<?php echo LANG_ROOT.$linkname .'/verwijder-items/'; ?>" method="post">
	
		<!-- Buttons -->
		
		<?php
			$btnNew->display();
			$btnOrder->display();
			$btnDelSel->display();
		?>

        <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>

		<div class="clear"></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 code">Product Code</div>
                <div class="col prodtitle"><?php echo $this->lang['title']; ?></div>
                <div class="col link">Weblink</div>
                <div class="col show_hide">Show/Hide</div>
                <div class="col ">New / Not New</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'; 
?>