| 1 |
<style type="text/css"> |
| 2 |
#p_bar { |
| 3 |
width: 0; |
| 4 |
padding: 0; |
| 5 |
margin: 0; |
| 6 |
border-spacing: 0; |
| 7 |
background-color: #0099CC; |
| 8 |
} |
| 9 |
#i_p_bar { |
| 10 |
color: #FFFFFF; |
| 11 |
text-align: right; |
| 12 |
font-weight: bold; |
| 13 |
height: 40px; |
| 14 |
font-size: 16px; |
| 15 |
padding-right: 10px; |
| 16 |
} |
| 17 |
#out_bar { |
| 18 |
width: 600px; |
| 19 |
border: 1px solid #CC9900; |
| 20 |
border-spacing: 0; |
| 21 |
background-color: #FFFFE8; |
| 22 |
margin: 0; |
| 23 |
padding-top: 0; |
| 24 |
padding-right: 0; |
| 25 |
padding-bottom: 10; |
| 26 |
padding-left: 0; |
| 27 |
} |
| 28 |
.under_p_bar { |
| 29 |
color: #565656; |
| 30 |
font-size: 16px; |
| 31 |
letter-spacing: 1px; |
| 32 |
} |
| 33 |
</style> |
| 34 |
<?php |
| 35 |
$status = isset($_REQUEST['usces_status']) ? $_REQUEST['usces_status'] : $DT->get_action_status(); |
| 36 |
$message = isset($_REQUEST['usces_message']) ? urldecode($_REQUEST['usces_message']) : $DT->get_action_message(); |
| 37 |
$curent_url = urlencode(USCES_ADMIN_URL . '?' . $_SERVER['QUERY_STRING']); |
| 38 |
?> |
| 39 |
<div class="wrap"> |
| 40 |
<div class="usces_admin"> |
| 41 |
<h2>Welcart Shop <?php _e('Item list','usces'); ?></h2> |
| 42 |
<p class="version_info">Version <?php echo USCES_VERSION; ?></p> |
| 43 |
<div id="aniboxStatus" class="<?php echo $status; ?>"> |
| 44 |
<div id="anibox" class="clearfix"> |
| 45 |
<img src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" /> |
| 46 |
<div class="mes" id="info_massage"><?php echo $message; ?></div> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
<script type="text/javascript"> |
| 50 |
function changeMsg(msg) { |
| 51 |
jQuery("#msg").html(msg); |
| 52 |
}; |
| 53 |
function setProgress(i ,all) { |
| 54 |
jQuery("#p_bar").css("width", ((i/all)*600)+'px'); |
| 55 |
jQuery("#i_p_bar").html(Math.round(100*(i/all))+"%"); |
| 56 |
jQuery("#rest").html(i + "/" + all + "件を処理完了"); |
| 57 |
}; |
| 58 |
</script> |
| 59 |
|
| 60 |
|
| 61 |
<table id="out_bar" width="600"> |
| 62 |
<tbody><tr><td> |
| 63 |
|
| 64 |
<table id="p_bar"> |
| 65 |
<tbody><tr><td id="i_p_bar"> </td></tr> |
| 66 |
</tbody></table> |
| 67 |
|
| 68 |
</td></tr> |
| 69 |
</tbody></table> |
| 70 |
<span id="msg" class="under_p_bar">準備中 ...</span> |
| 71 |
<span id="rest" class="under_p_bar"></span> |
| 72 |
|
| 73 |
|
| 74 |
<div id="reg_work"> |
| 75 |
<?php usces_item_uploadcsv(); ?> |
| 76 |
</div> |
| 77 |
</div><!--usces_admin--> |
| 78 |
</div><!--wrap--> |
| 79 |
[memory peak usage] <?php echo round(memory_get_peak_usage()/1048576, 1); ?>Mb |