|
@@ -37,7 +37,7 @@
|
|
|
<a href="javascript:void(0);" class="window" data-h="/color/add/" data-t="新品/新色配图 - 添加">添 加</a>
|
|
|
<a href="javascript:void(0);" class="check">删 除</a>
|
|
|
<a href="javascript:void(0);" class="excel">导出条件检索数据</a>
|
|
|
-
|
|
|
+<a href="javascript:void(0);" class="excel2">导出条件检索数据(带图)</a>
|
|
|
</div>
|
|
|
{/if}
|
|
|
<table class="datatitle data" border="0" style="border-collapse:collapse;">
|
|
@@ -97,6 +97,26 @@ $(".excel").click(function() {
|
|
|
});
|
|
|
window.location.href = "/color/ex?a=1&"+f;
|
|
|
});
|
|
|
+$(".excel2").click(function() {
|
|
|
+ var f = "";
|
|
|
+ var a = "";
|
|
|
+ $(".datatext input[name='check']:checked").each(function() {
|
|
|
+ a = a + $(this).val()+",";
|
|
|
+ });
|
|
|
+ f = f + "sid=" + a + "&";
|
|
|
+ $(".select").each(function() {
|
|
|
+ f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
|
|
|
+ });
|
|
|
+ $("input:text").each(function() {
|
|
|
+
|
|
|
+ var str = $(this).val().replace(/\#/g,"%23");
|
|
|
+ f = f + $(this).attr("name") + "=" + str + "&";
|
|
|
+ });
|
|
|
+ $("input:hidden").each(function() {
|
|
|
+ f = f + $(this).attr("name") + "=" + $(this).val() + "&";
|
|
|
+ });
|
|
|
+ window.location.href = "/color/ex2?a=1&"+f;
|
|
|
+});
|
|
|
</script>
|
|
|
<script type="text/javascript" src="{$theme}js/laydate.js"></script>
|
|
|
{Template footer}
|