| 1 |
<?php |
| 2 |
require_once(USCES_PLUGIN_DIR . '/classes/calendar.class.php'); |
| 3 |
|
| 4 |
//cur |
| 5 |
list($todayyy, $todaymm, $todaydd) = getToday(); |
| 6 |
$cal1 = new calendarData(); |
| 7 |
$cal1->setToday($todayyy, $todaymm, $todaydd); |
| 8 |
$cal1->setCalendarData(); |
| 9 |
//next |
| 10 |
list($nextyy, $nextmm, $nextdd) = getAfterMonth($todayyy, $todaymm, 1, 1); |
| 11 |
$cal2 = new calendarData(); |
| 12 |
$cal2->setToday($nextyy, $nextmm, $nextdd); |
| 13 |
$cal2->setCalendarData(); |
| 14 |
//aft |
| 15 |
list($lateryy, $latermm, $laterdd) = getAfterMonth($todayyy, $todaymm, 1, 2); |
| 16 |
$cal3 = new calendarData(); |
| 17 |
$cal3->setToday($lateryy, $latermm, $laterdd); |
| 18 |
$cal3->setCalendarData(); |
| 19 |
//20131205_kitamu_start |
| 20 |
//the_4th_month(three months later) |
| 21 |
list($the_4th_monthyy, $the_4th_monthmm, $the_4th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 3); |
| 22 |
$cal4 = new calendarData(); |
| 23 |
$cal4->setToday($the_4th_monthyy, $the_4th_monthmm, $the_4th_monthdd); |
| 24 |
$cal4->setCalendarData(); |
| 25 |
//5th |
| 26 |
list($the_5th_monthyy, $the_5th_monthmm, $the_5th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 4); |
| 27 |
$cal5 = new calendarData(); |
| 28 |
$cal5->setToday($the_5th_monthyy, $the_5th_monthmm, $the_5th_monthdd); |
| 29 |
$cal5->setCalendarData(); |
| 30 |
//6th |
| 31 |
list($the_6th_monthyy, $the_6th_monthmm, $the_6th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 5); |
| 32 |
$cal6 = new calendarData(); |
| 33 |
$cal6->setToday($the_6th_monthyy, $the_6th_monthmm, $the_6th_monthdd); |
| 34 |
$cal6->setCalendarData(); |
| 35 |
//7th |
| 36 |
list($the_7th_monthyy, $the_7th_monthmm, $the_7th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 6); |
| 37 |
$cal7 = new calendarData(); |
| 38 |
$cal7->setToday($the_7th_monthyy, $the_7th_monthmm, $the_7th_monthdd); |
| 39 |
$cal7->setCalendarData(); |
| 40 |
//8th |
| 41 |
list($the_8th_monthyy, $the_8th_monthmm, $the_8th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 7); |
| 42 |
$cal8 = new calendarData(); |
| 43 |
$cal8->setToday($the_8th_monthyy, $the_8th_monthmm, $the_8th_monthdd); |
| 44 |
$cal8->setCalendarData(); |
| 45 |
//9th |
| 46 |
list($the_9th_monthyy, $the_9th_monthmm, $the_9th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 8); |
| 47 |
$cal9 = new calendarData(); |
| 48 |
$cal9->setToday($the_9th_monthyy, $the_9th_monthmm, $the_9th_monthdd); |
| 49 |
$cal9->setCalendarData(); |
| 50 |
//10th |
| 51 |
list($the_10th_monthyy, $the_10th_monthmm, $the_10th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 9); |
| 52 |
$cal10 = new calendarData(); |
| 53 |
$cal10->setToday($the_10th_monthyy, $the_10th_monthmm, $the_10th_monthdd); |
| 54 |
$cal10->setCalendarData(); |
| 55 |
//11th |
| 56 |
list($the_11th_monthyy, $the_11th_monthmm, $the_11th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 10); |
| 57 |
$cal11 = new calendarData(); |
| 58 |
$cal11->setToday($the_11th_monthyy, $the_11th_monthmm, $the_11th_monthdd); |
| 59 |
$cal11->setCalendarData(); |
| 60 |
//12th |
| 61 |
list($the_12th_monthyy, $the_12th_monthmm, $the_12th_monthdd) = getAfterMonth($todayyy, $todaymm, 1, 11); |
| 62 |
$cal12 = new calendarData(); |
| 63 |
$cal12->setToday($the_12th_monthyy, $the_12th_monthmm, $the_12th_monthdd); |
| 64 |
$cal12->setCalendarData(); |
| 65 |
//20131205_kitamu_end |
| 66 |
|
| 67 |
$yearstr = substr(get_date_from_gmt(gmdate('Y-m-d H:i:s', time())), 0, 4); |
| 68 |
|
| 69 |
$status = $this->action_status; |
| 70 |
$message = $this->action_message; |
| 71 |
$this->action_status = 'none'; |
| 72 |
$this->action_message = ''; |
| 73 |
|
| 74 |
$campaign_schedule_start_year = isset($this->options['campaign_schedule']['start']['year']) ? $this->options['campaign_schedule']['start']['year'] : 0; |
| 75 |
$campaign_schedule_start_month = isset($this->options['campaign_schedule']['start']['month']) ? $this->options['campaign_schedule']['start']['month'] : 0; |
| 76 |
$campaign_schedule_start_day = isset($this->options['campaign_schedule']['start']['day']) ? $this->options['campaign_schedule']['start']['day'] : 0; |
| 77 |
$campaign_schedule_start_hour = isset($this->options['campaign_schedule']['start']['hour']) ? $this->options['campaign_schedule']['start']['hour'] : 0; |
| 78 |
$campaign_schedule_start_min = isset($this->options['campaign_schedule']['start']['min']) ? $this->options['campaign_schedule']['start']['min'] : 0; |
| 79 |
$campaign_schedule_end_year = isset($this->options['campaign_schedule']['end']['year']) ? $this->options['campaign_schedule']['end']['year'] : 0; |
| 80 |
$campaign_schedule_end_month = isset($this->options['campaign_schedule']['end']['month']) ? $this->options['campaign_schedule']['end']['month'] : 0; |
| 81 |
$campaign_schedule_end_day = isset($this->options['campaign_schedule']['end']['day']) ? $this->options['campaign_schedule']['end']['day'] : 0; |
| 82 |
$campaign_schedule_end_hour = isset($this->options['campaign_schedule']['end']['hour']) ? $this->options['campaign_schedule']['end']['hour'] : 0; |
| 83 |
$campaign_schedule_end_min = isset($this->options['campaign_schedule']['end']['min']) ? $this->options['campaign_schedule']['end']['min'] : 0; |
| 84 |
?> |
| 85 |
<script type="text/javascript"> |
| 86 |
jQuery(function($){ |
| 87 |
<?php if($status == 'success'){ ?> |
| 88 |
$("#anibox").animate({ backgroundColor: "#ECFFFF" }, 2000); |
| 89 |
<?php }else if($status == 'caution'){ ?> |
| 90 |
$("#anibox").animate({ backgroundColor: "#FFF5CE" }, 2000); |
| 91 |
<?php }else if($status == 'error'){ ?> |
| 92 |
$("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000); |
| 93 |
<?php } ?> |
| 94 |
|
| 95 |
$("#aAdditionalURLs").click(function () { |
| 96 |
$("#AdditionalURLs").toggle(); |
| 97 |
}); |
| 98 |
}); |
| 99 |
|
| 100 |
function toggleVisibility(id) { |
| 101 |
var e = document.getElementById(id); |
| 102 |
if(e.style.display == 'block') |
| 103 |
e.style.display = 'none'; |
| 104 |
else |
| 105 |
e.style.display = 'block'; |
| 106 |
} |
| 107 |
|
| 108 |
function cangeBus(id, r, c) { |
| 109 |
var e = document.getElementById(id+'_'+r+'_'+c); |
| 110 |
var v = document.getElementById(id).rows[r].cells[c]; |
| 111 |
if (e.value == '0') { |
| 112 |
e.value = '1'; |
| 113 |
v.style.backgroundColor = '#DFFFDD'; |
| 114 |
v.style.color = '#555555'; |
| 115 |
v.style.fontWeight = 'normal'; |
| 116 |
} else { |
| 117 |
e.value = '0'; |
| 118 |
v.style.backgroundColor = '#FFAA55'; |
| 119 |
v.style.color = '#FFFFFF'; |
| 120 |
v.style.fontWeight = 'bold'; |
| 121 |
} |
| 122 |
} |
| 123 |
|
| 124 |
function cangeWday1(id, c) { |
| 125 |
<?php for ($i = 0; $i < $cal1->getRow(); $i++) : ?> |
| 126 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 127 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 128 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 129 |
if (e.value == '0') { |
| 130 |
e.value = '1'; |
| 131 |
v.style.backgroundColor = '#DFFFDD'; |
| 132 |
v.style.color = '#555555'; |
| 133 |
v.style.fontWeight = 'normal'; |
| 134 |
} else { |
| 135 |
e.value = '0'; |
| 136 |
v.style.backgroundColor = '#FFAA55'; |
| 137 |
v.style.color = '#FFFFFF'; |
| 138 |
v.style.fontWeight = 'bold'; |
| 139 |
} |
| 140 |
} |
| 141 |
<?php endfor; ?> |
| 142 |
} |
| 143 |
|
| 144 |
function cangeWday2(id, c) { |
| 145 |
<?php for ($i = 0; $i < $cal2->getRow(); $i++) : ?> |
| 146 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 147 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 148 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 149 |
if (e.value == '0') { |
| 150 |
e.value = '1'; |
| 151 |
v.style.backgroundColor = '#DFFFDD'; |
| 152 |
v.style.color = '#555555'; |
| 153 |
v.style.fontWeight = 'normal'; |
| 154 |
} else { |
| 155 |
e.value = '0'; |
| 156 |
v.style.backgroundColor = '#FFAA55'; |
| 157 |
v.style.color = '#FFFFFF'; |
| 158 |
v.style.fontWeight = 'bold'; |
| 159 |
} |
| 160 |
} |
| 161 |
<?php endfor; ?> |
| 162 |
} |
| 163 |
|
| 164 |
function cangeWday3(id, c) { |
| 165 |
<?php for ($i = 0; $i < $cal3->getRow(); $i++) : ?> |
| 166 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 167 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 168 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 169 |
if (e.value == '0') { |
| 170 |
e.value = '1'; |
| 171 |
v.style.backgroundColor = '#DFFFDD'; |
| 172 |
v.style.color = '#555555'; |
| 173 |
v.style.fontWeight = 'normal'; |
| 174 |
} else { |
| 175 |
e.value = '0'; |
| 176 |
v.style.backgroundColor = '#FFAA55'; |
| 177 |
v.style.color = '#FFFFFF'; |
| 178 |
v.style.fontWeight = 'bold'; |
| 179 |
} |
| 180 |
} |
| 181 |
<?php endfor; ?> |
| 182 |
} |
| 183 |
|
| 184 |
//20131206_kitamu_startâ–¼ |
| 185 |
//4th |
| 186 |
function cangeWday4(id, c) { |
| 187 |
<?php for ($i = 0; $i < $cal4->getRow(); $i++) : ?> |
| 188 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 189 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 190 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 191 |
if (e.value == '0') { |
| 192 |
e.value = '1'; |
| 193 |
v.style.backgroundColor = '#DFFFDD'; |
| 194 |
v.style.color = '#555555'; |
| 195 |
v.style.fontWeight = 'normal'; |
| 196 |
} else { |
| 197 |
e.value = '0'; |
| 198 |
v.style.backgroundColor = '#FFAA55'; |
| 199 |
v.style.color = '#FFFFFF'; |
| 200 |
v.style.fontWeight = 'bold'; |
| 201 |
} |
| 202 |
} |
| 203 |
<?php endfor; ?> |
| 204 |
} |
| 205 |
//5th |
| 206 |
function cangeWday5(id, c) { |
| 207 |
<?php for ($i = 0; $i < $cal5->getRow(); $i++) : ?> |
| 208 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 209 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 210 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 211 |
if (e.value == '0') { |
| 212 |
e.value = '1'; |
| 213 |
v.style.backgroundColor = '#DFFFDD'; |
| 214 |
v.style.color = '#555555'; |
| 215 |
v.style.fontWeight = 'normal'; |
| 216 |
} else { |
| 217 |
e.value = '0'; |
| 218 |
v.style.backgroundColor = '#FFAA55'; |
| 219 |
v.style.color = '#FFFFFF'; |
| 220 |
v.style.fontWeight = 'bold'; |
| 221 |
} |
| 222 |
} |
| 223 |
<?php endfor; ?> |
| 224 |
} |
| 225 |
|
| 226 |
//6th |
| 227 |
function cangeWday6(id, c) { |
| 228 |
<?php for ($i = 0; $i < $cal6->getRow(); $i++) : ?> |
| 229 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 230 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 231 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 232 |
if (e.value == '0') { |
| 233 |
e.value = '1'; |
| 234 |
v.style.backgroundColor = '#DFFFDD'; |
| 235 |
v.style.color = '#555555'; |
| 236 |
v.style.fontWeight = 'normal'; |
| 237 |
} else { |
| 238 |
e.value = '0'; |
| 239 |
v.style.backgroundColor = '#FFAA55'; |
| 240 |
v.style.color = '#FFFFFF'; |
| 241 |
v.style.fontWeight = 'bold'; |
| 242 |
} |
| 243 |
} |
| 244 |
<?php endfor; ?> |
| 245 |
} |
| 246 |
|
| 247 |
//7th |
| 248 |
function cangeWday7(id, c) { |
| 249 |
<?php for ($i = 0; $i < $cal7->getRow(); $i++) : ?> |
| 250 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 251 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 252 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 253 |
if (e.value == '0') { |
| 254 |
e.value = '1'; |
| 255 |
v.style.backgroundColor = '#DFFFDD'; |
| 256 |
v.style.color = '#555555'; |
| 257 |
v.style.fontWeight = 'normal'; |
| 258 |
} else { |
| 259 |
e.value = '0'; |
| 260 |
v.style.backgroundColor = '#FFAA55'; |
| 261 |
v.style.color = '#FFFFFF'; |
| 262 |
v.style.fontWeight = 'bold'; |
| 263 |
} |
| 264 |
} |
| 265 |
<?php endfor; ?> |
| 266 |
} |
| 267 |
|
| 268 |
//8th |
| 269 |
function cangeWday8(id, c) { |
| 270 |
<?php for ($i = 0; $i < $cal8->getRow(); $i++) : ?> |
| 271 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 272 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 273 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 274 |
if (e.value == '0') { |
| 275 |
e.value = '1'; |
| 276 |
v.style.backgroundColor = '#DFFFDD'; |
| 277 |
v.style.color = '#555555'; |
| 278 |
v.style.fontWeight = 'normal'; |
| 279 |
} else { |
| 280 |
e.value = '0'; |
| 281 |
v.style.backgroundColor = '#FFAA55'; |
| 282 |
v.style.color = '#FFFFFF'; |
| 283 |
v.style.fontWeight = 'bold'; |
| 284 |
} |
| 285 |
} |
| 286 |
<?php endfor; ?> |
| 287 |
} |
| 288 |
|
| 289 |
//9th |
| 290 |
function cangeWday9(id, c) { |
| 291 |
<?php for ($i = 0; $i < $cal9->getRow(); $i++) : ?> |
| 292 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 293 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 294 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 295 |
if (e.value == '0') { |
| 296 |
e.value = '1'; |
| 297 |
v.style.backgroundColor = '#DFFFDD'; |
| 298 |
v.style.color = '#555555'; |
| 299 |
v.style.fontWeight = 'normal'; |
| 300 |
} else { |
| 301 |
e.value = '0'; |
| 302 |
v.style.backgroundColor = '#FFAA55'; |
| 303 |
v.style.color = '#FFFFFF'; |
| 304 |
v.style.fontWeight = 'bold'; |
| 305 |
} |
| 306 |
} |
| 307 |
<?php endfor; ?> |
| 308 |
} |
| 309 |
|
| 310 |
//10th |
| 311 |
function cangeWday10(id, c) { |
| 312 |
<?php for ($i = 0; $i < $cal10->getRow(); $i++) : ?> |
| 313 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 314 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 315 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 316 |
if (e.value == '0') { |
| 317 |
e.value = '1'; |
| 318 |
v.style.backgroundColor = '#DFFFDD'; |
| 319 |
v.style.color = '#555555'; |
| 320 |
v.style.fontWeight = 'normal'; |
| 321 |
} else { |
| 322 |
e.value = '0'; |
| 323 |
v.style.backgroundColor = '#FFAA55'; |
| 324 |
v.style.color = '#FFFFFF'; |
| 325 |
v.style.fontWeight = 'bold'; |
| 326 |
} |
| 327 |
} |
| 328 |
<?php endfor; ?> |
| 329 |
} |
| 330 |
|
| 331 |
//11th |
| 332 |
function cangeWday11(id, c) { |
| 333 |
<?php for ($i = 0; $i < $cal11->getRow(); $i++) : ?> |
| 334 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 335 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 336 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 337 |
if (e.value == '0') { |
| 338 |
e.value = '1'; |
| 339 |
v.style.backgroundColor = '#DFFFDD'; |
| 340 |
v.style.color = '#555555'; |
| 341 |
v.style.fontWeight = 'normal'; |
| 342 |
} else { |
| 343 |
e.value = '0'; |
| 344 |
v.style.backgroundColor = '#FFAA55'; |
| 345 |
v.style.color = '#FFFFFF'; |
| 346 |
v.style.fontWeight = 'bold'; |
| 347 |
} |
| 348 |
} |
| 349 |
<?php endfor; ?> |
| 350 |
} |
| 351 |
|
| 352 |
//12th |
| 353 |
function cangeWday12(id, c) { |
| 354 |
<?php for ($i = 0; $i < $cal12->getRow(); $i++) : ?> |
| 355 |
if (document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c)) { |
| 356 |
var e = document.getElementById(id+'_'+<?php echo ($i+1); ?>+'_'+c); |
| 357 |
var v = document.getElementById(id).rows[<?php echo ($i+1); ?>].cells[c]; |
| 358 |
if (e.value == '0') { |
| 359 |
e.value = '1'; |
| 360 |
v.style.backgroundColor = '#DFFFDD'; |
| 361 |
v.style.color = '#555555'; |
| 362 |
v.style.fontWeight = 'normal'; |
| 363 |
} else { |
| 364 |
e.value = '0'; |
| 365 |
v.style.backgroundColor = '#FFAA55'; |
| 366 |
v.style.color = '#FFFFFF'; |
| 367 |
v.style.fontWeight = 'bold'; |
| 368 |
} |
| 369 |
} |
| 370 |
<?php endfor; ?> |
| 371 |
} |
| 372 |
//20131206_kitamu_endâ–² |
| 373 |
|
| 374 |
</script> |
| 375 |
<div class="wrap"> |
| 376 |
<div class="usces_admin"> |
| 377 |
<h2>Welcart Shop <?php _e('Business Days Setting','usces'); ?></h2> |
| 378 |
<div id="aniboxStatus" class="<?php echo $status; ?>"> |
| 379 |
<div id="anibox" class="clearfix"> |
| 380 |
<img src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" /> |
| 381 |
<div class="mes" id="info_massage"><?php echo $message; ?></div> |
| 382 |
</div> |
| 383 |
</div> |
| 384 |
<form action="" method="post" name="option_form" id="option_form"> |
| 385 |
<input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" /> |
| 386 |
<div id="poststuff" class="metabox-holder"> |
| 387 |
<?php do_action( 'usces_action_admin_schedule1' ); ?> |
| 388 |
<div class="postbox"> |
| 389 |
<h3 class="hndle"><span><?php _e('Campaign Schedule','usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_campaign_schedule');"> (<?php _e('explanation', 'usces'); ?>) </a></h3> |
| 390 |
<div class="inside"> |
| 391 |
<table class="form_table"> |
| 392 |
<tr> |
| 393 |
<th><?php _e('starting time','usces'); ?></th> |
| 394 |
<td><select name="campaign_schedule[start][year]"> |
| 395 |
<option value="0"<?php if($campaign_schedule_start_year == 0) echo ' selected="selected"'; ?>></option> |
| 396 |
<option value="<?php echo $yearstr; ?>"<?php if($campaign_schedule_start_year == $yearstr) echo ' selected="selected"'; ?>><?php echo $yearstr; ?></option> |
| 397 |
<option value="<?php echo $yearstr+1; ?>"<?php if($campaign_schedule_start_year == ($yearstr+1)) echo ' selected="selected"'; ?>><?php echo $yearstr+1; ?></option> |
| 398 |
</select></td> |
| 399 |
<td><?php _e('year','usces'); ?></td> |
| 400 |
<td><select name="campaign_schedule[start][month]"> |
| 401 |
<option value="0"<?php if($campaign_schedule_start_month == 0) echo ' selected="selected"'; ?>></option> |
| 402 |
<?php for($i=1; $i<13; $i++) : ?> |
| 403 |
<option value="<?php echo $i; ?>"<?php if($campaign_schedule_start_month == $i) echo ' selected="selected"'; ?>><?php echo $i; ?></option> |
| 404 |
<?php endfor; ?> |
| 405 |
</select></td> |
| 406 |
<td><?php _e('month','usces'); ?></td> |
| 407 |
<td><select name="campaign_schedule[start][day]"> |
| 408 |
<option value="0"<?php if($campaign_schedule_start_day == 0) echo ' selected="selected"'; ?>></option> |
| 409 |
<?php for($i=1; $i<32; $i++) : ?> |
| 410 |
<option value="<?php echo $i; ?>"<?php if($campaign_schedule_start_day == $i) echo ' selected="selected"'; ?>><?php echo $i; ?></option> |
| 411 |
<?php endfor; ?> |
| 412 |
</select></td> |
| 413 |
<td><?php _e('day','usces'); ?></td> |
| 414 |
<td><select name="campaign_schedule[start][hour]"> |
| 415 |
<?php for($i=0; $i<24; $i++) : ?> |
| 416 |
<option value="<?php echo $i; ?>"<?php if($campaign_schedule_start_hour == $i) echo ' selected="selected"'; ?>><?php echo $i; ?></option> |
| 417 |
<?php endfor; ?> |
| 418 |
</select></td> |
| 419 |
<td><?php _e('hour','usces'); ?></td> |
| 420 |
<td><select name="campaign_schedule[start][min]"> |
| 421 |
<?php for($i=0; $i<12; $i++) : ?> |
| 422 |
<option value="<?php echo $i*5; ?>"<?php if($campaign_schedule_start_min == ($i*5)) echo ' selected="selected"'; ?>><?php echo $i*5; ?></option> |
| 423 |
<?php endfor; ?> |
| 424 |
</select></td> |
| 425 |
<td><?php _e('min','usces'); ?></td> |
| 426 |
</tr> |
| 427 |
<tr> |
| 428 |
<th><?php _e('date and time of termination','usces'); ?></th> |
| 429 |
<td><select name="campaign_schedule[end][year]"> |
| 430 |
<option value="0"<?php if($campaign_schedule_end_year == 0) echo ' selected="selected"'; ?>></option> |
| 431 |
<option value="<?php echo $yearstr; ?>"<?php if($campaign_schedule_end_year == $yearstr) echo ' selected="selected"'; ?>><?php echo $yearstr; ?></option> |
| 432 |
<option value="<?php echo $yearstr+1; ?>"<?php if($campaign_schedule_end_year == ($yearstr+1)) echo ' selected="selected"'; ?>><?php echo $yearstr+1; ?></option> |
| 433 |
</select></td> |
| 434 |
<td><?php _e('year','usces'); ?></td> |
| 435 |
<td><select name="campaign_schedule[end][month]"> |
| 436 |
<option value="0"<?php if($campaign_schedule_end_month == 0) echo ' selected="selected"'; ?>></option> |
| 437 |
<?php for($i=1; $i<13; $i++) : ?> |
| 438 |
<option value="<?php echo $i; ?>"<?php if($campaign_schedule_end_month == $i) echo ' selected="selected"'; ?>><?php echo $i; ?></option> |
| 439 |
<?php endfor; ?> |
| 440 |
</select></td> |
| 441 |
<td><?php _e('month','usces'); ?></td> |
| 442 |
<td><select name="campaign_schedule[end][day]"> |
| 443 |
<option value="0"<?php if($campaign_schedule_end_day == 0) echo ' selected="selected"'; ?>></option> |
| 444 |
<?php for($i=1; $i<32; $i++) : ?> |
| 445 |
<option value="<?php echo $i; ?>"<?php if($campaign_schedule_end_day == $i) echo ' selected="selected"'; ?>><?php echo $i; ?></option> |
| 446 |
<?php endfor; ?> |
| 447 |
</select></td> |
| 448 |
<td><?php _e('day','usces'); ?></td> |
| 449 |
<td><select name="campaign_schedule[end][hour]"> |
| 450 |
<?php for($i=0; $i<24; $i++) : ?> |
| 451 |
<option value="<?php echo $i; ?>"<?php if($campaign_schedule_end_hour == $i) echo ' selected="selected"'; ?>><?php echo $i; ?></option> |
| 452 |
<?php endfor; ?> |
| 453 |
</select></td> |
| 454 |
<td><?php _e('hour','usces'); ?></td> |
| 455 |
<td><select name="campaign_schedule[end][min]"> |
| 456 |
<?php for($i=0; $i<12; $i++) : ?> |
| 457 |
<option value="<?php echo $i*5; ?>"<?php if($campaign_schedule_end_min == ($i*5)) echo ' selected="selected"'; ?>><?php echo $i*5; ?></option> |
| 458 |
<?php endfor; ?> |
| 459 |
</select></td> |
| 460 |
<td><?php _e('min','usces'); ?></td> |
| 461 |
</tr> |
| 462 |
</table> |
| 463 |
<hr size="1" color="#CCCCCC" /> |
| 464 |
<div id="ex_campaign_schedule" class="explanation"><?php _e('reserve the period of campaign.', 'usces'); ?></div> |
| 465 |
</div> |
| 466 |
</div><!--postbox--> |
| 467 |
<?php do_action( 'usces_action_admin_schedule2' ); ?> |
| 468 |
<div class="postbox"> |
| 469 |
<h3 class="hndle"><span><?php _e('Business Calendar', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_shipping_charge');"> (<?php _e('explanation', 'usces'); ?>) </a></h3> |
| 470 |
<div class="inside"> |
| 471 |
<table class="form_table"> |
| 472 |
<tr> |
| 473 |
<th><?php _e('This month', 'usces'); ?><br /><?php echo sprintf(__('%2$s/%1$s', 'usces'),$todayyy,$todaymm); ?></th> |
| 474 |
<td> |
| 475 |
<table cellspacing="0" id="calendar1" class="calendar"> |
| 476 |
<tr> |
| 477 |
<th class="cal"><div onclick="cangeWday1('calendar1', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 478 |
<th class="cal"><div onclick="cangeWday1('calendar1', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 479 |
<th class="cal"><div onclick="cangeWday1('calendar1', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 480 |
<th class="cal"><div onclick="cangeWday1('calendar1', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 481 |
<th class="cal"><div onclick="cangeWday1('calendar1', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 482 |
<th class="cal"><div onclick="cangeWday1('calendar1', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 483 |
<th class="cal"><div onclick="cangeWday1('calendar1', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 484 |
</tr> |
| 485 |
<?php for ($i = 0; $i < $cal1->getRow(); $i++) : ?> |
| 486 |
<tr> |
| 487 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 488 |
$mday = $cal1->getDateText($i, $d); |
| 489 |
if ($mday != "") { |
| 490 |
$business = $this->options['business_days'][$todayyy][$todaymm][$mday]; |
| 491 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 492 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar1', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 493 |
<input name="business_days[<?php echo $todayyy; ?>][<?php echo $todaymm; ?>][<?php echo $mday; ?>]" id="calendar1_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 494 |
<?php } else { ?> |
| 495 |
<td> </td> |
| 496 |
<?php } ?> |
| 497 |
<?php endfor; ?> |
| 498 |
</tr> |
| 499 |
<?php endfor; ?> |
| 500 |
</table> |
| 501 |
</td> |
| 502 |
<td><span class="business_days_exp_box" style="background-color:#DFFFDD"> </span><?php _e('Working day', 'usces'); ?><br /><span class="business_days_exp_box" style="background-color:#FFAA55"> </span><?php _e('Holiday for Shipping Operations', 'usces'); ?></td> |
| 503 |
</tr> |
| 504 |
<tr> |
| 505 |
<th><?php _e('Next month', 'usces'); ?><br /><?php echo sprintf(__('%2$s/%1$s', 'usces'),$nextyy,$nextmm); ?></th> |
| 506 |
<td> |
| 507 |
<table cellspacing="0" id="calendar2" class="calendar"> |
| 508 |
<tr> |
| 509 |
<th class="cal"><div onclick="cangeWday2('calendar2', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 510 |
<th class="cal"><div onclick="cangeWday2('calendar2', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 511 |
<th class="cal"><div onclick="cangeWday2('calendar2', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 512 |
<th class="cal"><div onclick="cangeWday2('calendar2', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 513 |
<th class="cal"><div onclick="cangeWday2('calendar2', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 514 |
<th class="cal"><div onclick="cangeWday2('calendar2', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 515 |
<th class="cal"><div onclick="cangeWday2('calendar2', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 516 |
</tr> |
| 517 |
<?php for ($i = 0; $i < $cal2->getRow(); $i++) : ?> |
| 518 |
<tr> |
| 519 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 520 |
$mday = $cal2->getDateText($i, $d); |
| 521 |
if ($mday != "") { |
| 522 |
$business = $this->options['business_days'][$nextyy][$nextmm][$mday]; |
| 523 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 524 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar2', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 525 |
<input name="business_days[<?php echo $nextyy; ?>][<?php echo $nextmm; ?>][<?php echo $mday; ?>]" id="calendar2_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 526 |
<?php } else { ?> |
| 527 |
<td> </td> |
| 528 |
<?php } ?> |
| 529 |
<?php endfor; ?> |
| 530 |
</tr> |
| 531 |
<?php endfor; ?> |
| 532 |
</table> |
| 533 |
</td> |
| 534 |
<td> </td> |
| 535 |
</tr> |
| 536 |
<tr> |
| 537 |
<th><?php _e('Month after next month', 'usces'); ?><br /><?php echo sprintf(__('%2$s/%1$s', 'usces'),$lateryy,$latermm); ?></th> |
| 538 |
<td> |
| 539 |
<table cellspacing="0" id="calendar3" class="calendar"> |
| 540 |
<tr> |
| 541 |
<th class="cal"><div onclick="cangeWday3('calendar3', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 542 |
<th class="cal"><div onclick="cangeWday3('calendar3', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 543 |
<th class="cal"><div onclick="cangeWday3('calendar3', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 544 |
<th class="cal"><div onclick="cangeWday3('calendar3', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 545 |
<th class="cal"><div onclick="cangeWday3('calendar3', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 546 |
<th class="cal"><div onclick="cangeWday3('calendar3', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 547 |
<th class="cal"><div onclick="cangeWday3('calendar3', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 548 |
</tr> |
| 549 |
<?php for ($i = 0; $i < $cal3->getRow(); $i++) : ?> |
| 550 |
<tr> |
| 551 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 552 |
$mday = $cal3->getDateText($i, $d); |
| 553 |
if ($mday != "") { |
| 554 |
$business = $this->options['business_days'][$lateryy][$latermm][$mday]; |
| 555 |
//20110131ysk start |
| 556 |
//if(empty($business)) $business = '0'; |
| 557 |
if($business != 0) $business = 1; |
| 558 |
//20110131ysk end |
| 559 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 560 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar3', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 561 |
<input name="business_days[<?php echo $lateryy; ?>][<?php echo $latermm; ?>][<?php echo $mday; ?>]" id="calendar3_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 562 |
<?php } else { ?> |
| 563 |
<td> </td> |
| 564 |
<?php } ?> |
| 565 |
<?php endfor; ?> |
| 566 |
</tr> |
| 567 |
<?php endfor; ?> |
| 568 |
</table> |
| 569 |
</td> |
| 570 |
<td> </td> |
| 571 |
</tr> |
| 572 |
<!--20131206_kitamu_startâ–¼--> |
| 573 |
<!--4th--> |
| 574 |
<tr> |
| 575 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_4th_monthyy,$the_4th_monthmm); ?></th> |
| 576 |
<td> |
| 577 |
<table cellspacing="0" id="calendar4" class="calendar"> |
| 578 |
<tr> |
| 579 |
<th class="cal"><div onclick="cangeWday4('calendar4', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 580 |
<th class="cal"><div onclick="cangeWday4('calendar4', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 581 |
<th class="cal"><div onclick="cangeWday4('calendar4', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 582 |
<th class="cal"><div onclick="cangeWday4('calendar4', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 583 |
<th class="cal"><div onclick="cangeWday4('calendar4', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 584 |
<th class="cal"><div onclick="cangeWday4('calendar4', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 585 |
<th class="cal"><div onclick="cangeWday4('calendar4', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 586 |
</tr> |
| 587 |
<?php for ($i = 0; $i < $cal4->getRow(); $i++) : ?> |
| 588 |
<tr> |
| 589 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 590 |
$mday = $cal4->getDateText($i, $d); |
| 591 |
if ($mday != "") { |
| 592 |
$business = isset( $this->options['business_days'][$the_4th_monthyy][$the_4th_monthmm][$mday]) ? $this->options['business_days'][$the_4th_monthyy][$the_4th_monthmm][$mday] : 1; |
| 593 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 594 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar4', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 595 |
<input name="business_days[<?php echo $the_4th_monthyy; ?>][<?php echo $the_4th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar4_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 596 |
<?php } else { ?> |
| 597 |
<td> </td> |
| 598 |
<?php } ?> |
| 599 |
<?php endfor; ?> |
| 600 |
</tr> |
| 601 |
<?php endfor; ?> |
| 602 |
</table> |
| 603 |
</td> |
| 604 |
<td> </td> |
| 605 |
</tr> |
| 606 |
<!--5th--> |
| 607 |
<tr> |
| 608 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_5th_monthyy,$the_5th_monthmm); ?></th> |
| 609 |
<td> |
| 610 |
<table cellspacing="0" id="calendar5" class="calendar"> |
| 611 |
<tr> |
| 612 |
<th class="cal"><div onclick="cangeWday5('calendar5', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 613 |
<th class="cal"><div onclick="cangeWday5('calendar5', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 614 |
<th class="cal"><div onclick="cangeWday5('calendar5', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 615 |
<th class="cal"><div onclick="cangeWday5('calendar5', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 616 |
<th class="cal"><div onclick="cangeWday5('calendar5', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 617 |
<th class="cal"><div onclick="cangeWday5('calendar5', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 618 |
<th class="cal"><div onclick="cangeWday5('calendar5', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 619 |
</tr> |
| 620 |
<?php for ($i = 0; $i < $cal5->getRow(); $i++) : ?> |
| 621 |
<tr> |
| 622 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 623 |
$mday = $cal5->getDateText($i, $d); |
| 624 |
if ($mday != "") { |
| 625 |
$business = isset( $this->options['business_days'][$the_5th_monthyy][$the_5th_monthmm][$mday]) ? $this->options['business_days'][$the_5th_monthyy][$the_5th_monthmm][$mday] : 1; |
| 626 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 627 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar5', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 628 |
<input name="business_days[<?php echo $the_5th_monthyy; ?>][<?php echo $the_5th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar5_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 629 |
<?php } else { ?> |
| 630 |
<td> </td> |
| 631 |
<?php } ?> |
| 632 |
<?php endfor; ?> |
| 633 |
</tr> |
| 634 |
<?php endfor; ?> |
| 635 |
</table> |
| 636 |
</td> |
| 637 |
<td> </td> |
| 638 |
</tr> |
| 639 |
<!--6th--> |
| 640 |
<tr> |
| 641 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_6th_monthyy,$the_6th_monthmm); ?></th> |
| 642 |
<td> |
| 643 |
<table cellspacing="0" id="calendar6" class="calendar"> |
| 644 |
<tr> |
| 645 |
<th class="cal"><div onclick="cangeWday6('calendar6', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 646 |
<th class="cal"><div onclick="cangeWday6('calendar6', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 647 |
<th class="cal"><div onclick="cangeWday6('calendar6', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 648 |
<th class="cal"><div onclick="cangeWday6('calendar6', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 649 |
<th class="cal"><div onclick="cangeWday6('calendar6', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 650 |
<th class="cal"><div onclick="cangeWday6('calendar6', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 651 |
<th class="cal"><div onclick="cangeWday6('calendar6', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 652 |
</tr> |
| 653 |
<?php for ($i = 0; $i < $cal6->getRow(); $i++) : ?> |
| 654 |
<tr> |
| 655 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 656 |
$mday = $cal6->getDateText($i, $d); |
| 657 |
if ($mday != "") { |
| 658 |
$business = isset( $this->options['business_days'][$the_6th_monthyy][$the_6th_monthmm][$mday]) ? $this->options['business_days'][$the_6th_monthyy][$the_6th_monthmm][$mday] : 1; |
| 659 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 660 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar6', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 661 |
<input name="business_days[<?php echo $the_6th_monthyy; ?>][<?php echo $the_6th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar6_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 662 |
<?php } else { ?> |
| 663 |
<td> </td> |
| 664 |
<?php } ?> |
| 665 |
<?php endfor; ?> |
| 666 |
</tr> |
| 667 |
<?php endfor; ?> |
| 668 |
</table> |
| 669 |
</td> |
| 670 |
<td> </td> |
| 671 |
</tr> |
| 672 |
<!--7th--> |
| 673 |
<tr> |
| 674 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_7th_monthyy,$the_7th_monthmm); ?></th> |
| 675 |
<td> |
| 676 |
<table cellspacing="0" id="calendar7" class="calendar"> |
| 677 |
<tr> |
| 678 |
<th class="cal"><div onclick="cangeWday7('calendar7', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 679 |
<th class="cal"><div onclick="cangeWday7('calendar7', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 680 |
<th class="cal"><div onclick="cangeWday7('calendar7', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 681 |
<th class="cal"><div onclick="cangeWday7('calendar7', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 682 |
<th class="cal"><div onclick="cangeWday7('calendar7', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 683 |
<th class="cal"><div onclick="cangeWday7('calendar7', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 684 |
<th class="cal"><div onclick="cangeWday7('calendar7', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 685 |
</tr> |
| 686 |
<?php for ($i = 0; $i < $cal7->getRow(); $i++) : ?> |
| 687 |
<tr> |
| 688 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 689 |
$mday = $cal7->getDateText($i, $d); |
| 690 |
if ($mday != "") { |
| 691 |
$business = isset( $this->options['business_days'][$the_7th_monthyy][$the_7th_monthmm][$mday]) ? $this->options['business_days'][$the_7th_monthyy][$the_7th_monthmm][$mday] : 1; |
| 692 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 693 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar7', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 694 |
<input name="business_days[<?php echo $the_7th_monthyy; ?>][<?php echo $the_7th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar7_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 695 |
<?php } else { ?> |
| 696 |
<td> </td> |
| 697 |
<?php } ?> |
| 698 |
<?php endfor; ?> |
| 699 |
</tr> |
| 700 |
<?php endfor; ?> |
| 701 |
</table> |
| 702 |
</td> |
| 703 |
<td> </td> |
| 704 |
</tr> |
| 705 |
<!--8th--> |
| 706 |
<tr> |
| 707 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_8th_monthyy,$the_8th_monthmm); ?></th> |
| 708 |
<td> |
| 709 |
<table cellspacing="0" id="calendar8" class="calendar"> |
| 710 |
<tr> |
| 711 |
<th class="cal"><div onclick="cangeWday8('calendar8', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 712 |
<th class="cal"><div onclick="cangeWday8('calendar8', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 713 |
<th class="cal"><div onclick="cangeWday8('calendar8', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 714 |
<th class="cal"><div onclick="cangeWday8('calendar8', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 715 |
<th class="cal"><div onclick="cangeWday8('calendar8', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 716 |
<th class="cal"><div onclick="cangeWday8('calendar8', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 717 |
<th class="cal"><div onclick="cangeWday8('calendar8', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 718 |
</tr> |
| 719 |
<?php for ($i = 0; $i < $cal8->getRow(); $i++) : ?> |
| 720 |
<tr> |
| 721 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 722 |
$mday = $cal8->getDateText($i, $d); |
| 723 |
if ($mday != "") { |
| 724 |
$business = isset( $this->options['business_days'][$the_8th_monthyy][$the_8th_monthmm][$mday]) ? $this->options['business_days'][$the_8th_monthyy][$the_8th_monthmm][$mday] : 1; |
| 725 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 726 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar8', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 727 |
<input name="business_days[<?php echo $the_8th_monthyy; ?>][<?php echo $the_8th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar8_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 728 |
<?php } else { ?> |
| 729 |
<td> </td> |
| 730 |
<?php } ?> |
| 731 |
<?php endfor; ?> |
| 732 |
</tr> |
| 733 |
<?php endfor; ?> |
| 734 |
</table> |
| 735 |
</td> |
| 736 |
<td> </td> |
| 737 |
</tr> |
| 738 |
<!--9th--> |
| 739 |
<tr> |
| 740 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_9th_monthyy,$the_9th_monthmm); ?></th> |
| 741 |
<td> |
| 742 |
<table cellspacing="0" id="calendar9" class="calendar"> |
| 743 |
<tr> |
| 744 |
<th class="cal"><div onclick="cangeWday9('calendar9', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 745 |
<th class="cal"><div onclick="cangeWday9('calendar9', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 746 |
<th class="cal"><div onclick="cangeWday9('calendar9', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 747 |
<th class="cal"><div onclick="cangeWday9('calendar9', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 748 |
<th class="cal"><div onclick="cangeWday9('calendar9', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 749 |
<th class="cal"><div onclick="cangeWday9('calendar9', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 750 |
<th class="cal"><div onclick="cangeWday9('calendar9', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 751 |
</tr> |
| 752 |
<?php for ($i = 0; $i < $cal9->getRow(); $i++) : ?> |
| 753 |
<tr> |
| 754 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 755 |
$mday = $cal9->getDateText($i, $d); |
| 756 |
if ($mday != "") { |
| 757 |
$business = isset( $this->options['business_days'][$the_9th_monthyy][$the_9th_monthmm][$mday]) ? $this->options['business_days'][$the_9th_monthyy][$the_9th_monthmm][$mday] : 1; |
| 758 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 759 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar9', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 760 |
<input name="business_days[<?php echo $the_9th_monthyy; ?>][<?php echo $the_9th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar9_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 761 |
<?php } else { ?> |
| 762 |
<td> </td> |
| 763 |
<?php } ?> |
| 764 |
<?php endfor; ?> |
| 765 |
</tr> |
| 766 |
<?php endfor; ?> |
| 767 |
</table> |
| 768 |
</td> |
| 769 |
<td> </td> |
| 770 |
</tr> |
| 771 |
<!--10th--> |
| 772 |
<tr> |
| 773 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_10th_monthyy,$the_10th_monthmm); ?></th> |
| 774 |
<td> |
| 775 |
<table cellspacing="0" id="calendar10" class="calendar"> |
| 776 |
<tr> |
| 777 |
<th class="cal"><div onclick="cangeWday10('calendar10', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 778 |
<th class="cal"><div onclick="cangeWday10('calendar10', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 779 |
<th class="cal"><div onclick="cangeWday10('calendar10', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 780 |
<th class="cal"><div onclick="cangeWday10('calendar10', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 781 |
<th class="cal"><div onclick="cangeWday10('calendar10', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 782 |
<th class="cal"><div onclick="cangeWday10('calendar10', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 783 |
<th class="cal"><div onclick="cangeWday10('calendar10', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 784 |
</tr> |
| 785 |
<?php for ($i = 0; $i < $cal10->getRow(); $i++) : ?> |
| 786 |
<tr> |
| 787 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 788 |
$mday = $cal10->getDateText($i, $d); |
| 789 |
if ($mday != "") { |
| 790 |
$business = isset( $this->options['business_days'][$the_10th_monthyy][$the_10th_monthmm][$mday]) ? $this->options['business_days'][$the_10th_monthyy][$the_10th_monthmm][$mday] : 1; |
| 791 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 792 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar10', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 793 |
<input name="business_days[<?php echo $the_10th_monthyy; ?>][<?php echo $the_10th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar10_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 794 |
<?php } else { ?> |
| 795 |
<td> </td> |
| 796 |
<?php } ?> |
| 797 |
<?php endfor; ?> |
| 798 |
</tr> |
| 799 |
<?php endfor; ?> |
| 800 |
</table> |
| 801 |
</td> |
| 802 |
<td> </td> |
| 803 |
</tr> |
| 804 |
<!--11th--> |
| 805 |
<tr> |
| 806 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_11th_monthyy,$the_11th_monthmm); ?></th> |
| 807 |
<td> |
| 808 |
<table cellspacing="0" id="calendar11" class="calendar"> |
| 809 |
<tr> |
| 810 |
<th class="cal"><div onclick="cangeWday11('calendar11', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 811 |
<th class="cal"><div onclick="cangeWday11('calendar11', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 812 |
<th class="cal"><div onclick="cangeWday11('calendar11', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 813 |
<th class="cal"><div onclick="cangeWday11('calendar11', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 814 |
<th class="cal"><div onclick="cangeWday11('calendar11', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 815 |
<th class="cal"><div onclick="cangeWday11('calendar11', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 816 |
<th class="cal"><div onclick="cangeWday11('calendar11', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 817 |
</tr> |
| 818 |
<?php for ($i = 0; $i < $cal11->getRow(); $i++) : ?> |
| 819 |
<tr> |
| 820 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 821 |
$mday = $cal11->getDateText($i, $d); |
| 822 |
if ($mday != "") { |
| 823 |
$business = isset( $this->options['business_days'][$the_11th_monthyy][$the_11th_monthmm][$mday]) ? $this->options['business_days'][$the_11th_monthyy][$the_11th_monthmm][$mday] : 1; |
| 824 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 825 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar11', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 826 |
<input name="business_days[<?php echo $the_11th_monthyy; ?>][<?php echo $the_11th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar11_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 827 |
<?php } else { ?> |
| 828 |
<td> </td> |
| 829 |
<?php } ?> |
| 830 |
<?php endfor; ?> |
| 831 |
</tr> |
| 832 |
<?php endfor; ?> |
| 833 |
</table> |
| 834 |
</td> |
| 835 |
<td> </td> |
| 836 |
</tr> |
| 837 |
<!--12th--> |
| 838 |
<tr> |
| 839 |
<th><?php echo sprintf(__('%2$s/%1$s', 'usces'),$the_12th_monthyy,$the_12th_monthmm); ?></th> |
| 840 |
<td> |
| 841 |
<table cellspacing="0" id="calendar12" class="calendar"> |
| 842 |
<tr> |
| 843 |
<th class="cal"><div onclick="cangeWday12('calendar12', '0');"><font color="#FF3300"><?php _e('Sun', 'usces'); ?></font></div></th> |
| 844 |
<th class="cal"><div onclick="cangeWday12('calendar12', '1');"><?php _e('Mon', 'usces'); ?></div></th> |
| 845 |
<th class="cal"><div onclick="cangeWday12('calendar12', '2');"><?php _e('Tue', 'usces'); ?></div></th> |
| 846 |
<th class="cal"><div onclick="cangeWday12('calendar12', '3');"><?php _e('Wed', 'usces'); ?></div></th> |
| 847 |
<th class="cal"><div onclick="cangeWday12('calendar12', '4');"><?php _e('Thu', 'usces'); ?></div></th> |
| 848 |
<th class="cal"><div onclick="cangeWday12('calendar12', '5');"><?php _e('Fri', 'usces'); ?></div></th> |
| 849 |
<th class="cal"><div onclick="cangeWday12('calendar12', '6');"><?php _e('Sat', 'usces'); ?></div></th> |
| 850 |
</tr> |
| 851 |
<?php for ($i = 0; $i < $cal12->getRow(); $i++) : ?> |
| 852 |
<tr> |
| 853 |
<?php for ($d = 0; $d <= 6; $d++) : |
| 854 |
$mday = $cal12->getDateText($i, $d); |
| 855 |
if ($mday != "") { |
| 856 |
$business = isset( $this->options['business_days'][$the_12th_monthyy][$the_12th_monthmm][$mday]) ? $this->options['business_days'][$the_12th_monthyy][$the_12th_monthmm][$mday] : 1; |
| 857 |
$color = ($business == 1) ? '#DFFFDD' : '#FFAA55;color:#FFFFFF;font-weight:bold;'; ?> |
| 858 |
<td class="cal" style="background-color:<?php echo $color; ?>"><div onclick="cangeBus('calendar12', <?php echo ($i + 1); ?>, <?php echo $d; ?>);"><?php echo $mday; ?></div> |
| 859 |
<input name="business_days[<?php echo $the_12th_monthyy; ?>][<?php echo $the_12th_monthmm; ?>][<?php echo $mday; ?>]" id="calendar12_<?php echo ($i+1); ?>_<?php echo $d; ?>" type="hidden" value="<?php echo $business; ?>"></td> |
| 860 |
<?php } else { ?> |
| 861 |
<td> </td> |
| 862 |
<?php } ?> |
| 863 |
<?php endfor; ?> |
| 864 |
</tr> |
| 865 |
<?php endfor; ?> |
| 866 |
</table> |
| 867 |
</td> |
| 868 |
<td> </td> |
| 869 |
</tr> |
| 870 |
<!--20131206_kitamu_endâ–²--> |
| 871 |
</table> |
| 872 |
<hr size="1" color="#CCCCCC" /> |
| 873 |
<div id="ex_shipping_charge" class="explanation"></div> |
| 874 |
</div> |
| 875 |
</div><!--postbox--> |
| 876 |
<?php do_action( 'usces_action_admin_schedule3' ); ?> |
| 877 |
|
| 878 |
|
| 879 |
</div><!--poststuff--> |
| 880 |
<input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" /> |
| 881 |
</form> |
| 882 |
</div><!--usces_admin--> |
| 883 |
</div><!--wrap--> |