This file contains hidden or 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 | |
// フォームからPOSTされたら表示する。 | |
if(!empty($_POST)){ | |
print_r($_POST); | |
} | |
// ファイルからJSONを読み込み | |
$json = file_get_contents("template.json"); |
This file contains hidden or 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
// 20140813 kintone用javascript作成 | |
// 生年月日(日付フィールド)から、年齢を計算する | |
// 以下のサンプルコードだと、うるう年を考えていないので自作した | |
// https://cybozudev.zendesk.com/hc/ja/articles/202640900-%E7%B5%8C%E9%81%8E%E5%B9%B4%E6%95%B0%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B | |
(function() { | |
// 生年月日が入っているフィールドコード名 | |
const BIRTHDAY_FIELD_NAME = '生年月日'; |
This file contains hidden or 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
Sub ボタン2_Click() | |
' kintoneアクセス情報の設定 | |
subdomain = "" 'サブドメイン | |
authToken = "" '「ユーザID : パスワード」のbase64エンコードした文字列 | |
AppNo = "" 'kintoneアプリの番号 | |
'確認ダイアログ | |
Dim Ans As Integer |
This file contains hidden or 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
Sub ボタン1_Click() | |
'-------------------------------------------------------------------- | |
' 変数定義 | |
'-------------------------------------------------------------------- | |
Dim objHttpReq As MSXML2.XMLHTTP ' XMLHTTP オブジェクト | |
Dim strJSON As String ' レスポンスで受け取るJSONデータ | |
Dim strURL As String ' アクセス先URL | |
Dim strQuery As String ' 検索文字列 | |
This file contains hidden or 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 () { | |
"use strict"; | |
//チェックボックス変更時のイベント | |
kintone.events.on(["app.record.create.change.address_trans", "app.record.edit.change.address_trans"],function(event){ | |
var record = event.record; | |
var zipcode = record.zipcode.value; | |
//住所変換のチェック | |
if(record.address_trans.value == '住所変換'){ | |
//jQuery ajaxで同期処理 |
This file contains hidden or 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 | |
// 自分のkintoneの設定 | |
define("API_TOKEN", ""); | |
define("SUB_DOMAIN", ""); | |
define("APP_NO", "1"); | |
//サーバ送信するHTTPヘッダを設定 | |
$options = array( |
This file contains hidden or 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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"> </script> | |
<script> | |
$.getJSON( | |
"http://localhost/rss/rss.php?callback=?", | |
{ rss_num : 5 }, | |
function(json) { | |
alert('b'); |
This file contains hidden or 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
<html> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
//RSSソース | |
const RSS_URL = "http://feeds.feedburner.com/messiahworks/rss"; | |
//取得するRSS記事数 | |
const RSS_NUM = 10; |
This file contains hidden or 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
if(s % 2 == 0) className = 'mfp_achroma'; | |
//確認メールアドレスとプライバシーポリシー確認は、確認画面に表示しない! | |
if(elmName == 'confirm_email' || elmName == 'privacy_policy'){ | |
}else{ | |
mfp.ConfirmHTML += '<tr class="'+className+'"><th>'+elmName+'</th><td>'+val+'</td>'; | |
} | |
s++; |
This file contains hidden or 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
sub _POST { | |
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); | |
@pairs = split(/&/, $buffer); | |
foreach $pair (@pairs) { | |
($name, $value) = split(/=/, $pair); | |
#メール項目が「確認メールアドレス」「プライバシーポリシー」なら無視する。 | |
if ($name eq "confirm_email" || $name eq "privacy_policy"){ | |
}else { |