$type_info = $GLOBALS['SQ_SYSTEM']->am->getTypeInfo($asset_type); $asset_types[$asset_type] = $type_info['name']; } asort($asset_types); $o->openField('', 'wide_col'); echo '<p style="margin: 0;">' . translate('Select your asset type') . ': '; if (isset($_REQUEST['asset_type'])) { combo_box('asset_type', $asset_types, FALSE, $_REQUEST['asset_type']); } else { combo_box('asset_type', $asset_types); } echo ' '; submit_button('limbo_keywords_submit', translate('Get Keywords')); echo '</p>'; $o->closeField(); $o->closeSection(); if (isset($_REQUEST['asset_type'])) { $asset_type = preg_replace('/[^a-zA-Z0-9_]+/', '', $_REQUEST['asset_type']); $ei = new Asset_Edit_Interface($asset_type); $ei->getSimpleEditKeywords($asset_type, $o); } $o->openField('', 'commit'); normal_button('cancel', translate('Close Window'), 'window.close()', ''); $o->closeField(); $o->closeSection(); $o->paint(); ?> </body> </html>
$keywords = $asset->getAvailableKeywords(); ksort($keywords); foreach ($keywords as $keyword => $description) { ?> <tr> <td><strong>%<?php echo $keyword; ?> %</strong></td> <td><?php echo $description; ?> </td> </tr> <?php } ?> </table> <?php $o->closeField(); $o->closeSection(); $o->openField('', 'commit'); normal_button('cancel', translate('Close Window'), 'window.close()', 'style="margin-bottom: 20px;"'); $o->closeSection(); $o->paint(); ?> </body> </html>
%</b></td><td valign="top"><?php echo get_asset_tag_line($section->id . ':q' . $q_id); ?> </td></tr> <?php } ?> </table> </fieldset> </p> <?php } ?> </table> </fieldset> </p> <?php $o->openField('', 'commit'); normal_button('cancel', 'Close Window', 'window.close()'); $o->closeSection(); $o->paint(); ?> </body> </html> <?php } else { echo "<b>You do not have required access to view this page</b>"; }