<?php /*a:1:{s:69:"D:\phpstudy\WWW\12xz\app\admin\view/default\goods\module\operate.html";i:1782629701;}*/ ?>
<!-- 操作栏 -->
<?php if(AdminIsPower('goods', 'detail')): ?>
    <button type="button" class="am-btn am-btn-default am-btn-xs am-radius am-btn-block submit-popup" data-url="<?php echo MyUrl('admin/goods/detail', ['id'=>$module_data['id']]); ?>" data-title="<?php echo MyLang('detail_title'); ?>" data-offcanvas="right">
        <i class="am-icon-eye"></i>
        <span><?php echo MyLang('detail_title'); ?></span>
    </button>
<?php endif; if(AdminIsPower('goods', 'saveinfo')): ?>
    <a class="am-btn am-btn-secondary am-btn-xs am-radius am-btn-block" href="<?php echo MyUrl('admin/goods/saveinfo', array_merge($form_back_params, ['id'=>$module_data['id']])); ?>">
        <i class="am-icon-edit"></i>
        <span><?php echo MyLang('edit_title'); ?></span>
    </a>
    <button type="button" class="am-btn am-btn-success am-btn-xs am-radius am-btn-block submit-url" data-url="<?php echo MyUrl('admin/goods/saveinfo', array_merge($params, ['id'=>$module_data['id'], 'is_copy'=>1])); ?>" data-msg="<?php echo MyLang('copy_goods_confirm_tips'); ?>">
        <i class="am-icon-copy"></i>
        <span><?php echo MyLang('copy_title'); ?></span>
    </button>
<?php endif; if(AdminIsPower('goods', 'delete')): ?>
    <div class="am-dropdown am-dropdown-left am-btn am-btn-danger am-btn-xs am-radius am-btn-block" data-am-dropdown>
        <div class="am-dropdown-toggle">
            <i class="iconfont icon-delete"></i>
            <span><?php echo MyLang('delete_title'); ?></span>
        </div>
        <div class="am-dropdown-content am-padding-sm am-radius">
            <a href="javascript:;" class="am-badge am-badge-warning am-radius am-margin-bottom-0 submit-delete" data-url="<?php echo MyUrl('admin/goods/delete'); ?>" data-id="<?php echo htmlentities((string) $module_data['id']); ?>" data-key="ids"><?php echo MyLang('goods.delete_only_goods_text'); ?></a>
            <a href="javascript:;" class="am-badge am-badge-danger am-radius am-margin-bottom-0 am-margin-left-sm submit-delete" data-url="<?php echo MyUrl('admin/goods/delete', ['is_del_images'=>1]); ?>" data-id="<?php echo htmlentities((string) $module_data['id']); ?>" data-key="ids"><?php echo MyLang('goods.delete_goods_and_images_text'); ?></a>
        </div>
    </div>
<?php endif; ?>