Files
luos/gulliver/bin/tasks/templates/pluginList.tpl

36 lines
1.1 KiB
Smarty
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?php
try {
2010-12-02 23:34:41 +00: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
$G_PUBLISH = new Publisher;
2010-12-02 23:34:41 +00:00
<!-- START BLOCK : plugin -->
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 -->
require_once ("classes/model/{className}.php");
2010-12-02 23:34:41 +00:00
$Criteria = new Criteria('workflow');
$Criteria->clearSelectColumns();
2010-12-02 23:34:41 +00:00
<!-- START BLOCK : fields -->
$Criteria->addSelectColumn({className}Peer::{name});
2010-12-02 23:34:41 +00:00
<!-- END BLOCK : fields -->
$Criteria->add({phpClassName}Peer::{firstKey}, "xx", CRITERIA::NOT_EQUAL);
2010-12-02 23:34:41 +00:00
$G_PUBLISH->AddContent('propeltable', 'paged-table', '{phpFolderName}/{phpClassName}List', $Criteria, array(), '');
G::RenderPage('publish');
2010-12-02 23:34:41 +00:00
}
catch (Exception $e) {
2010-12-02 23:34:41 +00:00
$G_PUBLISH = new Publisher;
$aMessage['MESSAGE'] = $e->getMessage();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
G::RenderPage('publish', 'blank');
}