2 require_once dirname(__FILE__).
'/../../../../../core/include/init.inc';
4 require_once SQ_SYSTEM_ROOT.
'/core/lib/html_form/html_form.inc';
9 <title>Simple Keyword Replacements</title>
13 <form action=
"<?php echo $_SERVER['PHP_SELF']; ?>" method=
"get">
15 require_once SQ_SYSTEM_ROOT.
'/core/include/backend_outputter.inc';
16 require_once SQ_SYSTEM_ROOT.
'/core/include/asset_edit_interface.inc';
20 $o->openSection(
'Keyword List for Simple Edit Keywords');
23 $asset_type_list = $GLOBALS[
'SQ_SYSTEM']->am->getAssetTypes();
24 foreach ($asset_type_list as $key => $value) {
25 if ($value[
'instantiable'] == 1) {
30 $asset_types = Array();
32 foreach ($type_list as $asset_type) {
33 $type_info = $GLOBALS[
'SQ_SYSTEM']->am->getTypeInfo($asset_type);
34 $asset_types[$asset_type] = $type_info[
'name'];
38 $o->openField(
' ');
39 echo
'<p>Select your asset type: ';
40 if (isset($_REQUEST[
'asset_type']))
42 combo_box(
'asset_type', $asset_types, FALSE, $_REQUEST[
'asset_type']);
44 combo_box(
'asset_type', $asset_types);
47 submit_button(
'limbo_keywords_submit',
'Get Simple Edit Keywords');
52 if (isset($_REQUEST[
'asset_type']))
54 $asset_type = $_REQUEST[
'asset_type'];
56 $ei->getSimpleEditKeywords($asset_type, $o);
58 $o->openSection(
' ');
59 $o->openField(
' ');
60 $o->openField(
'',
'commit');
61 normal_button(
'cancel',
'Close Window',
'window.close()');