Ignore:
Timestamp:
2009/12/01 16:23:09 (14 years ago)
Author:
kajiwara
Message:

#553 壊れた帳票がダウンロードされる不具合、白紙のページが表示されてしまう不具合を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/Smarty/templates/default/admin/order/edit.tpl

    r18166 r18403  
    4848        df.deliv_addr02.value = df.order_addr02.value; 
    4949    } 
     50 
     51    function fnOpenPdfSettingPage(action){ 
     52        var WIN; 
     53        WIN = window.open("about:blank", "pdf", "width=500,height=600,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no"); 
     54 
     55        // 退避 
     56        tmpTarget = document.form1.target; 
     57        tmpMode = document.form1.mode.value; 
     58        tmpAction = document.form1.action; 
     59 
     60        document.form1.target = "pdf"; 
     61        document.form1.mode.value = 'pdf'; 
     62        document.form1.action = action; 
     63        document.form1.submit(); 
     64        WIN.focus(); 
     65 
     66        // 復元 
     67        document.form1.target = tmpTarget; 
     68        document.form1.mode.value = tmpMode; 
     69        document.form1.action = tmpAction; 
     70    } 
    5071//--> 
    5172</script> 
     
    129150                            <td bgcolor="#f2f1ec" width="110">帳票</td> 
    130151                            <td bgcolor="#ffffff"> 
    131                               <input type="button" name="address_input" value="帳票の作成" onclick="win02('pdf.php?order_id=<!--{$arrForm.order_id.value}-->','pdf_input','500','650'); return false;" /> 
     152                              <input type="button" name="address_input" value="帳票の作成" onClick="fnOpenPdfSettingPage('pdf.php?order_id=<!--{$tpl_order_id}-->','pdf_input','500','650'); return false;" /> 
    132153                            </td> 
    133154                            </tr> 
Note: See TracChangeset for help on using the changeset viewer.