2010-12-02 23:34:41 +00:00
|
|
|
<?php
|
2011-12-06 18:54:23 -04:00
|
|
|
try {
|
2010-12-02 23:34:41 +00:00
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
$G_MAIN_MENU = '{projectName}';
|
|
|
|
|
$G_SUB_MENU = '{phpClassName}';
|
|
|
|
|
$G_ID_MENU_SELECTED = '{menuId}';
|
|
|
|
|
$G_ID_SUB_MENU_SELECTED = '{menuId}';
|
2010-12-02 23:34:41 +00:00
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
$G_PUBLISH = new Publisher;
|
2010-12-02 23:34:41 +00:00
|
|
|
|
|
|
|
|
<!-- START BLOCK : plugin -->
|
2011-12-06 18:54:23 -04:00
|
|
|
require_once (PATH_PLUGINS . '{pluginName}' . PATH_SEP . 'class.{pluginName}.php');
|
|
|
|
|
$pluginObj = new {pluginName}Class();
|
2010-12-02 23:34:41 +00:00
|
|
|
<!-- END BLOCK : plugin -->
|
|
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
require_once ("classes/model/{className}.php");
|
2010-12-02 23:34:41 +00:00
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
$Criteria = new Criteria('workflow');
|
|
|
|
|
$Criteria->clearSelectColumns();
|
2010-12-02 23:34:41 +00:00
|
|
|
|
|
|
|
|
<!-- START BLOCK : fields -->
|
2011-12-06 18:54:23 -04:00
|
|
|
$Criteria->addSelectColumn({className}Peer::{name});
|
2010-12-02 23:34:41 +00:00
|
|
|
<!-- END BLOCK : fields -->
|
|
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
$Criteria->add({phpClassName}Peer::{firstKey}, "xx", CRITERIA::NOT_EQUAL);
|
2010-12-02 23:34:41 +00:00
|
|
|
|
2011-12-06 18:54:23 -04:00
|
|
|
$G_PUBLISH->AddContent('propeltable', 'paged-table', '{phpFolderName}/{phpClassName}List', $Criteria, array(), '');
|
|
|
|
|
G::RenderPage('publish');
|
2010-12-02 23:34:41 +00:00
|
|
|
}
|
2011-12-06 18:54:23 -04:00
|
|
|
catch (Exception $e) {
|
2010-12-02 23:34:41 +00:00
|
|
|
$G_PUBLISH = new Publisher;
|
|
|
|
|
$aMessage['MESSAGE'] = $e->getMessage();
|
2011-12-06 18:54:23 -04:00
|
|
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
|
|
|
|
|
G::RenderPage('publish', 'blank');
|
|
|
|
|
}
|