This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table { | |
font-size: 90%; | |
color: #333; | |
margin-bottom: 30px; | |
border: 1px solid #CCCCCC; | |
border-collapse: separate; | |
border-spacing: 1px; | |
} | |
th { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function maketable($array){ | |
$ret='<table>'; | |
$tableheader=array_keys($array[0]); | |
$ret.="<tr>"; | |
foreach($tableheader as $name){ | |
$ret.="<th>$name</th>\n"; | |
} | |
$ret.="</tr>\n"; | |
foreach($array as $i=>$row){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// array2excel($table,$label) ; | |
function array2excel($table,$formlabel=""){ | |
$today=date('Ymd'); | |
header("Content-Type: application/octet-stream"); | |
header("Content-Disposition: attachment; filename=data_{$today}.xls"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://ascii.jp/elem/000/000/477/477758/index-2.html | |
#glayLayer{ | |
display:none; | |
position:fixed; | |
(中略) | |
} | |
#overLayer{ | |
display:none; | |
position:fixed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tsv=file_get_contents("https://spreadsheets.google.com/pub?key=XXXXXXXXXX&output=txt"); | |
function tsv2hash($txt){ | |
$txt=str_replace("–", "-", $txt); | |
$arrtmp=explode("\n",$txt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hexa1() { | |
var nn =2000+$(window).scrollTop(); | |
var n16=0; | |
var ans =""; | |
while (nn > 0) { | |
n16=nn%16; | |
nn=(nn-n16)/16; | |
ans=bunrui(n16) + ans; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja"> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
<script src="http://semooh.jp/jquery/js/jquery.js"></script> | |
<style type="text/css"> | |
.transform_scale{ | |
float:left; | |
background-color:#aaaaaa; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A:専門的・技術的職業従事者 | |
B:管理的職業従事者 | |
C:事務従事者 | |
D:販売従事者 | |
E:サービス職業従事者 | |
F:保安職業従事者 | |
G:農林漁業作業者 | |
H:運輸・通信従事者 | |
I:生産工程・労務作業者 | |
J:その他 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sql=sprintf("INSERT INTO `registration` (`%s`)VALUES (%s);" | |
,implode("` ,`",array_keys($allitems)) | |
,implode(",",array_fill(1,count($allitems),"?") ) | |
); | |
$registration=$pdo->prepare($sql); | |
$registration->execute(array_values($allitems)); | |
$regnum=$pdo->lastInsertId(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '<Cell><Data ss:Type="String">'; | |
echo str_replace("<br>", ' ',nl2br($val) ) ; | |
echo "</Data></Cell>\n"; | |
function ooo($val){ | |
$val=str_replace("<br>", ' ',nl2br($val) ) ; | |
$val = str_replace("<br clear=both>", '</Data></Cell><Cell><Data ss:Type="String">',$val ) ; |
OlderNewer