46 $o->setHeading(translate(
'system_tools'), sq_get_icon($o->filesPath(
'/images/icons/header/whereami.png'), 20, 20,
'Tools'));
47 $o->setPageTitle(translate(
'system_tools'));
49 if (isset($_REQUEST[
'committed_tool_type_code'])) {
53 $_REQUEST[
'tool_type_code'] = $_REQUEST[
'committed_tool_type_code'];
58 if (isset($_REQUEST[
'tool_type_code'])) {
64 $o->openSection(translate(
'system_tools'));
66 $tools = $GLOBALS[
'SQ_SYSTEM']->am->getTypeDescendants(
'tool');
68 if (count($tools) > 0) {
70 <table
class=
"sq-backend-table">
72 <th><?php echo translate(
'name'); ?></th>
73 <th><?php echo translate(
'description'); ?></th>
76 foreach ($tools as $tool) {
77 $tool_info = $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($tool);
78 $backend_url = $backend->getBackendUrl(
'main');
81 <td
class=
"sq-backend-table-cell"><a href=
"<?php echo $backend_url; ?>&backend_section=tools&tool_type_code=<?php echo $tool; ?>"><?php echo $tool_info[
'name']; ?></a></td>
82 <td
class=
"sq-backend-table-cell"><?php echo $tool_info[
'description']; ?></td>
90 echo translate(
'tools_none_installed');
108 $type_code = $_REQUEST[
'tool_type_code'];
109 $am =& $GLOBALS[
'SQ_SYSTEM']->am;
111 if ($am->installed($type_code)) {
112 $am->includeAsset($type_code);
113 $tool_info = $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($type_code);
114 $o->setHeading(
'System Tools: '.$tool_info[
'name'], sq_get_icon($o->filesPath(
'/images/icons/header/asset_tree.png'), 20, 20,
'Tools'));
115 $o->setPageTitle(
'System Tools: '.$tool_info[
'name']);
116 call_user_func_array(Array($type_code,
'paintTool'), Array(&$o, $type_code));
117 $o->addHiddenField(
'committed_tool_type_code', $type_code);
134 $type_code = $_REQUEST[
'committed_tool_type_code'];
135 $am =& $GLOBALS[
'SQ_SYSTEM']->am;
137 if ($am->installed($type_code)) {
138 $am->includeAsset($type_code);
139 return call_user_func_array(Array($type_code,
'processTool'), Array(&$o, $type_code));